mayf
2024-09-03 d2df0d5ba58434c8165e2d296afe0941920a4a6d
合伙人分类加价多选加价
已修改3个文件
15 ■■■■■ 文件已修改
pages/mark-up/partner/_partnerId/category.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/form-item-config.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/mark-up-config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mark-up/partner/_partnerId/category.vue
@@ -10,7 +10,7 @@
    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(
@@ -23,7 +23,7 @@
            }
          )
        },
        ...categoryMarkUpConfig(this.$route, this.$createElement),
        ...categoryMarkUpConfig(this.$route, this.$createElement, true),
      },
    }
  },
utils/form-item-config.js
@@ -93,7 +93,10 @@
  }
}
export const getGoodsCategoryListConfig = (checkStrictly = false) => {
export const getGoodsCategoryListConfig = (
  checkStrictly = false,
  multiple = false
) => {
  return {
    label: '商品分类:',
    id: 'categoryId',
@@ -105,7 +108,9 @@
        value: 'id',
        emitPath: false,
        checkStrictly,
        multiple,
      },
      filterable: true,
      clearable: true,
      style: 'width:100%',
    },
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',