diff --git a/src/api/wms/productreceiptJobDetail/index.ts b/src/api/wms/productreceiptJobDetail/index.ts index e53490096..33606d2de 100644 --- a/src/api/wms/productreceiptJobDetail/index.ts +++ b/src/api/wms/productreceiptJobDetail/index.ts @@ -53,6 +53,19 @@ export const getProductreceiptJobDetailPageAssemble = async (params) => { } } + +// 查询制品收货任务子列表 +export const getProductreceiptJobDetailPageScarp = async (params) => { + params.type = 'scrap' + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/productreceipt-job-detail/senior', data }) + } else { + return await request.get({ url: `/wms/productreceipt-job-detail/page`, params }) + } +} + // 查询制品收货任务子详情 export const getProductreceiptJobDetail = async (id: number) => { return await request.get({ url: `/wms/productreceipt-job-detail/get?id=` + id }) diff --git a/src/api/wms/productreceiptRecordDetail/index.ts b/src/api/wms/productreceiptRecordDetail/index.ts index db76ba703..35ba579ed 100644 --- a/src/api/wms/productreceiptRecordDetail/index.ts +++ b/src/api/wms/productreceiptRecordDetail/index.ts @@ -58,6 +58,18 @@ export const getProductreceiptRecordDetailPageAssemble = async (params) => { } } +// 查询制品收货记录子列表 +export const getProductreceiptRecordDetailPageScrap = async (params) => { + params.type = 'scrap' + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/productreceipt-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/productreceipt-record-detail/page`, params }) + } +} + // 查询制品收货记录子详情 export const getProductreceiptRecordDetail = async (id: number) => { return await request.get({ url: `/wms/productreceipt-record-detail/get?id=` + id }) diff --git a/src/api/wms/productreceiptRequestDetail/index.ts b/src/api/wms/productreceiptRequestDetail/index.ts index 292cf3600..0b1b75cf3 100644 --- a/src/api/wms/productreceiptRequestDetail/index.ts +++ b/src/api/wms/productreceiptRequestDetail/index.ts @@ -54,6 +54,18 @@ export const getProductreceiptRequestDetailPageAssemble = async (params) => { } } +// 查询报废收货申请子列表 +export const getProductreceiptRequestDetailPageScrap = async (params) => { + params.type = 'scrap' + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/productreceipt-request-detail/senior', data }) + } else { + return await request.get({ url: `/wms/productreceipt-request-detail/page`, params }) + } +} + // 查询制品收货申请子详情 export const getProductreceiptRequestDetail = async (id: number) => { return await request.get({ url: `/wms/productreceipt-request-detail/get?id=` + id }) diff --git a/src/views/system/user/UserAssignRoleForm.vue b/src/views/system/user/UserAssignRoleForm.vue index 57d735374..c05dff542 100644 --- a/src/views/system/user/UserAssignRoleForm.vue +++ b/src/views/system/user/UserAssignRoleForm.vue @@ -1,13 +1,13 @@ @@ -108,7 +108,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } const { tableObject, tableMethods } = useTable({ - getListApi: ProductreceiptJobDetailApi.getProductreceiptJobDetailPage // 报废收货分页接口 + getListApi: ProductreceiptJobDetailApi.getProductreceiptJobDetailPageScarp // 报废收货分页接口 }) // 获得表格的各种操作 diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue index 1d4d7279a..559e5cb50 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue @@ -57,7 +57,7 @@ :allSchemas="ProductreceiptRecordMain.allSchemas" :detailAllSchemas="ProductreceiptRecordDetail.allSchemas" :detailAllSchemasRules="ProductreceiptRecordDetailRules" - :apiPage="ProductreceiptRecordDetailApi.getProductreceiptRecordDetailPage" + :apiPage="ProductreceiptRecordDetailApi.getProductreceiptRecordDetailPageScrap" :buttondataTable="buttondataTable" @tableFormButton="tableFormButton" /> @@ -128,7 +128,7 @@ const updataTableColumns = (val) => { } const { tableObject, tableMethods } = useTable({ - getListApi: ProductreceiptRecordDetailApi.getProductreceiptRecordDetailPage // 报废收货分页接口 + getListApi: ProductreceiptRecordDetailApi.getProductreceiptRecordDetailPageScrap // 报废收货分页接口 }) // 获得表格的各种操作 diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index 233abdeed..984620046 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -66,7 +66,7 @@ :detailAllSchemasRules="ProductreceiptRequestDetailRules" :apiCreate="ProductreceiptRequestDetailApi.createProductreceiptRequestDetail" :apiUpdate="ProductreceiptRequestDetailApi.updateProductreceiptRequestDetail" - :apiPage="ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage" + :apiPage="ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageScrap" :apiDelete="ProductreceiptRequestDetailApi.deleteProductreceiptRequestDetail" @searchTableSuccessDetail="searchTableSuccessDetail" :buttondataTable="buttondataTable" @@ -158,7 +158,7 @@ const isCreateLabel = ref(false) const formLabelRef = ref() const labelType = ref('') // 标签类别 采购还是制造等 const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({ - getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage + getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageScrap }) const { getList:getDetailList } = detatableMethods @@ -203,7 +203,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { } const { tableObject, tableMethods } = useTable({ - getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage // 报废收货分页接口 + getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageScrap // 报废收货分页接口 }) // 获得表格的各种操作 @@ -546,9 +546,11 @@ const submitForm = async (formType, data) => { try { if (formType === 'create') { data.productionLineCode = data.subList[0].productionLineCode; + data.type='scrap' await ProductreceiptRequestMainApi.createProductreceiptRequestMain(data) message.success(t('common.createSuccess')) } else { + data.type='scrap' await ProductreceiptRequestMainApi.updateProductreceiptRequestMain(data) message.success(t('common.updateSuccess')) }