From 0b5354d3aeca00a0a203012b5d4b9b46b8cdcbaa Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 14 Dec 2023 14:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=93=81=E8=BF=94=E4=BF=AE=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=AE=8C=E6=88=90=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/bomDismantle/index.ts | 7 +- src/api/wms/productrepairRequestMain/index.ts | 32 ++- .../productrepairRecordMain/index.vue | 111 +++++++- .../productrepairRecordMain.data.ts | 245 +++++++++++++++++- .../productrepairRequestMain/index.vue | 102 +++++++- .../productrepairRequestMain.data.ts | 215 ++++++++++++--- 6 files changed, 677 insertions(+), 35 deletions(-) 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" /> + + + + + + + +