From 073727f5d7d2e62518c8f8c57c3ebc8565aa0ce7 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Fri, 19 Apr 2024 11:18:47 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=98=8E=E7=BB=86?= =?UTF-8?q?=EF=BC=8C=E6=89=93=E5=8D=B0=E5=85=A8=E9=83=A8=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRequestMain/index.vue | 32 ++++++++++++++++++- .../supplierinvoiceRequestMain.data.ts | 2 +- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 5acc8e857..67b6e6bff 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -90,7 +90,7 @@ }]" annexAliasLabel="其他附件" :otherHeadButttonData="[{ - label: '打印', + label: '打印明细', name: 'printing', hide: false, type: 'primary', @@ -98,6 +98,26 @@ color: '', float:'left', hasPermi: '' + },{ + label: '打印全部发货单', + name: 'printing-all', + hide: false, + type: 'primary', + // icon: 'ep:operation', + color: '', + float:'left', + hasPermi: '' + }]" + :buttondataTable = "[{ + label: '打印', + name: 'print', + hide: false, + type: 'primary', + // icon: 'ep:operation', + color: '', + float:'left', + link: true, // 文本展现按钮 + hasPermi: '' }]" :isBasic="false" :allSchemas="SupplierinvoiceRequestMain.allSchemas" @@ -110,6 +130,7 @@ :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :Echo="Echo" @buttonBaseClick="detailButtonBaseClick" + @tableFormButton="tableFormButton" /> @@ -632,9 +653,18 @@ const importSuccess = () => { if(val == 'printing'){ // 单据打印 handleDocumentPrint(clicKRowId.value) + }else if(val === 'printing-all'){ + //打印全部发货单 + } } + const tableFormButton = (val, item) => { + console.log("点击的按钮",val) + if(val == 'print'){ + // 打印 + } + } // 单据打印 const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const documentSrc = ref(BASE_URL + '/jmreport/view/936875675614240768?token=' + getAccessToken()) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index b627663e9..a8d603ad9 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1005,7 +1005,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive Date: Fri, 19 Apr 2024 11:27:43 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=8C=85=E8=A3=85=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=96=B0=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 @@