diff --git a/lms/nladmin-ui/src/views/wms/st/inAndOutReturn/index.vue b/lms/nladmin-ui/src/views/wms/st/inAndOutReturn/index.vue index ce0a11ed0..9b7aca0ec 100644 --- a/lms/nladmin-ui/src/views/wms/st/inAndOutReturn/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/inAndOutReturn/index.vue @@ -237,7 +237,7 @@ @selection-change="crud.selectionChangeHandler" > - + @@ -247,7 +247,7 @@ - + @@ -300,7 +300,8 @@ export default { reset: true, download: false }, - query: { io_type: '0', bill_status: '99' } + query: { io_type: '0', bill_status: '99' }, + queryOnPresenterCreated: false }) }, mixins: [presenter(), header(), crud()], @@ -328,13 +329,20 @@ export default { crudUserStor.getUserStor().then(res => { this.storlist = res }) - debugger - this.billtypelist = this.dict.ST_INV_IN_TYPE + // debugger + this.billtypelist = this.dict.ST_INV_OUT_TYPE + this.initQuery() }, methods: { - [CRUD.HOOK.beforeRefresh]() { - return true + /* 搜索框出入类型 默认出库*/ + initQuery() { + this.query.io_type = '1' + this.query.is_upload = '0' + this.crud.toQuery() }, + // [CRUD.HOOK.beforeRefresh]() { + // return true + // }, querytable() { this.onSelectAll() this.crud.toQuery() diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/change/index.vue b/lms/nladmin-ui/src/views/wms/st/inStor/change/index.vue index 071a2a2af..53db2e117 100644 --- a/lms/nladmin-ui/src/views/wms/st/inStor/change/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/inStor/change/index.vue @@ -91,7 +91,7 @@ - - + {{ scope.row.bill_code }} - - - - - - - - - - + + + + + + + + + + @@ -213,7 +213,9 @@ export default { del: false, reset: true, download: false - }}) + }, + queryOnPresenterCreated: false + }) }, mixins: [presenter(), header(), crud()], // 数据字典 @@ -243,8 +245,25 @@ export default { crudUserStor.getUserStor().then(res => { this.storlist = res }) + this.initQuery() }, methods: { + /* 搜索框创建时间默认最近一周*/ + initQuery() { + const end = new Date() + const start = new Date() + const endYear = end.getFullYear() + const endMonth = end.getMonth() + 1 + const endDay = end.getDate() + const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59' + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + const startYear = start.getFullYear() + const startMonth = start.getMonth() + 1 + const startDay = start.getDate() + const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00' + this.$set(this.query, 'createTime', [startDate, endDate]) + this.crud.toQuery() + }, canUd(row) { return row.bill_status !== '10' }, @@ -268,7 +287,7 @@ export default { this.buttonChange(row) } else if (val.length === 1) { this.buttonChange(row) - }else{ + } else { this.handleCurrentChange(null) } }, diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/check/index.vue b/lms/nladmin-ui/src/views/wms/st/inStor/check/index.vue index 3f2dd0e06..6c76007dc 100644 --- a/lms/nladmin-ui/src/views/wms/st/inStor/check/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/inStor/check/index.vue @@ -38,7 +38,7 @@ - + { this.storlist = res }) + this.initQuery() }, methods: { + /* 搜索框创建时间默认最近一周*/ + initQuery() { + const end = new Date() + const start = new Date() + const endYear = end.getFullYear() + const endMonth = end.getMonth() + 1 + const endDay = end.getDate() + const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59' + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + const startYear = start.getFullYear() + const startMonth = start.getMonth() + 1 + const startDay = start.getDate() + const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00' + this.$set(this.query, 'createTime', [startDate, endDate]) + this.crud.toQuery() + }, canUd(row) { return row.status !== '1' }, diff --git a/lms/nladmin-ui/src/views/wms/st/inbill/index.vue b/lms/nladmin-ui/src/views/wms/st/inbill/index.vue index dc4275ecb..012343358 100644 --- a/lms/nladmin-ui/src/views/wms/st/inbill/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/inbill/index.vue @@ -38,7 +38,7 @@ - + { this.storlist = res }) + this.initQuery() }, methods: { + /* 搜索框创建时间默认最近一周*/ + initQuery() { + const end = new Date() + const start = new Date() + const endYear = end.getFullYear() + const endMonth = end.getMonth() + 1 + const endDay = end.getDate() + const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59' + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + const startYear = start.getFullYear() + const startMonth = start.getMonth() + 1 + const startDay = start.getDate() + const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00' + this.$set(this.query, 'createTime', [startDate, endDate]) + this.crud.toQuery() + }, fun(val) { return Number(val).toFixed(3) }, diff --git a/lms/nladmin-ui/src/views/wms/st/incharge/index.vue b/lms/nladmin-ui/src/views/wms/st/incharge/index.vue index 6c4575a24..8c470df73 100644 --- a/lms/nladmin-ui/src/views/wms/st/incharge/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/incharge/index.vue @@ -38,7 +38,7 @@ - + @@ -189,7 +189,8 @@ export default { del: false, download: false, reset: false - } + }, + queryOnPresenterCreated: false }) }, mixins: [presenter(), header(), crud()], @@ -208,11 +209,28 @@ export default { crudUserStor.getUserStor().then(res => { this.storlist = res }) + this.initQuery() }, methods: { - [CRUD.HOOK.beforeRefresh]() { - return true + /* 搜索框创建时间默认最近一周*/ + initQuery() { + const end = new Date() + const start = new Date() + const endYear = end.getFullYear() + const endMonth = end.getMonth() + 1 + const endDay = end.getDate() + const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59' + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + const startYear = start.getFullYear() + const startMonth = start.getMonth() + 1 + const startDay = start.getDate() + const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00' + this.$set(this.query, 'createTime', [startDate, endDate]) + this.crud.toQuery() }, + // [CRUD.HOOK.beforeRefresh]() { + // return false + // }, toView(index, row) { this.mstrow = row this.viewShow = true diff --git a/lms/nladmin-ui/src/views/wms/st/outbill/index.vue b/lms/nladmin-ui/src/views/wms/st/outbill/index.vue index ce20f55c5..ac16a7b30 100644 --- a/lms/nladmin-ui/src/views/wms/st/outbill/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/outbill/index.vue @@ -23,11 +23,12 @@ - + - + + + + + @@ -349,7 +358,9 @@ export default { del: false, reset: true, download: false - }}) + }, + queryOnPresenterCreated: false + }) }, mixins: [presenter(), header(), crud()], // 数据字典 @@ -393,8 +404,25 @@ export default { crudUserStor.getUserStor().then(res => { this.storlist = res }) + this.initQuery() }, methods: { + /* 搜索框创建时间默认最近一周*/ + initQuery() { + const end = new Date() + const start = new Date() + const endYear = end.getFullYear() + const endMonth = end.getMonth() + 1 + const endDay = end.getDate() + const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59' + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + const startYear = start.getFullYear() + const startMonth = start.getMonth() + 1 + const startDay = start.getDate() + const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00' + this.$set(this.query, 'createTime', [startDate, endDate]) + this.crud.toQuery() + }, canUd(row) { return row.bill_status !== '10' }, diff --git a/lms/nladmin-ui/src/views/wms/st/outcharge/index.vue b/lms/nladmin-ui/src/views/wms/st/outcharge/index.vue index a148bdf45..ac6703900 100644 --- a/lms/nladmin-ui/src/views/wms/st/outcharge/index.vue +++ b/lms/nladmin-ui/src/views/wms/st/outcharge/index.vue @@ -38,7 +38,7 @@ - + @@ -191,7 +191,8 @@ export default { del: false, download: false, reset: false - } + }, + queryOnPresenterCreated: false }) }, mixins: [presenter(), header(), crud()], @@ -214,11 +215,28 @@ export default { crudUserStor.getUserStor().then(res => { this.storlist = res }) + this.initQuery() }, methods: { - [CRUD.HOOK.beforeRefresh]() { - return true + /* 搜索框创建时间默认最近一周*/ + initQuery() { + const end = new Date() + const start = new Date() + const endYear = end.getFullYear() + const endMonth = end.getMonth() + 1 + const endDay = end.getDate() + const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59' + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + const startYear = start.getFullYear() + const startMonth = start.getMonth() + 1 + const startDay = start.getDate() + const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00' + this.$set(this.query, 'createTime', [startDate, endDate]) + this.crud.toQuery() }, + // [CRUD.HOOK.beforeRefresh]() { + // return false + // }, toView(index, row) { this.mstrow = row this.viewShow = true