From 99d6f6518232f88ca3f8adaba7f6c77f25131ee0 Mon Sep 17 00:00:00 2001 From: qiankanghui <11284155+qian-kanghui@user.noreply.gitee.com> Date: Wed, 7 Jan 2026 13:04:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(srm):=20=E9=87=8D=E6=9E=84=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=9C=B0=E5=9D=80=E7=AE=A1=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=8A=B6=E6=80=81=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将供应商地址组件从 srmBaseInformation 模块迁移至 srmSupplier 模块 - 重构供应商地址页面,添加完整的增删改查功能和表单验证 - 实现供应商地址的搜索、分页、导出功能 - 添加供应商地址API接口,包括查询、创建、更新、删除操作 - 将所有状态选择项从中文"启用/禁用"改为英文"Yes/No"选项 - 更新供应商列表页面的状态字段和API调用 - 完善权限控制和错误处理机制 --- src/api/srm/srmSupplier.js | 8 +- .../srmBaseInformation/srmDeliveryTerm.vue | 8 +- .../srmBaseInformation/srmPaymentTerm.vue | 8 +- .../srmBaseInformation/srmSupplierAddress.vue | 94 --- .../srmSupplierCurrency.vue | 10 +- .../srmBaseInformation/srmSupplierGroup.vue | 8 +- .../modules/srmBaseInformation/srmTax.vue | 4 +- .../srmSupplier/srmSupplierAddress.vue | 693 ++++++++++++++++++ .../modules/srmSupplier/supplierList.vue | 8 +- 9 files changed, 723 insertions(+), 118 deletions(-) delete mode 100644 src/views/modules/srmBaseInformation/srmSupplierAddress.vue create mode 100644 src/views/modules/srmSupplier/srmSupplierAddress.vue diff --git a/src/api/srm/srmSupplier.js b/src/api/srm/srmSupplier.js index 953aaa0..1214f23 100644 --- a/src/api/srm/srmSupplier.js +++ b/src/api/srm/srmSupplier.js @@ -48,4 +48,10 @@ export const submitForApprovalPaymentProposal = (data) => createAPI(`/srmPayment //------supplier management-------------- export const createSrmSupplier = (data) => createAPI(`/srmSupplier/createSrmSupplier`, 'post', data) export const updateSrmSupplier = (data) => createAPI(`/srmSupplier/updateSrmSupplier`, 'post', data) -export const deleteSrmSupplier = (id) => createAPI(`/srmSupplier/deleteSrmSupplier`, 'post', { id: id }) \ No newline at end of file +export const deleteSrmSupplier = (id) => createAPI(`/srmSupplier/deleteSrmSupplier`, 'post', { id: id }) + +//------supplier Addrss-------------- +export const searchSrmSupplierAddressList = (data) => createAPI(`/srmSupplierAddress/getSupplierAddressList`, 'post', data) +export const createSrmSupplierAddress = (data) => createAPI(`/srmSupplierAddress/addSupplierAddress`, 'post', data) +export const updateSrmSupplierAddress = (data) => createAPI(`/srmSupplierAddress/updateSupplierAddress`, 'post', data) +export const deleteSrmSupplierAddress = (data) => createAPI(`/srmSupplierAddress/deleteSupplierAddress`, 'post', data) diff --git a/src/views/modules/srmBaseInformation/srmDeliveryTerm.vue b/src/views/modules/srmBaseInformation/srmDeliveryTerm.vue index 7fe6c01..059ea24 100644 --- a/src/views/modules/srmBaseInformation/srmDeliveryTerm.vue +++ b/src/views/modules/srmBaseInformation/srmDeliveryTerm.vue @@ -9,8 +9,8 @@ - - + + @@ -76,8 +76,8 @@ - - + + diff --git a/src/views/modules/srmBaseInformation/srmPaymentTerm.vue b/src/views/modules/srmBaseInformation/srmPaymentTerm.vue index e765199..5c70c9f 100644 --- a/src/views/modules/srmBaseInformation/srmPaymentTerm.vue +++ b/src/views/modules/srmBaseInformation/srmPaymentTerm.vue @@ -9,8 +9,8 @@ - - + + @@ -78,8 +78,8 @@ - - + + diff --git a/src/views/modules/srmBaseInformation/srmSupplierAddress.vue b/src/views/modules/srmBaseInformation/srmSupplierAddress.vue deleted file mode 100644 index 2728cb3..0000000 --- a/src/views/modules/srmBaseInformation/srmSupplierAddress.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/src/views/modules/srmBaseInformation/srmSupplierCurrency.vue b/src/views/modules/srmBaseInformation/srmSupplierCurrency.vue index 840bcd2..f8614a2 100644 --- a/src/views/modules/srmBaseInformation/srmSupplierCurrency.vue +++ b/src/views/modules/srmBaseInformation/srmSupplierCurrency.vue @@ -10,8 +10,8 @@ - - + + @@ -79,8 +79,8 @@ - - + + @@ -497,4 +497,4 @@ export default { .mod-config { padding: 0px; } - \ No newline at end of file + diff --git a/src/views/modules/srmBaseInformation/srmSupplierGroup.vue b/src/views/modules/srmBaseInformation/srmSupplierGroup.vue index b06be73..aa10b2d 100644 --- a/src/views/modules/srmBaseInformation/srmSupplierGroup.vue +++ b/src/views/modules/srmBaseInformation/srmSupplierGroup.vue @@ -9,8 +9,8 @@ - - + + @@ -81,8 +81,8 @@ - - + + diff --git a/src/views/modules/srmBaseInformation/srmTax.vue b/src/views/modules/srmBaseInformation/srmTax.vue index 8fa3a0b..6c5ff9e 100644 --- a/src/views/modules/srmBaseInformation/srmTax.vue +++ b/src/views/modules/srmBaseInformation/srmTax.vue @@ -12,8 +12,8 @@ - - + + diff --git a/src/views/modules/srmSupplier/srmSupplierAddress.vue b/src/views/modules/srmSupplier/srmSupplierAddress.vue new file mode 100644 index 0000000..a716015 --- /dev/null +++ b/src/views/modules/srmSupplier/srmSupplierAddress.vue @@ -0,0 +1,693 @@ + + + + diff --git a/src/views/modules/srmSupplier/supplierList.vue b/src/views/modules/srmSupplier/supplierList.vue index a8c4cae..4d17d77 100644 --- a/src/views/modules/srmSupplier/supplierList.vue +++ b/src/views/modules/srmSupplier/supplierList.vue @@ -12,9 +12,9 @@ - - - + + + @@ -373,7 +373,7 @@ export default { searchData: { supplierNo: '', supplierName: '', - supplierActive: '', + active: '', site: this.$store.state.user.site, page: 1, limit: 10