| | |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="small" type="primary" @click="sampleVisible=true">样品切换</el-button> |
| | | <el-button size="small" type="primary" @click="taskVisible=true">任务切换</el-button> |
| | | <el-button size="small" type="primary" @click="submit" v-show="state==1" :loading="submitLoading">提交</el-button> |
| | | <!-- 复核 --> |
| | | <el-button size="medium" type="primary" @click="upInsReview(1)" :loading="reviewLoading" |
| | | v-show="state>1">通过</el-button> |
| | |
| | | return { |
| | | sampleVisible: false, |
| | | taskVisible: false, |
| | | submitLoading:false, |
| | | searchForm: { |
| | | sampleName: null, |
| | | state: null |
| | |
| | | laboratory:this.sonLaboratory, |
| | | tell:null |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | if (res.code === 200) { |
| | | this.$message.success("操作成功") |
| | | this.$emit('goback') |
| | | } |
| | |
| | | laboratory:this.sonLaboratory, |
| | | tell:this.noReason |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | if (res.code === 200) { |
| | | this.$message.success("操作成功") |
| | | this.$emit('goback') |
| | | } |
| | |
| | | this.$message.error('未输入不通过原因') |
| | | } |
| | | }, |
| | | submit(){ |
| | | this.submitLoading = true; |
| | | this.$axios.post(this.$api.insOrderPlan.submitPlan, { |
| | | orderId:this.orderId, |
| | | laboratory:this.sonLaboratory, |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success("操作成功") |
| | | this.$emit('goback') |
| | | } |
| | | this.submitLoading = false; |
| | | }).catch(error => { |
| | | console.error(error) |
| | | this.submitLoading = false; |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |