From 00212ed8e808fc7b76c04389224e65f27f074fb2 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 26 四月 2024 15:30:04 +0800
Subject: [PATCH] su

---
 src/views/system/comp/index.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/system/comp/index.vue b/src/views/system/comp/index.vue
index a17f9ec..9441f2f 100644
--- a/src/views/system/comp/index.vue
+++ b/src/views/system/comp/index.vue
@@ -889,14 +889,18 @@
       })
     },
     submitrighr() {
-      this.openss = false
+      if(this.pacList.length >= 1){
+        this.openss = false
       this.forms.pacName = this.pacList[0].pacName
       this.forms.price = this.queryParams.price
       this.forms.ysPrice = (this.forms.price * (this.forms.limits / 10)).toFixed(2);
+      }else{
+        this.$modal.msgError("璇烽�夋嫨濂楅");
+      }
+      
     },
     // 濂楅鍗曢」鑾峰彇
     handleChangeOne(selection) {
-      console.log(selection);
       this.pacList = selection
       this.OnenewpacName = []
       this.queryParams.price = 0
@@ -1023,6 +1027,12 @@
         dwgrouping(data).then(res => {
           if (res.code == 200) {
             this.beCurrent()
+            this.forms.groupingName = "";
+            this.forms.sex = "";
+            this.forms.pacName = "";
+            this.forms.price = "";
+            this.forms.ysPrice = "";
+            this.forms.payType = "";
           }
         })
       }

--
Gitblit v1.8.0