Browse Source

FWHL-282

hella_online_20250328
王宇飞 3 weeks ago
parent
commit
e659f9ada8
  1. 4
      src/api/wms/settlementConfiguration/index.ts
  2. 34
      src/api/wms/settlementReport/index.ts
  3. 9
      src/views/wms/issueManage/onlinesettlement/settlementConfiguration/index.vue

4
src/api/wms/settlementConfiguration/index.ts

@ -30,6 +30,10 @@ export const editSettlementConfiguration = async (id: number) => {
return await request.get({ url: `/wms/settlement-configuration/editView?id=` + id }) return await request.get({ url: `/wms/settlement-configuration/editView?id=` + id })
} }
export const addDefaultSettlementConfiguration = async () => {
return await request.get({ url: `/wms/settlement-configuration/createViewInit`})
}
// 新增上线结算配置 // 新增上线结算配置
export const createSettlementConfiguration = async (data: SettlementConfigurationVO) => { export const createSettlementConfiguration = async (data: SettlementConfigurationVO) => {
return await request.post({ url: `/wms/settlement-configuration/create`, data }) return await request.post({ url: `/wms/settlement-configuration/create`, data })

34
src/api/wms/settlementReport/index.ts

@ -44,37 +44,3 @@ export const submitSettlementReport = async (data) => {
return await request.post({ url: `/wms/onlinesettlement-info/settlementInfoSubmit`, data }) return await request.post({ url: `/wms/onlinesettlement-info/settlementInfoSubmit`, data })
// } // }
} }
// // 查询上线结算配置详情
// export const getSettlementConfiguration = async (id: number) => {
// return await request.get({ url: `/wms/settlement-configuration/get?id=` + id })
// }
// export const editSettlementConfiguration = async (id: number) => {
// return await request.get({ url: `/wms/settlement-configuration/editView?id=` + id })
// }
// // 新增上线结算配置
// export const createSettlementConfiguration = async (data: SettlementConfigurationVO) => {
// return await request.post({ url: `/wms/settlement-configuration/create`, data })
// }
// // 修改上线结算配置
// export const updateSettlementConfiguration = async (data: SettlementConfigurationVO) => {
// return await request.put({ url: `/wms/settlement-configuration/update`, data })
// }
// // 删除上线结算配置
// export const deleteSettlementConfiguration = async (id: number) => {
// return await request.delete({ url: `/wms/settlement-configuration/delete?id=` + id })
// }
// // 导出上线结算配置 Excel
// export const exportSettlementConfiguration = async (params) => {
// return await request.download({ url: `/wms/settlement-configuration/export-excel`, params })
// }
// // 下载用户导入模板
// export const importTemplate = () => {
// return request.download({ url: '/wms/settlement-configuration/get-import-template' })
// }

9
src/views/wms/issueManage/onlinesettlement/settlementConfiguration/index.vue

@ -289,11 +289,18 @@ const HeadButttondata = [
] ]
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = async (val, item) => {
if (val == 'add') { // if (val == 'add') { //
tableDataFrom.value = [] tableDataFrom.value = []
tableDataTo.value = [] tableDataTo.value = []
try {
let res = await SettlementConfigurationApi.addDefaultSettlementConfiguration()
console.log('新增',res)
tableDataFrom.value = res.fromWarehouseCodeList
tableDataTo.value = res.toWarehouseCodeList
} finally {
openForm('create',null) openForm('create',null)
}
} else if (val == 'import') { // } else if (val == 'import') { //
handleImport() handleImport()
} else if (val == 'export') { // } else if (val == 'export') { //

Loading…
Cancel
Save