33
lkk
2025-01-22 1914f6cd22ec9e880d5b8ffcc393ed1fcb744655
33
1个文件已修改
33 ■■■■■ 已修改文件
src/views/hosp/order/index.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/order/index.vue
@@ -2294,6 +2294,36 @@
      //   return [rowspan, 1];
      // }
    },
     objectspanmethod({ row, column, rowIndex, columnIndex }) {
      let fields = ["propinName"];
      let cellValue = row[column.property];
      if (cellValue && fields.includes(column.property)) {
        let prevRow = this.Datalists[rowIndex - 1];
        let nextRow = this.Datalists[rowIndex + 1];
        if (prevRow && prevRow[column.property] === cellValue) {
          return { rowspan: 0, colspan: 0 };
        } else {
          let countRowspan = 1;
          while (nextRow && nextRow[column.property] === cellValue) {
            nextRow = this.Datalists[++countRowspan + rowIndex];
          }
          if (countRowspan > 1) {
            return { rowspan: countRowspan, colspan: 1 };
          }
        }
      }
      // if (columnIndex == 3) {
      //   let rowspan = 0;
      //   this.DataLists.forEach((element) => {
      //     if (element.propinName === row.propinName) {
      //       rowspan++;
      //     }
      //   });
      //   return [rowspan, 1];
      // }
    },
    filterpackage(value, data) {
      if (!value) return true;
      if (data.zhmc.indexOf(value) !== -1) {
@@ -2811,11 +2841,14 @@
      if (checked === true) {
        // this.$refs.tree.setCheckedKeys([data.proId]);
        let proId = data.proId;
        console.log(data,9898);
        getProSonDxList(proId).then((res) => {
          this.TreedataList = res.data.list;
          this.TreedataList.forEach((item) => {
            // item.disabled = true;
            this.checkedListkey.push(item.proId);
            this.Datalists.push(item);
            this.DataList3.push(item);
            this.spliceData();
            this.DataList3.forEach((item1) => {