licp
2024-08-22 df33895b6a072ce2963dc8b0688ebfd0989eef2c
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -3337,7 +3337,7 @@
        }
      },
      handleSubmit(){
        if(this.insOrder.departmentLims=='检测中心'&&this.insOrder.orderType=='C'){
        if(this.insOrder.orderType=='C'){
          this.verifyUser = this.insOrder.prepareUserId
          this.submit()
        }else{
@@ -3370,8 +3370,9 @@
                laboratory: this.sonLaboratory,
                verifyUser: this.verifyUser,
                entrustCode: this.insOrder.entrustCode
              }).then(res => {
              }).then(async res => {
                if (res.code === 200) {
                  await this.handleCType()
                  this.$message.success("操作成功")
                  this.$emit('goback')
                }
@@ -3402,8 +3403,9 @@
                  orderId: this.orderId,
                  laboratory: this.sonLaboratory,
                  verifyUser: this.verifyUser
                }).then(res => {
                }).then( async res => {
                  if (res.code === 200) {
                    await this.handleCType()
                    this.$message.success("操作成功")
                    this.$emit('goback')
                  }
@@ -3421,6 +3423,20 @@
        })
        return
      },
      async handleCType(){
        if(this.insOrder.departmentLims=='质量部'){
          await this.$axios.post(this.$api.insOrderPlan.verifyPlan, {
            orderId: this.orderId,
            type: 1,
            laboratory: this.sonLaboratory,
            tell: null
          }).then(res => {
            if (res.code === 200) {
            }
          }).catch(error => {
          })
        }
      },
      // 统一在这里保存数据
      saveInsContext() {
        try {