From 0d541fcd7dc65b10dc475792bb7646976259c2aa Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 23 四月 2025 11:09:48 +0800 Subject: [PATCH] qx --- src/views/hosp/project/index.vue | 38 ++++++++++++++++++++++++++++++++------ 1 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 2fbb1d4..775a846 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 @@ -605,6 +606,12 @@ style="width: 200px" /> </el-form-item> + <el-form-item label="鏄惁鍙備笌寮傚父" prop="sfcyyc"> + <el-select v-model="form.sfcyyc" placeholder="璇烽�夋嫨鏄惁鍙備笌寮傚父" style="width: 260px"> + <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 style="margin-left: 40px" @@ -980,6 +987,16 @@ children: "dictSfxms", label: "xmmc", }, + dictTypesy: [ + { + value:"0", + label:"鏄�" + }, + { + value:"1", + label:"鍚�" + } + ], xmmc: "", chargeId: [], List: false, @@ -1056,6 +1073,7 @@ proScope: "", proSex: "2", resultType: "", + sfcyyc: "0", }, rules: { createTime: [ @@ -1120,9 +1138,9 @@ created() { this.getConsumables(); this.getDeptList(); - this.getDeptTree().then(() => { - this.precomputePinyin(); - }); + // this.getDeptTree().then(() => { + // this.precomputePinyin(); + // }); }, mounted() { this.getDeptTree().then(() => { @@ -1410,13 +1428,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 +1594,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 +1623,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