Commit d0c393c6 authored by 黄奎's avatar 黄奎

页面修改

parent 9a4aa4e5
......@@ -661,7 +661,8 @@
<el-table-column :key="index+'10'" :label="item.Name">
<template slot-scope="scope">
<span>
<el-input v-model="scope.row.OneCommission" @keyup.native="checkPrice(scope.row,'OneCommission')" v-if="index == 0" size="small">
<el-input v-model="scope.row.OneCommission"
@keyup.native="checkPrice(scope.row,'OneCommission')" v-if="index == 0" size="small">
<el-button slot="append">
<span v-if="
addMsg.SeparateDistributionMoneyType == 2
......@@ -671,7 +672,8 @@
">%</span>
</el-button>
</el-input>
<el-input v-model="scope.row.TwoCommission" @keyup.native="checkPrice(scope.row,'TwoCommission')" v-if="index == 1" size="small">
<el-input v-model="scope.row.TwoCommission"
@keyup.native="checkPrice(scope.row,'TwoCommission')" v-if="index == 1" size="small">
<el-button slot="append">
<span v-if="
addMsg.SeparateDistributionMoneyType == 2
......@@ -681,7 +683,8 @@
">%</span>
</el-button>
</el-input>
<el-input v-model="scope.row.ThreeCommission" @keyup.native="checkPrice(scope.row,'ThreeCommission')" v-if="index == 2" size="small">
<el-input v-model="scope.row.ThreeCommission"
@keyup.native="checkPrice(scope.row,'ThreeCommission')" v-if="index == 2" size="small">
<el-button slot="append">
<span v-if="
addMsg.SeparateDistributionMoneyType == 2
......@@ -807,8 +810,8 @@
SpecificationPriceList.length == 0
" label="默认规格会员价设置">
<div v-for="(item, index) in memberList1[0].GradePriceList" :key="index+'15'">
<el-input style="width:700px" placeholder="请输入内容" v-model="item.MemberPrice" @keyup.native="checkPrice(item,'MemberPrice')" size="small"
class="input-with-select">
<el-input style="width:700px" placeholder="请输入内容" v-model="item.MemberPrice"
@keyup.native="checkPrice(item,'MemberPrice')" size="small" class="input-with-select">
<el-button slot="prepend">{{ item.MemberGrade }}级会员</el-button>
<el-button slot="append"></el-button>
</el-input>
......@@ -1079,7 +1082,7 @@
SpecificationPriceList: [],
SellingPrice: 0,
OriginalPrice: 0,
Unit: "",
Unit: "",
CostPrice: 0,
SalesNum: 0,
GoodsNumbers: "",
......@@ -1260,9 +1263,25 @@
}
},
methods: {
setMemberData(){
this.memberList1=[];
this.memberList1 = this.addMsg.MemberPriceTreeList;
setMemberData() {
if (this.memberList1 && this.memberList1.length > 0 && this.addMsg.MemberPriceTreeList && this.addMsg
.MemberPriceTreeList.length > 0) {
this.memberList1.forEach(mItem => {
if (mItem.GradePriceList && mItem.GradePriceList.length > 0) {
mItem.GradePriceList.forEach(gItem => {
this.addMsg.MemberPriceTreeList.forEach(pItem => {
if (pItem.GradePriceList && pItem.GradePriceList.length > 0) {
pItem.GradePriceList.forEach(subItem => {
if (gItem.MemberGrade == subItem.MemberGrade) {
gItem.MemberPrice = subItem.MemberPrice;
}
})
}
});
})
}
})
}
},
initShareSettings() {
let arr = [];
......@@ -2062,12 +2081,9 @@
this.GradeCommissionList = this.addMsg.DistributionCommissionTreeList[0].GradeCommissionList;
}
}
if (this.addMsg.StoresIds) {
this.Stores = JSON.parse(this.addMsg.StoresIds);
}
//this.memberList1 = this.addMsg.MemberPriceTreeList[0].GradePriceList;
this.thisType = 1;
this.disList1 = [];
let objNew = {
......@@ -2325,8 +2341,8 @@
});
}
},
watch:{
"addMsg.MemberPriceTreeList"(val){
watch: {
"addMsg.MemberPriceTreeList"(val) {
this.setMemberData();
}
}
......
......@@ -112,7 +112,6 @@
</el-table-column>
<el-table-column prop="SellingPrice" width="100" sortable label="售价">
</el-table-column>
<el-table-column prop="UpdateDate" width="110" label="是否加入快速购买">
<template slot-scope="scope">
<el-switch @change="Edit(scope.row,10)" v-model="scope.row.IsQuickBuy" active-color="#409EFF"
......
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