| | |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" style="width: 95%;"> |
| | | <div class="search_label"><span class="required-span">* </span>试验室:</div> |
| | | <div class="search_label">试验室:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="distributeData.sonLaboratory" clearable filterable placeholder="请选择" size="small" |
| | | style="width: 100%;"> |
| | | <el-option v-for="(item, i) in sonLaboratoryList" :key="i + 'oooo'" :label="item.label" |
| | | <el-option v-for="(item, i) in newJuLaboratoryList" :key="i + 'oooo'" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | getRevocationInsProductList, |
| | | selectOrderManDay, |
| | | updateInspected, |
| | | updateOrderEntrustCode, updateSampleModel, updateStatus, upInsOrder, upPlanUser2 |
| | | updateOrderEntrustCode, updateSampleModel, updateStatus, upInsOrder |
| | | } from "@/api/business/productOrder"; |
| | | import { selectUserCondition } from "@/api/performance/class"; |
| | | import { downFile, getFileList, selectSampleAndProductByOrderId } from "@/api/business/rawMaterialOrder"; |
| | |
| | | ], |
| | | qrData: [], |
| | | multipleSelection: [], |
| | | sonLaboratoryList: [], |
| | | printDialog: false, |
| | | addInspectionDia: false, |
| | | dialogVisible: false, |
| | |
| | | } |
| | | } |
| | | }, |
| | | dicts: ['sys_sub_lab'], |
| | | computed: { |
| | | ...mapGetters(["nickName"]), |
| | | newJuLaboratoryList() { |
| | | return (this.dict.type.sys_sub_lab || []).filter(item => item.label === '新聚') |
| | | }, |
| | | }, |
| | | mounted() { |
| | | if (this.checkPermi(['get:raw:await'])) { |
| | |
| | | // 下发 |
| | | handleIssued(row) { |
| | | this.issuedDialogVisible = true; |
| | | this.distributeData.sonLaboratory = this.newJuLaboratoryList.length > 0 ? this.newJuLaboratoryList[0].value : '' |
| | | selectOrderManDay({ |
| | | id: row.id |
| | | }).then(res => { |
| | |
| | | this.distributeData.sampleId = row.sampleId |
| | | this.distributeData.appointed = res.data |
| | | this.distributeData.type = row.type |
| | | }) |
| | | upPlanUser2({ |
| | | orderId: row.id, |
| | | }).then(res => { |
| | | this.sonLaboratoryList = [ |
| | | { |
| | | value: '新聚', |
| | | label: '新聚' |
| | | } |
| | | ] |
| | | this.distributeData.sonLaboratory = '新聚' |
| | | // if (res.code === 200 && res.data.length > 0) { |
| | | // this.sonLaboratoryList = []; |
| | | // res.data.forEach(m => { |
| | | // this.sonLaboratoryList.push({ |
| | | // value: m, |
| | | // label: m |
| | | // }) |
| | | // }) |
| | | // } |
| | | }) |
| | | }, |
| | | submitForm2() { |
| | |
| | | // |
| | | if (this.distributeData.userId == null || this.distributeData.userId == '') { |
| | | this.$message.error('指派人员未填写') |
| | | return |
| | | } |
| | | if (this.distributeData.userId && (this.distributeData.sonLaboratory == null || this.distributeData.sonLaboratory == '')) { |
| | | this.$message.error('试验室未填写') |
| | | return |
| | | } |
| | | this.upLoad = true; |
| | |
| | | this.InspectionKey++ |
| | | }, |
| | | changeUser() { |
| | | if (this.sonLaboratoryList.length > 0) { |
| | | this.distributeData.sonLaboratory = this.sonLaboratoryList[0].value |
| | | if (this.newJuLaboratoryList.length > 0) { |
| | | this.distributeData.sonLaboratory = this.newJuLaboratoryList[0].value |
| | | } |
| | | }, |
| | | handleDelete(row) { |