From ae51e4faa62d5297ff61de6e30c24d04b2ded5f7 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Thu, 10 Oct 2024 10:39:26 +0800 Subject: [PATCH] =?UTF-8?q?YT-170=EF=BC=9A=E5=AE=A2=E6=88=B7=E6=A8=A1?= =?UTF-8?q?=E5=85=B7=E5=88=86=E6=91=8A=E5=AF=B9=E8=B4=A6=E5=8D=95=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=8E=A5=E5=8F=A3=E4=BB=A5=E5=8F=8A=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/customerStatementMain/index.ts | 12 +- .../src/ImportCustomerStatementShareForm.vue | 427 ++++++++++++++++++ 2 files changed, 438 insertions(+), 1 deletion(-) create mode 100644 src/components/ImportForm/src/ImportCustomerStatementShareForm.vue diff --git a/src/api/wms/customerStatementMain/index.ts b/src/api/wms/customerStatementMain/index.ts index 69f1714f6..1b7d899cb 100644 --- a/src/api/wms/customerStatementMain/index.ts +++ b/src/api/wms/customerStatementMain/index.ts @@ -57,7 +57,7 @@ export const exportCustomerStatementMain = async (params) => { return await request.download({ url: `/wms/customer-statement-main/export-excel`, params }) } -// 下载用户导入模板 +// 下载客户对账单导入模板 export const importTemplate = () => { return request.download({ url: '/wms/customer-statement-main/get-import-template' }) } @@ -85,4 +85,14 @@ export const nodeAbrogate = async (id: number) => { // 客户对账单退回操作 export const sendBack = async (id: number) => { return await request.get({ url: `/wms/customer-statement-main/sendBack?id=` + id}) +} + +// 导入客户模具分摊对账单前校验该客户对账单下是否存在已分摊的模具分摊对账单如果有提示 +export const verifyDataExistShare = async (customerId:number) => { + return await request.get({ url: `/wms/customer-tool-apport-statement-detail/verifyDataExist?customerId=` + customerId }) +} + +// 下载客户模具分摊对账单导入模板 +export const importShareTemplate = () => { + return request.download({ url: '/wms/customer-tool-apport-statement-detail/get-import-template' }) } \ No newline at end of file diff --git a/src/components/ImportForm/src/ImportCustomerStatementShareForm.vue b/src/components/ImportForm/src/ImportCustomerStatementShareForm.vue new file mode 100644 index 000000000..3881ebadf --- /dev/null +++ b/src/components/ImportForm/src/ImportCustomerStatementShareForm.vue @@ -0,0 +1,427 @@ + + + + +