|
@@ -81,9 +81,9 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
<view class="tui-title">实收金额</view>
|
|
<view class="tui-title">实收金额</view>
|
|
|
<view class="flex-space" style="width: 100%;">
|
|
<view class="flex-space" style="width: 100%;">
|
|
|
- <input style="border: 1px solid #eee;color: #3385FF;width: 60%;" type="number" @focus="realMoney='',discountIndex=0" v-model="realMoney" placeholder-class="tui-placeholder"/>
|
|
|
|
|
|
|
+ <input style="border: 1px solid #eee;color: #3385FF;width: 60%;height:70rpx;" type="number" @focus="modifyPrice='',discountIndex=0" v-model="modifyPrice" placeholder-class="tui-placeholder"/>
|
|
|
<picker style="border: 1px solid #eee;width: 30%;" @change="discountChange" :value="discountIndex" :range="discount">
|
|
<picker style="border: 1px solid #eee;width: 30%;" @change="discountChange" :value="discountIndex" :range="discount">
|
|
|
- <view class="flex-space">
|
|
|
|
|
|
|
+ <view class="flex-space" style="height:70rpx;">
|
|
|
<view class="uni-input">{{discount[discountIndex]}}</view>
|
|
<view class="uni-input">{{discount[discountIndex]}}</view>
|
|
|
<i class="iconfont iconxiangyou"></i>
|
|
<i class="iconfont iconxiangyou"></i>
|
|
|
</view>
|
|
</view>
|
|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
<view class="tui-title">优惠</view>
|
|
<view class="tui-title">优惠</view>
|
|
|
- <text style="color: #3385FF">{{ ((Number(freight)+Number(allGoodsPrice)).toFixed(2) - realMoney).toFixed(2) }}</text>
|
|
|
|
|
|
|
+ <text style="color: #3385FF">{{ ((Number(freight)+Number(allGoodsPrice)).toFixed(2) - modifyPrice).toFixed(2) }}</text>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -105,7 +105,7 @@
|
|
|
<view class="price-view">
|
|
<view class="price-view">
|
|
|
<text class="price-title">收款</text>
|
|
<text class="price-title">收款</text>
|
|
|
<text class="price-number">
|
|
<text class="price-number">
|
|
|
- ¥ <text class="large">{{ realMoney }}</text>
|
|
|
|
|
|
|
+ ¥ <text class="large">{{ modifyPrice }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
<button class="admin-button-com blue middle" @click="affirmFormSubmit">开单</button>
|
|
<button class="admin-button-com blue middle" @click="affirmFormSubmit">开单</button>
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
payType:1,//选中的-支付类型
|
|
payType:1,//选中的-支付类型
|
|
|
clientInfo: '',//客户信息
|
|
clientInfo: '',//客户信息
|
|
|
showCustomer: false,
|
|
showCustomer: false,
|
|
|
- realMoney: 0,
|
|
|
|
|
|
|
+ modifyPrice: 0,
|
|
|
sendType:1,
|
|
sendType:1,
|
|
|
discountIndex:0,
|
|
discountIndex:0,
|
|
|
discount:['未打折','95折','9折','85折','8折','75折','7折','65折','6折']
|
|
discount:['未打折','95折','9折','85折','8折','75折','7折','65折','6折']
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
title: this.getMerchantInfo.name
|
|
title: this.getMerchantInfo.name
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- this.realMoney = this.allGoodsPrice.toFixed(2);
|
|
|
|
|
|
|
+ this.modifyPrice = this.allGoodsPrice.toFixed(2);
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
this.payType = this.getDictionariesInfo.htPayWayOption[0].id;
|
|
this.payType = this.getDictionariesInfo.htPayWayOption[0].id;
|
|
|
},100)
|
|
},100)
|
|
@@ -216,11 +216,11 @@ export default {
|
|
|
discount = (allPrices - (allPrices * 0.6)).toFixed(2);
|
|
discount = (allPrices - (allPrices * 0.6)).toFixed(2);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- this.realMoney = (allPrices - discount).toFixed(2);
|
|
|
|
|
|
|
+ this.modifyPrice = (allPrices - discount).toFixed(2);
|
|
|
},
|
|
},
|
|
|
countAllPrices(){
|
|
countAllPrices(){
|
|
|
let allPrices = this.allGoodsPrice.toFixed(2)
|
|
let allPrices = this.allGoodsPrice.toFixed(2)
|
|
|
- this.realMoney = (Number(allPrices) + Number(this.freight)).toFixed(2);
|
|
|
|
|
|
|
+ this.modifyPrice = (Number(allPrices) + Number(this.freight)).toFixed(2);
|
|
|
},
|
|
},
|
|
|
// 选取客户
|
|
// 选取客户
|
|
|
changeCustomerFn(info) {
|
|
changeCustomerFn(info) {
|
|
@@ -248,7 +248,7 @@ export default {
|
|
|
customId:this.clientInfo.id,// 客户
|
|
customId:this.clientInfo.id,// 客户
|
|
|
payWay:this.payType,//付款方式
|
|
payWay:this.payType,//付款方式
|
|
|
sendType:this.sendType,//配送方式 0未知 1自取
|
|
sendType:this.sendType,//配送方式 0未知 1自取
|
|
|
- realPrice: this.realMoney,
|
|
|
|
|
|
|
+ modifyPrice: this.modifyPrice,
|
|
|
goodsInfo:JSON.stringify(product),//下单商品
|
|
goodsInfo:JSON.stringify(product),//下单商品
|
|
|
};
|
|
};
|
|
|
let self = this;
|
|
let self = this;
|