| | |
| | | } |
| | | }, |
| | | handleSubmit(){ |
| | | if(this.insOrder.departmentLims=='检测中心'&&this.insOrder.orderType=='C'){ |
| | | if(this.insOrder.orderType=='C'){ |
| | | this.verifyUser = this.insOrder.prepareUserId |
| | | this.submit() |
| | | }else{ |
| | |
| | | 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') |
| | | } |
| | |
| | | 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') |
| | | } |
| | |
| | | }) |
| | | 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 { |