| | |
| | | <el-button @click="handleConnect(scope.row)" type="text" size="small" :disabled="scope.row.userName == null || scope.row.insState == 5 || scope.row.insState == 3||scope.row.insState == 6||(scope.row.userName&&!scope.row.userName.includes(userName))" v-if="connect">交æ¥</el-button> |
| | | <el-button @click="cancelSubmitPlan(scope.row)" type="text" size="small" :disabled="scope.row.userName == null || scope.row.insState != 3 ||(scope.row.userName&&!scope.row.userName.includes(userName))" v-if="inspection">æ¤é</el-button> |
| | | <el-button @click="handleReview(scope.row)" type="text" size="small" :disabled="scope.row.userName == null || scope.row.insState != 3 ||(scope.row.checkName&&!scope.row.checkName.includes(userName))" v-if="review">夿 ¸</el-button> |
| | | <el-button @click="handleReview0(scope.row)" type="text" size="small" :disabled="scope.row.userName == null || (scope.row.insState != 4&&scope.row.insState != 5&&scope.row.insState != 6) ||(scope.row.checkName&&!scope.row.checkName.includes(userName))" v-if="verifyPlan2">çº æ£å¤æ ¸</el-button> |
| | | <el-button @click="claimFun(scope.row)" type="text" size="small" :disabled="scope.row.userName != null || scope.row.checkName!=null" v-if="claim">认é¢</el-button> |
| | | <el-button @click="lookHistory0(scope.row)" type="text" size="small">æ¥çè®°å½</el-button> |
| | | </template> |
| | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="exportVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="confirmExport" :loading="upLoadExport">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="çº æ£å¤æ ¸" :visible.sync="upInsReviewDia" width="600px"> |
| | | <el-radio-group |
| | | v-model="verifyPlanInfo.type" |
| | | 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> |
| | | <p style="margin-top: 16px;margin-bottom: 6px;"><span style="color:red;margin-right: 4px;">*</span>çº æ£åå ï¼</p> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请è¾å
¥" |
| | | v-model="verifyPlanInfo.tell"> |
| | | </el-input> |
| | | <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> |
| | | <input id="ScanCodeInfo" v-model="codeInfo" @keyup.enter="keyup" style="opacity: 0;height: 0px;margin: 0px;padding: 0px;position: absolute;top: 0;"></input> |
| | |
| | | getInsProduct2:false, |
| | | claim:false, |
| | | review:false, |
| | | verifyPlan2:false, |
| | | connect:false, |
| | | inspection:false, |
| | | isLook:false,//æ¯å¦æ¯æ¥çåå²é¡µé¢ |
| | |
| | | ids:[] |
| | | }, |
| | | sampleCodeBtnDisabled:true, |
| | | upInsReviewDia:false, |
| | | verifyPlanInfo:{}, |
| | | reviewLoading:false |
| | | } |
| | | }, |
| | | watch:{ |
| | |
| | | let review = false |
| | | let claim = false |
| | | let jumpTeam = false |
| | | let verifyPlan2 = false |
| | | // let getInsProduct2 = false |
| | | // let getInsOrderUserList = false |
| | | for (var i = 0; i < power.length; i++) { |
| | |
| | | } |
| | | if (power[i].menuMethod == 'verifyPlan') { |
| | | review = true |
| | | } |
| | | if (power[i].menuMethod == 'verifyPlan2') { |
| | | verifyPlan2 = true |
| | | } |
| | | if (power[i].menuMethod == 'claimInsOrderPlan') { |
| | | claim = true |
| | |
| | | // if (!getInsProduct2) { |
| | | // this.componentData.do.splice(5, 1) |
| | | // } |
| | | if (!claim) { |
| | | this.componentData.do.splice(4, 1) |
| | | } |
| | | if (!review) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!connect) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!inspection) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | // if (!claim) { |
| | | // this.componentData.do.splice(4, 1) |
| | | // } |
| | | // if (!review) { |
| | | // this.componentData.do.splice(3, 1) |
| | | // } |
| | | // if (!connect) { |
| | | // this.componentData.do.splice(2, 1) |
| | | // } |
| | | // if (!inspection) { |
| | | // this.componentData.do.splice(1, 1) |
| | | // } |
| | | // this.getInsProduct2 = getInsProduct2 |
| | | this.claim = claim |
| | | this.review = review |
| | | this.verifyPlan2 =verifyPlan2 |
| | | this.connect = connect |
| | | this.inspection = inspection |
| | | this.jumpTeam = jumpTeam |
| | |
| | | this.orderStateId = this.currentHistory.orderStateId |
| | | this.num1 = row.num |
| | | this.historyDialogVisible = false |
| | | }, |
| | | // çº æ£å¤æ ¸ |
| | | upInsReview(){ |
| | | if(this.verifyPlanInfo.type!=0&&this.verifyPlanInfo.type!=1&&this.verifyPlanInfo.type!=2){ |
| | | return this.$message.error("è¯·éæ©å¤æ ¸ç¶æ"); |
| | | } |
| | | if(!this.verifyPlanInfo.tell){ |
| | | return this.$message.error("请è¾å
¥çº æ£å¤æ ¸çåå "); |
| | | } |
| | | this.reviewLoading = true; |
| | | this.$axios |
| | | .post(this.$api.insOrderPlan.verifyPlan2, { |
| | | sampleId: this.verifyPlanInfo.sampleId, |
| | | type: this.verifyPlanInfo.type, |
| | | laboratory: this.componentData.entity.sonLaboratory, |
| | | tell: this.verifyPlanInfo.tell |
| | | }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success("æä½æå"); |
| | | this.upInsReviewDia = false; |
| | | this.refreshTable() |
| | | } |
| | | this.reviewLoading = false; |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | this.reviewLoading = false; |
| | | }); |
| | | }, |
| | | handleReview0(row){ |
| | | this.verifyPlanInfo = row; |
| | | this.upInsReviewDia = true |
| | | } |
| | | } |
| | | } |