|
|
@ -90,6 +90,7 @@ import * as InventorymoveRequestDetailApi from '@/api/wms/inventorymoveRequestDe |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
// 库存转移申请 |
|
|
|
defineOptions({ name: 'InventorymoveRequestMain' }) |
|
|
@ -615,6 +616,13 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
if(type=='create'){ |
|
|
|
InventorymoveRequestMain.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == 'dueTime') { |
|
|
|
item.value = dayjs().add(1, 'hour') |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
|