module.exports = {
  "list": {
    columnMetaData: [
      { "width": "100", "label": "编码", "prop": "code", "isShowTip": true, "isTmpl": false },
      { "width": "200", "label": "名称", "prop": "name", "isShowTip": true, "isTmpl": false },
      { "width": "100", "label": "序号", "prop": "orderNo", "isShowTip": true, "isTmpl": false },
      { "width": "100", "label": "所属大类", "prop": "pid", "isShowTip": true, "isTmpl": false },
      { "width": "200", "label": "是否发布", "prop": "isPubed", "isShowTip": true, "isTmpl": false },
      { "width": "null", "label": "操作", "name": "null", "isShowTip": false, "isTmpl": true, "isBtns": true },
    ]
  },
  "form": [
    {
      "title": "基本信息",
      "colnum": 2,
      ctls: [
        //  {"type":"select","dicKey":"productCata","label":"产品大类","prop":"itemType","labelField":"label","valueField":"value","style":"",rules:[ { "required": true, "message": '请选择产品大类', "trigger": 'blur' },]},           
        { "type": "select", "placeHolder": "若不选择，默认为产品大类", "refModel": "producttype", "isMulti": false, "label": "产品大类", "prop": "pid", "labelField": "name", "valueField": "id", "refwhere2": { "pid": 0 }, target: "producttype_id", "style": "" },
        { "type": "select", "label": "产品大类图标", "dicKey": "big_class_icon", "prop": "oneIconUrl", "placeHolder": "添加产品大类必须选择此项", "labelField": "label", "valueField": "value", "style": "" },
        { "type": "input", "label": "名称", "prop": "name", "placeHolder": "名称", "style": "", rules: [{ "required": true, "message": '请输入企业名称', "trigger": 'blur' },] },
        { "type": "input", "label": "序号", "prop": "orderNo", "placeHolder": "序号", "style": "", rules: [{ "required": true, "message": '请输入企业名称', "trigger": 'blur' },] },
        { "type": "input", "label": "编码", "prop": "code", "placeHolder": "编码", "style": "", disabled: true, rules: [{ "required": true, "message": '请输入企业名称', "trigger": 'blur' },] },
        { "type": "switch", label: "是否发布", "prop": "isPubed", "acText": "发布", "inactText": "不发布", "placeHolder": " ", "style": "" },
        { "type": "upload", "label": "类型图标", "prop": "iconUrl", "style": "" },
        { "type": "upload", "label": "大类图标", "prop": "oneMoblieIconUrl", "style": "" },
      ]
    },
  ],
  "search": [
    {
      "title": "基本查询",
      ctls: [
        // { "type": "select", "label": "产品大类", "dicKey": "productCata", "prop": "itemType", "labelField": "label", "valueField": "value", "style": "" },
        { "type": "select", "refModel": "producttype", "isMulti": false, "label": "产品大类", "prop": "pid", "labelField": "name", "valueField": "id", "refwhere2": { "pid": 0 }, target: "producttype_id", "style": "" },
        { "type": "input", "label": "名称", "prop": "name", "placeHolder": "请输入名称", "style": "" },
      ]
    },
  ],
  "auth": {
    "add": [
      { "icon": "el-icon-plus", "title": "新增", "type": "default", "key": "new", "isOnGrid": true },
      { "icon": "el-icon-save", "title": "保存", "type": "default", "key": "save", "isOnForm": true },
    ],
    "edit": [
      { "icon": "el-icon-edit", "title": "修改", "type": "default", "key": "edit", "isInRow": true },

    ],
    "delete": [
      { "icon": "el-icon-remove", "title": "删除", "type": "default", "key": "delete", "isInRow": true },
    ],
    "common": [
      { "icon": "el-icon-cancel", "title": "取消", "type": "default", "key": "cancel", "isOnForm": true },
    ],
  }
}
