From c6b284474ccf94c34e245d23ef8a0b6a932db2f3 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 19 Apr 2024 11:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E5=BC=B9=E7=AA=97=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InspectionRequestPackage.ts | 27 +++ src/api/qms/inspectionRequest/index.ts | 5 - src/components/ListTable/src/ListTable.vue | 186 ++++++++++++++++-- .../inspection/inspectionRequest/index.vue | 36 +++- .../inspectionRequest/inspectionMain.data.ts | 17 +- 5 files changed, 247 insertions(+), 24 deletions(-) create mode 100644 src/api/qms/inspectionRequest/InspectionRequestPackage.ts diff --git a/src/api/qms/inspectionRequest/InspectionRequestPackage.ts b/src/api/qms/inspectionRequest/InspectionRequestPackage.ts new file mode 100644 index 000000000..34acfaea4 --- /dev/null +++ b/src/api/qms/inspectionRequest/InspectionRequestPackage.ts @@ -0,0 +1,27 @@ +import request from '@/config/axios' +export interface InspectionRequestPackageVO { + number: string + packageCode: string + packageSpecificationCode: string + amount: string + measuringUnit: string +} + +//查询包装列表 +export const getInspectionRequestPackageList = async (id: number) => { + return await request.get({ url: `/qms/inspection-request-package/list?masterId=` + id }) +} +// 新增检验申请 +export const createInspectionRequestPackage = async (data: InspectionRequestPackageVO) => { + return await request.post({ url: `/qms/inspection-request-package/create`, data }) +} + +// 修改检验申请 +export const updateInspectionRequestPackage = async (data: InspectionRequestPackageVO) => { + return await request.put({ url: `/qms/inspection-request-package/update`, data }) +} + +// 删除检验申请 +export const deleteInspectionRequestPackage = async (id: number) => { + return await request.delete({ url: `/qms/inspection-request-package/delete?id=` + id }) +} \ No newline at end of file diff --git a/src/api/qms/inspectionRequest/index.ts b/src/api/qms/inspectionRequest/index.ts index 2c4664a94..5aaf60961 100644 --- a/src/api/qms/inspectionRequest/index.ts +++ b/src/api/qms/inspectionRequest/index.ts @@ -86,8 +86,3 @@ export const refusedInspectRequestMain = async (id) => { export const handleInspectRequestMain = async (id) => { return await request.put({ url: `/qms/inspection-request-main/handle?id=` + id }) } - -//查询检验申请列表 -export const getInspectionRequestPackageList = async (id: number) => { - return await request.get({ url: `/qms/inspection-request-package/list?masterId=` + id }) -} \ No newline at end of file diff --git a/src/components/ListTable/src/ListTable.vue b/src/components/ListTable/src/ListTable.vue index b9985a8d0..c5427483d 100644 --- a/src/components/ListTable/src/ListTable.vue +++ b/src/components/ListTable/src/ListTable.vue @@ -1,40 +1,202 @@ - + + + > + + + + + + diff --git a/src/views/qms/inspection/inspectionRequest/index.vue b/src/views/qms/inspection/inspectionRequest/index.vue index faf4cd7ca..8758854a1 100644 --- a/src/views/qms/inspection/inspectionRequest/index.vue +++ b/src/views/qms/inspection/inspectionRequest/index.vue @@ -1,4 +1,5 @@ + @@ -45,24 +46,31 @@ /> - + + - + +