Browse Source

库存转移导入模板多样化

master
chenfang 10 months ago
parent
commit
df8d191840
  1. 5
      src/api/wms/inventorymoveRequestMain/index.ts
  2. 6
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

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

@ -66,6 +66,11 @@ export const importTemplate = () => {
return request.download({ url: '/wms/inventorymove-request-main/get-import-template' }) return request.download({ url: '/wms/inventorymove-request-main/get-import-template' })
} }
// 下载用户导入模板(除库存移动外)
export const importTemplateExceptMove = () => {
return request.download({ url: '/wms/inventorymove-request-main/get-import-template-exceptMove' })
}
// 关闭 // 关闭
export const close = (id) => { export const close = (id) => {
return request.put({ url: '/wms/inventorymove-request-main/close?id=' + id }) return request.put({ url: '/wms/inventorymove-request-main/close?id=' + id })

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

@ -622,6 +622,10 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await InventorymoveRequestMainApi.importTemplate() if(routeName.value == "InventorymoveRequestMain"){
importTemplateData.templateUrl = await InventorymoveRequestMainApi.importTemplate()
}else {
importTemplateData.templateUrl = await InventorymoveRequestMainApi.importTemplateExceptMove()
}
}) })
</script> </script>

Loading…
Cancel
Save