qx
qx
3 天以前 287ebd61bb900d52fa968fc7eaf525728cc848fb
src/views/sampling/sampling/index.vue
@@ -300,6 +300,7 @@
        proId: null,
        proName: null,
      },
      tjNumber: null,
      startTime: "",
      tableKey: "",
      pickerOptions: {
@@ -456,10 +457,19 @@
    jydPrint() {
      if (this.piliangList.length != 0) {
      const tjnumber = this.piliangList[0].tjNumber;
      const viewNum = "1086792376946569216";
      const params = { viewNum, tjnumber };
      this.$tab.openPage("检验科导检单", "/report/clinical", params);
      this.$refs.tb.toggleRowSelection(this.piliangList[0], false);
      this.piliangList = []
      } else {
        this.$message.info('请重新选择要打印的数据');
        this.$refs.tb.toggleRowSelection(this.piliangList[0], false);
          this.piliangList = []
      }
    },
    getTruncatedName(proName) {
      // 去掉所有空格
@@ -638,7 +648,7 @@
    },
    handleSelectionChange(selection) {
      this.piliangList = selection;
      const selectedCount = selection.length;
      const totalCount = this.samplingList.length;
@@ -646,6 +656,7 @@
      if (selectedCount === 1) {
        this.disableSelections = false;
        const selectedPerson = selection[0];
        this.piliangList = selection;
        const tjNumber = selectedPerson.tjNumber;
        console.log(`选中的体检号: ${tjNumber}`);
        this.fetchData(tjNumber);