| | |
| | | prop: "type", |
| | | dataType: "tag", |
| | | formatData: (params) => { |
| | | return this.urgencyLevel.find((m) => m.value == params).label; |
| | | if (params == 0) { |
| | | return '普通' |
| | | } else if (params == 1) { |
| | | return '优先' |
| | | } else { |
| | | return '紧急' |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | return this.urgencyLevel.find((m) => m.value == params).type; |
| | | }, |
| | | if (params == 0) { |
| | | return 'success' |
| | | } else if (params == 1) { |
| | | return 'warning' |
| | | } else { |
| | | return 'danger' |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label: "检验类型", |
| | |
| | | }, |
| | | mounted() { |
| | | this.getAuthorizedPerson(); |
| | | this.queryParams.userId = this.userId; |
| | | this.currentTime = getYearAndMonthAndDays(); |
| | | this.getDicts("urgency_level").then((response) => { |
| | | this.urgencyLevel = this.dictToValue(response.data); |
| | |
| | | this.inspectionTaskState = this.dictToValue(response.data); |
| | | }); |
| | | this.refreshTable(); |
| | | this.queryParams.userId = this.userId; |
| | | }, |
| | | activated() { |
| | | this.getAuthorizedPerson(); |
| | | this.queryParams.userId = this.userId; |
| | | this.currentTime = getYearAndMonthAndDays(); |
| | | this.getDicts("urgency_level").then((response) => { |
| | | this.urgencyLevel = this.dictToValue(response.data); |
| | | }); |
| | | this.getDicts("inspection_task_state").then((response) => { |
| | | this.inspectionTaskState = this.dictToValue(response.data); |
| | | }); |
| | | this.refreshTable(); |
| | | }, |
| | | methods: { |
| | |
| | | this.queryParams.typeSource = this.tabIndex; |
| | | this.getList(); |
| | | }, |
| | | // claimFun(row) { |
| | | // if (row) { |
| | | // this.sampleUserForm = { |
| | | // entrustCode: row.entrustCode, |
| | | // insSampleId: row.id, |
| | | // sonLaboratory: row.sonLaboratory, |
| | | // } |
| | | // this.claimVisible = true |
| | | // } |
| | | // }, |
| | | // 查看产业链信息 |
| | | openInfoDialog(row) { |
| | | this.showInfoDialog = true; |
| | |
| | | } |
| | | return ""; |
| | | }, |
| | | onReset() { |
| | | this.searchForm = { |
| | | sampleName: null, |
| | | state: null, |
| | | }; |
| | | this.queryParams.insState = null; |
| | | this.queryParams.sampleName = null; |
| | | this.refreshTable(); |
| | | }, |
| | | onSubmit() { |
| | | this.queryParams.insState = this.searchForm.state; |
| | | this.queryParams.sampleName = this.searchForm.sampleName; |
| | | this.$nextTick(() => { |
| | | this.refreshTable(); |
| | | }); |
| | | }, |
| | | handleTab(m, i) { |
| | | this.tabIndex = i; |
| | | this.queryParams.sonLaboratory = ""; |
| | | this.refreshTable(); |
| | | }, |
| | | // getLaboratoryDicts() { |
| | | // this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | // category: "子实验室" |
| | | // }).then(res => { |
| | | // this.tabList = res.data.map(ele => { |
| | | // return { |
| | | // label: ele.label, |
| | | // value: ele.value |
| | | // } |
| | | // }) |
| | | // if(this.tabList.length>0){ |
| | | // this.componentData.entity.sonLaboratory = this.tabList[0].value |
| | | // } |
| | | // this.refreshTable() |
| | | // }) |
| | | // }, |
| | | selectAllByOne(row) { |
| | | this.isCopper = row.isCopper; |
| | | this.customsInspection = row; |
| | |
| | | break; |
| | | } |
| | | |
| | | }, |
| | | playOrder(num) { |
| | | this.activeFace = num; |
| | | }, |
| | | goback() { |
| | | this.state = 0; |
| | |
| | | console.error(error); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | handleReview(row) { |
| | | this.state = 2; |
| | | this.orderId = row.id; |
| | | }, |
| | | getAuthorizedPerson() { |
| | | selectUserCondition({ type: 1 }).then((res) => { |