diff --git a/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue b/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue index ce0b64bb..580d4d7b 100644 --- a/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue +++ b/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue @@ -603,7 +603,7 @@ export default { }, data() { return { - timeValue: '', + timeValue: [], isShow: false, deliteShow: false, detailData: {}, @@ -663,10 +663,10 @@ export default { }, methods: { //选择时间时 - getTime(val) { - if (val) { - this.searchForm.startTime = val[0] - this.searchForm.endTime = val[1] + getTime() { + if (this.timeValue) { + this.searchForm.startTime = this.timeValue[0] + this.searchForm.endTime = this.timeValue[1] } else { this.searchForm.startTime = '' this.searchForm.endTime = '' @@ -747,7 +747,6 @@ export default { }, edit(obj) { - console.log('obj=======', obj); this.title = '编辑入库' this.dialogShow = true this.addForm = JSON.parse(JSON.stringify(obj)) @@ -822,6 +821,7 @@ export default { this.getList() }, refresh() { + this.timeValue=[] this.searchForm = {} this.pagInfo.pageNo = 1 //页数 this.pagInfo.pageSize = 10 //条数 diff --git a/src/views/projectFront/inOutboundManagement/materialOutbound.vue b/src/views/projectFront/inOutboundManagement/materialOutbound.vue index cb8f6973..fa11378c 100644 --- a/src/views/projectFront/inOutboundManagement/materialOutbound.vue +++ b/src/views/projectFront/inOutboundManagement/materialOutbound.vue @@ -603,7 +603,7 @@ export default { }, data() { return { - timeValue: '', + timeValue: [], isShow: false, deliteShow: false, detailData: {}, @@ -663,10 +663,10 @@ export default { }, methods: { //选择时间时 - getTime(val) { - if (val) { - this.searchForm.startTime = val[0] - this.searchForm.endTime = val[1] + getTime() { + if (this.timeValue) { + this.searchForm.startTime = this.timeValue[0] + this.searchForm.endTime = this.timeValue[1] } else { this.searchForm.startTime = '' this.searchForm.endTime = '' @@ -820,6 +820,7 @@ export default { this.getList() }, refresh() { + this.timeValue=[] this.searchForm = {} this.pagInfo.pageNo = 1 //页数 this.pagInfo.pageSize = 10 //条数 diff --git a/src/views/projectFront/turnoverMaterialManagement/entryRegistration.vue b/src/views/projectFront/turnoverMaterialManagement/entryRegistration.vue index ffdf7543..63fa8585 100644 --- a/src/views/projectFront/turnoverMaterialManagement/entryRegistration.vue +++ b/src/views/projectFront/turnoverMaterialManagement/entryRegistration.vue @@ -603,7 +603,7 @@ export default { }, data() { return { - timeValue: '', + timeValue: [], isShow: false, deliteShow: false, detailData: {}, @@ -663,10 +663,10 @@ export default { }, methods: { //选择时间时 - getTime(val) { - if (val) { - this.searchForm.startTime = val[0] - this.searchForm.endTime = val[1] + getTime() { + if (this.timeValue) { + this.searchForm.startTime = this.timeValue[0] + this.searchForm.endTime = this.timeValue[1] } else { this.searchForm.startTime = '' this.searchForm.endTime = '' @@ -821,6 +821,7 @@ export default { this.getList() }, refresh() { + this.timeValue=[] this.searchForm = {} this.pagInfo.pageNo = 1 //页数 this.pagInfo.pageSize = 10 //条数 diff --git a/src/views/projectFront/turnoverMaterialManagement/exitRegistration.vue b/src/views/projectFront/turnoverMaterialManagement/exitRegistration.vue index a0365394..5c69f7db 100644 --- a/src/views/projectFront/turnoverMaterialManagement/exitRegistration.vue +++ b/src/views/projectFront/turnoverMaterialManagement/exitRegistration.vue @@ -603,7 +603,7 @@ export default { }, data() { return { - timeValue: '', + timeValue: [], isShow: false, deliteShow: false, detailData: {}, @@ -663,10 +663,10 @@ export default { }, methods: { //选择时间时 - getTime(val) { - if (val) { - this.searchForm.startTime = val[0] - this.searchForm.endTime = val[1] + getTime() { + if (this.timeValue) { + this.searchForm.startTime = this.timeValue[0] + this.searchForm.endTime = this.timeValue[1] } else { this.searchForm.startTime = '' this.searchForm.endTime = '' @@ -745,7 +745,6 @@ export default { this.materialData = [] this.addForm = {} }, - edit(obj) { this.title = '编辑出场登记' this.dialogShow = true @@ -810,7 +809,6 @@ export default { }); }); }, - SizeChange(val) { this.pagInfo.pageSize = val this.getList() @@ -820,6 +818,7 @@ export default { this.getList() }, refresh() { + this.timeValue=[] this.searchForm = {} this.pagInfo.pageNo = 1 //页数 this.pagInfo.pageSize = 10 //条数