Explorar o código

feat: 商品管理不用选可用经销商

laiqi hai 10 meses
pai
achega
56fc9f706b
Modificáronse 1 ficheiros con 23 adicións e 23 borrados
  1. 23 23
      apps/web-ele/src/views/product-manage/form.vue

+ 23 - 23
apps/web-ele/src/views/product-manage/form.vue

@@ -213,29 +213,29 @@ const [BaseForm, baseFormApi] = useVbenForm({
     //   },
     //   rules: z.string().min(1, { message: '请输入品目' }),
     // },
-    {
-      component: 'Select',
-      fieldName: 'productsmerchantid',
-      label: '关联经销商',
-      componentProps: {
-        placeholder: '请选择关联经销商',
-        options: channelOptions,
-        multiple: true,
-        collapseTags: true,
-        collapseTagsTooltip: true,
-        clearable: true,
-        filterable: true,
-        noDataText: '暂无经销商数据',
-        loading: false,
-        style: { width: '100%' },
-      },
-      rules: z.array(z.string()).min(1, { message: '请选择关联经销商' }),
-      // 使用dependencies控制字段显示
-      dependencies: {
-        triggerFields: ['productsname'], // 依赖产品名称字段来触发重新计算
-        show: () => !hasDefaultMerchantId.value, // 当没有默认值时才显示该字段
-      },
-    },
+    // {
+    //   component: 'Select',
+    //   fieldName: 'productsmerchantid',
+    //   label: '关联经销商',
+    //   componentProps: {
+    //     placeholder: '请选择关联经销商',
+    //     options: channelOptions,
+    //     multiple: true,
+    //     collapseTags: true,
+    //     collapseTagsTooltip: true,
+    //     clearable: true,
+    //     filterable: true,
+    //     noDataText: '暂无经销商数据',
+    //     loading: false,
+    //     style: { width: '100%' },
+    //   },
+    //   rules: z.array(z.string()).min(1, { message: '请选择关联经销商' }),
+    //   // 使用dependencies控制字段显示
+    //   dependencies: {
+    //     triggerFields: ['productsname'], // 依赖产品名称字段来触发重新计算
+    //     show: () => !hasDefaultMerchantId.value, // 当没有默认值时才显示该字段
+    //   },
+    // },
     {
       component: 'Select',
       fieldName: 'productsscqyid',