From 1cac6b396b8a7735bafb4c4c29f873f8eee8c516 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 30 Mar 2022 17:32:32 +0800
Subject: [PATCH] 清空数据项

---
 zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/yypb-form.html |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/yypb-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/yypb-form.html
index c549076..d6a8eff 100644
--- a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/yypb-form.html
+++ b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/yypb-form.html
@@ -112,6 +112,8 @@
                                 <table class="table table-bordered">
                                     <tr>
                                         <th>项目名称</th>
+                                        <th>次数</th>
+                                        <th>划扣金额</th>
                                         <th width="100px">服务时长(分钟)</th>
                                         <th>服务时间</th>
                                         <th width="300px">美疗师</th>
@@ -120,7 +122,9 @@
                                     </tr>
 
                                     <tr v-for="(item,index) in projService.serviceItems">
-                                        <td>{{item.projInfo.name}}</td>
+                                        <td>{{item.projInfo.name}}【{{item.projUse.source}}】</td>
+                                        <td>{{item.count}}</td>
+                                        <td>{{item.projUse.price * item.count}}</td>
                                         <td><el-input @change="changeTimeLength" v-model="item.projInfo.timeLength"></el-input></td>
 
                                         <td>
@@ -446,7 +450,12 @@
                     },
                     url: basePath + '/admin/bedInfo/showFreedBed',
                     callback: function (data) {
-                        _this.beds = data.rows;
+                        if(data.rows.length > 0){
+                            _this.beds = data.rows;
+                        }else{
+                            _this.beds = data.rows;
+                            _this.projService.bedId = '';
+                        }
                     }
                 });
             }

--
Gitblit v1.9.1