diff --git a/fuintAdmin/src/views/oilConfig/oilTank/list.vue b/fuintAdmin/src/views/oilConfig/oilTank/list.vue index 2b34c9dda..a05009aab 100644 --- a/fuintAdmin/src/views/oilConfig/oilTank/list.vue +++ b/fuintAdmin/src/views/oilConfig/oilTank/list.vue @@ -93,7 +93,7 @@ - + - + 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 4712dd8d6..c480abeb3 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 @@ -959,6 +959,9 @@ public class OilOrderServiceImpl extends ServiceImpl i // 修改油罐容量 Double storedQuantity = oilTank.getStoredQuantity(); + if (ObjectUtil.isEmpty(storedQuantity) || storedQuantity - oilOrder.getOilNum() <=0){ + throw new RuntimeException("油罐容量不足!"); + } oilTank.setStoredQuantity(storedQuantity-oilOrder.getOilNum()); oilTankService.update(oilTank); } diff --git a/fuintCashierWeb/src/views/details/index.vue b/fuintCashierWeb/src/views/details/index.vue index 2f5514fbb..10cddb18f 100644 --- a/fuintCashierWeb/src/views/details/index.vue +++ b/fuintCashierWeb/src/views/details/index.vue @@ -1059,7 +1059,7 @@ export default { // 副卡管理 secondCard(){ this.openSecondCard = true; - this.title = this.form.secondCard+'-副卡账户管理' + this.title = this.form.secondCard || ''+'-副卡账户管理' }, // 实体卡绑定 bindIdCard(){