From 6a34e239e8cd26c74e3d51860d14ebfe87999d97 Mon Sep 17 00:00:00 2001 From: jyy <935090232@qq.com> Date: Wed, 20 Jan 2021 09:19:19 +0800 Subject: [PATCH] 修改门店添加用户没有shopId的问题 --- zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html index 1c01d27..5453505 100644 --- a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html +++ b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html @@ -771,6 +771,13 @@ } } else { Vue.set(item,'isActive',true); + var hasAmount = 0; + for(var i = 0; i < payMoneys.length; i++) { + hasAmount += parseFloat(payMoneys[i].money); + } + if (_this.refundMoney - hasAmount > 0) { + Vue.set(item, 'money', _this.refundMoney - hasAmount); + } _this.payMoneys.push(item); } }); -- Gitblit v1.9.1