refactor(crm/crmMailingApply): 优化用户列表加载接口及输入提示和

- 参考其他模块,将获取用户列表接口由 getUserList 替换为 listUser,并传递分页参数
- 修改用户列表数据结构适应新接口,赋值为 res.rows
- 更新省份输入框提示,增加示例说明,提升用户体验

- 将发货单列表中“项目名称”列设置为不可见
- 将发货单列表中“创建时间”列设置为不可见
dev
zangch@mesnac.com 19 hours ago
parent 98debb29e2
commit 4f82ee173e

@ -55,7 +55,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="省份" prop="province">
<el-input v-model="form.province" placeholder="请输入省份" />
<el-input v-model="form.province" placeholder="例如目的地为山东省,请输入“山东”" />
</el-form-item>
</el-col>
<el-col :span="12">
@ -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 = [];
}

@ -275,14 +275,14 @@ const columns = ref<FieldOption[]>([
{ 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 = {

Loading…
Cancel
Save