|
@@ -33,9 +33,9 @@
|
|
|
<el-descriptions-item label="手机号">
|
|
|
{{ appUserInfo.phoneNumber }}
|
|
|
</el-descriptions-item>
|
|
|
- <!-- <el-descriptions-item label="等级">
|
|
|
+ <el-descriptions-item label="等级">
|
|
|
{{ appUserInfo.level }}
|
|
|
- </el-descriptions-item> -->
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="现金余额">
|
|
|
<span class="amount">{{ (appUserInfo.rechargeBalance * 100) / 100 }}</span>
|
|
|
</el-descriptions-item>
|
|
@@ -212,6 +212,7 @@
|
|
|
type="danger"
|
|
|
class="checkout-btn"
|
|
|
icon="el-icon-shopping-cart-2"
|
|
|
+ :loading="confirmLoading"
|
|
|
@click="handleConfirmPay">
|
|
|
收银
|
|
|
</el-button>
|
|
@@ -487,7 +488,7 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="收银" :visible.sync="confirmPayOpen" size="90%" :before-close="handleClose" destroy-on-close append-to-body>
|
|
|
+ <el-dialog title="收银" :visible.sync="confirmPayOpen" width="90%" :before-close="handleClose" destroy-on-close append-to-body>
|
|
|
<CashCloth ref="cashCloth" :orderForm="orderForm" :orderClothItemDTOS="orderClothItemDTOS" :appUserInfo="appUserInfo" :clothSpeeds="clothSpeeds" :deductCouponVOS="deductCouponVOS" :discountCouponVOS="discountCouponVOS" @onPaySuccess="onPaySuccess" @initOrderList="initOrderList" @confirm="handelPaySuccess"/>
|
|
|
</el-dialog>
|
|
|
|
|
@@ -686,7 +687,8 @@ export default {
|
|
|
|
|
|
collectClothDetail: null,
|
|
|
showAdvanceOrder: false,
|
|
|
- advanceOrderList: []
|
|
|
+ advanceOrderList: [],
|
|
|
+ confirmLoading: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -1513,6 +1515,7 @@ export default {
|
|
|
// id: 18
|
|
|
// }, this.appUserInfo);
|
|
|
// return
|
|
|
+ const _ = this;
|
|
|
if (this.orderClothItemDTOS.length == 0) {
|
|
|
this.$message.error('请先添加衣服')
|
|
|
return
|
|
@@ -1526,10 +1529,10 @@ export default {
|
|
|
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.orderForm.sendClothWay) {
|
|
|
- // this.$message.error('请先选取衣方式')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (!this.orderForm.sendClothWay) {
|
|
|
+ this.$message.error('请先选取衣方式')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
if (this.orderForm.isAppointment == 'Y') {
|
|
|
var res = await getInfoByOrderNo({ orderNo: this.orderForm.orderNo, appUserId: this.appUserInfo.id })
|
|
@@ -1537,6 +1540,10 @@ export default {
|
|
|
this.$message.error('未查询到预约订单')
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.orderForm.sendClothWay) {
|
|
|
+ this.$message.error('请先选取衣方式')
|
|
|
+ return
|
|
|
+ }
|
|
|
// this.orderForm.sendClothWay = res.data.sendClothWay
|
|
|
}
|
|
|
|
|
@@ -1551,6 +1558,7 @@ export default {
|
|
|
this.orderForm.authCode = ''
|
|
|
this.orderForm.payType = ''
|
|
|
// this.orderForm.sendClothWay = '0'
|
|
|
+ _.confirmLoading = true
|
|
|
getDiscountByStoreId({ appUserId: this.appUserInfo.id }).then((res) => {
|
|
|
this.discountCouponVOS = res.data
|
|
|
params.discountWay = '0'
|
|
@@ -1559,6 +1567,7 @@ export default {
|
|
|
// res.data.forEach(item => {
|
|
|
// item.isUnique = 'N'
|
|
|
// })
|
|
|
+ _.confirmLoading = false
|
|
|
this.deductCouponVOS = res.data
|
|
|
|
|
|
this.selectCoupons = []
|
|
@@ -1571,7 +1580,9 @@ export default {
|
|
|
delete this.orderForm.discountCouponId
|
|
|
delete this.orderForm.discountCoupon
|
|
|
this.confirmPayOpen = true
|
|
|
- })
|
|
|
+ }).catch((res) => {
|
|
|
+ _.confirmLoading = false;
|
|
|
+ });
|
|
|
})
|
|
|
},
|
|
|
onCouponTabChange(tab, event) {
|