优化
This commit is contained in:
@@ -151,7 +151,8 @@
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
@@ -238,6 +239,7 @@ import DivDialog from '@/views/wms/statistics/ioStorQuery/DivDialog'
|
||||
import TaskDialog from '@/views/wms/statistics/ioStorQuery/TaskDialog'
|
||||
import crudStorattr from '@/api/wms/basedata/st/storattr'
|
||||
import crudRawAssist from '@/api/wms/st/core/inbill/rawassist'
|
||||
import Date from '@/utils/datetime'
|
||||
|
||||
export default {
|
||||
name: 'IoStorQuery',
|
||||
@@ -269,6 +271,7 @@ export default {
|
||||
dis_flag: true,
|
||||
work_flag: true,
|
||||
openParam: [],
|
||||
query_flag: true,
|
||||
mstrow: {},
|
||||
currentRow: null,
|
||||
checkrows: [],
|
||||
@@ -289,9 +292,15 @@ export default {
|
||||
checkoutbill.getType().then(res => {
|
||||
this.billtypelist = res
|
||||
})
|
||||
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.query_flag) {
|
||||
this.crud.query.begin_time = (new Date().daysAgo(30)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
this.handleCurrentChange(null)
|
||||
},
|
||||
fun(val) {
|
||||
@@ -315,6 +324,19 @@ export default {
|
||||
this.$refs.table.clearSelection()
|
||||
this.handleCurrentChange(null)
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
buttonChange(current) {
|
||||
if (current !== null) {
|
||||
this.currentRow = current
|
||||
|
||||
Reference in New Issue
Block a user