From 992b14d4c5e0ebba87d3ae8fb1ca9d06c0bdc6e9 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期五, 14 三月 2025 16:20:39 +0800
Subject: [PATCH] qx

---
 src/views/hosp/advicerules/index.vue |   95 +++++------------------------------------------
 1 files changed, 10 insertions(+), 85 deletions(-)

diff --git a/src/views/hosp/advicerules/index.vue b/src/views/hosp/advicerules/index.vue
index 57f406d..a4c9279 100644
--- a/src/views/hosp/advicerules/index.vue
+++ b/src/views/hosp/advicerules/index.vue
@@ -8,14 +8,6 @@
       v-show="showSearch"
       label-width="68px"
     >
-      <!-- <el-form-item label="缂栫爜" prop="bm">
-        <el-input
-          v-model="queryParams.bm"
-          placeholder="璇疯緭鍏ョ紪鐮�"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item> -->
       <el-form-item label="绉戝" prop="ks">
         <el-input
           v-model="queryParams.ks"
@@ -94,7 +86,7 @@
         <el-button
           type="warning"
           plain
-          icon="el-icon-download"
+          icon="el-icon-upload2"
           size="mini"
           @click="handleImport"
           >瀵煎叆
@@ -158,30 +150,17 @@
       <el-table-column label="鑼冨洿鏈�澶у��" align="center" prop="fwzdz" />
       <el-table-column label="寮傚父鏍囧織" align="center" prop="ycbz" />
       <el-table-column label="鏄惁鐤剧梾" align="center" prop="sfjb">
-        <!-- <template slot-scope="scope">
-          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfjb" />
-        </template> -->
       </el-table-column>
       <el-table-column label="鏄惁甯歌鐥�" align="center" prop="sfcjb">
-        <!-- <template slot-scope="scope">
-          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfcjb" />
-        </template> -->
       </el-table-column>
       <el-table-column label="鏄惁鎱㈡�х梾" align="center" prop="sfmxb">
-        <!-- <template slot-scope="scope">
-          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfmxb" />
-        </template> -->
       </el-table-column>
       <el-table-column
         label="鏄惁閲嶅ぇ鐤剧梾"
         align="center"
         width="120"
         prop="sfzdjb"
-      >
-        <!-- <template slot-scope="scope">
-          <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfzdjb" />
-        </template> -->
-      </el-table-column>
+      ></el-table-column>
       <el-table-column
         label="鎿嶄綔"
         align="center"
@@ -235,7 +214,7 @@
           <el-select
             v-model="form.ks"
             placeholder="璇烽�夋嫨绉戝"
-            style="width: 200"
+            style="width: 200px"
             @change="idFn"
           >
             <el-option
@@ -261,9 +240,9 @@
           />
         </el-form-item>
 
-        <el-form-item label="鑼冨洿" prop="fw">
+        <el-form-item label="鑼冨洿" prop="fwz">
           <el-input
-            v-model="form.fw"
+            v-model="form.fwz"
             placeholder="璇疯緭鍏ヨ寖鍥�"
             style="width: 200px"
           />
@@ -297,37 +276,22 @@
           <el-checkbox
             v-model="form.sfcjb"
             true-label="鏄�"
-            false-label="鍚�"
+            false-label=""
           ></el-checkbox>
-          <!--  <el-input
-            v-model="form.sfcjb"
-            style="width: 200px"
-            placeholder="璇疯緭鍏ユ槸鍚﹀父瑙佺梾"
-          /> -->
         </el-form-item>
         <el-form-item label="鎱㈡�х梾" prop="sfmxb">
           <el-checkbox
             v-model="form.sfmxb"
             true-label="鏄�"
-            false-label="鍚�"
+            false-label=""
           ></el-checkbox>
-          <!-- <el-input
-            v-model="form.sfmxb"
-            style="width: 200px"
-            placeholder="璇疯緭鍏ユ槸鍚︽參鎬х梾"
-          /> -->
         </el-form-item>
         <el-form-item label="閲嶅ぇ鐤剧梾" prop="sfzdjb">
           <el-checkbox
             v-model="form.sfzdjb"
             true-label="鏄�"
