From cf021a982b7b36a62e0902e08ff16cc633a2a535 Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Wed, 9 Oct 2024 11:04:36 +0800
Subject: [PATCH] =?UTF-8?q?YT-170=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7=E5=AF=B9=E8=B4=A6=E5=8D=95=E5=AF=BC=E5=85=A5=E6=A8=A1?=
=?UTF-8?q?=E7=89=88=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/customerStatementMain/index.ts | 5 ++
.../src/ImportCustomerStatementForm.vue | 46 +++++++++++++++++--
src/utils/dict.ts | 1 +
.../customerStatementMain.data.ts | 9 ++--
.../customerStatement/index.vue | 2 -
5 files changed, 55 insertions(+), 8 deletions(-)
diff --git a/src/api/wms/customerStatementMain/index.ts b/src/api/wms/customerStatementMain/index.ts
index df91e823d..e37a5b356 100644
--- a/src/api/wms/customerStatementMain/index.ts
+++ b/src/api/wms/customerStatementMain/index.ts
@@ -60,4 +60,9 @@ export const exportCustomerStatementMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customer-statement-main/get-import-template' })
+}
+
+// 导入客户对账单前校验是否有相同客户代码和年月的数据存在
+export const verifyDataExist = async (yearsMonthStr: String,customerCode:String) => {
+ return await request.get({ url: `/wms/customer-statement-main/verifyDataExist?yearsMonthStr=` + yearsMonthStr+'&customerCode='+customerCode })
}
\ No newline at end of file
diff --git a/src/components/ImportForm/src/ImportCustomerStatementForm.vue b/src/components/ImportForm/src/ImportCustomerStatementForm.vue
index ad5816da4..817b28da3 100644
--- a/src/components/ImportForm/src/ImportCustomerStatementForm.vue
+++ b/src/components/ImportForm/src/ImportCustomerStatementForm.vue
@@ -64,7 +64,7 @@
>