|
|
@@ -6,8 +6,8 @@
|
|
|
<view class="item-list_box">
|
|
|
<view :key="item.id" @tap="changeHasPay(item.id)" v-for="item in hasPayList" :class="[form.hasPay===item.id?'active':'']"> {{item.name}} </view>
|
|
|
</view>
|
|
|
+ <view v-if="Number(balance)>Number(form.modifyPrice)" style="color:blue;font-size:13upx;font-weight:bold;margin-bottom:7upx;">客户余额 ¥{{balance?parseFloat(balance):0}},使用余额支付</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="select-item_box" v-if="form.hasPay == 1">
|
|
|
<view class="title">请选择</view>
|
|
|
<view class="item-list_box">
|
|
|
@@ -152,7 +152,7 @@ export default {
|
|
|
dealPrice:0
|
|
|
},
|
|
|
proceeds: '0',
|
|
|
- hasPayList:[ { name:'扫码', id:0, },{ name:'赊账', id:2, },{ name:'线下', id:1, }],
|
|
|
+ hasPayList:[ { name:'扫码', id:0, },{name:'余额',id:4},{ name:'赊账', id:2, },{ name:'线下', id:1, }],
|
|
|
payWayList:[ { name:'线下微信', id:0 }, { name:'线下支付宝', id:1 },{name:'现金',id:4},{name:'银行卡',id:5} ],
|
|
|
currentInputType:'proceeds',
|
|
|
totalMoney: 0,
|
|
|
@@ -177,7 +177,11 @@ export default {
|
|
|
settleOpenStatus:{
|
|
|
type:Number,
|
|
|
default:0
|
|
|
- }
|
|
|
+ },
|
|
|
+ balance:{
|
|
|
+ type: Number,
|
|
|
+ default: 0
|
|
|
+ }
|
|
|
},
|
|
|
components:{ VKeyboard },
|
|
|
mixins: [productMins],
|
|
|
@@ -192,6 +196,7 @@ export default {
|
|
|
price = parseFloat(price.toFixed(2))
|
|
|
}
|
|
|
this.form.modifyPrice = price
|
|
|
+
|
|
|
return price
|
|
|
},
|
|
|
diffPrice(){
|
|
|
@@ -220,6 +225,12 @@ export default {
|
|
|
this.form.sendCost = 0
|
|
|
this.form.labourCost = 0
|
|
|
this.form.dealPrice = 0
|
|
|
+
|
|
|
+ //如果余额够使用余额支付
|
|
|
+ if(Number(this.balance)>Number(this.form.modifyPrice)){
|
|
|
+ this.changeHasPay(4)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
immediate:true
|
|
|
@@ -252,6 +263,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ if(Number(this.balance)>Number(this.form.modifyPrice)){
|
|
|
+ this.changeHasPay(4)
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
confirmDiff(){
|