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 |  100 ++++++++++++++++++++++++++++++++------------------
 1 files changed, 64 insertions(+), 36 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 3b7e92e..7ab7d2c 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -47,19 +47,14 @@
               <span v-if="scope.row.cusSex == '2'">鏈煡</span>
               <span v-if="scope.row.cusSex == '9'">鏈鏄庢�у埆</span>
             </template>
-            
+
             <!-- <template slot-scope="scope"> -->
             <!-- {{scope.row.customer.cusSex}} -->
             <!-- {{ scope.row.cusSex === 0 ? "鐢�" : "濂�" }} -->
             <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
             <!-- </template> -->
           </el-table-column>
-           <el-table-column
-            label="骞撮緞"
-            align="center"
-            prop="age"
-            min-width="100"
-          />
+          <el-table-column label="骞撮緞" align="center" prop="age" min-width="100" />
           <el-table-column label="鎵嬫満鍙�" align="center" prop="cusPhone" min-width="100" />
           <el-table-column label="鐧昏鏃堕棿" align="center" prop="tjTime" min-width="120" />
           <el-table-column v-if="checkStatus == '1'" label="瀹℃牳鐘舵��" align="center" prop="confirmStatus" min-width="80">
@@ -174,9 +169,9 @@
             </el-table-column>
             <el-table-column label="鍙傝�冭寖鍥�" prop="ckfw"> </el-table-column>
             <el-table-column label="寮傚父鏍囧織" prop="ycbz">
-               <template slot-scope="scope">
+              <template slot-scope="scope">
                 {{ scope.row.ycbz == 0 ? "姝e父" : "寮傚父" }}
-               </template>
+              </template>
             </el-table-column>
           </el-table>
         </div>
@@ -213,13 +208,17 @@
     </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-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 :label="1">鎬�瀛�</el-radio>
+            <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 />
 
@@ -244,14 +243,14 @@
   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: [],
@@ -269,6 +268,7 @@
       yijiantype: null,
       CompanyList: [],
       CheckBox: {},
+      rowProId: '',
       // 鏌ヨ鍙傛暟
       queryParams: {
         page: 1,
@@ -631,24 +631,51 @@
       this.open = false
     },
     submitFormqijian() {
-      this.open = false
-      qijian(tjNUm, proId).then((res) => {
-        if (res.code == 200) {
-          cSWebGetPro(tjNUm).then((res) => {
-            if (res.code === 200) {
-              // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
-              this.xiangmuList = res.data;
-              this.isLoading = 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) {
+                // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+                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;
       const proId = row.proId;
+      this.rowProId = row.proId;
       row.isLoading = true;
       if (row.type == "2") {
         huifu(tjNUm, proId).then((res) => {
@@ -663,18 +690,19 @@
           }
         });
       } else {
-        // this.open = true
-        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