From 2767c4c422c39bb26ee92d5c841b094ce12df4c6 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期四, 19 六月 2025 15:26:49 +0800
Subject: [PATCH] qx

---
 src/views/hosp/project/index.vue |   75 +++++++++++++++++++++++++++++--------
 1 files changed, 59 insertions(+), 16 deletions(-)

diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue
index 2fbb1d4..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,
@@ -1056,6 +1090,7 @@
         proScope: "",
         proSex: "2",
         resultType: "",
+        sfcyyc: "0",
       },
       rules: {
         createTime: [
@@ -1083,7 +1118,7 @@
   watch: {
     deptName(val) {
       this.debounceFilter(val);
-    },
+    },    
     treeId(newVal) {
       console.log(newVal,8989)
       if (newVal && newVal.length > 0) {
@@ -1120,9 +1155,9 @@
   created() {
     this.getConsumables();
     this.getDeptList();
-    this.getDeptTree().then(() => {
-      this.precomputePinyin();
-    });
+    // this.getDeptTree().then(() => {
+    //   this.precomputePinyin();
+    // });
   },
   mounted() {
     this.getDeptTree().then(() => {
@@ -1410,13 +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;
-      this.treeId = []
-      console.log(this.treeId,2222);
+      this.xiugaiList ={}
       this.xiugais = date.qf === "0";
       let proId = date.id;
       getInfoByProId(proId).then((response) => {
@@ -1571,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) => {
@@ -1598,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) {

--
Gitblit v1.8.0