spring
2025-03-05 d84ce4c19f67b22cbca8cb14bda37ec0cbb718fd
src/views/business/productOrder/index.vue
@@ -316,6 +316,7 @@
} from "@/api/business/productOrder";
import { selectUserCondition } from "@/api/performance/class";
import { downFile, getFileList, selectSampleAndProductByOrderId } from "@/api/business/rawMaterialOrder";
import {mapGetters} from "vuex";
// import Inspection from "../do/b1-inspect-order-plan/Inspection.vue";
export default {
  components: {
@@ -334,7 +335,7 @@
      tableData: [],
      tableLoading: false,
      column: [
        { label: '委托编号', prop: 'entrustCode' },
        { label: '委托编号', prop: 'entrustCode', width: '160px' },
        { label: '委托单位', prop: 'company' },
        { label: '样品名称', prop: 'sampleName' },
        { label: '样品型号', prop: 'sampleModel' },
@@ -550,7 +551,7 @@
        current: 1
      },
      tableDataLookColumn: [
        { label: '样品编号', prop: 'sampleCode' },
        { label: '样品编号', prop: 'sampleCode', width: '160px' },
        { label: '样品名称', prop: 'sample' },
        { label: '检验项分类', prop: 'inspectionItemClass' },
        { label: '检验项', prop: 'inspectionItem' },
@@ -660,7 +661,7 @@
      componentDataDelete: [],
      tableLoadingDelete: false,
      columnDelete: [
        { label: '样品编号', prop: 'sampleCode' },
        { label: '样品编号', prop: 'sampleCode', width: '160px' },
        { label: '检验项分类', prop: 'inspectionItemClass' },
        { label: '检验项', prop: 'inspectionItem' },
        { label: '检验项子类', prop: 'inspectionItemSubclass' },
@@ -735,6 +736,9 @@
        this.isIndeterminate = true;
      }
    }
  },
  computed: {
    ...mapGetters(["nickName"]),
  },
  mounted() {
    this.refreshTable()
@@ -869,8 +873,8 @@
    // 导出记录
    downLoad() {
      rawAllInsOrderExport({ ...this.entity }).then(res => {
        let url = this.javaApi + '/word/' + res.data
        this.$download.saveAs(url, '委托检测信息导出.xlsx');
        const blob = new Blob([res], { type: 'application/octet-stream' });
        this.$download.saveAs(blob, '委托检测信息导出.xlsx');
      }).catch(err => {
        console.log('err---', err);
      })
@@ -1183,15 +1187,17 @@
      if (row.userName) {
        inspectorList = row.userName.split(',')
      }
      let user = JSON.parse(localStorage.getItem('user'))
      if (user) {
        inspectorList.push(user.name)
      }
      this.inspectorList = inspectorList
      this.sonLaboratory = row.sonLaboratory
      this.state = 3;
      this.typeSource = row.typeSource
      this.orderId = row.id
      inspectorList.push(this.nickName)
      this.$router.push({
        path: "/inspectionTask/inspection",
        query: {
          sonLaboratory: row.sonLaboratory,
          state: 3,
          typeSource: row.typeSource,
          orderId: row.id,
          inspectorList: inspectorList,
        },
      })
    },
    goback() {
      this.state = 0