|
@@ -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,8 +212,9 @@
|
|
|
type="danger"
|
|
|
class="checkout-btn"
|
|
|
icon="el-icon-shopping-cart-2"
|
|
|
+ :loading="confirmLoading"
|
|
|
@click="handleConfirmPay">
|
|
|
- 收银
|
|
|
+ 收银{{ confirmLoading }}
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -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
|
|
@@ -1551,6 +1554,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 +1563,7 @@ export default {
|
|
|
// res.data.forEach(item => {
|
|
|
// item.isUnique = 'N'
|
|
|
// })
|
|
|
+ _.confirmLoading = false
|
|
|
this.deductCouponVOS = res.data
|
|
|
|
|
|
this.selectCoupons = []
|
|
@@ -1571,7 +1576,9 @@ export default {
|
|
|
delete this.orderForm.discountCouponId
|
|
|
delete this.orderForm.discountCoupon
|
|
|
this.confirmPayOpen = true
|
|
|
- })
|
|
|
+ }).catch((res) => {
|
|
|
+ _.confirmLoading = false;
|
|
|
+ });
|
|
|
})
|
|
|
},
|
|
|
onCouponTabChange(tab, event) {
|