diff --git a/fuintAdmin/src/views/member/index.vue b/fuintAdmin/src/views/member/index.vue index 182a385cb..cb7887a81 100644 --- a/fuintAdmin/src/views/member/index.vue +++ b/fuintAdmin/src/views/member/index.vue @@ -740,12 +740,14 @@ export default { if(response.data){ this.$modal.msgError("手机号已存在"); }else { - addUser(this.form).then(response => { - this.$modal.msgSuccess("新增会员成功"); - this.open = false; - this.openUser = false; - this.getList(); - this.getUserList(); + addUser(this.form).then(res => { + if (res.data == 1) { + this.$modal.msgSuccess("新增会员成功"); + this.open = false; + this.openUser = false; + this.getList(); + this.getUserList(); + } }); } }) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java index 2d6045c64..05df11122 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java @@ -794,10 +794,17 @@ public class OilOrderServiceImpl extends ServiceImpl i int row = 0; OilOrder oilOrder = this.selectOilOrderByOrderNo(orderNo); if (ObjectUtil.isNotEmpty(oilOrder)){ + oilOrder.setPayAmount(oilOrder.getOrderAmount()-oilOrder.getDiscountAmount()); oilOrder.setOrderStatus(status); if (status.equals("paid")){ oilOrder.setPayTime(new Date()); this.updateGrowthValue(oilOrder.getPayAmount(),oilOrder.getUserId(), Integer.valueOf(oilOrder.getOils()),null,oilOrder.getStoreId()); + CashierOrder cashierOrder = cashierOrderService.selectCashierOrder(orderNo); + if (ObjectUtil.isNotEmpty(cashierOrder)){ + cashierOrder.setPayTime(new Date()); + cashierOrder.setStatus("paid"); + cashierOrderService.updateCashierOrder(cashierOrder); + } } row = baseMapper.updateById(oilOrder); } diff --git a/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue b/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue index 9baf7bfc5..d1121bd3a 100644 --- a/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue +++ b/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue @@ -837,21 +837,27 @@ if (valid) { if (this.form.id) { updateUser(this.form).then(response => { - this.$modal.msgSuccess("修改会员成功"); - this.open = false; - this.getList(); + if (response.data==1) { + this.$modal.msgSuccess("修改会员成功"); + this.open = false; + this.getList(); + }else { + this.$modal.msgError("手机号已存在"); + } }); } else { getUserMobile({mobile:this.form.mobile}).then( response => { if(response.data!=null){ this.$modal.msgError("手机号已存在"); }else { - addUser(this.form).then(response => { - this.$modal.msgSuccess("新增会员成功"); - this.open = false; - this.openUser = false; - this.getList(); - this.getUserList(); + addUser(this.form).then(res => { + if (res.data==1) { + this.$modal.msgSuccess("新增会员成功"); + this.open = false; + this.openUser = false; + this.getList(); + this.getUserList(); + } }); } }) diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue index 488b83d38..32241bd2e 100644 --- a/gasStation-uni/pages/refuel/refuel.vue +++ b/gasStation-uni/pages/refuel/refuel.vue @@ -57,7 +57,7 @@ 请输入加油金额 - + {{value}} 约{{liters}}L @@ -74,8 +74,15 @@ - + + + + + + + + @@ -112,6 +119,7 @@ export default { data() { return { + appltType:uni.getStorageSync("appltType"), value: '', liters:"", show: false, @@ -201,6 +209,11 @@ // this.getStore(0); }, methods: { + // 打开数字键盘 + openKey() { + this.show = true + this.$refs.popup1.open('bottom') + }, isExistStoreId(){ if (uni.getStorageSync("storeId") != ""){ this.getStore(uni.getStorageSync("storeId")); @@ -337,11 +350,12 @@ getAIndex(index,amount) { this.value = amount+"" this.aindex = index + this.liters = (amount/this.oilPrice).toFixed(2) }, // 选择油品信息 getHIndex(index,data) { this.hindex = index - console.log(data) + // console.log(data) this.getOilGun(data.numberId) this.oilPrice = data.gbPrice this.oilUnit = data.unit @@ -388,6 +402,20 @@ } } }, + changeVal(val) { + this.value = val; + this.liters = (this.value/this.oilPrice).toFixed(2) + }, + backspaceVal(val) { + this.value = val; + if (val == "") { + this.amount = 0 + this.liters = 0 + } else { + this.amount = val; + this.liters = (this.value/this.oilPrice).toFixed(2) + } + }, valChange(val) { // 将每次按键的值拼接到value变量中,注意+=写法 uni.vibrateShort({