From 04f9d0857969531f13ccd296717a718f2cd702cf Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 12 Jan 2021 16:34:24 +0800
Subject: [PATCH] modify

---
 zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 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 dec4aeb..bd5cf20 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
@@ -219,7 +219,7 @@
                             </el-table-column>
                             <el-table-column label="退款数量">
                                 <template slot-scope="scope">
-                                    <el-input v-model="scope.row.refundCount"></el-input>
+                                    <el-input v-model.number="scope.row.refundCount"></el-input>
                                 </template>
                             </el-table-column>
                         </el-table>
@@ -438,7 +438,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>
@@ -579,14 +579,21 @@
                     if (item.refundPrice && item.refundCount) {
                         _this.refundMoney += (item.refundPrice * item.refundCount);
                     } else {
-                        if (item.refundCount > item.count) {
+                        if (!item.refundPrice > 0 && !item.refundCount > 0) {
+                            _this.$message.error("退款金额或退款数量须大于0");
+                            return;
+                        }
 
+                        if (item.refundCount > item.count) {
+                            _this.$message.error("输入正确的退款数量");
+                            return;
                         }
 
                         _this.$message.error("退款单价或退款数量不能为空");
                         return;
                     }
                 }
+                _this.dialogSettleVisible = true;
             },
             calOrderTotalFormatter(row, column) {
                 return row.count * row.price;

--
Gitblit v1.9.1