|
|
@ -90,6 +90,7 @@ import * as InventorymoveRequestDetailApi from '@/api/wms/inventorymoveRequestDe |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
import {importTemplateHoldOk} from "@/api/wms/inventorymoveRequestMain"; |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 库存转移申请 |
|
|
|
defineOptions({ name: 'InventorymoveRequestMain' }) |
|
|
@ -818,9 +819,16 @@ const searchList = (model)=>{ |
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|
//库存移动 |
|
|
|
if(routeName.value == "InventorymoveRequestMain"){ |
|
|
|
importTemplateData.templateUrl = await InventorymoveRequestMainApi.importTemplate() |
|
|
|
}else { |
|
|
|
} |
|
|
|
//隔离转合格 |
|
|
|
else if(routeName.value == "HoldtookRequestMain"){ |
|
|
|
console.log("sssssssssssssssss"); |
|
|
|
importTemplateData.templateUrl = await InventorymoveRequestMainApi.importTemplateHoldOk() |
|
|
|
} |
|
|
|
else { |
|
|
|
importTemplateData.templateUrl = await InventorymoveRequestMainApi.importTemplateExceptMove() |
|
|
|
} |
|
|
|
}) |
|
|
|