|
@@ -1262,9 +1262,10 @@
|
|
|
this.$Message.error(err.msg);
|
|
this.$Message.error(err.msg);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- payPrice(payType) {
|
|
|
|
|
|
|
+ async payPrice(payType) {
|
|
|
console.log(this.payType,payType)
|
|
console.log(this.payType,payType)
|
|
|
this.payType = payType;
|
|
this.payType = payType;
|
|
|
|
|
+
|
|
|
if (payType == "" || payType == "yue") {
|
|
if (payType == "" || payType == "yue") {
|
|
|
this.createOrder.userCode = "";
|
|
this.createOrder.userCode = "";
|
|
|
this.createOrder.auth_code = "";
|
|
this.createOrder.auth_code = "";
|
|
@@ -1279,6 +1280,7 @@
|
|
|
this.createOrder.pay_type = payType;
|
|
this.createOrder.pay_type = payType;
|
|
|
this.createOrder.staff_id = this.storeInfos.id;
|
|
this.createOrder.staff_id = this.storeInfos.id;
|
|
|
// this.fapi.resetFields();
|
|
// this.fapi.resetFields();
|
|
|
|
|
+ this.cartCompute();
|
|
|
},
|
|
},
|
|
|
modalPayCancel() {
|
|
modalPayCancel() {
|
|
|
this.$Message.destroy();
|
|
this.$Message.destroy();
|
|
@@ -1507,6 +1509,7 @@
|
|
|
coupon: this.coupon,
|
|
coupon: this.coupon,
|
|
|
coupon_id: this.couponId,
|
|
coupon_id: this.couponId,
|
|
|
cart_id: ids,
|
|
cart_id: ids,
|
|
|
|
|
+ payType: this.payType
|
|
|
};
|
|
};
|
|
|
if (cartId) {
|
|
if (cartId) {
|
|
|
data.new = 1;
|
|
data.new = 1;
|
|
@@ -1514,6 +1517,7 @@
|
|
|
cashierCompute(this.userInfo.uid, data)
|
|
cashierCompute(this.userInfo.uid, data)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.priceInfo = res.data;
|
|
this.priceInfo = res.data;
|
|
|
|
|
+ this.settleMoney = res.data.payPrice
|
|
|
this.unchangedPrice = this.priceInfo.payPrice || 0;
|
|
this.unchangedPrice = this.priceInfo.payPrice || 0;
|
|
|
this.formItem.price = this.priceInfo.payPrice || 0;
|
|
this.formItem.price = this.priceInfo.payPrice || 0;
|
|
|
this.tapPrice();
|
|
this.tapPrice();
|