Commit f1ac6d2e authored by 黄媛媛's avatar 黄媛媛

修改微店内容

parent 726c6c4d
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<i class="topelzk elzk el-tooltip el-icon-info"></i> <i class="topelzk elzk el-tooltip el-icon-info"></i>
</el-tooltip> </el-tooltip>
<el-checkbox-group v-model="addMsg.WithdrawWayList"> <el-checkbox-group v-model="addMsg.WithdrawWayList">
<el-checkbox v-for="item in WithdrawWayList" :label="item.Id" :key="item.id">{{item.Name}}</el-checkbox> <el-checkbox v-for="item in WithdrawWayList" :label="item.Id" :key="item.Id" v-if="item.Id !=6">{{item.Name}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item class="commonLabel" label="最少提现额度" prop="MinimumWithdrawalLimit"> <el-form-item class="commonLabel" label="最少提现额度" prop="MinimumWithdrawalLimit">
......
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
</el-tooltip> </el-tooltip>
</div> </div>
<div> <div>
<el-form-item <!-- <el-form-item
label="微店佣金类型" prop="PriceType"> label="微店佣金类型" prop="PriceType">
<el-radio v-model="addMsg.PriceType" :label="1" @change="addMsg.CustomMinPriceRate = 0 ,addMsg.CustomMaxPriceRate = 0,addMsg.CustomMinFixedPrice = 0,addMsg.CustomMaxFixedPrice = 0">区间价格百分比</el-radio> <el-radio v-model="addMsg.PriceType" :label="1" @change="addMsg.CustomMinPriceRate = 0 ,addMsg.CustomMaxPriceRate = 0,addMsg.CustomMinFixedPrice = 0,addMsg.CustomMaxFixedPrice = 0">区间价格百分比</el-radio>
<el-radio v-model="addMsg.PriceType" :label="2" @change="addMsg.CustomMinPriceRate = 0 ,addMsg.CustomMaxPriceRate = 0,addMsg.CustomMinFixedPrice = 0,addMsg.CustomMaxFixedPrice = 0">固定价格</el-radio> <el-radio v-model="addMsg.PriceType" :label="2" @change="addMsg.CustomMinPriceRate = 0 ,addMsg.CustomMaxPriceRate = 0,addMsg.CustomMinFixedPrice = 0,addMsg.CustomMaxFixedPrice = 0">固定价格</el-radio>
</el-form-item> </el-form-item> -->
<el-form-item v-if="addMsg.PriceType == 1" <el-form-item
class="commonLabel" label="区间价格"> class="commonLabel" label="区间价格">
<el-input style="width:200px;" type="number" min="0" size="small" placeholder="请输入" <el-input style="width:200px;" type="number" min="0" size="small" placeholder="请输入"
v-model="addMsg.CustomMinPriceRate" class="input-with-select"> v-model="addMsg.CustomMinPriceRate" class="input-with-select">
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</el-button> </el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="addMsg.PriceType==2" class="commonLabel" <el-form-item class="commonLabel"
label="固定价格"> label="固定价格">
<el-input style="width:200px;" type="number" min="0" size="small" placeholder="请输入" <el-input style="width:200px;" type="number" min="0" size="small" placeholder="请输入"
...@@ -108,9 +108,9 @@ ...@@ -108,9 +108,9 @@
<el-tooltip class="item" effect="dark" content="自动打款支付,需要申请相应小程序的相应功能,例如:微信需要申请企业付款到零钱功能" placement="top"> <el-tooltip class="item" effect="dark" content="自动打款支付,需要申请相应小程序的相应功能,例如:微信需要申请企业付款到零钱功能" placement="top">
<i class="topelzk elzk el-tooltip el-icon-info"></i> <i class="topelzk elzk el-tooltip el-icon-info"></i>
</el-tooltip> </el-tooltip>
<el-radio v-model="addMsg.SettlementType" :label="1">用户自提</el-radio> <el-checkbox-group v-model="SettlementType" class="inputM_l" @change="checkedPayWay">
<el-radio v-model="addMsg.SettlementType" :label="2">系统自动现结(微信)</el-radio> <el-checkbox v-for="item in WithdrawWayList" :label="item.Id" :key="item.Id" >{{item.Name}}</el-checkbox>
<el-radio v-model="addMsg.SettlementType" :label="3">转入余额</el-radio> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item class="commonLabel" label="最少提现额度" prop="MinWithdrawal"> <el-form-item class="commonLabel" label="最少提现额度" prop="MinWithdrawal">
<el-input v-model="addMsg.MinWithdrawal" style="width:293px;" type="number" min="1" size="small" <el-input v-model="addMsg.MinWithdrawal" style="width:293px;" type="number" min="1" size="small"
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
IsExamine:1, IsExamine:1,
ApplyCondition:1, ApplyCondition:1,
ApplyMemberLevel:0, ApplyMemberLevel:0,
PriceType:1, PriceType:0,
CustomMinPriceRate:0, CustomMinPriceRate:0,
CustomMaxPriceRate:0, CustomMaxPriceRate:0,
FixedPrice:0, FixedPrice:0,
...@@ -196,8 +196,9 @@ ...@@ -196,8 +196,9 @@
UserNotice:'', UserNotice:'',
}, },
SettlementType:[],
WithdrawWayList:[],
dialogVisible: false, dialogVisible: false,
rules: { rules: {
PriceType: [{ PriceType: [{
required: true, required: true,
...@@ -236,7 +237,7 @@ ...@@ -236,7 +237,7 @@
created() { created() {
this.getData(); this.getData();
this.WithdrawWayEnumList()
}, },
methods: { methods: {
getGradeByType(num){ getGradeByType(num){
...@@ -274,7 +275,27 @@ ...@@ -274,7 +275,27 @@
} }
}); });
}, },
checkboxfor(str){
let data = (str || "").split(',');
let list = [];
for(let i=0;i<data.length;i++){
list.push(Number(data[i]))
}
return list
},
checkedPayWay(value){
let SettlementType= value.join(",");
this.addMsg.SettlementType = SettlementType
},
WithdrawWayEnumList() {
this.apipost("/api/user/GetDistrbutorWithdrawWayEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.WithdrawWayList = res.data.data;
}
})
},
getData() { getData() {
...@@ -283,6 +304,7 @@ ...@@ -283,6 +304,7 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg = res.data.data; this.addMsg = res.data.data;
this.SettlementType= this.checkboxfor(this.addMsg.SettlementType)
if(this.addMsg.ApplyCondition ){ if(this.addMsg.ApplyCondition ){
if(this.addMsg.ApplyCondition==1){ if(this.addMsg.ApplyCondition==1){
this.getGradeByType(1) this.getGradeByType(1)
......
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