qx
qx
5 天以前 d332a772c0cabc58d47f0afc4ae92fc55115ce3d
src/views/sampling/sampling/index.vue
@@ -300,6 +300,7 @@
        proId: null,
        proName: null,
      },
      tjNumber: null,
      startTime: "",
      tableKey: "",
      pickerOptions: {
@@ -346,7 +347,6 @@
    // this.getNowTime();
    getTxmmccd().then((res) => {
      this.msg = Number(res.msg);
      console.log(res, 444);
    });
    getCompany(this.queryParams).then((response) => {
      this.CompanyList = response.data;
@@ -383,7 +383,6 @@
    searchSelect(val) {
      this.CheckBox = val;
      this.queryParams.dw = this.CheckBox.drugManufacturerId;
      console.log(this.CheckBox, 9999);
    },
    getRemoteData(query) {
      if (query) {
@@ -456,10 +455,19 @@
    jydPrint() {
      const tjnumber = this.piliangList[0].tjNumber;
      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) {
      // 去掉所有空格
@@ -632,13 +640,13 @@
    },
    handleCurrentChangess(val) {
      if (val != null) {
          this.$refs.tb.toggleRowSelection(val, true);
        this.$refs.tb.toggleRowSelection(val, true);
        this.handleSelectionChange(val);
      }
    },
    handleSelectionChange(selection) {
      this.piliangList = selection;
      const selectedCount = selection.length;
      const totalCount = this.samplingList.length;
@@ -646,6 +654,7 @@
      if (selectedCount === 1) {
        this.disableSelections = false;
        const selectedPerson = selection[0];
        this.piliangList = selection;
        const tjNumber = selectedPerson.tjNumber;
        console.log(`选中的体检号: ${tjNumber}`);
        this.fetchData(tjNumber);