From 1204e3becc14a30bc0c22cda1d49f042986fc61d Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 11 六月 2025 10:53:22 +0800 Subject: [PATCH] qx --- src/views/hosp/diseasetypes/index.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/hosp/diseasetypes/index.vue b/src/views/hosp/diseasetypes/index.vue index 76b499b..3ca4701 100644 --- a/src/views/hosp/diseasetypes/index.vue +++ b/src/views/hosp/diseasetypes/index.vue @@ -78,10 +78,10 @@ style="height: 45px" @submit.native.prevent > - <el-form-item label="椤圭洰鍚嶇О" prop="proName"> + <el-form-item label="椤圭洰鍚嶇О" prop="bz"> <el-input ref="inputName" - v-model="queryParams1.proName" + v-model="queryParams1.bz" placeholder="璇疯緭鍏ラ」鐩悕绉�" clearable @keyup.enter.native="handleSearchFor" @@ -110,7 +110,7 @@ </template> <script> -// import { searchBiaoben, delBiaoben, editBiaoben } from "@/api/hosp/biaoben"; +import { getProByBz, delProByBz, editBiaoben } from "@/api/hosp/diseastyoes"; import { debounce } from 'lodash'; export default { @@ -126,7 +126,7 @@ tjCategory: null, }, queryParams1: { - proName: '', + bz: "", }, form: { price: '', @@ -169,8 +169,8 @@ this.filteredSpecimenData = []; } }, - handleSearchFor() { - const searchText = this.queryParams1.proName?.trim().toLowerCase() || ''; + handleSearchFor() { + const searchText = this.queryParams1.bz?.trim().toLowerCase() || ''; if (searchText) { this.Treedata = this.originalTreedata.filter(item => item.proName.toLowerCase().includes(searchText) @@ -246,9 +246,9 @@ return; } const proIds = this.OnenewpacName.map(item => item.proId); - const bblx = this.queryParams.tjCategory; + const bz = this.queryParams.tjCategory; this.loading = true; - editBiaoben({ proIds, bblx }) + editBiaoben({ proIds, bz }) .then(() => { this.$message.success('淇濆瓨鎴愬姛'); this.OnenewpacName = []; @@ -264,7 +264,7 @@ }, handledbelete(row) { this.loading = true; - delBiaoben({ proId: row.proId }) + delProByBz({ proId: row.proId }) .then(() => { this.OnenewpacName = this.OnenewpacName.filter(item => item.proId !== row.proId); this.$message.success('鍒犻櫎鎴愬姛'); @@ -279,7 +279,8 @@ fetchBiaobenData(bblx) { console.log('璋冪敤 searchBiaoben锛堜腑闂磋〃鏍硷級锛屽弬鏁�:', { bblx }); this.loading = true; - searchBiaoben({ bblx }) + let bz = bblx + getProByBz(bz) .then(response => { this.OnenewpacName = response.data || []; this.loading = false; @@ -293,7 +294,8 @@ fetchInitialBiaobenData() { console.log('璋冪敤 searchBiaoben锛堝垵濮嬪姞杞斤紝鍙充晶琛ㄦ牸锛夛紝鍙傛暟: {}'); this.loading = true; - searchBiaoben({}) + let bz = "" + getProByBz(bz) .then(response => { this.originalTreedata = response.data || []; this.Treedata = [...this.originalTreedata]; -- Gitblit v1.8.0