From 37c5fa644553d6e24c729b62408e631a8c50e379 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 19 六月 2025 15:19:36 +0800
Subject: [PATCH] tijiao

---
 src/views/hosp/project/index.vue |   79 +++++++++++++++++++++++++++++++--------
 1 files changed, 62 insertions(+), 17 deletions(-)

diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue
index e21b34c..8a75a61 100644
--- a/src/views/hosp/project/index.vue
+++ b/src/views/hosp/project/index.vue
@@ -130,6 +130,7 @@
           v-loading="loading"
           :data="projectList"
           ref="tableRef"
+          height="580"
           border
         >
           <el-table-column
@@ -468,11 +469,27 @@
             ></el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="鏍囨湰绫诲瀷" prop="specimenType">
+          <el-select
+            v-model="form.specimenType"
+            placeholder="璇烽�夋嫨鏍囨湰绫诲瀷"
+            style="width: 200px"
+            filterable
+            clearable
+          >
+            <el-option
+              v-for="dict in dict.type.yblx"
+              :key="dict.value"
+              :label="dict.label"
+              :value="dict.value"
+            ></el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="妫�鏌ラ儴浣�" prop="checkBw">
           <el-select
             v-model="form.checkBw"
             placeholder="璇烽�夋嫨妫�鏌ラ儴浣�"
-            style="width: 200px"
+            style="width: 260px"
             filterable
             clearable
           >
@@ -488,7 +505,7 @@
           <el-input
             v-model="form.proMetering"
             placeholder="璇疯緭鍏ュ崟浣�"
-            style="width: 260px"
+            style="width: 200px"
           />
         </el-form-item>
         <el-form-item label="鍙傝�冭寖鍥�" prop="proScope">
@@ -502,14 +519,14 @@
           <el-input
             v-model="form.sl"
             placeholder="璇疯緭鍏ユ暟閲�"
-            style="width: 200px"
+            style="width: 260px"
           />
         </el-form-item>
         <el-form-item label="缁勫悎鏍囧織" prop="sfzhfy">
           <el-select
             v-model="form.sfzhfy"
             placeholder="璇烽�夋嫨鏄惁缁勫悎鏍囧織"
-            style="width: 260px"
+            style="width: 200px"
           >
             <el-option
               v-for="dict in dict.type.sys_yes_no"
@@ -546,7 +563,7 @@
           <el-input
             v-model="form.hisXmmc"
             placeholder="his椤圭洰鍚嶇О"
-            style="width: 200px"
+            style="width: 260px"
           ></el-input>
         </el-form-item>
         <el-form-item label="his椤圭洰鍚嶇О" prop="hisXmmc" v-if="key == 'N'">
@@ -560,7 +577,7 @@
           <el-input
             v-model="form.hisXmbm"
             placeholder="璇疯緭鍏is缂栫爜"
-            style="width: 260px"
+            style="width: 200px"
           />
         </el-form-item>
         <el-form-item label="his鍗曚环" prop="hisdj">
@@ -581,14 +598,14 @@
           <el-input
             v-model="form.lisXmmc"
             placeholder="璇疯緭鍏IS椤圭洰"
-            style="width: 200px"
+            style="width: 260px"
           ></el-input>
         </el-form-item>
         <el-form-item label="LIS缂栫爜" prop="lisXmbm">
           <el-input
             v-model="form.lisXmbm"
             placeholder="璇疯緭鍏is缂栫爜"
-            style="width: 260px"
+            style="width: 200px"
           />
         </el-form-item>
         <el-form-item label="澶囨敞" prop="proRemark">
@@ -602,8 +619,14 @@
           <el-input
             v-model="form.xh"
             placeholder="璇疯緭鍏ユ帓搴�"
-            style="width: 200px"
+            style="width: 260px"
           />
