|
|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
<!-- 扫码付款 -->
|
|
|
<uni-popup ref="toPayRef" background-color="#fff" type="center" :animation="false" :is-mask-click="false">
|
|
|
- <toPayWay @cancelPay="cancelPay()" @payFinish="payFinish()" @selectPayWayBack="selectPayWayBack" :orderId.sync="orderId"></toPayWay>
|
|
|
+ <toPayWay @cancelPay="cancelPay()" @payFinish="payFinish()" @selectPayWayBack="selectPayWayBack" :orderId.sync="orderId" :price.sync="price"></toPayWay>
|
|
|
</uni-popup>
|
|
|
|
|
|
<!-- 临时收款 -->
|
|
|
@@ -83,7 +83,8 @@ export default {
|
|
|
currentJobId:0,
|
|
|
calc:'add',
|
|
|
property:1,
|
|
|
- settleOpenStatus:0
|
|
|
+ settleOpenStatus:0,
|
|
|
+ price:0
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
|
@@ -167,6 +168,7 @@ export default {
|
|
|
}
|
|
|
this.$refs.gatheringRef.close()
|
|
|
this.orderId = res.data.id
|
|
|
+ this.price = res.data.mainPay ? Number(res.data.mainPay) : 0
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -207,6 +209,7 @@ export default {
|
|
|
if(res.code == 1){
|
|
|
if(res.data.status == 1){
|
|
|
this.orderId = res.data.id
|
|
|
+ this.price = res.data.mainPay ? Number(res.data.mainPay) : 0
|
|
|
this.$refs.toPayRef.open('center')
|
|
|
}else{
|
|
|
//开单完成之后更新花材库存
|