diff --git a/klp-ui/src/components/KLPService/SchemeSelect/index.vue b/klp-ui/src/components/KLPService/SchemeSelect/index.vue index 49f37663..7e9bd675 100644 --- a/klp-ui/src/components/KLPService/SchemeSelect/index.vue +++ b/klp-ui/src/components/KLPService/SchemeSelect/index.vue @@ -180,6 +180,14 @@ export default { visible: { type: Boolean, default: false + }, + company: { + type: String, + default: '' + }, + scheme: { + type: String, + default: '' } }, data() { @@ -194,11 +202,16 @@ export default { queryParams: { pageNum: 1, pageSize: 999, - templateName: undefined + templateName: undefined, + templateUnit: undefined }, selectedCoils: [], form: { - taskCode: undefined + taskCode: undefined, + taskType: undefined, + belongCompany: undefined, + enterCoilNos: undefined, + supplierCoilNos: undefined }, schemeAddOpen: false, schemeAddLoading: false, @@ -239,12 +252,16 @@ export default { this.selectedTemplate = null; this.checkItemList = []; this.form.taskCode = undefined; + this.form.belongCompany = undefined; + this.form.taskType = undefined; this.selectedCoils = []; this.selectedEnterCoilNos = []; this.tempEnterCoilNo = ''; this.selectedSupplierCoilNos = []; this.tempSupplierCoilNo = ''; this.enterCoilNoError = false; + this.queryParams.templateName = undefined; + this.queryParams.templateUnit = this.company || undefined; this.getList(); } } @@ -256,6 +273,12 @@ export default { this.templateList = response.rows || []; this.total = response.total || 0; this.loading = false; + if (this.scheme && this.templateList.length > 0) { + const match = this.templateList.find(t => t.templateName === this.scheme); + if (match) { + this.handleSchemeClick(match); + } + } }); }, handleQuery() { diff --git a/klp-ui/src/views/mes/qc/inspection/task.vue b/klp-ui/src/views/mes/qc/inspection/task.vue index 2ef6f6d4..6a45f031 100644 --- a/klp-ui/src/views/mes/qc/inspection/task.vue +++ b/klp-ui/src/views/mes/qc/inspection/task.vue @@ -406,7 +406,7 @@ - +