Commit 686ae57b authored by 黄媛媛's avatar 黄媛媛

修改内容

parent 03e8958a
......@@ -154,20 +154,21 @@
</div>
<div class="goods-item" style="width: 10%;">
<div v-for="(list,index2) in item.DetailList" :key="index2" class="goods" flex="main:center cross:center" v-if="list.OrderIntroduction.Commission!=null && list.OrderIntroduction.Commission!='' && list.OrderIntroduction.Commission!=0 ">
<div v-for="(list,index2) in item.DetailList" :key="index2" class="goods" flex="main:center cross:center" >
<div v-if="list.OrderIntroduction.CommissionState==1">待结算</div>
<div v-if="list.OrderIntroduction.CommissionState==2">已结算</div>
<div v-if="list.OrderIntroduction.CommissionState==1&&list.OrderIntroduction.Commission!=null && list.OrderIntroduction.Commission!='' && list.OrderIntroduction.Commission!=0">待结算</div>
<div v-if="list.OrderIntroduction.CommissionState==2&&list.OrderIntroduction.Commission!=null && list.OrderIntroduction.Commission!='' && list.OrderIntroduction.Commission!=0">已结算</div>
</div>
</div>
<div class="goods-item" style="width: 20%;">
<div v-for="(list,index2) in item.DetailList" :key="index2" class="goods" v-if="list.OrderIntroduction.Commission!=null && list.OrderIntroduction.Commission!='' && list.OrderIntroduction.Commission!=0 ">
<div v-for="(list,index2) in item.DetailList" :key="index2" class="goods">
<div class="share-title" style="margin-bottom: 10px; font-size: 15px;">
<div class="share-title" style="margin-bottom: 10px; font-size: 15px;" v-if="list.OrderIntroduction.UserName!=null && list.OrderIntroduction.UserName!=''">
<span style='color: #999999;margin-right: 10px;'>昵称:</span>
<span>{{list.OrderIntroduction.UserName}}</span>
</div>
<div flex="dir:left cross:center" style="margin-bottom: 10px;" v-if="list.OrderIntroduction.Name!=null && list.OrderIntroduction.Name!='' " >
......@@ -178,6 +179,8 @@
<div flex="dir:left cross:center" class=" share-price" style="margin-bottom: 10px;" v-if="list.OrderIntroduction.Commission!=null && list.OrderIntroduction.Commission!='' && list.OrderIntroduction.Commission!=0 " >
<span style='color: #999999;margin-right: 10px;'>佣金:</span>
<div>{{list.OrderIntroduction.Commission}}</div>
<img v-if='list.OrderIntroduction.CommissionState==1' @click="EditCommission(list)"
src="../../assets/img/userman/edit1.png" alt="">
</div>
</div>
......@@ -230,6 +233,22 @@
</div>
</el-dialog>
<el-dialog title="佣金修改" :visible.sync="priceDig" width="600px">
<el-form :model="editCommissionMsg" ref="costMsg" label-width="80px">
<el-form-item label="昵称">
<span>{{editUserName}}</span>
</el-form-item>
<el-form-item label="佣金修改">
<el-input size="small" v-model="editCommissionMsg.Commission" step="1" min="0" type="number">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="priceDig = false">取 消</el-button>
<el-button size="small" type="primary" @click="costForm()">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
......@@ -289,7 +308,13 @@ export default {
moresendtips:'',
hszDig:false,
hszMsg:{},
commonNum:0
commonNum:0,
editCommissionMsg:{
OrderDetailId:0,
Commission:0
},
editUserName:'',
priceDig: false
}
},
created(){
......@@ -476,6 +501,28 @@ export default {
this.platList=res.data.data;
})
},
EditCommission(item){
console.log(item)
this.editCommissionMsg.OrderDetailId = item.Id;
this.editCommissionMsg.Commission = item.OrderIntroduction.Commission;
this.editUserName= item.OrderIntroduction.UserName;
this.priceDig = true
},
costForm(){
if(this.editCommissionMsg.Commission==''){
this.Error('佣金不能为空');
return
}
this.apipost("/api/order/SetRecommendOrdersCommission", this.editCommissionMsg, res => {
this.priceDig = false
if (res.data.resultCode == 1) {
this.getList();
this.Success(res.data.message);
} else {
this.Error(res.data.message);
}
})
}
},
};
......
......@@ -44,7 +44,7 @@
<el-radio v-model="addMsg.IsEnableFXGrade" :label="1">开启</el-radio>
<el-radio v-model="addMsg.IsEnableFXGrade" :label="2">不开启</el-radio>
</el-form-item>
<el-form-item label="无上级是否开启返佣">
<el-form-item label="无上级是否开启返佣" v-if="addMsg.IsEnableFXGrade==1">
<el-radio v-model="addMsg.IsEnableNoSuperiorFY" :label="1">开启</el-radio>
<el-radio v-model="addMsg.IsEnableNoSuperiorFY" :label="2">不开启</el-radio>
</el-form-item>
......@@ -344,6 +344,9 @@
Save(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
if(this.addMsg.IsEnableFXGrade==2){
this.addMsg.IsEnableNoSuperiorFY=2
}
let cmd = "/api/user/SetDistributorBasicsInfo";
this.apipost(cmd, this.addMsg,
res => {
......
......@@ -300,6 +300,7 @@
},
//保存选择
saveOrderChoice() {
this.addOrderMsg.IntroductionIds = [];
this.IntroductionIds.forEach(x => {
this.addOrderMsg.IntroductionIds.push(x.OrderIntroduction.IntroductionId);
......@@ -314,7 +315,14 @@
this.Error('请选择返佣订单');
return;
}
const loading = this.$loading({
lock: true,
text: '正在生成账单中...',
spinner: 'el-icon-loading',
});
this.apipost("/api/user/SetRecommendOrdersBillInfo", this.addOrderMsg, res => {
loading.close();
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.choiceOrder = false;
......
......@@ -32,6 +32,11 @@
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="跳转链接" prop="FreeShippingUrl" class="is-required">
<el-input v-model="addMsg.FreeShippingUrl" placeholder="请输入链接" >
</el-input>
</el-form-item>
<el-form-item label="是否启用" prop="IsEnable">
<el-radio v-model="addMsg.IsEnable" :label="1"></el-radio>
<el-radio v-model="addMsg.IsEnable" :label="0"></el-radio>
......@@ -124,6 +129,7 @@
IsEnable: 0,
Name:'',
CategoryList: [],
FreeShippingUrl:'',
},
rules: {
FullNumPinkage: [{
......@@ -146,8 +152,15 @@
message: '请选择是否启用',
trigger: 'change'
}],
FreeShippingUrl: [{
required: true,
message: '请选择跳转链接',
trigger: 'blur'
}],
},
loading: false,
fenleiData:[],
childList2: [],
childList3: [],
keepCategoryList: [],
......
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