From c1db2f08301d97e2bf04c7236fa981e5ec083dbb Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期二, 15 七月 2025 18:02:09 +0800 Subject: [PATCH] 1 --- src/views/hosp/project/index.vue | 84 +++++++++++++++++++++++++++++------------ 1 files changed, 59 insertions(+), 25 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 8a75a61..a135a21 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -469,10 +469,10 @@ ></el-option> </el-select> </el-form-item> - <el-form-item label="鏍囨湰绫诲瀷" prop="specimenType"> + <el-form-item label="鏍锋湰绫诲瀷" prop="specimenType"> <el-select v-model="form.specimenType" - placeholder="璇烽�夋嫨鏍囨湰绫诲瀷" + placeholder="璇烽�夋嫨鏍锋湰绫诲瀷" style="width: 200px" filterable clearable @@ -623,8 +623,22 @@ /> </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" + <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-item label="鏄惁澶栭��" prop="proDelivery"> + <el-select v-model="form.proDelivery" placeholder="璇烽�夋嫨鏄惁澶栭��" style="width: 200px"> + <el-option v-for="dict in wsTypesy" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> </el-select> </el-form-item> @@ -1006,11 +1020,21 @@ }, dictTypesy: [ { - value:"0", + value: "0", + label: "鏄�", + }, + { + value: "1", + label: "鍚�", + }, + ], + wsTypesy: [ + { + value:"1", label:"鏄�" }, { - value:"1", + value:"0", label:"鍚�" } ], @@ -1118,9 +1142,9 @@ watch: { deptName(val) { this.debounceFilter(val); - }, + }, treeId(newVal) { - console.log(newVal,8989) + console.log(newVal, 8989); if (newVal && newVal.length > 0) { this.$nextTick(() => { const lastId = newVal[newVal.length - 1] || "532"; @@ -1349,7 +1373,7 @@ this.dialogTableVisible = true; if (this.deptOptionstree.length != 0) { this.$nextTick(() => { - this.chargeId.push(this.deptOptionstree[0].id); + // this.chargeId.push(this.deptOptionstree[0].id); }); } @@ -1376,10 +1400,13 @@ } }, getlistSfxm() { + console.log(2222); this.loading = true; this.List = true; listSfxm(this.querycharge).then((response) => { - this.sfxmList = response.rows; + this.sfxmList = response.rows || []; + console.log(response.rows, 111222); + response.rows.forEach((item, index) => { item.newID = (this.querycharge.pageNum - 1) * this.querycharge.pageSize + @@ -1404,18 +1431,26 @@ this.queryParam.id = data.id; this.List = false; this.getListByXmId(); + this.total = 0; }, getListByXmId() { + console.log(this.sfxmList); this.loading = true; + getListByXmId(this.queryParam).then((response) => { - this.sfxmList = response.data.date; - response.data.date.forEach((item, index) => { - item.newID = - (this.queryParam.page - 1) * this.queryParam.pageSize + index + 1; - }); + this.sfxmList = response.data.date || []; + if (response.data.date == null) { + return; + } else { + response.data.date.forEach((item, index) => { + item.newID = + (this.queryParam.page - 1) * this.queryParam.pageSize + index + 1; + }); + } + this.total = response.data.total; - this.loading = false; }); + this.loading = false; }, normalizer(node) { if (node.children && !node.children.length) { @@ -1445,18 +1480,17 @@ getDeptTree() { return deptTree111().then((response) => { this.deptOptions = response.data; - this.treeId = [] - if(this.treeDate.id){ - this.treeId.push( this.treeDate.id) - }else{ - this.treeId.push("532") + this.treeId = []; + if (this.treeDate.id) { + this.treeId.push(this.treeDate.id); + } else { + this.treeId.push("532"); } - }); }, handleNodeClick(date) { this.treeDate = date; - this.xiugaiList ={} + this.xiugaiList = {}; this.xiugais = date.qf === "0"; let proId = date.id; getInfoByProId(proId).then((response) => { @@ -1611,7 +1645,7 @@ } }, handleUpdate1() { - this.form={} + this.form = {}; this.form = this.xiugaiList; this.form.proStatus = this.form.proStatus.toString(); this.form.sfcyyc = this.form.sfcyyc.toString(); @@ -1761,7 +1795,7 @@ this.precomputePinyin(); }); } - console.log(this.treeId) + console.log(this.treeId); }, submit() { this.ChangeList.forEach((item) => { -- Gitblit v1.8.0