From 9212d761329db747efbf796c76ecc5f95833db3f Mon Sep 17 00:00:00 2001 From: songguoqiang Date: Tue, 4 Mar 2025 09:41:21 +0800 Subject: [PATCH] =?UTF-8?q?YT-1974=EF=BC=9ASCP=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E6=A8=A1=E5=85=B7=E8=B4=B9=E7=94=A8=E5=AF=BC=E5=85=A5=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/suppliperMoldCostMain/index.ts | 14 ++- .../src/ImportSupplierMoldCostForm.vue | 93 ++++++++++--------- .../supplierMoldCostMain/index.vue | 40 +++++++- .../supplierMoldCostMain.data.ts | 25 +++-- 4 files changed, 118 insertions(+), 54 deletions(-) diff --git a/src/api/wms/suppliperMoldCostMain/index.ts b/src/api/wms/suppliperMoldCostMain/index.ts index c017c1541..6aa6f36f7 100644 --- a/src/api/wms/suppliperMoldCostMain/index.ts +++ b/src/api/wms/suppliperMoldCostMain/index.ts @@ -26,8 +26,8 @@ export const importTemplate = () => { return request.download({ url: '/wms/supplier-tool-apport-statement-main/get-import-template' }) } // 导入客户对账单前校验是否有相同客户代码和年月的数据存在 -export const verifyDataExist = async (yearsMonthStr: String,supplierCode:String) => { - return await request.get({ url: `/wms/supplier-tool-apport-statement-main/verifyDataExist?yearsMonthStr=` + yearsMonthStr+'&supplierCode='+supplierCode }) +export const verifyDataExist = async (versionNumber: String,supplierCode:String) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/versionNumber?versionNumber=` + versionNumber+'&supplierCode='+supplierCode }) } @@ -46,4 +46,14 @@ export const nodeAbrogate = async (id: number) => { // 退回 export const sendBack = async (id: number) => { return await request.get({ url: `/wms/supplier-tool-apport-statement-main/sendBack?id=` + id }) +} + +// 关闭明细 +export const close = async (id: number) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-detail/close?id=` + id }) +} + +// 重新打开明细 +export const reOpen = async (id: number) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-detail/reOpen?id=` + id }) } \ No newline at end of file diff --git a/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue b/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue index fd40ab2e2..2c1efa71e 100644 --- a/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue +++ b/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue @@ -22,15 +22,16 @@ - - + + @@ -40,8 +41,10 @@ v-model:file-list="fileList" :action=" importUrl + - '?yearsMonthStr=' + - queryParams.yearsMonthStr + + '?mode=' + + mode + + '&versionNumber=' + + queryParams.versionNumber + '&supplierCode=' + queryParams.supplierCode + '&file=' + @@ -69,7 +72,7 @@ >
{{t('ts.将文件拖到此处,或')}}{{t('ts.点击上传')}}
-
-
{{t('ts.更新:新增并修改')}}
-
{{ t('ts.追加:只新增,不修改') }}
-
{{ t('ts.覆盖:只修改不新增') }}
+
{{ '追加:只做新增操作,默认所有数据都没有重复' }}
+
{{'更新:新增并修改,有重复数据可做更新'}}
+ +
-
+
- --> +