fix:出库下发相同任务号问题
This commit is contained in:
@@ -269,14 +269,16 @@ export default {
|
||||
crudTask.getFinishType().then(data => {
|
||||
this.finishTypeList = data
|
||||
})
|
||||
this.crud.query.createTime = [new Date().daysAgo(7), new Date()]
|
||||
const afterD = new Date(new Date().getTime() + 2 * 8.64E7)
|
||||
this.crud.query.createTime = [new Date().daysAgo(3), afterD]
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.query_flag) {
|
||||
this.crud.query.begin_time = (new Date().daysAgo(7)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
const afterD = new Date(new Date().getTime() + 2 * 8.64E7)
|
||||
this.crud.query.begin_time = (new Date().daysAgo(3)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (afterD).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user