Browse Source

基础物料管理下载模板修改

master
陈薪名 1 year ago
parent
commit
8993e76365
  1. 5
      src/api/wms/bom/index.ts
  2. 5
      src/api/wms/itempackaging/index.ts
  3. 5
      src/api/wms/productionlineitem/index.ts
  4. 5
      src/api/wms/stdcostprice/index.ts
  5. 2
      src/components/ImportForm/src/ImportForm.vue
  6. 6
      src/views/wms/bom/index.vue
  7. 3
      src/views/wms/itembasic/index.vue
  8. 9
      src/views/wms/itempackaging/index.vue
  9. 6
      src/views/wms/productionlineitem/index.vue
  10. 6
      src/views/wms/stdcostprice/index.vue

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

@ -43,3 +43,8 @@ export const deleteBom = async (id: number) => {
export const exportBom = async (params) => { export const exportBom = async (params) => {
return await request.download({ url: `/wms/bom/export-excel`, params }) return await request.download({ url: `/wms/bom/export-excel`, params })
} }
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/bom/get-import-template' })
}

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

@ -48,3 +48,8 @@ export const deleteItempackaging = async (id: number) => {
export const exportItempackaging = async (params) => { export const exportItempackaging = async (params) => {
return await request.download({ url: `/wms/itempackaging/export-excel`, params }) return await request.download({ url: `/wms/itempackaging/export-excel`, params })
} }
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/itempackaging/get-import-template' })
}

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

@ -39,3 +39,8 @@ export const deleteProductionlineitem = async (id: number) => {
export const exportProductionlineitem = async (params) => { export const exportProductionlineitem = async (params) => {
return await request.download({ url: `/wms/productionlineitem/export-excel`, params }) return await request.download({ url: `/wms/productionlineitem/export-excel`, params })
} }
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productionlineitem/get-import-template' })
}

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

@ -40,3 +40,8 @@ export const deleteStdcostprice = async (id: number) => {
export const exportStdcostprice = async (params) => { export const exportStdcostprice = async (params) => {
return await request.download({ url: `/wms/stdcostprice/export-excel`, params }) return await request.download({ url: `/wms/stdcostprice/export-excel`, params })
} }
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/stdcostprice/get-import-template' })
}

2
src/components/ImportForm/src/ImportForm.vue

@ -131,6 +131,8 @@ const updatePart = ref(props.updatePart)//是否部门保存
const importUrl = const importUrl =
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url
console.log(135, importUrl)
/** 打开弹窗 */ /** 打开弹窗 */
const open = () => { const open = () => {
dialogVisible.value = true dialogVisible.value = true

6
src/views/wms/bom/index.vue

@ -98,6 +98,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:bom:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:bom:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:bom:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:bom:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:bom:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:bom:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
// name: 'zdy', // name: 'zdy',
@ -217,7 +220,8 @@ const importSuccess = () => {
} }
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await BomApi.importTemplate()
}) })
</script> </script>

3
src/views/wms/itembasic/index.vue

@ -66,6 +66,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), // defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), // defaultButtons.defaultExportBtn(null), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
// name: 'zdy', // name: 'zdy',

9
src/views/wms/itempackaging/index.vue

@ -5,7 +5,7 @@
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" /> <TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :tableColumns="Itempackaging.allSchemas.tableColumns"/>
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
@ -88,6 +88,8 @@ const HeadButttondata = [
defaultButtons.defaultImportBtn({hasPermi:'wms:itempackaging:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:itempackaging:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:itempackaging:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:itempackaging:export'}), //
// defaultButtons.defaultFilterBtn(), // // defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
// name: 'zdy', // name: 'zdy',
@ -109,8 +111,6 @@ const buttonBaseClick = (val, item) => {
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
getList() getList()
} else if (val == 'set') { //
getList()
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
@ -199,7 +199,8 @@ const importSuccess = () => {
} }
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await ItempackagingApi.importTemplate()
}) })
</script> </script>

6
src/views/wms/productionlineitem/index.vue

@ -99,6 +99,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:productionlineitem:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:productionlineitem:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:productionlineitem:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:productionlineitem:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:productionlineitem:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:productionlineitem:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
// name: 'zdy', // name: 'zdy',
@ -207,7 +210,8 @@ const importSuccess = () => {
} }
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await ProductionlineitemApi.importTemplate()
}) })
</script> </script>

6
src/views/wms/stdcostprice/index.vue

@ -93,6 +93,9 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:stdcostprice:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:stdcostprice:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:stdcostprice:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:stdcostprice:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:stdcostprice:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:stdcostprice:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
// name: 'zdy', // name: 'zdy',
@ -201,7 +204,8 @@ const importSuccess = () => {
} }
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await StdcostpriceApi.importTemplate()
}) })
</script> </script>

Loading…
Cancel
Save