| | |
| | | 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, |
| | |
| | | ], |
| | | form: [ |
| | | { |
| | | ...getGoodsCategoryListConfig(true), |
| | | ...getGoodsCategoryListConfig(true, multiple), |
| | | rules: { required: true, message: '请选择商品分类' }, |
| | | str: true, |
| | | strKey: 'name', |
| | |
| | | { 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 }, |
| | | ], |
| | |
| | | clearable: true, |
| | | }, |
| | | }, |
| | | { |
| | | label: '加价', |
| | | id: 'isFee', |
| | | type: 'bus-select-dict', |
| | | el: { |
| | | code: 'GOODS_IS_FEE', |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | | }, |
| | | { |
| | | label: '供应商', |
| | | id: 'supplierName', |
| | | type: 'input', |
| | | }, |
| | | ], |
| | | }, |
| | | ], |