module.exports={
  "list":{
    columnMetaData:[
      {"width":"150","label":"渠道名称","prop":"channel.channelName","isShowTip":true,"isTmpl":false},
      {"width":"100","label":"渠道编码","prop":"channelCode","isShowTip":false,"isTmpl":false,},
      {"width":"100","label":"商机类型","prop":"chanceTypeName","isShowTip":false,"isTmpl":false,},
      {"width":"100","label":"负责人","prop":"businessOwner","isShowTip":false,"isTmpl":false,},
      {"width":"200","label":"负责人手机","prop":"mobile","isShowTip":false,"isTmpl":false,},
      {"width":"100","label":"启用状态","prop":"isEnabled","isShowTip":false,"isTmpl":false,},
      {"width":"100","label":"分配权重","prop":"weight","isShowTip":false,"isTmpl":false,},
      {"width":"100","label":"是否接单","prop":"isOrderReceiving","isShowTip":false,"isTmpl":false,},
      {"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
    ]
  },
  "form":[
    {
      "title":"渠道",
      "rule": [
           { "required": true, "message": '请选择渠道', "trigger": 'blur' },
       ],
       ctls:[
         {"type":"select","refModel":"channel","isMulti":false,"label":"渠道","prop":"channel_id","labelField":"channelName","valueField":"id","style":""},
       ]
    },
    {
      "title":"是否启用",
      "ctls":[
          {"type":"switch","prop":"isEnabled","acText":"启用","inactText":"不启用","placeHolder":" ","style":""},
      ]
    },
    {
      "title":"是否接单",
      "ctls":[
          {"type":"switch","prop":"isOrderReceiving","acText":"接单","inactText":"不接单","placeHolder":" ","style":""},
      ]
    },
    {
       "title":"商机类型",
       "validProp":"chanceType",
       "rule": [
            { "required": true, "message": '商机类型', "trigger": 'blur' },
        ],
        "ctls":[
          {"type":"select","dicKey":"chanceType","prop":"chanceType","labelField":"label","valueField":"value","style":""},
        ]
     },
     {
        "title":"通知类型",
        "validProp":"noticeType",
        "rule": [
             { "required": true, "message": '通知类型', "trigger": 'blur' },
         ],
         "ctls":[
           {"type":"select","dicKey":"noticeType","prop":"noticeType","labelField":"label","valueField":"value","style":""},
         ]
      },
      {
        "title":"负责人电话",
        "validProp":"mobile",
        "rule": [
             { "required": true, "message": '请输入负责人电话', "trigger": 'blur' },
             { "validator":"validatex","trigger": 'blur' },
        ],
        "ctls":[
           {"type":"input","label":"负责人电话","prop":"mobile","placeHolder":"请输入负责人电话","style":""},
        ]
      },
      {
        "title":"领导手机",
        "validProp":"leaderMobile",
        "rule": [
             { "required": true, "message": '请输入领导手机', "trigger": 'blur' },
             { "validator":"validatex","trigger": 'blur' },
        ],
        "ctls":[
           {"type":"input","label":"领导手机","prop":"leaderMobile","placeHolder":"请输入领导手机","style":""},
        ]
      },
  ],
  "search":[
    {
      "title":"渠道",
       ctls:[
         {"type":"select","refModel":"channel","isMulti":false,"label":"渠道","prop":"channel_id","labelField":"channelName","valueField":"id","style":""},
       ]
    },
    {
      "title":"负责人",
       ctls:[
         {"type":"input","label":"负责人","prop":"businessOwner","placeHolder":"请输入负责人姓名","style":""},
       ]
    },
    {
      "title":"负责人手机",
       ctls:[
         {"type":"input","label":"负责人手机","prop":"mobile","placeHolder":"请输入负责人手机","style":""},
       ]
    },
  ],
  "auth":{
    "add":[
      {"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
      {"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","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},
    ],
  }
}
