qx
qx
2025-06-11 1204e3becc14a30bc0c22cda1d49f042986fc61d
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];