Browse Source

HL-5508 增加单独的菜单显示,隔离退料申请生成的隔离退料记录。原来的生产退料申请对应现有的生产退料记录

hella_online_20240823
wangyufei 3 months ago
parent
commit
6f8642ab83
  1. 21
      src/api/wms/productionreturnJobDetail/index.ts
  2. 21
      src/api/wms/productionreturnJobMain/index.ts
  3. 18
      src/api/wms/productionreturnRecordMain/index.ts
  4. 14
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue
  5. 10
      src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue

21
src/api/wms/productionreturnJobDetail/index.ts

@ -34,6 +34,27 @@ export const getProductionreturnJobDetailPage = async (params) => {
return await request.get({ url: `/wms/productionreturn-job-detail/page`, params })
}
}
// 查询生产退料任务子列表
export const getProductionreturnJobDetailPageStore = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productionreturn-job-detail-store/senior', data })
} else {
return await request.get({ url: `/wms/productionreturn-job-detail-store/page`, params })
}
}
// 查询隔离退料任务子列表
export const getProductionreturnJobDetailPageHold = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productionreturn-job-detail-hold/senior', data })
} else {
return await request.get({ url: `/wms/productionreturn-job-detail-hold/page`, params })
}
}
// 查询生产退料任务子详情
export const getProductionreturnJobDetail = async (id: number) => {

21
src/api/wms/productionreturnJobMain/index.ts

@ -81,6 +81,27 @@ export const exportProductionreturnJobMain = async (params) => {
}
}
// 导出生产退料任务主 Excel -store
export const exportProductionreturnJobMainStore = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreturn-job-detail-store/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productionreturn-job-detail-store/export-excel`, params })
}
}
// 导出隔离退料任务主 Excel -hold
export const exportProductionreturnJobMainHold = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreturn-job-detail-hold/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productionreturn-job-detail-hold/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productionreturn-job-main/get-import-template' })

18
src/api/wms/productionreturnRecordMain/index.ts

@ -67,6 +67,24 @@ export const exportProductionreturnRecordMain = async (params) => {
return await request.download({ url: `/wms/productionreturn-record-main/export-excel`, params })
}
}
// 导出生产退料记录主 Excel -store
export const exportProductionreturnRecordMainStore = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreturn-job-detail-store/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productionreturn-job-detail-store/export-excel`, params })
}
}
// 导出隔离退料记录主 Excel -hold
export const exportProductionreturnRecordMainHold = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreturn-job-detail-hold/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productionreturn-job-detail-hold/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

14
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -117,7 +117,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
const { tableObject, tableMethods } = useTable({
getListApi: ProductionreturnJobDetailApi.getProductionreturnJobDetailPage //
getListApi: 'ProductionreturnJobMain'==routeName.value?ProductionreturnJobDetailApi.getProductionreturnJobDetailPageStore:ProductionreturnJobDetailApi.getProductionreturnJobDetailPageHold //
})
//
@ -274,8 +275,17 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMain(tableObject.params)
if('ProductionreturnJobMain'==routeName.value){
//退
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else{
// 退
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainHold(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
} catch {
} finally {
loadDone()

10
src/views/wms/issueManage/productionreturn/productionreturnRecordMain/index.vue

@ -159,8 +159,16 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductionreturnRecordMainApi.exportProductionreturnRecordMain(tableObject.params)
if('ProductionreturnRecordMain'==routeName.value){
//退
const data = await ProductionreturnRecordMainApi.exportProductionreturnRecordMainStore(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else{
// 退
const data = await ProductionreturnRecordMainApi.exportProductionreturnRecordMainHold(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
} catch {
} finally {
loadDone()

Loading…
Cancel
Save