Explorar o código

fix: 将“渠道”更改为“经销商”,以保持术语一致性

laiqi hai 10 meses
pai
achega
2fc4dc02ac

+ 6 - 6
apps/web-ele/src/views/system-manage/worker-manage/form.vue

@@ -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,

+ 2 - 2
packages/types/src/coupon2.ts

@@ -8,7 +8,7 @@
 //   `coupon2openid` varchar(50) DEFAULT NULL COMMENT '关联申请人openid',
 //   `coupon2sype` tinyint(2) DEFAULT NULL COMMENT '优惠券(0:申请中,1:审核通过,2:审核失败)',
 //   `coupon2isused` tinyint(2) DEFAULT NULL COMMENT '是否已使用(0:未使用,1:已使用)',
-//   `coupon2merchantid` varchar(50) DEFAULT NULL COMMENT '对应渠道id',
+//   `coupon2merchantid` varchar(50) DEFAULT NULL COMMENT '对应经销商id',
 //   `coupon2productids` varchar(5000) DEFAULT NULL COMMENT '可用产品id',
 //   `coupon2coupon1id` varchar(50) DEFAULT NULL COMMENT '关联主券id',
 //   `coupon2phone` varchar(50) DEFAULT NULL COMMENT '领取手机号',
@@ -49,7 +49,7 @@ interface Coupon2Entity {
   coupon2shbz: string;
   /** 优惠券名称 */
   coupon2mc: string;
-  /** 对应渠道id */
+  /** 对应经销商id */
   coupon2merchantid: string;
 }
 

+ 1 - 1
packages/types/src/orders.ts

@@ -3,7 +3,7 @@
 //   `ordersid` varchar(50) NOT NULL COMMENT '订单id',
 //   `ordersnumber` varchar(50) DEFAULT NULL COMMENT '订单号',
 //   `ordersuserid` varchar(50) DEFAULT NULL COMMENT '订单关联用户id',
-//   `ordersuserid1` varchar(50) DEFAULT NULL COMMENT '订单关联渠道',
+//   `ordersuserid1` varchar(50) DEFAULT NULL COMMENT '订单关联经销商',
 //   `ordersopenid` varchar(50) DEFAULT NULL COMMENT '订单关联openid',
 //   `ordersproductid` varchar(50) DEFAULT NULL COMMENT '订单关联产品id',
 //   `ordersproductname` varchar(50) DEFAULT NULL COMMENT '产品名称',

+ 2 - 2
packages/types/src/worker.ts

@@ -20,7 +20,7 @@
 //   `worker_deletecode` tinyint(2) DEFAULT NULL COMMENT '删除标志(禁止插入)(禁止前端编辑)',
 //   `worker_wxopenid` varchar(50) DEFAULT NULL COMMENT '微信openid',
 //   `worker_iswxbind` tinyint(2) DEFAULT NULL COMMENT '是否绑定微信',
-//   `worker_userid` varchar(50) DEFAULT NULL COMMENT '关联渠道id',
+//   `worker_userid` varchar(50) DEFAULT NULL COMMENT '关联经销商id',
 //   PRIMARY KEY (`worker_id`)
 // ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='职员';
 
@@ -66,7 +66,7 @@ interface WorkerEntity {
   worker_wxopenid: string;
   /** 是否绑定微信 */
   worker_iswxbind: string;
-  /** 关联渠道id */
+  /** 关联经销商id */
   worker_userid: string;
 }