Browse Source

策略中规则管理、参数设置管理、配置设置管理导出

master
zhang_li 1 year ago
parent
commit
c8d1b5c96b
  1. 5
      src/api/wms/condition/index.ts
  2. 5
      src/api/wms/configuration/index.ts
  3. 5
      src/api/wms/configurationsetting/index.ts
  4. 5
      src/api/wms/paramsetting/index.ts
  5. 5
      src/api/wms/rule/index.ts
  6. 16
      src/views/wms/basicDataManage/labelManage/package/index.vue
  7. 4
      src/views/wms/basicDataManage/strategySetting/condition/index.vue
  8. 4
      src/views/wms/basicDataManage/strategySetting/configuration/index.vue
  9. 4
      src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue
  10. 4
      src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue
  11. 4
      src/views/wms/basicDataManage/strategySetting/rule/index.vue

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

@ -42,8 +42,13 @@ export const deleteCondition = async (id: number) => {
// 导出条件 Excel
export const exportCondition = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/condition/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/condition/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -42,8 +42,13 @@ export const deleteConfiguration = async (id: number) => {
// 导出配置 Excel
export const exportConfiguration = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/configuration/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/configuration/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -44,8 +44,13 @@ export const deleteConfigurationsetting = async (id: number) => {
// 导出配置设置 Excel
export const exportConfigurationsetting = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/configurationsetting/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/configurationsetting/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -45,8 +45,13 @@ export const deleteParamsetting = async (id: number) => {
// 导出参数设置 Excel
export const exportParamsetting = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/paramsetting/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/paramsetting/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -44,8 +44,13 @@ export const deleteRule = async (id: number) => {
// 导出规则 Excel
export const exportRule = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/rule/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/rule/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

16
src/views/wms/basicDataManage/labelManage/package/index.vue

@ -75,11 +75,20 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Package.allSchemas.tableColumns)
/**
* Package2 regularParams = procure采购件标签记录页面
* Package3 regularParams = manufacture 制造件标签记录页面
* Package4 regularParams = utensil 器具标签记录页面
*/
const regularParams = ref(route.name == 'Package2'?'procure':route.name == 'Package3'?'manufacture':route.name == 'Package4'?'utensil':'')
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableParams = ref([
//{
@ -102,7 +111,7 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
const { tableObject, tableMethods } = useTable({
getListApi: PackageApi.getPackagePage //
})
tableObject.params.regularParams = regularParams.value
//
const { getList, setSearchParams } = tableMethods
@ -233,7 +242,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '包装导入模版.xls'
templateTitle: '包装导入模版.xlsx'
})
//
@ -245,7 +254,8 @@ const importSuccess = () => {
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
filters: searchData.filters,
regularParams:regularParams.value
}
getList() //
}

4
src/views/wms/basicDataManage/strategySetting/condition/index.vue

@ -171,8 +171,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ConditionApi.exportCondition(setSearchParams)
download.excel(data, '条件.xls')
const data = await ConditionApi.exportCondition(tableObject.params)
download.excel(data, '条件.xlsx')
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/basicDataManage/strategySetting/configuration/index.vue

@ -171,8 +171,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ConfigurationApi.exportConfiguration(setSearchParams)
download.excel(data, '配置.xls')
const data = await ConfigurationApi.exportConfiguration(tableObject.params)
download.excel(data, '配置.xlsx')
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue

@ -201,8 +201,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ConfigurationsettingApi.exportConfigurationsetting(setSearchParams)
download.excel(data, '配置设置.xls')
const data = await ConfigurationsettingApi.exportConfigurationsetting(tableObject.params)
download.excel(data, '配置设置.xlsx')
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue

@ -172,8 +172,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ParamsettingApi.exportParamsetting(setSearchParams)
download.excel(data, '参数设置.xls')
const data = await ParamsettingApi.exportParamsetting(tableObject.params)
download.excel(data, '参数设置.xlsx')
} catch {
} finally {
exportLoading.value = false

4
src/views/wms/basicDataManage/strategySetting/rule/index.vue

@ -200,8 +200,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await RuleApi.exportRule(setSearchParams)
download.excel(data, '规则.xls')
const data = await RuleApi.exportRule(tableObject.params)
download.excel(data, '规则.xlsx')
} catch {
} finally {
exportLoading.value = false

Loading…
Cancel
Save