Browse Source

WMS bug:HL-5893 隔离转合格、物料隔离,导入提示导入失败,应弹报错的excel

hella_online_20240911
gaojs 3 months ago
parent
commit
2c77656796
  1. 4
      src/api/wms/inventorymoveRequestMain/index.ts
  2. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

4
src/api/wms/inventorymoveRequestMain/index.ts

@ -130,10 +130,12 @@ export const exportScrapToHoldRequestMain = async (params) => {
// 下载用户导入模板
// 下载用户导入模板(除库存移动外)
export const importTemplate = () => {
return request.download({ url: '/wms/inventorymove-request-main/get-import-template' })
}
export const importTemplateHoldOk = () => {
return request.download({ url: '/wms/inventorymove-request-main/get-import-template-hold-ok' })
}
export const importTemplateExceptMove = () => {
return request.download({ url: '/wms/inventorymove-request-main/get-import-template-exceptMove' })
}

10
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -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()
}
})

Loading…
Cancel
Save