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 | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index e21b34c..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, @@ -994,7 +1011,7 @@ multiple: true, showSearch: true, total: 0, - treeId: ["532"], + treeId: [], ListId: [], noclick: false, consumableList: [], @@ -1056,6 +1073,7 @@ proScope: "", proSex: "2", resultType: "", + sfcyyc: "0", }, rules: { createTime: [ @@ -1085,6 +1103,7 @@ 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 +1138,9 @@ created() { this.getConsumables(); this.getDeptList(); - this.getDeptTree().then(() => { - this.precomputePinyin(); - }); + // this.getDeptTree().then(() => { + // this.precomputePinyin(); + // }); }, mounted() { this.getDeptTree().then(() => { @@ -1150,7 +1169,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 +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; - console.log(this.treeDate); + this.xiugaiList ={} this.xiugais = date.qf === "0"; let proId = date.id; getInfoByProId(proId).then((response) => { @@ -1570,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) => { @@ -1597,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) { @@ -1717,6 +1744,7 @@ this.precomputePinyin(); }); } + console.log(this.treeId) }, submit() { this.ChangeList.forEach((item) => { -- Gitblit v1.8.0