diff --git a/src/api/wms/bom/index.ts b/src/api/wms/bom/index.ts
index ddaa13c93..a5dad29f3 100644
--- a/src/api/wms/bom/index.ts
+++ b/src/api/wms/bom/index.ts
@@ -43,3 +43,8 @@ export const deleteBom = async (id: number) => {
export const exportBom = async (params) => {
return await request.download({ url: `/wms/bom/export-excel`, params })
}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/bom/get-import-template' })
+}
diff --git a/src/api/wms/itempackaging/index.ts b/src/api/wms/itempackaging/index.ts
index c99941b40..e1ee2b872 100644
--- a/src/api/wms/itempackaging/index.ts
+++ b/src/api/wms/itempackaging/index.ts
@@ -48,3 +48,8 @@ export const deleteItempackaging = async (id: number) => {
export const exportItempackaging = async (params) => {
return await request.download({ url: `/wms/itempackaging/export-excel`, params })
}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/itempackaging/get-import-template' })
+}
diff --git a/src/api/wms/productionlineitem/index.ts b/src/api/wms/productionlineitem/index.ts
index a1c47fdef..5c501b03f 100644
--- a/src/api/wms/productionlineitem/index.ts
+++ b/src/api/wms/productionlineitem/index.ts
@@ -39,3 +39,8 @@ export const deleteProductionlineitem = async (id: number) => {
export const exportProductionlineitem = async (params) => {
return await request.download({ url: `/wms/productionlineitem/export-excel`, params })
}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/productionlineitem/get-import-template' })
+}
diff --git a/src/api/wms/stdcostprice/index.ts b/src/api/wms/stdcostprice/index.ts
index 8e74fb1f2..b2721ab6a 100644
--- a/src/api/wms/stdcostprice/index.ts
+++ b/src/api/wms/stdcostprice/index.ts
@@ -40,3 +40,8 @@ export const deleteStdcostprice = async (id: number) => {
export const exportStdcostprice = async (params) => {
return await request.download({ url: `/wms/stdcostprice/export-excel`, params })
}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/stdcostprice/get-import-template' })
+}
diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue
index eb02c0140..dbf6f2f1d 100644
--- a/src/components/ImportForm/src/ImportForm.vue
+++ b/src/components/ImportForm/src/ImportForm.vue
@@ -131,6 +131,8 @@ const updatePart = ref(props.updatePart)//是否部门保存
const importUrl =
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url
+
+console.log(135, importUrl)
/** 打开弹窗 */
const open = () => {
dialogVisible.value = true
diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue
index ae0f50f4e..9360b2bd3 100644
--- a/src/views/wms/bom/index.vue
+++ b/src/views/wms/bom/index.vue
@@ -98,6 +98,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:bom:create'}), // 新增
defaultButtons.defaultImportBtn({hasPermi:'wms:bom:import'}), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:bom:export'}), // 导出
+ // defaultButtons.defaultFilterBtn(), // 筛选
+ defaultButtons.defaultFreshBtn(null), // 刷新
+ defaultButtons.defaultSetBtn(null), // 设置
// {
// label: '自定义扩展按钮',
// name: 'zdy',
@@ -217,7 +220,8 @@ const importSuccess = () => {
}
/** 初始化 **/
-onMounted(() => {
+onMounted(async () => {
getList()
+ importTemplateData.templateUrl = await BomApi.importTemplate()
})
diff --git a/src/views/wms/itembasic/index.vue b/src/views/wms/itembasic/index.vue
index 3b76c245a..239f512c4 100644
--- a/src/views/wms/itembasic/index.vue
+++ b/src/views/wms/itembasic/index.vue
@@ -66,6 +66,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // 新增
defaultButtons.defaultImportBtn(null), // 导入
defaultButtons.defaultExportBtn(null), // 导出
+ // defaultButtons.defaultFilterBtn(), // 筛选
+ defaultButtons.defaultFreshBtn(null), // 刷新
+ defaultButtons.defaultSetBtn(null), // 设置
// {
// label: '自定义扩展按钮',
// name: 'zdy',
diff --git a/src/views/wms/itempackaging/index.vue b/src/views/wms/itempackaging/index.vue
index d1a29910f..5f02cc195 100644
--- a/src/views/wms/itempackaging/index.vue
+++ b/src/views/wms/itempackaging/index.vue
@@ -5,7 +5,7 @@
-
+
@@ -88,6 +88,8 @@ const HeadButttondata = [
defaultButtons.defaultImportBtn({hasPermi:'wms:itempackaging:import'}), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:itempackaging:export'}), // 导出
// defaultButtons.defaultFilterBtn(), // 筛选
+ defaultButtons.defaultFreshBtn(null), // 刷新
+ defaultButtons.defaultSetBtn(null), // 设置
// {
// label: '自定义扩展按钮',
// name: 'zdy',
@@ -109,8 +111,6 @@ const buttonBaseClick = (val, item) => {
handleExport()
} else if (val == 'refresh') { // 刷新
getList()
- } else if (val == 'set') { // 设置
- getList()
} else if (val == 'filtrate') { // 筛选
} else { // 其他按钮
console.log('其他按钮', item)
@@ -199,7 +199,8 @@ const importSuccess = () => {
}
/** 初始化 **/
-onMounted(() => {
+onMounted(async () => {
getList()
+ importTemplateData.templateUrl = await ItempackagingApi.importTemplate()
})
diff --git a/src/views/wms/productionlineitem/index.vue b/src/views/wms/productionlineitem/index.vue
index 91a2345d8..5c06fb0cc 100644
--- a/src/views/wms/productionlineitem/index.vue
+++ b/src/views/wms/productionlineitem/index.vue
@@ -99,6 +99,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:productionlineitem:create'}), // 新增
defaultButtons.defaultImportBtn({hasPermi:'wms:productionlineitem:import'}), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:productionlineitem:export'}), // 导出
+ // defaultButtons.defaultFilterBtn(), // 筛选
+ defaultButtons.defaultFreshBtn(null), // 刷新
+ defaultButtons.defaultSetBtn(null), // 设置
// {
// label: '自定义扩展按钮',
// name: 'zdy',
@@ -207,7 +210,8 @@ const importSuccess = () => {
}
/** 初始化 **/
-onMounted(() => {
+onMounted(async () => {
getList()
+ importTemplateData.templateUrl = await ProductionlineitemApi.importTemplate()
})
diff --git a/src/views/wms/stdcostprice/index.vue b/src/views/wms/stdcostprice/index.vue
index 796898aaf..b91a541c6 100644
--- a/src/views/wms/stdcostprice/index.vue
+++ b/src/views/wms/stdcostprice/index.vue
@@ -93,6 +93,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:stdcostprice:create'}), // 新增
defaultButtons.defaultImportBtn({hasPermi:'wms:stdcostprice:import'}), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:stdcostprice:export'}), // 导出
+ // defaultButtons.defaultFilterBtn(), // 筛选
+ defaultButtons.defaultFreshBtn(null), // 刷新
+ defaultButtons.defaultSetBtn(null), // 设置
// {
// label: '自定义扩展按钮',
// name: 'zdy',
@@ -201,7 +204,8 @@ const importSuccess = () => {
}
/** 初始化 **/
-onMounted(() => {
+onMounted(async () => {
getList()
+ importTemplateData.templateUrl = await StdcostpriceApi.importTemplate()
})