Commit f96b0406 authored by 黄奎's avatar 黄奎

页面修改

parent 7b17965a
...@@ -136,7 +136,12 @@ ...@@ -136,7 +136,12 @@
</div> </div>
</q-td> </q-td>
<q-td v-else-if="col.name=='SaleStateName'"> <q-td v-else-if="col.name=='SaleStateName'">
{{col.value}} <template v-if="props.row.SaleState==1">
{{col.value}}
</template>
<template v-if="props.row.SaleState!=1">
<a style="cursor:pointer;color:blue;" @click="ShowInfo(props.row)" title="点击查看审核信息"> {{col.value}}</a>
</template>
</q-td> </q-td>
<q-td v-else-if="col.name == 'Id'" style="width:200px;"> <q-td v-else-if="col.name == 'Id'" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
...@@ -169,6 +174,7 @@ ...@@ -169,6 +174,7 @@
<studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" :Type="2" @close="closeStudyForm" <studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" :Type="2" @close="closeStudyForm"
@success="refreshPage"> @success="refreshPage">
</studyAbroadprice-form> </studyAbroadprice-form>
<studyproauditinfo-form v-if="isShowInfo" :Id="studyObj.Id" @close="closeStudyForm"></studyproauditinfo-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -181,6 +187,7 @@ ...@@ -181,6 +187,7 @@
} from '../../api/studyabroad/index' } from '../../api/studyabroad/index'
import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form' import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form'
import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form' import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form'
import studyproauditinfoForm from '../../components/studyAbroad/studyproauditinfo-form'
import { import {
mapState mapState
} from "vuex"; } from "vuex";
...@@ -190,7 +197,8 @@ ...@@ -190,7 +197,8 @@
}, },
components: { components: {
studyAbroadForm, studyAbroadForm,
studyAbroadpriceForm studyAbroadpriceForm,
studyproauditinfoForm
}, },
data() { data() {
return { return {
...@@ -271,23 +279,25 @@ ...@@ -271,23 +279,25 @@
field: 'Id' field: 'Id'
} }
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id','SupplierName', "EducationCommission", 'SaleStateName', 'Id', 'SupplierName',
], //可见列 ], //可见列
PageCount: 0, PageCount: 0,
isShowStudy: false, //是否显示留学弹窗 isShowStudy: false, //是否显示留学弹窗
studyObj: {}, //留学对象 studyObj: {}, //留学对象
isShowStudyPrice: false, //是否显示价格设置 isShowStudyPrice: false, //是否显示价格设置
saleDownList: [], //销售状态下拉 saleDownList: [], //销售状态下拉
isShowInfo: false, //是否显示审核信息
} }
}, },
computed: mapState({ computed: mapState({
//是否有查看合同权限 //是否有查看合同权限
isHaveViewContractAction(state) { isHaveViewContractAction(state) {
if (state.user.userInfo.ActionMenuList) { if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") { if (x.FunctionCode == "View_Supplier_Contract") {
return x; return x;
...@@ -297,9 +307,10 @@ ...@@ -297,9 +307,10 @@
} }
return false; return false;
}, },
//是否有查看供应商权限 //是否有查看供应商权限
isHaveViewSupplierAction(state) { isHaveViewSupplierAction(state) {
if (state.user.userInfo.ActionMenuList) { if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") { if (x.FunctionCode == "View_Supplier") {
return x; return x;
...@@ -315,12 +326,16 @@ ...@@ -315,12 +326,16 @@
}, },
created() { created() {
this.getSaleStateList(); this.getSaleStateList();
if(!this.isHaveViewSupplierAction) if (!this.isHaveViewSupplierAction) {
{ this.visibleColumns.splice(this.visibleColumns.length - 1, 1);
this.visibleColumns.splice(this.visibleColumns.length-1,1);
} }
}, },
methods: { methods: {
//显示详情
ShowInfo(item) {
this.studyObj = item;
this.isShowInfo = true;
},
//获取销售状态列表 //获取销售状态列表
getSaleStateList() { getSaleStateList() {
querySaleStateList().then(res => { querySaleStateList().then(res => {
...@@ -352,6 +367,7 @@ ...@@ -352,6 +367,7 @@
closeStudyForm() { closeStudyForm() {
this.isShowStudy = false; this.isShowStudy = false;
this.isShowStudyPrice = false; this.isShowStudyPrice = false;
this.isShowInfo = false;
this.refreshPage(); this.refreshPage();
}, },
//刷新页面 //刷新页面
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
import { import {
mapState mapState
} from "vuex"; } from "vuex";
export default { export default {
meta: { meta: {
title: "留学产品审核" title: "留学产品审核"
...@@ -235,13 +235,12 @@ ...@@ -235,13 +235,12 @@
field: 'Id' field: 'Id'
} }
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id','SupplierName', "EducationCommission", 'SaleStateName', 'Id', 'SupplierName',
], //可见列 ], //可见列
PageCount: 0, PageCount: 0,
isShowStudy: false, //是否显示留学弹窗 isShowStudy: false, //是否显示留学弹窗
Id: 0, Id: 0,
...@@ -252,7 +251,8 @@ ...@@ -252,7 +251,8 @@
computed: mapState({ computed: mapState({
//是否有查看合同权限 //是否有查看合同权限
isHaveViewContractAction(state) { isHaveViewContractAction(state) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) { if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") { if (x.FunctionCode == "View_Supplier_Contract") {
return x; return x;
...@@ -264,7 +264,8 @@ ...@@ -264,7 +264,8 @@
}, },
//是否有查看供应商权限 //是否有查看供应商权限
isHaveViewSupplierAction(state) { isHaveViewSupplierAction(state) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) { if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") { if (x.FunctionCode == "View_Supplier") {
return x; return x;
...@@ -289,9 +290,8 @@ ...@@ -289,9 +290,8 @@
} }
}) })
} }
if(!this.isHaveViewSupplierAction) if (!this.isHaveViewSupplierAction) {
{ this.visibleColumns.splice(this.visibleColumns.length - 1, 1);
this.visibleColumns.splice(this.visibleColumns.length-1,1);
} }
}, },
methods: { methods: {
...@@ -338,7 +338,6 @@ ...@@ -338,7 +338,6 @@
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.border-bottom { .border-bottom {
......
...@@ -136,7 +136,12 @@ ...@@ -136,7 +136,12 @@
</div> </div>
</q-td> </q-td>
<q-td v-else-if="col.name=='SaleStateName'"> <q-td v-else-if="col.name=='SaleStateName'">
{{col.value}} <template v-if="props.row.SaleState==1">
{{col.value}}
</template>
<template v-if="props.row.SaleState!=1">
<a style="cursor:pointer;color:blue;" @click="ShowInfo(props.row)" title="点击查看审核信息"> {{col.value}}</a>
</template>
</q-td> </q-td>
<q-td v-else-if="col.name == 'Id'" style="width:200px;"> <q-td v-else-if="col.name == 'Id'" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
...@@ -169,6 +174,7 @@ ...@@ -169,6 +174,7 @@
<studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" :Type="1" @close="closeStudyForm" <studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" :Type="1" @close="closeStudyForm"
@success="refreshPage"> @success="refreshPage">
</studyAbroadprice-form> </studyAbroadprice-form>
<studyproauditinfo-form v-if="isShowInfo" :Id="studyObj.Id" @close="closeStudyForm"></studyproauditinfo-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -181,6 +187,7 @@ ...@@ -181,6 +187,7 @@
} from '../../api/studyabroad/index' } from '../../api/studyabroad/index'
import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form' import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form'
import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form' import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form'
import studyproauditinfoForm from '../../components/studyAbroad/studyproauditinfo-form'
import { import {
mapState mapState
} from "vuex"; } from "vuex";
...@@ -191,7 +198,8 @@ ...@@ -191,7 +198,8 @@
}, },
components: { components: {
studyAbroadForm, studyAbroadForm,
studyAbroadpriceForm studyAbroadpriceForm,
studyproauditinfoForm
}, },
data() { data() {
return { return {
...@@ -274,21 +282,23 @@ ...@@ -274,21 +282,23 @@
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id','SupplierName', "EducationCommission", 'SaleStateName', 'Id', 'SupplierName',
], //可见列 ], //可见列
PageCount: 0, PageCount: 0,
isShowStudy: false, //是否显示留学弹窗 isShowStudy: false, //是否显示留学弹窗
studyObj: {}, //留学对象 studyObj: {}, //留学对象
isShowStudyPrice: false, //是否显示价格设置 isShowStudyPrice: false, //是否显示价格设置
saleDownList: [], //销售状态下拉 saleDownList: [], //销售状态下拉
isShowInfo: false, //是否显示审核信息
} }
}, },
computed: mapState({ computed: mapState({
//是否有查看合同权限 //是否有查看合同权限
isHaveViewContractAction(state) { isHaveViewContractAction(state) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) { if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") { if (x.FunctionCode == "View_Supplier_Contract") {
return x; return x;
...@@ -300,7 +310,8 @@ ...@@ -300,7 +310,8 @@
}, },
//是否有查看供应商权限 //是否有查看供应商权限
isHaveViewSupplierAction(state) { isHaveViewSupplierAction(state) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) { if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") { if (x.FunctionCode == "View_Supplier") {
return x; return x;
...@@ -316,12 +327,16 @@ ...@@ -316,12 +327,16 @@
}, },
created() { created() {
this.getSaleStateList(); this.getSaleStateList();
if(!this.isHaveViewSupplierAction) if (!this.isHaveViewSupplierAction) {
{ this.visibleColumns.splice(this.visibleColumns.length - 1, 1);
this.visibleColumns.splice(this.visibleColumns.length-1,1);
} }
}, },
methods: { methods: {
//显示详情
ShowInfo(item) {
this.studyObj = item;
this.isShowInfo = true;
},
//获取销售状态列表 //获取销售状态列表
getSaleStateList() { getSaleStateList() {
querySaleStateList().then(res => { querySaleStateList().then(res => {
...@@ -353,6 +368,7 @@ ...@@ -353,6 +368,7 @@
closeStudyForm() { closeStudyForm() {
this.isShowStudy = false; this.isShowStudy = false;
this.isShowStudyPrice = false; this.isShowStudyPrice = false;
this.isShowInfo = false;
this.refreshPage(); this.refreshPage();
}, },
//刷新页面 //刷新页面
......
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