From 1e38903e0fae9c8d422de585f86914dd1d09da1d Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期五, 06 六月 2025 17:46:47 +0800
Subject: [PATCH] qx

---
 src/views/doctor/examination/index.vue |   45 ++++++++++++++++++++++++---------------------
 1 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index e433490..7ab7d2c 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -214,9 +214,9 @@
             <el-radio :label="1">鍏朵粬</el-radio>
           </el-radio-group>
         </el-form-item>
-
+        <!-- filterable -->
         <el-form-item label="寮冩鍘熷洜" prop="yy" style="margin-left: 20px" v-if="form.isZybUnit == 1">
-          <el-select filterable v-model="form.yy" placeholder="璇烽�夋嫨寮冩鍘熷洜" clearable style="width: 150px">
+          <el-select  v-model="form.yy" placeholder="璇烽�夋嫨寮冩鍘熷洜" clearable style="width: 150px">
             <el-option v-for="dict in dict.type.qj_type" :key="dict.value" :label="dict.label" :value="dict.label" />
           </el-select>
         </el-form-item>
@@ -631,13 +631,12 @@
       this.open = false
     },
     submitFormqijian() {
-      this.open = false
-
       if (this.form.isZybUnit == 0) {
         const tjNUm = this.selectedTjNumber;
         const proId = this.rowProId;
         qijian(tjNUm, proId).then((res) => {
           if (res.code == 200) {
+              this.open = false
             cSWebGetPro(tjNUm).then((res) => {
               if (res.code === 200) {
                 // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
@@ -648,24 +647,28 @@
           }
         });
       } else {
-        let data = {
-          tjNum: this.selectedTjNumber,
-          proId: this.rowProId,
-          yy: this.form.yy,
-        }
-        csymxmxzqtyybcjk(data).then((res) => {
-          if (res.code == 200) {
-            cSWebGetPro(this.selectedTjNumber).then((res) => {
-              if (res.code === 200) {
-                // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
-                this.xiangmuList = res.data;
-                this.isLoading = false
-              }
-            });
+        if (this.form.yy != null) {
+          let data = {
+            tjNum: this.selectedTjNumber,
+            proId: this.rowProId,
+            yy: this.form.yy,
           }
-        });
+          csymxmxzqtyybcjk(data).then((res) => {
+            if (res.code == 200) {
+              cSWebGetPro(this.selectedTjNumber).then((res) => {
+                if (res.code === 200) {
+                    this.open = false
+                  // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+                  this.xiangmuList = res.data;
+                  this.isLoading = false
+                }
+              });
+            }
+          });
+        } else {
+          this.$modal.msgError("璇烽�夋嫨寮冩鍘熷洜");
+        }
       }
-
     },
 
     // 寮冩鎸夐挳
@@ -688,7 +691,7 @@
         });
       } else {
         this.open = true
-        this.form ={}
+        this.form = {}
         // qijian(tjNUm, proId).then((res) => {
         //   if (res.code == 200) {
         //     cSWebGetPro(tjNUm).then((res) => {

--
Gitblit v1.8.0