| | |
| | | return { |
| | | tableConfig: { |
| | | url: 'flower/api/flower/markup/ps/spcg/list', |
| | | newUrl: 'flower/api/flower/markup/ps/spcg/list/save', |
| | | newUrl: 'flower/api/flower/markup/ps/spcg/list/save/batch', |
| | | editUrl: 'flower/api/flower/markup/ps/spcg/list/save', |
| | | onDelete: (row) => { |
| | | return this.$elBusHttp.request( |
| | |
| | | } |
| | | ) |
| | | }, |
| | | ...categoryMarkUpConfig(this.$route, this.$createElement), |
| | | ...categoryMarkUpConfig(this.$route, this.$createElement, true), |
| | | }, |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | |
| | | export const getGoodsCategoryListConfig = (checkStrictly = false) => { |
| | | export const getGoodsCategoryListConfig = ( |
| | | checkStrictly = false, |
| | | multiple = false |
| | | ) => { |
| | | return { |
| | | label: '商品分类:', |
| | | id: 'categoryId', |
| | |
| | | value: 'id', |
| | | emitPath: false, |
| | | checkStrictly, |
| | | multiple, |
| | | }, |
| | | filterable: true, |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | |
| | | 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', |