diff --git a/src/api/wms/mesRawMaterialConsumptionInfo/index.ts b/src/api/wms/mesRawMaterialConsumptionInfo/index.ts index fbfaf7290..dac92362b 100644 --- a/src/api/wms/mesRawMaterialConsumptionInfo/index.ts +++ b/src/api/wms/mesRawMaterialConsumptionInfo/index.ts @@ -44,3 +44,18 @@ export const getMesRawMaterialConsumptionInfoPage = async (params) => { } + +export const exportAssemblyMaterialUsageMes = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/productreceipt-detailb/getAssemblyMaterialUsageMesSeniorExport`, data }) + }else{ + return await request.download({ url: `/wms/productreceipt-detailb/assemblyMaterialUsageMesExport`, params }) + } +} + + + + + + diff --git a/src/api/wms/productputawayRecordDetail/index.ts b/src/api/wms/productputawayRecordDetail/index.ts index 4464c5c7e..5b46db206 100644 --- a/src/api/wms/productputawayRecordDetail/index.ts +++ b/src/api/wms/productputawayRecordDetail/index.ts @@ -54,7 +54,7 @@ export const getProductputawayRecordDetailPage = async (params) => { // 查询制品上架记录子列表 export const getProductputawayRecordDetailPageAssemble = async (params) => { -   params.type = 'assemble' + params.type = 'assemble' if (params.isSearch) { const cmd = { 'column':'type', diff --git a/src/api/wms/productputawayRecordMain/index.ts b/src/api/wms/productputawayRecordMain/index.ts index 897de3153..f411cfb30 100644 --- a/src/api/wms/productputawayRecordMain/index.ts +++ b/src/api/wms/productputawayRecordMain/index.ts @@ -74,8 +74,14 @@ export const deleteProductputawayRecordMain = async (id: number) => { // 导出制品上架记录主 Excel export const exportProductputawayRecordMain = async (params) => { - params.type = 'predict' + params.type = 'assemble' if (params.isSearch) { + const cmd = { + 'column':'type', + 'action':'==', + 'value':'assemble' + } + params.filters.push(cmd) delete params.isSearch const data = {...params} return await request.downloadPost({ url: '/wms/productputaway-record-main/export-excel-senior', data }) diff --git a/src/api/wms/purchasereturnRequestMain/index.ts b/src/api/wms/purchasereturnRequestMain/index.ts index 6ec472016..68cc0f4bd 100644 --- a/src/api/wms/purchasereturnRequestMain/index.ts +++ b/src/api/wms/purchasereturnRequestMain/index.ts @@ -101,6 +101,11 @@ export const importTemplateSpare = () => { return request.download({ url: '/wms/purchasereturn-request-main/get-import-template-spare' }) } +// 下载用户导入模板(新) +export const importTemplateNew = () => { + return request.download({ url: '/wms/purchasereturn-request-main/get-import-template-new' }) +} + // 关闭采购退货申请主 Excel export const closePurchasereturnRequestMain = async (id) => { return await request.put({ url: `/wms/purchasereturn-request-main/close?id=` + id }) @@ -131,6 +136,11 @@ export const handlePurchasereturnRequestMain = async (id) => { return await request.put({ url: `/wms/purchasereturn-request-main/handle?id=` + id }) } +// 处理采购退货申请主(新) +export const handlePurchasereturnRequestMainNew = async (id) => { + return await request.put({ url: `/wms/purchasereturn-request-main/handleNew?id=` + id }) +} + // 生成标签 export const genLabel = async (data) => { return await request.post({ url: `/wms/purchasereturn-request-main/genLabel`, data }) diff --git a/src/api/wms/rawMaterialConsumptionInfo/index.ts b/src/api/wms/rawMaterialConsumptionInfo/index.ts index 38b62d2a9..477158e1f 100644 --- a/src/api/wms/rawMaterialConsumptionInfo/index.ts +++ b/src/api/wms/rawMaterialConsumptionInfo/index.ts @@ -44,3 +44,14 @@ export const getRawMaterialConsumptionInfoPage = async (params) => { } +export const exportAssemblyMaterialUsage = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/backflush-record-detailb/getAssemblyMaterialUsageSeniorExport`, data }) + }else{ + return await request.download({ url: `/wms/backflush-record-detailb/assemblyMaterialUsageExport`, params }) + } +} + + + diff --git a/src/api/wms/supplierinvoiceRecordMain/index.ts b/src/api/wms/supplierinvoiceRecordMain/index.ts index dfdb880ec..207089eb7 100644 --- a/src/api/wms/supplierinvoiceRecordMain/index.ts +++ b/src/api/wms/supplierinvoiceRecordMain/index.ts @@ -53,8 +53,14 @@ export const deleteSupplierinvoiceRecordMain = async (id: number) => { } // 导出供应商发票记录主 Excel -export const exportSupplierinvoiceRecordMain = async (data) => { - return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel`, data }) +export const exportSupplierinvoiceRecordMain = async (params) => { + console.log(params) + if (params.isSearch) { + const data = { ...params } + return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/supplierinvoice-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/unplannedissueRecordDetail/index.ts b/src/api/wms/unplannedissueRecordDetail/index.ts index 9e508c4ae..839ff3bd9 100644 --- a/src/api/wms/unplannedissueRecordDetail/index.ts +++ b/src/api/wms/unplannedissueRecordDetail/index.ts @@ -38,10 +38,15 @@ export const getUnplannedissueRecordDetailPage = async (params) => { 'action':'==', 'value':'1' } - if(!data.filters){ - data.filters = [] + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) } - data.filters.push(dataTypeCondition) return await request.post({ url: '/wms/unplannedissue-record-detail/senior', data }) } else { params.detailDataType='1' @@ -59,7 +64,15 @@ export const getUnplannedissueRecordDetailPageSpare = async (params) => { 'action':'==', 'value':'2' } - data.filters.push(dataTypeCondition) + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } return await request.post({ url: '/wms/unplannedissue-record-detail/senior', data }) } else { params.detailDataType='2' @@ -95,4 +108,4 @@ export const exportUnplannedissueRecordDetail = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedissue-record-detail/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/unplannedissueRecordMain/index.ts b/src/api/wms/unplannedissueRecordMain/index.ts index 772b38813..18feaf0ab 100644 --- a/src/api/wms/unplannedissueRecordMain/index.ts +++ b/src/api/wms/unplannedissueRecordMain/index.ts @@ -24,42 +24,6 @@ export interface UnplannedissueRecordMainVO { available: string } -// 查询计划外出库记录主列表 -export const getUnplannedissueRecordMainPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - const dataTypeCondition = { - 'column':'dataType', - 'action':'==', - 'value':'1' - } - data.filters.push(dataTypeCondition) - return await request.post({ url: '/wms/unplannedissue-record-main/senior', data }) - } else { - params.dataType='1' - return await request.get({ url: `/wms/unplannedissue-record-main/page`, params }) - } -} - -// 查询计划外出库记录主列表 -export const getUnplannedissueRecordMainPageSpare = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - const dataTypeCondition = { - 'column':'dataType', - 'action':'==', - 'value':'2' - } - data.filters.push(dataTypeCondition) - return await request.post({ url: '/wms/unplannedissue-record-main/senior', data }) - } else { - params.dataType='2' - return await request.get({ url: `/wms/unplannedissue-record-main/page`, params }) - } -} - // 查询计划外出库记录主详情 export const getUnplannedissueRecordMain = async (id: number) => { return await request.get({ url: `/wms/unplannedissue-record-main/get?id=` + id }) @@ -94,4 +58,4 @@ export const exportUnplannedissueRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedissue-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/unplannedissueRequestDetail/index.ts b/src/api/wms/unplannedissueRequestDetail/index.ts index 99adb86f7..b8a444f31 100644 --- a/src/api/wms/unplannedissueRequestDetail/index.ts +++ b/src/api/wms/unplannedissueRequestDetail/index.ts @@ -33,10 +33,15 @@ export const getUnplannedissueRequestDetailPage = async (params) => { 'action':'==', 'value':'1' } - if(!data.filters){ - data.filters = []; + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) } - data.filters.push(dataTypeCondition) return await request.post({ url: '/wms/unplannedissue-request-detail/senior', data }) } else { params.detailDataType='1' @@ -44,7 +49,7 @@ export const getUnplannedissueRequestDetailPage = async (params) => { } } -// 查询计划外出库申请子列表 +// 查询备件领用列表 export const getUnplannedissueRequestDetailPageSpare = async (params) => { if (params.isSearch) { delete params.isSearch @@ -54,7 +59,15 @@ export const getUnplannedissueRequestDetailPageSpare = async (params) => { 'action':'==', 'value':'2' } - data.filters.push(dataTypeCondition) + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } return await request.post({ url: '/wms/unplannedissue-request-detail/senior', data }) } else { params.detailDataType='2' @@ -90,4 +103,4 @@ export const exportUnplannedissueRequestDetail = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedissue-request-detail/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/unplannedissueRequestMain/index.ts b/src/api/wms/unplannedissueRequestMain/index.ts index 4796b2cb7..2137666eb 100644 --- a/src/api/wms/unplannedissueRequestMain/index.ts +++ b/src/api/wms/unplannedissueRequestMain/index.ts @@ -32,7 +32,15 @@ export const getUnplannedissueRequestMainPage = async (params) => { 'action':'==', 'value':'1' } - data.filters.push(dataTypeCondition) + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } return await request.post({ url: '/wms/unplannedissue-request-main/senior', data }) } else { params.dataType='1' @@ -70,13 +78,13 @@ export const exportUnplannedissueRequestMain = async (params) => { } } + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedissue-request-main/get-import-template' }) } - // 关闭-计划外出库申请 export const closeUnplannedissueRequestMain = async (id) => { return await request.put({ url: `/wms/unplannedissue-request-main/close?id=` + id }) @@ -114,14 +122,22 @@ export const getUnplannedissueRequestMainPageSpare = async (params) => { delete params.isSearch const data = {...params} const dataTypeCondition = { - 'column':'dataType', + 'column':'detailDataType', 'action':'==', 'value':'2' } - data.filters.push(dataTypeCondition) + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } return await request.post({ url: '/wms/unplannedissue-request-main/senior', data }) } else { - params.dataType='2' + params.detailDataType='2' return await request.get({ url: `/wms/unplannedissue-request-main/page`, params }) } } diff --git a/src/api/wms/unplannedreceiptRecordDetail/index.ts b/src/api/wms/unplannedreceiptRecordDetail/index.ts index 458ebabed..28905fbf0 100644 --- a/src/api/wms/unplannedreceiptRecordDetail/index.ts +++ b/src/api/wms/unplannedreceiptRecordDetail/index.ts @@ -37,8 +37,50 @@ export const getUnplannedreceiptRecordDetailPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} + const dataTypeCondition = { + 'column':'detailDataType', + 'action':'==', + 'value':'1' + } + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } return await request.post({ url: '/wms/unplannedreceipt-record-detail/senior', data }) } else { + params.detailDataType='1' + return await request.get({ url: `/wms/unplannedreceipt-record-detail/page`, params }) + } +} + + +// 查询备件退库记录子列表 +export const getUnplannedreceiptRecordDetailPageSpare = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + const dataTypeCondition = { + 'column':'detailDataType', + 'action':'==', + 'value':'2' + } + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } + return await request.post({ url: '/wms/unplannedreceipt-record-detail/senior', data }) + } else { + params.detailDataType='2' return await request.get({ url: `/wms/unplannedreceipt-record-detail/page`, params }) } } @@ -71,4 +113,4 @@ export const exportUnplannedreceiptRecordDetail = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedreceipt-record-detail/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/unplannedreceiptRequestDetail/index.ts b/src/api/wms/unplannedreceiptRequestDetail/index.ts index 3b63ee625..f9268afab 100644 --- a/src/api/wms/unplannedreceiptRequestDetail/index.ts +++ b/src/api/wms/unplannedreceiptRequestDetail/index.ts @@ -32,8 +32,49 @@ export const getUnplannedreceiptRequestDetailPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} + const dataTypeCondition = { + 'column':'detailDataType', + 'action':'==', + 'value':'1' + } + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } + return await request.post({ url: '/wms/unplannedreceipt-request-detail/senior', data }) + } else { + params.detailDataType='1' + return await request.get({ url: `/wms/unplannedreceipt-request-detail/page`, params }) + } +} + +// 查询维修备件退库列表 +export const getUnplannedreceiptRequestDetailPageSpare = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + const dataTypeCondition = { + 'column':'detailDataType', + 'action':'==', + 'value':'2' + } + const cmdExists = data.filters.some(filter => + filter.column === dataTypeCondition.column && + filter.action === dataTypeCondition.action && + filter.value === dataTypeCondition.value + ); + + if (!cmdExists) { + data.filters.push(dataTypeCondition) + } return await request.post({ url: '/wms/unplannedreceipt-request-detail/senior', data }) } else { + params.detailDataType='2' return await request.get({ url: `/wms/unplannedreceipt-request-detail/page`, params }) } } diff --git a/src/api/wms/unplannedreceiptRequestMain/index.ts b/src/api/wms/unplannedreceiptRequestMain/index.ts index 67966664e..23f034ae1 100644 --- a/src/api/wms/unplannedreceiptRequestMain/index.ts +++ b/src/api/wms/unplannedreceiptRequestMain/index.ts @@ -96,3 +96,7 @@ export const agreeUnplannedreceiptRequestMain = async (id) => { export const handleUnplannedreceiptRequestMain = async (id) => { return await request.put({ url: `/wms/unplannedreceipt-request-main/handle?id=` + id }) } + +export const handleSparepartReturnRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/handleBack?id=` + id }) +} diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue index a95460d5f..c233dd92c 100644 --- a/src/components/Search/src/Search.vue +++ b/src/components/Search/src/Search.vue @@ -342,12 +342,12 @@ defineExpose({setFormValues,search}) // 提供 open 方法,用于打开弹窗