gaoluyang
2025-02-25 d67b031476d33a4a2d002ed32bc30dac34fc5493
src/views/business/productOrder/index.vue
@@ -376,7 +376,7 @@
            } else if (params == 3) {
              return '不判定'
            } else {
              return ''
              return null
            }
          },
          formatType: (params) => {
@@ -387,7 +387,7 @@
            } else if (params == 3) {
              return ''
            }  else {
              return ''
              return null
            }
          }
        },
@@ -499,6 +499,16 @@
              },
              showHide: (row) => {
                return this.tabIndex === 4 || this.tabIndex === 5
              }
            },
            {
              name: '原始记录',
              type: 'text',
              clickFun: (row) => {
                this.viewInspectInfo(row);
              },
              showHide: (row) => {
                return this.tabIndex === 2 || this.tabIndex === 3 || this.tabIndex === 6
              }
            },
          ]
@@ -855,14 +865,10 @@
    },
    // 导出记录
    downLoad () {
      rawAllInsOrderExport({...this.entity, responseType: "blob"}).then(res => {
      rawAllInsOrderExport({...this.entity}).then(res => {
        this.$message.success('导出成功')
        const blob = new Blob([res],{ type: 'application/octet-stream' });
        const url = URL.createObjectURL(blob);
        const link = document.createElement('a');
        link.href = url;
        link.download = '委托检测信息导出' + '.xlsx';
        link.click();
        let url = this.javaApi + '/word/' + res.data
        this.$download.saveAs(url, '委托检测信息导出.xlsx');
      }).catch(err => {
        console.log('err---', err);
      })
@@ -974,13 +980,10 @@
          let url = '';
          if(res.data.type==1){
            url = this.javaApi+'/img/'+res.data.fileUrl
            file.downloadIamge(url,row.fileName)
            this.$download.saveAs(url, row.fileName);
          }else{
            url = this.javaApi+'/word/'+res.data.fileUrl
            const link = document.createElement('a');
            link.href = url;
            link.download = row.fileName;
            link.click();
            this.$download.saveAs(url, row.fileName);
          }
        }
      }).catch(error => {
@@ -992,19 +995,8 @@
      let url = row.urlS?row.urlS:row.url;
      if(url){
        url = url.split('.')[0]+'.pdf'
        const link = document.createElement('a');
        link.href = this.javaApi + url;
        link.target = '_blank';
        document.body.appendChild(link);
        link.click();
        this.$download.saveAs(url, this.downLoadInfo.fileName);
      }
    },
    // 审核
    handleVerify(row) {
      // this.verifyDialogVisible = true;
      this.active = 3;
      this.currentId = row.id
      this.examine = 1
    },
    // 撤销
    handlEquash(row) {
@@ -1066,8 +1058,6 @@
    handlEquashCheck(row){
      this.orderId = row.id
      this.revocationInsProductIds = row.revocationInsProductIds
      this.componentDataDelete.showSelect= false
      this.componentDataDelete.select= false
      this.deleteTilte = '撤销审核'
      this.deleteDialogVisible = true;
    },
@@ -1166,7 +1156,7 @@
          }
        })
      }
      let authorizedPerson = this.formData.authorizedPerson.length > 0 ? this.formData.authorizedPerson.join(',') : ''
      let authorizedPerson = this.formData.authorizedPerson && this.formData.authorizedPerson.length > 0 ? this.formData.authorizedPerson.join(',') : ''
      delete this.formData.createTime
      delete this.formData.updateTime
      delete this.formData.createUser
@@ -1175,7 +1165,11 @@
    },
    // 下单
    playOrder(num) {
      this.$router.push({ path: "/productOrder/add", query: {examine: 0,active: num} });
      this.$router.push({ path: "/productOrder/add", query: {examine: 0,active: num, tabIndex: this.tabIndex} });
    },
    // 审核
    handleVerify(row) {
      this.$router.push({ path: "/productOrder/add", query: {examine: 1,active: 3, currentId: row.id} });
    },
    handleTab(m, i) {
      this.tabIndex = i;