| | |
| | | <el-button size="small" type="primary" @click="handleSubmit" v-if="state==1" |
| | | :loading="submitLoading">提交</el-button> |
| | | <!-- 复核 --> |
| | | <el-button size="small" type="primary" @click="upInsReview(1,'继续试验')" :loading="reviewLoading" |
| | | v-if="state>1&&!isLook">继续试验</el-button> |
| | | <!-- <el-button size="small" type="primary" @click="upInsReview(1,'继续试验')" :loading="reviewLoading" |
| | | v-if="state>1&&!isLook">继续测试下一个样品</el-button> |
| | | <el-button size="small" @click="upInsReview(0,'再次试验')" v-if="state>1&&!isLook" type="danger">再次试验</el-button> |
| | | <el-button size="small" @click="upInsReview(2,'结束试验')" v-if="state>1&&!isLook">结束试验</el-button> |
| | | <el-button size="small" @click="upInsReview(2,'结束试验')" v-if="state>1&&!isLook">此委托单结束</el-button> --> |
| | | <el-button size="small" type="primary" @click="upInsReviewDia=true" v-if="state>1&&!isLook">复核</el-button> |
| | | <el-button size="small" @click="handleBack" v-if="!noBack">返回</el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-button type="primary" @click="addTemplateDia" :loading="templateLoading">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="复核" :visible.sync="upInsReviewDia" width="400px"> |
| | | <el-radio-group v-model="upInsReviewType" style="display: flex;flex-direction: column"> |
| | | <el-radio :label="1" style="margin: 10px 0; ">继续测试下一个样品或其他站点任务</el-radio> |
| | | <el-radio :label="0" style="margin: 10px 0; ">再次检验该样品</el-radio> |
| | | <el-radio :label="2" style="margin: 10px 0; ">此委托单结束</el-radio> |
| | | <p style="font-size: 12px;color:red">慎重:如果还有其他样品在检,点击结束可能会中断,请确保所有样品都检验且复核完成再点击</p> |
| | | </el-radio-group> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="upInsReviewDia = false">取 消</el-button> |
| | | <el-button type="primary" @click="upInsReview" :loading="reviewLoading">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | lookFileVisible:false,//预览文件 |
| | | experimentDia:false, |
| | | experimentDia0:false, |
| | | upInsReviewDia:false, |
| | | upInsReviewType:1, |
| | | experimentInfo:{ |
| | | note:'', |
| | | term:'' |
| | |
| | | }) |
| | | }, |
| | | // 复核 |
| | | upInsReview(e,type) { |
| | | this.$confirm(type=='结束试验'?'确认结束试验?确定后此委托单停止试验,并且无法再次检验!':`是否${type}?`, "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | if (e == 1||e==2) { |
| | | upInsReview() { |
| | | if (this.upInsReviewType == 1||this.upInsReviewType==2) { |
| | | // 继续试验 |
| | | this.reviewLoading = true; |
| | | this.$axios.post(this.$api.insOrderPlan.verifyPlan, { |
| | | sampleId: this.orderId, |
| | | type: e, |
| | | type: this.upInsReviewType, |
| | | laboratory: this.sonLaboratory, |
| | | tell: null |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success("操作成功") |
| | | this.upInsReviewDia = false; |
| | | this.$emit('goback') |
| | | } |
| | | this.reviewLoading = false; |
| | |
| | | // 再次试验 |
| | | this.reviewDia = true; |
| | | } |
| | | }) |
| | | }, |
| | | handleReviewDia() { |
| | | if (this.noReason) { |
| | |
| | | } |
| | | if(!this.otherForm.humidity){ |
| | | this.$message.error('请输入湿度') |
| | | return |
| | | } |
| | | if(this.sonLaboratory === '电路试验'&&!this.$refs.CircuitParameters.saveAll()){ |
| | | return |
| | | } |
| | | this.experimentDia = true |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$emit('goback') |
| | | if(this.$refs.CircuitParameters.saveAll()){ |
| | | this.$emit('goback') |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$emit('goback') |