Commit d0c393c6 authored by 黄奎's avatar 黄奎

页面修改

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