cloudroam
2024-09-06 06eb037239930918e741eeea3b7f46220cc23698
add:加价管理-分类加价-下拉框上可以搜索-可以多选
已修改2个文件
14 ■■■■ 文件已修改
pages/mark-up/category.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/form-item-config.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mark-up/category.vue
@@ -6,11 +6,17 @@
import { getGoodsCategoryListConfig } from '@/utils/form-item-config'
export default {
  props: {
    multiple: {
      type: Boolean,
      default: true,
    },
  },
  data() {
    return {
      tableConfig: {
        url: 'flower/api/flower/markup/spcg/list',
        newUrl: 'flower/api/flower/markup/spcg/list/save',
        newUrl: 'flower/api/flower/markup/spcg/list/save/batch',
        editUrl: 'flower/api/flower/markup/spcg/list/save',
        onDelete: (row) => {
          return this.$elBusHttp.request(
@@ -60,7 +66,7 @@
        ],
        form: [
          {
            ...getGoodsCategoryListConfig(true),
            ...getGoodsCategoryListConfig(true, this.multiple),
            rules: { required: true, message: '请选择商品分类' },
            str: true,
            strKey: 'name',
utils/form-item-config.js
@@ -10,7 +10,7 @@
  }
}
export const getGoodsCategoryListConfig = (checkStrictly = false) => {
export const getGoodsCategoryListConfig = (checkStrictly = false,  multiple = false) => {
  return {
    label: '商品分类:',
    id: 'categoryId',
@@ -22,7 +22,9 @@
        value: 'id',
        emitPath: false,
        checkStrictly,
        multiple,
      },
      filterable: true,
      clearable: true,
      style: 'width:100%',
    },