|
@@ -64,7 +64,7 @@
|
|
|
<view class="flex">金额:{{selectTotalAmount}}</view>
|
|
<view class="flex">金额:{{selectTotalAmount}}</view>
|
|
|
<view class="flex">实收:<input @focus="modifyPrice = null" v-model="modifyPrice" type="digit"/></view>
|
|
<view class="flex">实收:<input @focus="modifyPrice = null" v-model="modifyPrice" type="digit"/></view>
|
|
|
<view class="flex">减免:{{(selectTotalAmount - modifyPrice).toFixed(2)}}</view>
|
|
<view class="flex">减免:{{(selectTotalAmount - modifyPrice).toFixed(2)}}</view>
|
|
|
- <view class="flex">方式:
|
|
|
|
|
|
|
+ <view class="flex">付款:
|
|
|
<picker @change="payWayChange" :value="payWayindex" range-key="name" :range="payWayList">
|
|
<picker @change="payWayChange" :value="payWayindex" range-key="name" :range="payWayList">
|
|
|
<view class="uni-input" style="height:auto;border:2rpx solid #ccc;width:300rpx;padding:5rpx 0 5rpx 10rpx;">{{payWayList[payWayindex].name}}</view>
|
|
<view class="uni-input" style="height:auto;border:2rpx solid #ccc;width:300rpx;padding:5rpx 0 5rpx 10rpx;">{{payWayList[payWayindex].name}}</view>
|
|
|
</picker>
|
|
</picker>
|
|
@@ -94,7 +94,8 @@ export default {
|
|
|
isAllCheck: false,
|
|
isAllCheck: false,
|
|
|
isModel: false,
|
|
isModel: false,
|
|
|
payWayList:[{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],
|
|
payWayList:[{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],
|
|
|
- payWayindex:0
|
|
|
|
|
|
|
+ payWayindex:0,
|
|
|
|
|
+ payWay:0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -146,6 +147,7 @@ export default {
|
|
|
payWayChange(e){
|
|
payWayChange(e){
|
|
|
let index = e.detail.value
|
|
let index = e.detail.value
|
|
|
this.payWayindex = index
|
|
this.payWayindex = index
|
|
|
|
|
+ this.payWay = this.payWayList[index].id
|
|
|
},
|
|
},
|
|
|
isModelFun(){
|
|
isModelFun(){
|
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
if (this.$util.isEmpty(this.selectList)) {
|
|
@@ -163,11 +165,10 @@ export default {
|
|
|
let ids = this.selectList.map(ele => {
|
|
let ids = this.selectList.map(ele => {
|
|
|
return {id:ele.id};
|
|
return {id:ele.id};
|
|
|
});
|
|
});
|
|
|
- let payWay = this.payWayList[this.payWayindex].id
|
|
|
|
|
let parameter = {
|
|
let parameter = {
|
|
|
id:JSON.stringify(ids),
|
|
id:JSON.stringify(ids),
|
|
|
customId:this.customInfo.id,
|
|
customId:this.customInfo.id,
|
|
|
- payWay:payWay
|
|
|
|
|
|
|
+ payWay:this.payWay
|
|
|
}
|
|
}
|
|
|
this.paySuccess(parameter)
|
|
this.paySuccess(parameter)
|
|
|
console.log('确认')
|
|
console.log('确认')
|