From 565c0c87941ad8056d2085dc7eb956266a6764ba Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期五, 09 五月 2025 18:08:24 +0800
Subject: [PATCH] qx

---
 src/views/doctor/checkAll/index.vue |   97 ++++++++++++++++++++++++++++++------------------
 1 files changed, 61 insertions(+), 36 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 2ba6763..5f7955c 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -530,11 +530,12 @@
                   澶嶆煡椤圭洰
                 </div>
                 <div style="display: flex;margin:15px ;">
-                  <span slot="label" style="display: inline-block; border-bottom: 2px solid blue;font-size: 0.8vw;" @click="handleQuery">
+                  <span slot="label" style="display: inline-block; border-bottom: 2px solid blue;font-size: 0.8vw;"
+                    @click="handleQuery">
                     椤圭洰閫夋嫨
                   </span>
                   <div v-if="xmChange.length > 0" style="display: flex;">
-                    <div style="margin:0 40px;font-size: 0.8vw;">椤圭洰鍚嶇О锛歿{ xmChange[0].pro_name || "" }}</div>
+                    <div style="margin:0 40px;font-size: 0.8vw;">椤圭洰鍚嶇О锛歿{ xmChange[0].proName || "" }}</div>
                     <div style="margin:0 40px ;font-size: 0.8vw;">浠锋牸锛歿{ xmChange[0].price || "" }}</div>
                   </div>
                   <div v-else style="display: flex;">
@@ -545,25 +546,21 @@
                 </div>
 
                 <el-table :row-style="redxiangmu" :data="fcList" style="width: 100%">
-                  <el-table-column align="center" label="搴忓彿" width="144" prop="deptName"></el-table-column>
-                  <el-table-column label="搴忓彿" align="center" prop="pacRemark" />
-                  <el-table-column label="鍚嶇О" align="center" prop="pro_name" width="100px" />
+                  <el-table-column type="selection" width="40" align="center" />
+                  <el-table-column label="搴忓彿" align="center" prop="newID" />
+                  <el-table-column label="鍚嶇О" align="center" prop="proName" width="100px" />
                   <el-table-column label="浠锋牸" align="center" prop="price" />
-                  <el-table-column label="绉戝" align="center" prop="dept_name" />
+                  <el-table-column label="绉戝" align="center" prop="deptName" />
                   <el-table-column label="鎿嶄綔" align="center" width="130px">
                     <template slot-scope="scope">
-                      <el-button type="primary" icon="el-icon-share" size="mini" @click="handledeleteClick(scope.row)" style="margin-top: 20px;"
-                        title="鍒犻櫎"></el-button>
+                      <el-button type="primary" size="mini" @click="handledeleteClick(scope.row)">鍒犻櫎</el-button>
                     </template>
                   </el-table-column>
                 </el-table>
               </div>
             </template>
-          </div>
-        </div>
-      </div>
-
-      <div class="hist3" v-if="wenzhen">
+            <template v-if="status1 == 3">
+              <div class="hist3" >
         <span class="txt">闂瘖淇℃伅</span>
         <el-form ref="form" :model="formobj" label-width="100px" :inline="true" size="mini">
           <el-collapse class="coll" v-model="activeName" accordion>
@@ -763,18 +760,25 @@
           </el-collapse>
         </el-form>
       </div>
+            </template>
+          </div>
+        </div>
+      </div>
+
+     
     </el-drawer>
 
     <el-dialog :visible.sync="xmopen" width="800px" append-to-body>
+      <div style="margin: 20px;">
+        <el-table :data="datasList" ref="elTable" v-loading="loading" @selection-change="handlexmChange" border
+          height="320px">
+          <el-table-column type="selection" width="40" align="center" />
+          <el-table-column label="鍚嶇О" align="center" prop="proName" width="100px" />
+          <el-table-column label="浠锋牸" align="center" prop="price" />
+          <el-table-column label="绉戝" align="center" prop="deptName" />
+        </el-table>
+      </div>
 
-      <el-table :data="datasList" ref="elTable" v-loading="loading" @selection-change="handlexmChange" border
-        height="320px">
-        <el-table-column type="selection" width="40" align="center" />
-        <el-table-column label="搴忓彿" align="center" prop="pacRemark" />
-        <el-table-column label="鍚嶇О" align="center" prop="pro_name" width="100px" />
-        <el-table-column label="浠锋牸" align="center" prop="price" />
-        <el-table-column label="绉戝" align="center" prop="dept_name" />
-      </el-table>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitFormxm">纭� 瀹�</el-button>
         <el-button @click="cancels">鍙� 娑�</el-button>
@@ -879,8 +883,6 @@
       jianqians: false,
       sex: true,
       activeName: "1",
-      wenzhen: false,
-      hosproy: true,
       remarks: "",
       remark: "",
       creatobj: {},
@@ -1162,14 +1164,26 @@
     },
 
     fuchaxiangmu() {
+      this.loading = true;
       this.status1 = 2;
       let data = {
         tjNum: this.tjNumber,
         type: 1
-      }
-      getFcList(data).then(res => {
-        this.fcList = res.data
-      })
+      };
+      getFcList(data)
+        .then((res) => {
+          this.fcList = res.data;
+          this.fcList.forEach((item,index) => {
+            item.newID = index + 1;
+          })
+        })
+        .catch((error) => {
+          console.error('鑾峰彇澶嶆煡椤圭洰澶辫触:', error);
+          this.$message.error('鑾峰彇澶嶆煡椤圭洰澶辫触');
+        })
+        .finally(() => {
+          this.loading = false;
+        });
     },
 
     handleQuery() {
@@ -1186,19 +1200,33 @@
     handleaddClick() {
       console.log(this.xmChange)
       let data = {
-        orderId: this.xmChange[0].order_id,
+        orderId: this.xmChange[0].orderId,
         data: [{
-          proId: this.xmChange[0].pro_id,
+          proId: this.xmChange[0].proId,
           type: 1
         }]
       }
       UpdFcPro(data).then(res => {
-
+        if (res.code == 200) {
+          this.xmChange = []
+          this.fuchaxiangmu()
+        }
       })
     },
 
-    handledeleteClick() {
-
+    handledeleteClick(row) {
+      let data = {
+        orderId: row.orderId,
+        data: [{
+          proId: row.proId,
+          type: 0
+        }]
+      }
+      UpdFcPro(data).then(res => {
+        if (res.code == 200) {
+          this.fuchaxiangmu()
+        }
+      })
     },
 
     handlexmChange(selection) {
@@ -1420,8 +1448,6 @@
 
     historicalreport() {
       this.loading = true;
-      this.wenzhen = false;
-      this.hosproy = true;
       let data = {
         cusId: this.tableAll.cusId,
       };
@@ -1436,8 +1462,7 @@
     },
 
     medicalhistory() {
-      this.wenzhen = true;
-      this.hosproy = false;
+      this.status1 = 3;
       let tjNumber = this.tableAll.tjNumber;
       getInfoById(tjNumber).then((response) => {
         this.formobj = response.data;

--
Gitblit v1.8.0