李林
2024-03-19 59ef8ccfa6240c5fa3c823d773aab15930af4d41
src/components/view/b1-inspection-order.vue
@@ -54,7 +54,7 @@
      border-radius: 8px 0 0 8px;
   }
   .tab li:nth-child(4) {
   .tab li:nth-child(5) {
      border-radius: 0 8px 8px 0;
   }
@@ -218,7 +218,7 @@
               entity: {
                  entrustCode: null,
                  sample: null,
                  state: 1,
                  state: 0,
                  orderBy: {
                     field: 'id',
                     order: 'asc'
@@ -260,17 +260,17 @@
                     return row.state == 2 || row.state == 3
                  }
               }, {
                  font: '下发',
                  font: '分配',
                  type: 'text',
                  method: 'handleIssued',
                  disabFun: (row, index) => {
                     return row.state != 1 || row.sendTime != null
                  }
               }],
               linkEvent:{
                 entrustCode:{
                   method:'selectAllByOne'
                 }
               linkEvent: {
                  entrustCode: {
                     method: 'selectAllByOne'
                  }
               },
               tagField: {
                  type: {
@@ -333,12 +333,15 @@
            addPower: true,
            upLoad: false,
            tabList: [{
                  label: '检验处理',
                  label: '待审核',
                  value: 0
               }, {
                  label: '待检验',
                  value: 1
               },
               {
                  label: '待审核',
                  value: 0
                  label: '已检验',
                  value: 4
               },
               {
                  label: '退回',
@@ -350,8 +353,8 @@
               },
            ],
            tabIndex: 0,
            active: 0,//1:下单,2:查看,3:审核
        currentId:null
            active: 0, //1:下单,2:查看,3:审核
            currentId: null
         }
      },
      mounted() {
@@ -415,27 +418,26 @@
         },
         // 详情
         selectAllByOne(row) {
        this.active = 2;
            this.active = 2;
            // console.log(row);
            // //打开弹框
            // this.dialogVisible = true;
            // //row = 点击对应行值
            // //复制给formData
            // this.formData = this.HaveJson(row);
        this.currentId = row.id
            this.currentId = row.id
         },
         // 数据查看
         handleDataLook(row) {
            this.dataDialogVisible = true;
         },
         // 下载报告
         download(row) {
         },
         download(row) {},
         // 审核
         handleVerify(row) {
            // this.verifyDialogVisible = true;
        this.active = 3;
        this.currentId = row.id
            this.active = 3;
            this.currentId = row.id
         },
         // 撤销
         handlEquash(row) {
@@ -444,9 +446,9 @@
         // 下发
         handleIssued(row) {
            this.issuedDialogVisible = true;
            this.$axios.post(this.$api.insOrder.selectOrderManDay,{
            this.$axios.post(this.$api.insOrder.selectOrderManDay, {
               id: row.sampleId
            }).then(res=>{
            }).then(res => {
               this.distributeData.orderId = row.id
               this.distributeData.sampleId = row.sampleId
               this.distributeData.appointed = res.data
@@ -454,7 +456,7 @@
            })
         },
         submitForm2() {
            if(this.distributeData.appointed==null||this.distributeData.appointed==''){
            if (this.distributeData.appointed == null || this.distributeData.appointed == '') {
               this.$message.error('约定时间未填写')
               return
            }