diff --git a/src/api/wms/productionreturnRequestDetail/index.ts b/src/api/wms/productionreturnRequestDetail/index.ts index 66dd5921d..0b7bdd7c6 100644 --- a/src/api/wms/productionreturnRequestDetail/index.ts +++ b/src/api/wms/productionreturnRequestDetail/index.ts @@ -64,4 +64,9 @@ export const exportProductionreturnRequestDetail = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productionreturn-request-detail/get-import-template' }) +} + +// 创建包装信息后更新子表数据packingNumber +export const updateDetailPackingNumber = async (id: number, number) => { + return await request.put({ url: '/wms/productionreturn-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number }) } \ No newline at end of file diff --git a/src/api/wms/productreceiptJobMain/index.ts b/src/api/wms/productreceiptJobMain/index.ts index cff1dd556..b22dae6b4 100644 --- a/src/api/wms/productreceiptJobMain/index.ts +++ b/src/api/wms/productreceiptJobMain/index.ts @@ -75,10 +75,35 @@ export const deleteProductreceiptJobMain = async (id: number) => { // 导出制品收货任务主 Excel export const exportProductreceiptJobMain = async (params) => { - return await request.download({ url: `/wms/productreceipt-job-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/productreceipt-job-main/export-excel`, params }) + } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productreceipt-job-main/get-import-template' }) +} + +// 承接发料任务 +export const acceptProductreceiptMain = async (id) => { + return await request.put({ url: `/wms/productreceipt-job-main/accept?id=` + id }) +} + +// 放弃发料任务 +export const abandonProductreceiptMain = async (id) => { + return await request.put({ url: `/wms/productreceipt-job-main/abandon?id=` + id }) +} + +// 关闭发料任务 +export const closeProductreceiptMain = async (id) => { + return await request.put({ url: `/wms/productreceipt-job-main/close?id=` + id }) +} + +// 执行发料任务 +export const executeProductreceiptMain = async (data) => { + return await request.put({ url: `/wms/productreceipt-job-main/execute`, data}) } \ No newline at end of file diff --git a/src/api/wms/productreceiptRequestDetail/index.ts b/src/api/wms/productreceiptRequestDetail/index.ts index 2a0430801..6f11ce799 100644 --- a/src/api/wms/productreceiptRequestDetail/index.ts +++ b/src/api/wms/productreceiptRequestDetail/index.ts @@ -69,4 +69,9 @@ export const exportProductreceiptRequestDetail = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productreceipt-request-detail/get-import-template' }) -} \ No newline at end of file +} + +// 创建包装信息后更新子表数据packingNumber +export const updateDetailPackingNumber = async (id: number, number) => { + return await request.put({ url: '/wms/productreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number }) +} diff --git a/src/api/wms/productreceiptRequestMain/index.ts b/src/api/wms/productreceiptRequestMain/index.ts index 9a049f627..3934a8155 100644 --- a/src/api/wms/productreceiptRequestMain/index.ts +++ b/src/api/wms/productreceiptRequestMain/index.ts @@ -58,10 +58,45 @@ export const deleteProductreceiptRequestMain = async (id: number) => { // 导出制品收货申请主 Excel export const exportProductreceiptRequestMain = async (params) => { - return await request.download({ url: `/wms/productreceipt-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/productreceipt-request-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/productreceipt-request-main/export-excel`, params }) + } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productreceipt-request-main/get-import-template' }) } + +// 关闭 +export const close = (id) => { + return request.put({ url: '/wms/productreceipt-request-main/close?id=' + id }) +} + +// 重新添加 +export const reAdd = (id) => { + return request.put({ url: '/wms/productreceipt-request-main/reAdd?id=' + id }) +} + +// 提交审批 +export const submit = (id) => { + return request.put({ url: '/wms/productreceipt-request-main/submit?id=' + id }) +} + +// 驳回 +export const refused = (id) => { + return request.put({ url: '/wms/productreceipt-request-main/refused?id=' + id }) +} + +// 审批通过 +export const agree = (id) => { + return request.put({ url: '/wms/productreceipt-request-main/agree?id=' + id }) +} + +// 处理 +export const handle = (id) => { + return request.put({ url: '/wms/productreceipt-request-main/handle?id=' + id }) +} \ No newline at end of file diff --git a/src/api/wms/purchasePlanDetail/index.ts b/src/api/wms/purchasePlanDetail/index.ts index 5daf8c30e..3c1cb2730 100644 --- a/src/api/wms/purchasePlanDetail/index.ts +++ b/src/api/wms/purchasePlanDetail/index.ts @@ -21,6 +21,11 @@ export const getPurchasePlanDetailPage = async (params) => { return await request.get({ url: `/wms/purchase-plan-detail/page`, params }) } +// 查询采购收货记录子列表 +export const getPurchasePlanDetailList = async (params) => { + return await request.get({ url: `/wms/purchase-plan-detail/allList`, params }) +} + // 查询要货计划子详情 export const getPurchasePlanDetail = async (id: number) => { return await request.get({ url: `/wms/purchase-plan-detail/get?id=` + id }) diff --git a/src/api/wms/scrapRequestMain/index.ts b/src/api/wms/scrapRequestMain/index.ts index 0f4ddf2d9..6a6ef1f40 100644 --- a/src/api/wms/scrapRequestMain/index.ts +++ b/src/api/wms/scrapRequestMain/index.ts @@ -65,4 +65,34 @@ export const exportScrapRequestMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/scrap-request-main/get-import-template' }) -} \ No newline at end of file +} + +// 关闭-报废出库申请 +export const closeScrapRequestMain = async (id) => { + return await request.put({ url: `/wms/scrap-request-main/close?id=` + id }) +} + +// 重新添加-报废出库申请 +export const reAddScrapRequestMain = async (id) => { + return await request.put({ url: `/wms/scrap-request-main/reAdd?id=` + id }) +} + +// 提交审批-报废出库申请 +export const submitScrapRequestMain = async (id) => { + return await request.put({ url: `/wms/scrap-request-main/submit?id=` + id }) +} + +// 审批驳回-报废出库申请 +export const refusedScrapRequestMain = async (id) => { + return await request.put({ url: `/wms/scrap-request-main/refused?id=` + id }) +} + +// 审批通过-报废出库申请 +export const agreeScrapRequestMain = async (id) => { + return await request.put({ url: `/wms/scrap-request-main/agree?id=` + id }) +} + +// 处理-报废出库申请 +export const handleScrapRequestMain = async (id) => { + return await request.put({ url: `/wms/scrap-request-main/handle?id=` + id }) +} diff --git a/src/api/wms/supplierdeliverRequestMain/index.ts b/src/api/wms/supplierdeliverRequestMain/index.ts index 7b29c5f5d..82ac6b9c5 100644 --- a/src/api/wms/supplierdeliverRequestMain/index.ts +++ b/src/api/wms/supplierdeliverRequestMain/index.ts @@ -100,3 +100,4 @@ export const exportSupplierdeliverRequestMain = async (params) => { export const importTemplate = () => { return request.download({ url: '/wms/supplierdeliver-request-main/get-import-template' }) } + diff --git a/src/api/wms/unplannedreceiptRequestDetail/index.ts b/src/api/wms/unplannedreceiptRequestDetail/index.ts index 51629781d..c62a7e13f 100644 --- a/src/api/wms/unplannedreceiptRequestDetail/index.ts +++ b/src/api/wms/unplannedreceiptRequestDetail/index.ts @@ -66,4 +66,9 @@ export const exportUnplannedreceiptRequestDetail = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedreceipt-request-detail/get-import-template' }) -} \ No newline at end of file +} + +// 创建包装信息后更新子表数据packingNumber +export const updateDetailPackingNumber = async (id: number, number) => { + return await request.put({ url: '/wms/unplannedreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number }) +} diff --git a/src/api/wms/unplannedreceiptRequestMain/index.ts b/src/api/wms/unplannedreceiptRequestMain/index.ts index 5c2982d11..30b024382 100644 --- a/src/api/wms/unplannedreceiptRequestMain/index.ts +++ b/src/api/wms/unplannedreceiptRequestMain/index.ts @@ -62,9 +62,37 @@ export const exportUnplannedreceiptRequestMain = async (params) => { } } - - // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/unplannedreceipt-request-main/get-import-template' }) -} \ No newline at end of file +} + +// 关闭-计划外入库申请 +export const closeUnplannedreceiptRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/close?id=` + id }) +} + +// 重新添加-计划外入库申请 +export const reAddUnplannedreceiptRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/reAdd?id=` + id }) +} + +// 提交审批-计划外入库申请 +export const submitUnplannedreceiptRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/submit?id=` + id }) +} + +// 审批驳回-计划外入库申请 +export const refusedUnplannedreceiptRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/refused?id=` + id }) +} + +// 审批通过-计划外入库申请 +export const agreeUnplannedreceiptRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/agree?id=` + id }) +} + +// 处理-计划外入库申请 +export const handleUnplannedreceiptRequestMain = async (id) => { + return await request.put({ url: `/wms/unplannedreceipt-request-main/handle?id=` + id }) +} diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index ce5ca2ba3..6513ba26d 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -230,6 +230,14 @@ const props = defineProps({ type: Array, required: false, default: null + }, + // 详情列表扩展操作按钮 + buttondataTable: { + type: Array, + required: false, + default: ()=>{ + return [] + } } }) const isShowDrawer = ref(false) @@ -364,13 +372,14 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: } // 动态显示操作列按钮 - buttondata.value = [ + buttondata.value = [...[ defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1']) }), // 编辑 defaultButtons.mainListDeleteBtn({ hide: isShowMainButton(row, ['1']) - }) // 删除 + })], // 删除 + ...props.buttondataTable ] } finally { detailLoading.value = false @@ -459,6 +468,8 @@ const buttonTableClick = async (val, row) => { } else if (val == 'delete') { // 删除 handleDelete(row.id) + } else { + emit('tableFormButton',val, row) } } /** 添加/修改操作 */ @@ -497,7 +508,8 @@ const emit = defineEmits([ 'searchTableSuccessDetail', 'changeTabs', 'selectChangeDetail', - 'detailOpenForm' + 'detailOpenForm', + 'tableFormButton' ]) /** 删除按钮操作 */ const handleDelete = async (id: number) => { diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue index b71ee0cb2..15369c6ea 100644 --- a/src/components/ImportForm/src/ImportForm.vue +++ b/src/components/ImportForm/src/ImportForm.vue @@ -1,6 +1,6 @@