-            false-label="鍚�"
+            false-label=""
           ></el-checkbox>
-          <!-- <el-input
-            v-model="form.sfzdjb"
-            style="width: 200px"
-            placeholder="璇疯緭鍏ユ槸鍚﹂噸澶х柧鐥�"
-          /> -->
         </el-form-item>
         <el-form-item label="寤鸿鍚嶇О" prop="jymc" style="display: block">
           <el-input
@@ -602,9 +566,6 @@
     idFn(value) {
       console.log("Selected Value:", value);
       this.departmentOptions.forEach((item) => {
-        console.log(this.departmentOptions, 333);
-        console.log(item, 555);
-
         if (item.value == value) {
           this.form.ks = item.label;
         }
@@ -694,7 +655,6 @@
 
     /* 寮规纭畾鎸夐挳 */
     submit() {
-
       this.ChangeList.forEach((item) => {
         this.form.jymc = item.title;
 
@@ -718,7 +678,6 @@
       this.title = "娣诲姞浣撴椤圭洰寤鸿瑙勫垯鏂拌〃";
       deptTreeSelect().then((response) => {
         this.departmentOptions = response.data[0].children;
-        console.log(response, 999);
       });
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
@@ -732,7 +691,6 @@
       });
       deptTreeSelect().then((response) => {
         this.departmentOptions = response.data[0].children;
-        console.log(response, 999);
       });
     },
 
@@ -758,11 +716,9 @@
       });
     },
     handleDelete(row) {
-      console.log(row,6677);
-      
-      const pkValue = row.id; // 鑾峰彇涓婚敭鍊硷紝濡傛灉row涓病鏈変富閿�硷紝鍒欎娇鐢╰his.ids
+      const pkValue = row.id || this.ids; // 鑾峰彇涓婚敭鍊硷紝濡傛灉row涓病鏈変富閿�硷紝鍒欎娇鐢╰his.ids
       this.$modal
-        .confirm(`鏄惁纭鍒犻櫎${row.ks}缂栧彿涓�"${pkValue}"鐨勬暟鎹」锛焋)
+        .confirm(`鏄惁纭鍒犻櫎"${pkValue}"鐨勬暟鎹」锛焋)
         .then(() => {
           return delAdvicerules(pkValue); // 璋冪敤鍒犻櫎鎺ュ彛锛屼紶鍏ヤ富閿��
         })
@@ -797,43 +753,12 @@
           dangerouslyUseHTMLString: true,
         });
       }
-      /*  this.ListObj = response.data;
-      this.advicerulesList = response.data.list;
-
-      this.userList.forEach((item) => {
-        this.CompanyList.forEach((item1) => {
-          if (item1.drugManufacturerId == this.objs.drugManufacturerId) {
-            item.company = item1.cnName;
-          }
-        });
-      }); */
       this.upload.open = false;
       this.upload.isUploading = false;
       this.$refs.upload.clearFiles();
       this.leftList = response.msg;
       console.log(response.code);
 
-      /*  if (this.leftList == "鎿嶄綔澶辫触") {
-        this.isdisabled = true;
-        this.$alert(
-          "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
-            response.msg +
-            "<div style='br;margin:10px'>" +
-            response.data[0] +
-            "韬唤璇佹垨鎵嬫満鍙风爜鏈夎" +
-            "</div>",
-          "瀵煎叆缁撴灉",
-          { dangerouslyUseHTMLString: true }
-        );
-      } else {
-        this.isdisabled = false;
-        this.$alert(
-          "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
-            response.msg,
-          { dangerouslyUseHTMLString: true }
-        );
-        this.rightList = response;
-      } */
       for (let i = 0; i < fileList.length; i++) {
         if (file.name != fileList[i].name) {
           this.fileList.push({

--
Gitblit v1.8.0