+        </el-form-item>
+        <el-form-item label="鏄惁鍙備笌寮傚父" prop="sfcyyc">
+          <el-select v-model="form.sfcyyc" placeholder="璇烽�夋嫨鏄惁鍙備笌寮傚父" style="width: 200px">
+            <el-option v-for="dict in dictTypesy" :key="dict.value" :label="dict.label"
+              :value="dict.value"></el-option>
+          </el-select>
         </el-form-item>
       </el-form>
       <el-button
@@ -955,6 +978,7 @@
     "sys_dict_position",
     "tj_result_type",
     "sys_yes_no",
+    "yblx",
   ],
   components: { Treeselect, IconSelect, Packagese },
   data() {
@@ -980,6 +1004,16 @@
         children: "dictSfxms",
         label: "xmmc",
       },
+      dictTypesy: [
+        {
+          value:"0",
+          label:"鏄�"
+        },
+        {
+          value:"1",
+          label:"鍚�"
+        }
+      ],
       xmmc: "",
       chargeId: [],
       List: false,
@@ -994,7 +1028,7 @@
       multiple: true,
       showSearch: true,
       total: 0,
-      treeId: ["532"],
+      treeId: [],
       ListId: [],
       noclick: false,
       consumableList: [],
@@ -1056,6 +1090,7 @@
         proScope: "",
         proSex: "2",
         resultType: "",
+        sfcyyc: "0",
       },
       rules: {
         createTime: [
@@ -1083,8 +1118,9 @@
   watch: {
     deptName(val) {
       this.debounceFilter(val);
-    },
+    },    
     treeId(newVal) {
+      console.log(newVal,8989)
       if (newVal && newVal.length > 0) {
         this.$nextTick(() => {
           const lastId = newVal[newVal.length - 1] || "532";
@@ -1119,9 +1155,9 @@
   created() {
     this.getConsumables();
     this.getDeptList();
-    this.getDeptTree().then(() => {
-      this.precomputePinyin();
-    });
+    // this.getDeptTree().then(() => {
+    //   this.precomputePinyin();
+    // });
   },
   mounted() {
     this.getDeptTree().then(() => {
@@ -1150,7 +1186,6 @@
       traverse(this.deptOptions);
     },
     filterNode(value, data) {
-      console.log(value, data, 2233);
       if (!value) return true;
       const cached = this.pinyinCache.get(data.id);
       if (!cached) return false;
@@ -1410,12 +1445,18 @@
     getDeptTree() {
       return deptTree111().then((response) => {
         this.deptOptions = response.data;
-        this.treeId.push(this.treeDate.id);
+        this.treeId = []
+        if(this.treeDate.id){
+          this.treeId.push( this.treeDate.id)
+        }else{
+          this.treeId.push("532")
+        }
+        
       });
     },
     handleNodeClick(date) {
       this.treeDate = date;
-      console.log(this.treeDate);
+      this.xiugaiList ={}
       this.xiugais = date.qf === "0";
       let proId = date.id;
       getInfoByProId(proId).then((response) => {
@@ -1570,8 +1611,10 @@
       }
     },
     handleUpdate1() {
+      this.form={}
       this.form = this.xiugaiList;
       this.form.proStatus = this.form.proStatus.toString();
+      this.form.sfcyyc = this.form.sfcyyc.toString();
       this.proParent = true;
       this.isPriceDisabled = true;
       getlist().then((response) => {
@@ -1597,6 +1640,7 @@
         this.showPrise = this.form.proParentId === "0";
         this.showRentPrise = !this.showPrise;
         this.form.proStatus = this.form.proStatus.toString();
+        this.form.sfcyyc = this.form.sfcyyc.toString();
         this.form.consumablesList = response.data.consumablesList;
         this.form.tjStandardList = response.data.tjStandardList;
         if (this.form.tjStandardList) {
@@ -1717,6 +1761,7 @@
           this.precomputePinyin();
         });
       }
+      console.log(this.treeId)
     },
     submit() {
       this.ChangeList.forEach((item) => {

--
Gitblit v1.8.0