From 4f82ee173e5abc52f8c23d1b4dcb24d7cbb4dead Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Thu, 18 Dec 2025 16:33:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor(crm/crmMailingApply):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=8A=E8=BE=93=E5=85=A5=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=92=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 参考其他模块,将获取用户列表接口由 getUserList 替换为 listUser,并传递分页参数 - 修改用户列表数据结构适应新接口,赋值为 res.rows - 更新省份输入框提示,增加示例说明,提升用户体验 - 将发货单列表中“项目名称”列设置为不可见 - 将发货单列表中“创建时间”列设置为不可见 --- src/views/oa/crm/crmMailingApply/edit.vue | 10 ++++++---- src/views/wms/wmsShippingBill/index.vue | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/oa/crm/crmMailingApply/edit.vue b/src/views/oa/crm/crmMailingApply/edit.vue index faba00a..917bbcb 100644 --- a/src/views/oa/crm/crmMailingApply/edit.vue +++ b/src/views/oa/crm/crmMailingApply/edit.vue @@ -55,7 +55,7 @@ - + @@ -213,7 +213,8 @@ import { updateCrmMailingApplySignTime } from '@/api/oa/crm/crmMailingApply'; import { CrmMailingApplyForm } from '@/api/oa/crm/crmMailingApply/types'; -import { getUserList } from '@/api/system/user'; +import { listUser } from '@/api/system/user'; +import { UserQuery } from '@/api/system/user/types'; import ProjectSelect from '@/components/ProjectSelect/index.vue'; import { getRuleGenerateCode } from '@/api/system/codeRule'; import { CodeRuleEnum, FlowCodeEnum } from '@/enums/OAEnum'; @@ -317,8 +318,9 @@ const { form, rules } = toRefs(data); /** 加载用户列表 */ const loadUserList = async () => { try { - const res = await getUserList({} as any); - userList.value = res.data; + const params: UserQuery = { pageNum: 1, pageSize: 9999 }; + const res = await listUser(params); + userList.value = res.rows; } catch (e) { userList.value = []; } diff --git a/src/views/wms/wmsShippingBill/index.vue b/src/views/wms/wmsShippingBill/index.vue index 38747b7..82cae0e 100644 --- a/src/views/wms/wmsShippingBill/index.vue +++ b/src/views/wms/wmsShippingBill/index.vue @@ -275,14 +275,14 @@ const columns = ref([ { key: 0, label: '发货单号', visible: true }, { key: 1, label: 'SAP订单号', visible: true }, { key: 2, label: '发货方式', visible: true }, - { key: 3, label: '项目名称', visible: true }, + { key: 3, label: '项目名称', visible: false }, { key: 4, label: '客户名称', visible: true }, { key: 5, label: '供应商', visible: true }, { key: 6, label: '发货单状态', visible: true }, { key: 7, label: '发货状态', visible: true }, { key: 8, label: '计划到货时间', visible: true }, { key: 9, label: '实际发货时间', visible: true }, - { key: 10, label: '创建时间', visible: true } + { key: 10, label: '创建时间', visible: false } ]); const initFormData: WmsShippingBillForm = {