|
@@ -9,7 +9,7 @@
|
|
|
size="80%">
|
|
|
<div slot="title">
|
|
|
<div class="flex-align-center">
|
|
|
- <p ><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥ {{tool.formatAmount(data.amount,2)}}</b></span></p>
|
|
|
+ <p ><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥ {{tool.formatAmount(data.defaultamount,2)}}</b></span></p>
|
|
|
<!-- <label style="font-size:14px;margin-left:10px" for="">备注:</label>
|
|
|
<input class="order__note__input" v-model="defaultData.remarks" type="text" placeholder="请输入订单备注"> -->
|
|
|
<!-- <p>运费:{{data.amount > data.freefreightamount >= 0?'当前订单免运费':`订单满${data.freefreightamount}元免运费,当前还差${data.freefreightamount - data.amount}元`}}</p>-->
|
|
@@ -38,7 +38,7 @@
|
|
|
<div class="flex-align-center">
|
|
|
<p class="inline-16"><small>账户余额: </small><b>¥{{tool.formatAmount(defaultData.accountclass.balance?defaultData.accountclass.balance:0,2)}}</b></p>
|
|
|
<p class="inline-16"><small>账户名称: </small>{{defaultData.accountclass.accountname?defaultData.accountclass.accountname:'未选择账户'}}</p>
|
|
|
- <p><small>本单金额: </small>{{tool.formatAmount(data.amount - rebateamount,2)}}</p>
|
|
|
+ <p><small>本单金额: </small>{{data.rebate_used ? tool.formatAmount(data.defaultamount - rebateamount,2) : data.defaultamount}}</p>
|
|
|
</div>
|
|
|
<div v-if="(data.type === '标准订单' || data.type === '特殊订单') && isusedrebate === 1">
|
|
|
<el-checkbox v-model="data.rebate_used" :true-label="1" :false-label="0" @change="rebateUsedChange">使用返利金</el-checkbox>
|
|
@@ -278,7 +278,11 @@ export default {
|
|
|
this.selectOptions()
|
|
|
|
|
|
this.checked = this.data.rebate_used
|
|
|
- this.rebateamount = this.data.rebateamount
|
|
|
+ if (this.data.rebateamount > this.data.defaultamount) {
|
|
|
+ this.rebateamount = this.tool.formatAmount(+this.data.defaultamount / 2)
|
|
|
+ } else {
|
|
|
+ this.rebateamount = this.data.rebateamount
|
|
|
+ }
|
|
|
},
|
|
|
// 收货信息:合作企业联系人
|
|
|
async receiveAddress (fn) {
|
|
@@ -330,7 +334,7 @@ export default {
|
|
|
"pay_enterpriseid":this.data.pay_enterpriseid,
|
|
|
"tradefield":this.data.tradefield,
|
|
|
"saletype":this.saletype,
|
|
|
- "rebate_used":this.checked,//默认0,是否使用返利金
|
|
|
+ "rebate_used":this.data.rebate_used,//默认0,是否使用返利金
|
|
|
"signbacknum":'',
|
|
|
"sa_promotionid":this.data.sa_promotionid,
|
|
|
"billdate":this.data.billdate
|
|
@@ -339,7 +343,7 @@ export default {
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.$emit('onSuccess')
|
|
|
if (this.data.type === '标准订单' || this.data.type === '特殊订单') {
|
|
|
- this.isusedrebate === 1?this.useRebate():""
|
|
|
+ this.isusedrebate === 1?this.useRebate(this.data.rebateamount):""
|
|
|
}
|
|
|
this.drawer = false
|
|
|
})
|
|
@@ -389,6 +393,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
if(res.data=='成功'){
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ this.initPage()
|
|
|
if(rebateamount>amount){
|
|
|
this.data.rebateamount=amount
|
|
|
this.$message({
|