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.覆盖:只修改不新增') }}
+
{{ '追加:只做新增操作,默认所有数据都没有重复' }}
+
{{'更新:新增并修改,有重复数据可做更新'}}
+ +
-
+
- --> +