Commit fdfa13d3 authored by zhengke's avatar zhengke

修改

parent 44515242
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label maxlength="30" :dense="false" v-model="objOption.OfferCommission" <q-input filled stack-label maxlength="30" :dense="false" v-model="objOption.OfferCommission"
ref="SaleCommission" class="col-6 q-pr-lg q-pb-lg" label="校企返佣金额" :rules="[val => !!val || '校企返佣金额']" /> ref="OfferCommission" class="col-6 q-pr-lg q-pb-lg" label="校企返佣金额" :rules="[val => !!val || '校企返佣金额']" />
</div> </div>
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label :dense="false" v-model="objOption.Remark" style="margin-top: 20px" type="textarea" <q-input filled stack-label :dense="false" v-model="objOption.Remark" style="margin-top: 20px" type="textarea"
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
CostInfo: '', //成本价包含内容 CostInfo: '', //成本价包含内容
B2BCommission: '', //同行返佣 B2BCommission: '', //同行返佣
B2BCommissionType: 0, //同行返佣类型 B2BCommissionType: 0, //同行返佣类型
SaleCommission:'', //销售返佣
SaleCommissionType: 0, //销售返佣类型 SaleCommissionType: 0, //销售返佣类型
OfferPrice: '', //校企报价 OfferPrice: '', //校企报价
OfferCommissionType: 0, //校企报价返佣类型 OfferCommissionType: 0, //校企报价返佣类型
...@@ -109,44 +110,46 @@ ...@@ -109,44 +110,46 @@
if (res.Code == 1) { if (res.Code == 1) {
var tempObj = res.Data; var tempObj = res.Data;
if (tempObj) { if (tempObj) {
this.addMsg.Id = tempObj.Id; this.objOption.Id = tempObj.Id;
this.addMsg.Type = tempObj.Type; this.objOption.Type = tempObj.Type;
this.addMsg.Name = tempObj.Name; this.objOption.Name = tempObj.Name;
this.addMsg.SupplierId = tempObj.SupplierId; this.objOption.SupplierId = tempObj.SupplierId;
this.addMsg.SupplierContract = tempObj.SupplierContract; this.objOption.SupplierContract = tempObj.SupplierContract;
this.addMsg.CommissionProfits = tempObj.CommissionProfits; this.objOption.CommissionProfits = tempObj.CommissionProfits;
this.addMsg.SellPrice = tempObj.SellPrice; this.objOption.SellPrice = tempObj.SellPrice;
this.addMsg.CostPrice = tempObj.CostPrice; this.objOption.CostPrice = tempObj.CostPrice;
this.addMsg.CostInfo = tempObj.CostInfo; this.objOption.CostInfo = tempObj.CostInfo;
this.addMsg.B2BCommission = tempObj.B2BCommission; this.objOption.B2BCommission = tempObj.B2BCommission;
this.addMsg.B2BCommissionType = tempObj.B2BCommissionType; this.objOption.B2BCommissionType = tempObj.B2BCommissionType;
this.addMsg.SaleCommissionType = tempObj.SaleCommissionType; this.objOption.SaleCommission = tempObj.SaleCommission;
this.addMsg.OfferPrice = tempObj.OfferPrice; this.objOption.SaleCommissionType = tempObj.SaleCommissionType;
this.addMsg.OfferCommissionType = tempObj.OfferCommissionType; this.objOption.OfferPrice = tempObj.OfferPrice;
this.addMsg.OfferCommission = tempObj.OfferCommission; this.objOption.OfferCommissionType = tempObj.OfferCommissionType;
this.addMsg.Remark = tempObj.Remark; this.objOption.OfferCommission = tempObj.OfferCommission;
this.addMsg.SaleState = tempObj.SaleState; this.objOption.Remark = tempObj.Remark;
this.objOption.SaleState = tempObj.SaleState;
} }
} }
}) })
} else { } else {
this.addMsg.Id = 0; this.objOption.Id = 0;
this.addMsg.Type = 1; this.objOption.Type = 1;
this.addMsg.Name = ''; this.objOption.Name = '';
this.addMsg.SupplierId = 0; this.objOption.SupplierId = 0;
this.addMsg.SupplierContract = ''; this.objOption.SupplierContract = '';
this.addMsg.CommissionProfits = ''; this.objOption.CommissionProfits = '';
this.addMsg.SellPrice = ''; this.objOption.SellPrice = '';
this.addMsg.CostPrice = ''; this.objOption.CostPrice = '';
this.addMsg.CostInfo = ''; this.objOption.CostInfo = '';
this.addMsg.B2BCommission = ''; this.objOption.B2BCommission = '';
this.addMsg.B2BCommissionType = 0; this.objOption.B2BCommissionType = 0;
this.addMsg.SaleCommissionType = 0; this.objOption.SaleCommission = '';
this.addMsg.OfferPrice = ''; this.objOption.SaleCommissionType = 0;
this.addMsg.OfferCommissionType = 0; this.objOption.OfferPrice = '';
this.addMsg.OfferCommission = ''; this.objOption.OfferCommissionType = 0;
this.addMsg.Remark = ''; this.objOption.OfferCommission = '';
this.addMsg.SaleState = 0; this.objOption.Remark = '';
this.objOption.SaleState = 0;
} }
}, },
//关闭弹窗 //关闭弹窗
......
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