diff --git a/src/api/wms/rule/index.ts b/src/api/wms/rule/index.ts index 52b279fa7..a6fe74970 100644 --- a/src/api/wms/rule/index.ts +++ b/src/api/wms/rule/index.ts @@ -55,4 +55,4 @@ export const exportRule = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/rule/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue index 571814a5b..52309d68a 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue @@ -48,13 +48,14 @@ + + + @@ -67,6 +68,7 @@ import AddForm from './AddForm.vue' import download from '@/utils/download' import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' +import * as CustomerApi from "@/api/wms/customer"; const { loadStart, loadDone } = usePageLoading() defineOptions({ name: 'SupplieDeliveryStrategy' }) const queryFormRef = ref() // 搜索的表单 @@ -179,7 +181,7 @@ const handleImport = () => { // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultAddBtn(null), // 新增 - // defaultButtons.defaultImportBtn({ hasPermi: 'wms:supplierdeliver-request-main:import' }), // 导入 + defaultButtons.defaultImportBtn(null), // 导入 // defaultButtons.defaultExportBtn({ hasPermi: 'wms:supplierdeliver-request-main:export' }), // 导出 ] @@ -213,8 +215,9 @@ const buttonTableClick = (val, row) => { /** 初始化 **/ -onMounted(() => { +onMounted( async() => { getList() + importTemplateData.templateUrl = await RuleApi.importTemplate() })