From b4fa567591c57b428e6a145c4ef106a092e1869d Mon Sep 17 00:00:00 2001 From: jxj_yjl <1490736767@qq.com> Date: Fri, 28 Apr 2023 18:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E7=AE=A1=E7=90=86-=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=B8=85=E9=99=A4bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inOutboundManagement/inspectionWarehousing.vue | 12 ++++++------ .../inOutboundManagement/materialOutbound.vue | 11 ++++++----- .../entryRegistration.vue | 11 ++++++----- .../turnoverMaterialManagement/exitRegistration.vue | 13 ++++++------- 4 files changed, 24 insertions(+), 23 deletions(-) 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 //条数