fix:出库下发相同任务号问题

This commit is contained in:
zhangzq
2025-04-25 16:45:34 +08:00
parent 6a3d187f4e
commit 3b60fb6f3a
3 changed files with 11 additions and 6 deletions

View File

@@ -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
}
},