| | |
| | | </div> |
| | | <div class="search_input" style="width: 100%"> |
| | | <el-select v-model="verifyUser" clearable filterable placeholder="请选择" size="small" style="width: 100%"> |
| | | <el-option v-for="(item, i) in personList" :key="i" :label="item.label" :value="item.value"> |
| | | <el-option v-for="(item, i) in reviewerOptions" :key="i" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | state: null, |
| | | inspectorList: null, |
| | | typeSource: null, |
| | | taskSource: null, |
| | | sagData: [], |
| | | sagForm: { |
| | | sampleCode: null, |
| | |
| | | // 用于上传文件的信息 |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | reviewerOptions() { |
| | | return this.taskSource === 'QUALITY_MONITOR' |
| | | ? this.personList.filter(item => Number(item.value) !== Number(this.userId)) |
| | | : this.personList; |
| | | }, |
| | | action() { |
| | | return this.javaApi + "/insOrderPlan/uploadFile"; |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | syncRouteContext() { |
| | | const { sonLaboratory, orderId, state, inspectorList, typeSource } = this.$route.query; |
| | | const { sonLaboratory, orderId, state, inspectorList, typeSource, taskSource } = this.$route.query; |
| | | const orderChanged = this.id !== orderId; |
| | | this.sonLaboratory = sonLaboratory; |
| | | this.orderId = orderId; |
| | | this.state = state; |
| | | this.inspectorList = inspectorList; |
| | | this.typeSource = typeSource; |
| | | this.taskSource = taskSource; |
| | | if (orderChanged) { |
| | | if (taskSource === 'QUALITY_MONITOR') this.verifyUser = null; |
| | | this.tableLists = []; |
| | | this.tableList = []; |
| | | this.sampleProduct = []; |
| | |
| | | laboratory: this.sonLaboratory, |
| | | }).then(async (res) => { |
| | | this.insOrder = res.data.insOrder; |
| | | this.taskSource = this.insOrder.taskSource || this.taskSource; |
| | | if(res.data.insOrder.ifsOrderType==='02wg'){ |
| | | //查询零件属性 |
| | | this.getPartProps(res.data.insOrder.ifsInventoryId) |
| | |
| | | } |
| | | }, |
| | | openAddCheck() { |
| | | if (this.taskSource === 'QUALITY_MONITOR') { |
| | | this.upInsReview(1); |
| | | return; |
| | | } |
| | | this.addCheck = true; |
| | | }, |
| | | // 收集模板级检测条件的缺失项(每个模板都要填全) |