Commit ba7470f2 authored by 黄奎's avatar 黄奎

页面修改

parent 52583c18
......@@ -127,3 +127,38 @@ export function saveBatchStudyAbroad(data) {
data
})
}
/**
* 留学就业提交审核
*/
export function saveSaleState(data) {
return request({
url: '/StudyAbroad/SetSaleState',
method: 'post',
data
})
}
/**
* 部门主管审核
*/
export function saveDirectorAudit(data) {
return request({
url: '/StudyAbroad/SetDirectorAudit',
method: 'post',
data
})
}
/**
* 部门负责人审核
*/
export function saveManagerAudit(data) {
return request({
url: '/StudyAbroad/SetManagerAudit',
method: 'post',
data
})
}
......@@ -7,9 +7,9 @@
@clear="resetSearch" maxlength="20" />
</div>
<div class="col-3">
<q-select class="q-pb-lg q-pr-lg" filled stack-label
option-value="Id" option-label="Name" v-model="msg.SaleState" ref="SaleState" :options="saleDownList"
label="销售状态" :dense="false" emit-value map-options>
<q-select class="q-pb-lg q-pr-lg" filled stack-label option-value="Id" option-label="Name"
v-model="msg.SaleState" ref="SaleState" :options="saleDownList" label="销售状态" :dense="false" emit-value
map-options>
</q-select>
</div>
</div>
......@@ -28,7 +28,8 @@
<q-td>
<div>{{props.row.SupplierName}}</div>
<div>
<a :href="props.row.SupplierContract" style="color:#2961FE;text-decoration:none;" v-if="props.row.SupplierContract">
<a :href="props.row.SupplierContract" style="color:#2961FE;text-decoration:none;"
v-if="props.row.SupplierContract">
查看合同
</a>
</div>
......@@ -109,7 +110,8 @@
:input="true" @input="changePage" />
</template>
</q-table>
<studyAbroad-form v-if="isShowStudy" :save-obj="studyObj" :Type="1" @close="closeStudyForm" @success="refreshPage">
<studyAbroad-form v-if="isShowStudy" :save-obj="studyObj" :Type="1" @close="closeStudyForm"
@success="refreshPage">
</studyAbroad-form>
<studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" @close="closeStudyForm"
@success="refreshPage">
......@@ -120,7 +122,8 @@
<script>
import {
queryStudyAbroadPage
queryStudyAbroadPage,
saveSaleState
} from '../../api/studyabroad/index'
import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form'
import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form'
......@@ -142,7 +145,7 @@
rowsPerPage: 10,
Name: "",
IsQPrice: 1,
SaleState:0 //销售状态
SaleState: 0 //销售状态
},
dataList: [],
loading: true,
......@@ -158,12 +161,6 @@
field: 'SupplierName',
align: 'left'
},
// {
// name: 'SupplierContract',
// label: '供应商合同',
// field: 'SupplierContract',
// align: 'left'
// },
{
name: 'SuggestPrice',
label: '建议卖价',
......@@ -206,9 +203,9 @@
align: 'left'
},
{
name: 'SaleState',
name: 'SaleStateName',
label: '销售状态',
field: 'SaleState',
field: 'SaleStateName',
align: 'left'
},
{
......@@ -222,15 +219,15 @@
studyObj: {}, //留学对象
isShowStudyPrice: false, //是否显示价格设置
saleDownList:[{
Id:0,
Name:'不限'
},{
Id:1,
Name:'销售中'
},{
Id:2,
Name:'已下架'
saleDownList: [{
Id: 0,
Name: '不限'
}, {
Id: 1,
Name: '销售中'
}, {
Id: 2,
Name: '已下架'
}], //销售状态下拉
}
},
......@@ -253,7 +250,6 @@
this.loading = false;
this.dataList = res.Data.PageData;
this.PageCount = res.Data.PageCount;
console.log(res, '数据');
})
.catch(() => {
this.loading = false;
......@@ -288,7 +284,33 @@
this.isShowStudyPrice = true;
},
//申请审核
applyApply(obj){
applyApply(obj) {
let applyMsg = {
Id: obj.Id,
SaleState: 2
};
this.$q.dialog({
title: '提示信息',
message: '是否要提交审核?',
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
saveSaleState(applyMsg).then(res => {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
this.refreshPage();
})
}).onCancel(() => {
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment