|
|
@@ -16,13 +16,13 @@ const data = ref();
|
|
|
const formType = ref<'create' | 'detail' | 'edit'>('create');
|
|
|
const channelOptions = ref<{ label: string; value: string }[]>([]);
|
|
|
|
|
|
-// 获取渠道列表
|
|
|
+// 获取经销商列表
|
|
|
async function fetchChannelOptions() {
|
|
|
try {
|
|
|
const res = await getCustomerListApi({
|
|
|
pageindex: 1,
|
|
|
rows: 1000,
|
|
|
- 'usersnature.value': '经销商', // 只获取用户性质为"渠道"的数据
|
|
|
+ 'usersnature.value': '经销商', // 只获取用户性质为"经销商"的数据
|
|
|
});
|
|
|
|
|
|
if (res && res.Data) {
|
|
|
@@ -32,11 +32,11 @@ async function fetchChannelOptions() {
|
|
|
}));
|
|
|
}
|
|
|
} catch (error) {
|
|
|
- console.error('获取渠道列表失败', error);
|
|
|
+ console.error('获取经销商列表失败', error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 初始化时获取渠道列表
|
|
|
+// 初始化时获取经销商列表
|
|
|
onMounted(() => {
|
|
|
fetchChannelOptions();
|
|
|
});
|
|
|
@@ -160,9 +160,9 @@ const [BaseForm, baseFormApi] = useVbenForm({
|
|
|
{
|
|
|
component: 'Select',
|
|
|
fieldName: 'worker_userid',
|
|
|
- label: '关联渠道',
|
|
|
+ label: '关联经销商',
|
|
|
componentProps: {
|
|
|
- placeholder: '请选择关联渠道',
|
|
|
+ placeholder: '请选择关联经销商',
|
|
|
options: channelOptions,
|
|
|
filterable: true,
|
|
|
clearable: true,
|