<template>
  <eagle-scheme
    :option="{ $http: $axios, url: '/overseas/store' }"
    :list="schemeList"
  >
    <el-table-column type="selection" width="50"></el-table-column>
  </eagle-scheme>
</template>

<script>
export default {
  name: 'basicStore',
  data() {
    return {
      schemeList: [
        { type: 'el-input', label: 'ID', key: 'id', include: 'form', visible: (model, { formMode } = {}) => { return formMode == 'edit' },
          props: { disabled: true },
        },
        { type: 'el-input', label: '门店编码', key: 'code', exclude: 'search',
          rules: [{ required: true, message: '门店编码不能为空', trigger: 'blur' }],
          props: { placeholder: '门店编码' },
        },
        { type: 'el-input', label: '门店名称', key: 'name',
          rules: [{ required: true, message: '门店名称不能为空', trigger: 'blur' }],
          props: { placeholder: '门店名称' },
        },
        { type: 'el-input', label: '合作伙伴', key: 'dwCustomerCode', exclude: 'search',
          rules: [{ required: true, message: '合作伙伴不能为空', trigger: 'change' }],
          props: { placeholder: '合作伙伴' },
        },
        { type: 'el-input', label: '联系人', key: 'contact', exclude: 'search',
          rules: [{ required: true, message: '联系人不能为空', trigger: 'change' }],
          props: { placeholder: '联系人' },
        },
        { type: 'el-input', label: '联系方式', key: 'phone', exclude: 'search',
          rules: [{ required: true, message: '联系方式不能为空', trigger: 'change' }],
          props: { placeholder: '联系方式' },
        },
        { type: 'el-input', label: '联系地址', key: 'address', exclude: 'search',
          rules: [{ required: true, message: '联系地址不能为空', trigger: 'change' }],
          props: { placeholder: '联系地址' },
        },
        { type: 'el-input', label: '管理员密码', key: 'password', exclude: 'search',
          rules: [{ required: true, message: '管理员密码不能为空', trigger: 'change' }],
          props: { placeholder: '管理员密码' },
        },
        { type: 'el-input', label: '门店类型', key: 'type',
          rules: [{ required: true, message: '管理员密码不能为空', trigger: 'change' }],
          props: { placeholder: '管理员密码' },
        },
      ],
    }
  },
}
</script>