From c931c0c76c02667401f4f532ce975e0fd0eb468d Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Wed, 26 Aug 2026 17:11:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(port):=20=E6=B7=BB=E5=8A=A0=E6=B8=AF?= =?UTF-8?q?=E5=8F=A3=E4=BF=A1=E6=81=AF=E4=B8=AD=E7=9A=84=E5=9B=BD=E5=AE=B6?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在搜索表单中添加国家输入框 - 在编辑表单中添加国家字段,调整布局为三列显示 - 更新searchData数据结构,添加country字段 - 在表格列配置中添加国家列显示 - 更新portForm数据结构,添加country字段 - 在编辑时正确初始化国家字段值 feat(supplier): 添加供应商列表中的活跃状态功能 - 在搜索表单中添加活跃状态下拉选择框 - 实现表格中状态字段的条件渲染和样式绑定 - 调整供应商编辑表单布局,添加活跃状态选择 - 更新currentSupplier数据结构,添加status字段 - 在表格列配置中动态添加活跃状态列 - 添加getStatusClass方法处理状态样式 - 初始化供应商时设置默认活跃状态为Active - 添加CSS样式定义活跃和非活跃状态的颜色 chore(user): 将用户模块中的角色相关文案替换为岗位 - 修改新增用户角色对话框标题为"岗位" - 更新表单标签中的"角色编码"为"岗位编码" - 更新表单标签中的"角色名称"为"岗位名称" - 修改可选角色区域标题为"可选岗位" - 更新表格列标题中的"角色编码"为"岗位编码" - 更新表格列标题中的"角色名称"为"岗位名称" - 修改已有角色区域标题为"已有岗位" --- src/views/modules/port/portInfo.vue | 16 ++++- .../modules/srmSupplier/supplierList.vue | 66 ++++++++++++++++--- src/views/modules/sys/user.vue | 18 ++--- 3 files changed, 81 insertions(+), 19 deletions(-) diff --git a/src/views/modules/port/portInfo.vue b/src/views/modules/port/portInfo.vue index 471c91d..6ef4534 100644 --- a/src/views/modules/port/portInfo.vue +++ b/src/views/modules/port/portInfo.vue @@ -11,6 +11,9 @@ + + + 查询 重置 @@ -97,16 +100,21 @@ label-position="top" class="part-form"> - + - + + + + + + @@ -195,6 +203,7 @@ export default { searchData: { portCode: '', portName: '', + country: '', page: 1, limit: 20 }, @@ -203,6 +212,7 @@ export default { columnArray1: [ { columnProp: 'portCode', columnLabel: '港口编码', columnWidth: '120', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, { columnProp: 'portName', columnLabel: '港口名称', columnWidth: '180', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, + { columnProp: 'country', columnLabel: '国家', columnWidth: '180', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, { columnProp: 'isDeparturePort', columnLabel: '是否起始港', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, { columnProp: 'isDestinationPort', columnLabel: '是否目的港', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, { columnProp: 'active', columnLabel: '是否在用', columnWidth: '100', headerAlign: 'center', align: 'center', fixed: false, columnHidden: false, columnSortable: false, showOverflowTooltip: true }, @@ -219,6 +229,7 @@ export default { portForm: { portCode: '', portName: '', + country:'', active: 'Y', isDeparturePort: 'Y', isDestinationPort: 'N', @@ -368,6 +379,7 @@ export default { this.portForm = { portCode: row.portCode, portName: row.portName, + country: row.country || '', active: row.active || 'Y', isDeparturePort: row.isDeparturePort || 'Y', isDestinationPort: row.isDestinationPort || 'N', diff --git a/src/views/modules/srmSupplier/supplierList.vue b/src/views/modules/srmSupplier/supplierList.vue index be3e2f8..0457bf2 100644 --- a/src/views/modules/srmSupplier/supplierList.vue +++ b/src/views/modules/srmSupplier/supplierList.vue @@ -17,6 +17,12 @@ + + + + + + Planner @@ -51,13 +57,18 @@ :min-width="item.columnWidth" :label="item.columnLabel"> @@ -177,11 +188,19 @@ - + + + + + + + + + @@ -399,6 +418,7 @@ export default { supplierNo: '', supplierName: '', active: '', + status: '', currency:'', taxCode:'', paymentTerm:'', @@ -473,6 +493,24 @@ export default { status: true, fixed: false }, + { + userId: this.$store.state.user.name, + functionId: this.functionId, + serialNumber: '811001Table1SupplierGroup', + tableId: '811001Table1', + tableName: '供应商信息', + columnProp: 'status', + headerAlign: 'center', + align: 'center', + columnLabel: '活跃状态', + columnWidth: '100', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: false + }, { userId: this.$store.state.user.name, functionId: this.functionId, @@ -1257,6 +1295,12 @@ export default { } }, methods: { + getStatusClass (status) { + return { + 'status-active': status === 'Active', + 'status-inactive': status === 'Inactive' + } + }, loadMainOrReminder () { const raw = this.$route.query.docExpireSupplierIds if (raw !== undefined && raw !== null && String(raw).trim() !== '') { @@ -1575,6 +1619,7 @@ export default { supplierName: '', supplierDocType: '', active: 'Y', + status: 'Active', supplierGroup: '', abc: '', buyer: '', @@ -1805,4 +1850,9 @@ export default { height: 28px; } } + +.status-active, +.status-inactive { + color: #ff0000; +} diff --git a/src/views/modules/sys/user.vue b/src/views/modules/sys/user.vue index 4ba0bb7..6529506 100644 --- a/src/views/modules/sys/user.vue +++ b/src/views/modules/sys/user.vue @@ -558,13 +558,13 @@ - +
- + - + @@ -574,7 +574,7 @@
- 可选角色 + 可选岗位 + label="岗位编码"> + label="岗位名称"> @@ -616,7 +616,7 @@ - 已有角色 + 已有岗位 + label="岗位编码"> + label="岗位名称">