From e03e83323c452893d3d5e43fc3e0f2f8f34f47c9 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期一, 09 六月 2025 10:36:08 +0800
Subject: [PATCH] qx

---
 src/views/doctor/examination/index.vue |   97 ++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 84 insertions(+), 13 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 8952269..237219b 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -420,6 +420,29 @@
         />
       </div>
     </div>
+
+     <el-dialog :visible.sync="open" width="980px" append-to-body>
+      <el-form ref="form" :model="form" label-width="98px" @submit.native.prevent>
+        <el-form-item label="寮冩" prop="isZybUnit">
+          <el-radio-group v-model="form.isZybUnit">
+            <el-radio :label="0">鑷姩寮冩</el-radio>
+            <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  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>
+        <br />
+
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitFormqijian">纭� 瀹�</el-button>
+        <el-button @click="cancel">鍙� 娑�</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -434,20 +457,21 @@
   yijian,
   resultList,
   typeOne,
-  huifu,
+  huifu,csymxmxzqtyybcjk
 } from "@/api/doctor/examination";
 import { getCompany, queryCompany } from "@/api/team/tuanti";
 import { getNewDateList } from "@/api/hosp/order";
 import moment from "moment";
 
 export default {
-  dicts: ["dict_tj_status"],
+  dicts: ["dict_tj_status", "qj_type"],
   data() {
     return {
       jieguoList: [],
       jyjc: null,
       dis: false,
       isLoading:false,
+        open: false,
       createTimeList: "",
       currentRow: null,
       total: 0,
@@ -819,6 +843,51 @@
       });
     },
 
+    cancel() {
+      this.open = false
+    },
+
+    submitFormqijian() {
+      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) {
+                // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+                this.xiangmuList = res.data;
+                this.isLoading = false
+              }
+            });
+          }
+        });
+      } else {
+        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("璇烽�夋嫨寮冩鍘熷洜");
+        }
+      }
+    },
+
     // 寮冩鎸夐挳
     qijian(row) {
       const tjNUm = this.selectedTjNumber;
@@ -837,17 +906,19 @@
           }
         });
       } else {
-        qijian(tjNUm, proId).then((res) => {
-          if (res.code == 200) {
-            cSWebGetPro(tjNUm).then((res) => {
-              if (res.code === 200) {
-                // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
-                this.xiangmuList = res.data;
-                this.isLoading = false
-              }
-            });
-          }
-        });
+         this.open = true
+        this.form = {}
+        // qijian(tjNUm, proId).then((res) => {
+        //   if (res.code == 200) {
+        //     cSWebGetPro(tjNUm).then((res) => {
+        //       if (res.code === 200) {
+        //         // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+        //         this.xiangmuList = res.data;
+        //         this.isLoading = false
+        //       }
+        //     });
+        //   }
+        // });
       }
     },
     yijian(row) {

--
Gitblit v1.8.0