陶杰
2025-01-09 cc1ee1fb090b8344faab02537dec80995cec93fe
utils/mark-up-config.js
@@ -2,7 +2,7 @@
  getGoodsCategoryListConfig,
  getGoodsListConfig,
} from '@/utils/form-item-config'
export const categoryMarkUpConfig = (route, h) => {
export const categoryMarkUpConfig = (route, h, multiple = false) => {
  return {
    extraQuery: {
      partnerId: route.params.partnerId,
@@ -64,7 +64,7 @@
    ],
    form: [
      {
        ...getGoodsCategoryListConfig(true),
        ...getGoodsCategoryListConfig(true, multiple),
        rules: { required: true, message: '请选择商品分类' },
        str: true,
        strKey: 'name',
@@ -198,6 +198,7 @@
      { label: '供应商', prop: 'supplierName', minWidth: 100 },
      { label: '底价(元)', prop: 'price', minWidth: 100 },
      { label: '加价(元)', prop: 'fee', minWidth: 100 },
      { label: '售价(元)', prop: 'sellPrice', minWidth: 100 },
      { label: '销量', prop: 'sales', minWidth: 100 },
      { label: '库存', prop: 'stock', minWidth: 100 },
    ],
@@ -224,6 +225,21 @@
              clearable: true,
            },
          },
          {
            label: '加价',
            id: 'isFee',
            type: 'bus-select-dict',
            el: {
              code: 'GOODS_IS_FEE',
              clearable: true,
              style: 'width:100%',
            },
          },
          {
            label: '供应商',
            id: 'supplierName',
            type: 'input',
          },
        ],
      },
    ],