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 @@ /> - + + - + +