diff --git a/src/mycomponents/job/jobFilter.vue b/src/mycomponents/job/jobFilter.vue
index 0a61413a..844ec414 100644
--- a/src/mycomponents/job/jobFilter.vue
+++ b/src/mycomponents/job/jobFilter.vue
@@ -5,7 +5,7 @@
style="background-color: white;width: 100%; height:auto;padding: 20rpx;z-index: 99;position: relative; border-radius: 10rpx;">
-
+
@@ -59,7 +59,8 @@
@click="scanNumberClick">扫描任务编号
-->
-
+
+
@@ -112,6 +113,10 @@ const props = defineProps({
isShowItemCode: {
type: Boolean,
default: false
+ },
+ isShowQurery: {
+ type: Boolean,
+ default: false
}
})
const dataContent = ref({})
@@ -123,6 +128,8 @@ const show = ref(false)
const scanNumber = ref()
const scanAsnNumber = ref()
const itemCode = ref('')//物料代码
+const creationTime = ref('')
+const status = ref('')
// 监视属性
watch(
() => props.checkedToday,
@@ -143,7 +150,9 @@ const getQueryCondition = ()=>{
let params = {
productionLineCode: productionLineCode.value,
fromLocationCode: fromLocationCode.value,
- itemCode: itemCode.value
+ itemCode: itemCode.value,
+ creationTime: creationTime.value,
+ status: status.value
}
return params;
}
@@ -176,20 +185,26 @@ const closeScanPopup = () => {
show.value = false
}
const switchChangeToday = (isOn) => {
- let creationTime = ''
+ let creationTimeCode = ''
if (isOn) {
- creationTime = getTodayDate()
+ creationTimeCode = getTodayDate()
+ }
+ creationTime.value = creationTimeCode;
+ emit('switchChangeToday', isOn, creationTimeCode)
+ if (!props.isShowQurery) {
+ closeScanPopup()
}
- emit('switchChangeToday', isOn, creationTime)
- closeScanPopup()
}
const switchChangeWait = (isOn) => {
- let status = '1,2'
+ let statusCode = '1,2'
if (isOn) {
- status = '1'
+ statusCode = '1'
+ }
+ status.value = statusCode;
+ emit('switchChangeWait', isOn, statusCode)
+ if (!props.isShowQurery) {
+ closeScanPopup()
}
- emit('switchChangeWait', isOn, status)
- closeScanPopup()
}
const scanNumberClick = () => {
scanNumber.value.openScanPopup()
diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue
index 8163a65a..00a2f0fa 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'>