diff --git a/src/api/wms/bomDismantle/index.ts b/src/api/wms/bomDismantle/index.ts index 0e98ed159..d014b113f 100644 --- a/src/api/wms/bomDismantle/index.ts +++ b/src/api/wms/bomDismantle/index.ts @@ -3,4 +3,9 @@ import request from '@/config/axios' // 查询制品返修申请子列表 export const getBomDismantlePage = async (params) => { return await request.get({ url: `/wms/productrepair-request-main/bomPage`, params }) -} \ No newline at end of file +} + +// 查询制品返修记录子列表 +export const getBomDismantleRecordPage = async (params) => { + return await request.get({ url: `/wms/productrepair-record-main/bomPage`, params }) +} diff --git a/src/api/wms/productrepairRequestMain/index.ts b/src/api/wms/productrepairRequestMain/index.ts index 869860143..032fe2afa 100644 --- a/src/api/wms/productrepairRequestMain/index.ts +++ b/src/api/wms/productrepairRequestMain/index.ts @@ -63,4 +63,34 @@ export const exportProductrepairRequestMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productrepair-request-main/get-import-template' }) -} \ No newline at end of file +} + +// 关闭-制品返修申请 +export const closeProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/close?id=` + id }) +} + +// 重新添加-制品返修申请 +export const reAddProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/reAdd?id=` + id }) +} + +// 提交审批-制品返修申请 +export const submitProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/submit?id=` + id }) +} + +// 审批驳回-制品返修申请 +export const refusedProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/refused?id=` + id }) +} + +// 审批通过-制品返修申请 +export const agreeProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/agree?id=` + id }) +} + +// 处理-制品返修申请 +export const handleProductrepairRequestMain = async (id) => { + return await request.put({ url: `/wms/productrepair-request-main/handle?id=` + id }) +} diff --git a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue index 931ca768a..01f01d1d5 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue @@ -47,6 +47,7 @@ :tableAllSchemas="ProductrepairRecordDetail.allSchemas" :tableFormRules="ProductrepairRecordDetailRules" :isBusiness="true" + @buttonOperationClick="buttonOperationClick" /> @@ -57,15 +58,42 @@ :detailAllSchemas="ProductrepairRecordDetail.allSchemas" :detailAllSchemasRules="ProductrepairRecordDetailRules" :apiPage="ProductrepairRecordDetailApi.getProductrepairRecordDetailPage" + :buttondataTable="buttondataTable" + @tableFormButton="tableFormButton" /> + + + + + + + +