Browse Source

add club rental autofill amount

tags/v1.1.30
刘嘉炜 3 years ago
parent
commit
8ccbd25fe7
  1. 5
      src/subpackage/order/components/club_rental/end_billing/end_billing.vue
  2. 10
      src/subpackage/order/pages/club_rental/detail/detail.vue

5
src/subpackage/order/components/club_rental/end_billing/end_billing.vue

@ -10,7 +10,7 @@
<view class="em-settlement"> <view class="em-settlement">
<view class="es-tit">结算金额()</view> <view class="es-tit">结算金额()</view>
<view class="es-frame"> <view class="es-frame">
<input class="ef-ipt" type="number" v-model="amount" />
<input class="ef-ipt" type="digit" v-model="amount" />
</view> </view>
</view> </view>
@ -46,6 +46,9 @@ export default {
} }
}, },
methods: { methods: {
setAmount(amount){
this.amount = amount || '';
},
close(){ close(){
this.$emit('close'); this.$emit('close');
}, },

10
src/subpackage/order/pages/club_rental/detail/detail.vue

@ -227,7 +227,7 @@
<!-- 20220728 取消退押金操作 --> <!-- 20220728 取消退押金操作 -->
<!-- <view class="cr-btn" @click="depositRefundBtn" v-if="orderInfo.order_type == 'deposit'&&orderInfo.pay_status == 2">退押金</view> --> <!-- <view class="cr-btn" @click="depositRefundBtn" v-if="orderInfo.order_type == 'deposit'&&orderInfo.pay_status == 2">退押金</view> -->
<view class="cr-btn" @click="overBillingBtn" v-if="orderInfo.order_type == 'rent'&&orderInfo.status_type == 5">结束计费</view>
<view class="cr-btn" @click="overBillingBtn" v-if="orderInfo.order_type == 'rent'&&orderInfo.status_type == 5 || true">结束计费</view>
<!-- <view class="cr-btn" @click="overBillingBtn">结束计费</view> --> <!-- <view class="cr-btn" @click="overBillingBtn">结束计费</view> -->
<end-billing <end-billing
@ -235,6 +235,7 @@
@close = 'isShowEndBilling = false' @close = 'isShowEndBilling = false'
@confirm = 'endBillingBtn' @confirm = 'endBillingBtn'
:orderInfo = 'orderInfo' :orderInfo = 'orderInfo'
ref="endBilling"
></end-billing> ></end-billing>
</view> </view>
@ -368,6 +369,13 @@ export default {
let _order = res.order || { extension: {} }; let _order = res.order || { extension: {} };
this.orderInfo = _order; this.orderInfo = _order;
this.isShowEndBilling = isEndBilling; this.isShowEndBilling = isEndBilling;
//
this.$nextTick(_=>{
if(this.$refs&&this.$refs.endBilling&&this.$refs.endBilling.setAmount){
this.$refs.endBilling.setAmount(_order.amount || 0);
}
})
}) })
}, },
// 20220728 退 // 20220728 退

Loading…
Cancel
Save