diff --git a/src/mycomponents/job/jobFilter.vue b/src/mycomponents/job/jobFilter.vue index 4e2b6ee8..9b1021d2 100644 --- a/src/mycomponents/job/jobFilter.vue +++ b/src/mycomponents/job/jobFilter.vue @@ -3,9 +3,7 @@ - - - + @@ -59,7 +57,8 @@ @click="scanNumberClick">扫描任务编号 --> - + + @@ -122,6 +121,10 @@ isShowItemCode: { type: Boolean, default: false + }, + isShowQurery: { + type: Boolean, + default: false } }, data() { @@ -131,7 +134,9 @@ checkedWaitModel: false, productionLineCode: '', // 生产线 fromLocationCode: '', // 来源库位 - itemCode: '' //物料代码 + itemCode: '', //物料代码 + creationTime: '', + status: '' } }, watch: { @@ -156,7 +161,9 @@ let params = { productionLineCode: this.productionLineCode, fromLocationCode: this.fromLocationCode, - itemCode: this.itemCode + itemCode: this.itemCode, + creationTime: this.creationTime, + status: this.status } return params; }, @@ -198,17 +205,22 @@ if (isOn) { creationTime = getTodayDate(); } - + this.creationTime = creationTime; this.$emit("switchChangeToday", isOn, creationTime) - this.closeScanPopup() + if (!this.isShowQurery) { + this.closeScanPopup() + } }, switchChangeWait(isOn) { let status = "1,2"; if (isOn) { status = "1" } + this.status = status; this.$emit("switchChangeWait", isOn, status) - this.closeScanPopup() + if (!this.isShowQurery) { + this.closeScanPopup() + } }, scanNumberClick() { diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue index 8e60fbf5..b14e36ae 100644 --- a/src/pages/issue/job/issueJob.vue +++ b/src/pages/issue/job/issueJob.vue @@ -2,10 +2,8 @@ + ref="filter" otherTitle="" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" + :isShowItemCode="true" @onQuery="getListByFilter" :isShowQurery='true'> - + @@ -276,7 +276,7 @@ value: params.fromLocationCode }) } - + if (params.itemCode) { // 生产线 filters.push({