From 7ec998fe0bfc7c0366e52ed5389ae48faabf61f1 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 13 Jan 2021 18:02:05 +0800 Subject: [PATCH] modify --- zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html index a87b6c8..f48645d 100644 --- a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html +++ b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html @@ -515,7 +515,7 @@ <el-col :span="15"> <el-row style="line-height: 50px;" v-for="(item, index) in payMoneys"> <el-col :span="6" style="text-align: right; padding-right: 10px; font-size: 12px;">{{item.value}}</el-col> - <el-col :span="8"><el-input v-model.number="item.money"></el-input></el-col> + <el-col :span="8"><el-input v-model="item.money"></el-input></el-col> <el-col :span="6" style="margin-left: 10px;" v-if="item.type == '储值卡'">{{item.isGift == 1 ? '赠送余额' : '余额' }}:<span class="arrears">¥ {{item.balance}}</span></el-col> </el-row> </el-col> @@ -868,10 +868,10 @@ _this.order.payMoney += parseFloat(item.payMoney); }); //计算欠款 - _this.order.arrears = _this.order.zkTotal - _this.order.payMoney; - if (_this.order.arrears < 0) { - _this.$message.error("支付金额不能大于应收金额"); - } + // _this.order.arrears = _this.order.zkTotal - _this.order.payMoney; + // if (_this.order.arrears < 0) { + // _this.$message.error("支付金额不能大于应收金额"); + // } } }) } @@ -916,12 +916,12 @@ this.$message.warning("请输入" + item.type + "的付款金额"); return false; } - flow.amount = item.money; + flow.amount = parseFloat(item.money); if (item.type == '储值卡'){ flow.isGift = item.isGift; flow.cardId = item.id; } - total += item.money; + total += parseFloat(item.money); flows.push(flow) }) if (total != _this.order.payMoney) { -- Gitblit v1.9.1