| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- // 渠道类型
- const channelType = [
- {
- name: "银行卡",
- value: "Bank",
- tip: "为了保障您预交金的资金安全,线上转账退款登记完成后,医院会进行基本信息审核,校验无误后为您办理退款,办理时间约7个工作日,请您耐心等待。",
- },
- {
- name: "微信",
- value: "Wechat",
- tip: "微信零钱转账将在3~7个工作日内直接转账至您当前的微信账户上。请您注意微信的到账通知!",
- },
- {
- name: "支付宝",
- value: "Zfb",
- tip: "支付宝转账将在3~7个工作日内直接转账至您当前的支付宝账户上。请您注意支付宝的到账通知!",
- },
- ];
- // 办理人类型(与患者关系)
- const relationType = [
- {
- name: "本人",
- value: "1",
- },
- {
- name: "代办",
- value: "2",
- },
- ];
- // 基础表单配置
- const form_basic = [
- {
- key: 'MemberName',
- type: 'input',
- label: '就诊人姓名',
- readOnly: true,
- placeholder: '请输入就诊人姓名',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => {
- const reg = /^([\u4e00-\u9fa5\·\s]{1,25}|[a-zA-Z\.\s]{1,25})$/g;
- return reg.test(value);
- },
- errorMsg: '输入姓名为空或不合法'
- },
- {
- key: 'IdCardNo',
- type: 'input',
- label: '身份证号码',
- readOnly: true,
- placeholder: '请输入身份证号码',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: '证件号码为空或不合法'
- },
- {
- key: 'CardNo',
- type: 'input',
- label: '退款就诊卡',
- readOnly: true,
- placeholder: '',
- required: false,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: ''
- },
- {
- key: 'RefundMoney',
- type: 'input',
- label: '退款金额',
- readOnly: true,
- placeholder: '',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: ''
- },
- {
- key: 'HandlerMobile',
- type: 'smsCode',
- label: '申请人联系电话',
- phoneLabel: '申请人联系电话',
- codeLabel: '验证码',
- sendCodeText: '发送验证码',
- countdownText: '重新发送(%s)s',
- readOnly: false,
- required: true,
- enabled: true,
- visible: true,
- validatePhone: (value) => /^1[3-9]\d{9}$/.test(value),
- validateCode: (value) => true,
- errorMsg: '请输入正确的手机号及验证码',
- sendCodeApi: function (phone) {
- return new Promise((resolve, reject) => {
- // 这里模拟发送验证码的接口调用
- setTimeout(() => {
- const success = Math.random() > 0.2;
- if (success) {
- resolve({ message: '验证码发送成功' });
- } else {
- reject(new Error('验证码发送失败'));
- }
- }, 1000);
- });
- }
- },
- {
- key: 'TransferType',
- type: 'radio',
- label: '转账方式',
- options: [
- {
- name: "银行卡",
- value: "Bank",
- }, {
- name: "微信",
- value: "Wechat",
- }, {
- name: "支付宝",
- value: "Zfb",
- },
- ],
- inline: false,
- readOnly: false,
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: '请选择转账方式'
- },
- ]
- // 银行表单配置
- const form_bank = [
- {
- key: 'HandlerReName',
- type: 'input',
- label: '收款户名',
- readOnly: false,
- placeholder: '请输入收款户名',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => {
- const reg = /^([\u4e00-\u9fa5\·\s]{1,25}|[a-zA-Z\.\s]{1,25})$/g;
- return reg.test(value);
- },
- errorMsg: '收款户名为空或不合法(请检查输入的内容是否有空格、数字等特殊字符)'
- },
- {
- key: 'RecAccNo',
- type: 'input',
- label: '收款银行卡号',
- readOnly: false,
- placeholder: '请输入收款银行卡卡号',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => {
- const reg = /^\d*$/g;
- return reg.test(value) && value.length <= 20;
- },
- errorMsg: '收款银行卡号为空或不合法(长度不超过20位)'
- },
- {
- key: 'HanderReBankName',
- type: 'input',
- label: '收款银行',
- readOnly: false,
- placeholder: '请输入收款银行名称',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: '收款银行为空或不合法'
- },
- // {
- // key: 'HandlerBankAddr',
- // type: 'regionPicker',
- // label: '开户行所在地',
- // currentBindKey: "value", // 变量回写关键字(code/postcode/value(默认))
- // level: "city",
- // readOnly: false,
- // placeholder: '请选择',
- // required: true,
- // enabled: true,
- // visible: true,
- // validate: (value) => true,
- // errorMsg: '请选择开户行所在地'
- // },
- {
- key: 'HandlerBankName',
- type: 'input',
- label: '开户行',
- readOnly: false,
- placeholder: '输入收款银行的开户行',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: '开户行为空或不合法'
- },
- ]
- // 微信表单配置
- const form_wechat = [
- {
- key: 'HandlerReName',
- type: 'input',
- label: '收款人姓名',
- readOnly: false,
- placeholder: '请输入收款人姓名',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => {
- const reg = /^([\u4e00-\u9fa5\·\s]{1,25}|[a-zA-Z\.\s]{1,25})$/g;
- return reg.test(value);
- },
- errorMsg: '收款人姓名为空或不合法(请检查输入的内容是否有空格、数字等特殊字符)'
- },
- { // 自动获取openid
- key: 'RecAccNo',
- type: 'input',
- label: '收款账号',
- readOnly: true,
- placeholder: '请输入收款账号',
- required: true,
- enabled: true,
- visible: false,
- validate: (value) => true,
- errorMsg: '收款账号为空或不合法'
- },
- ]
- // 支付宝表单配置
- const form_zfb = [
- {
- key: 'HandlerReName',
- type: 'input',
- label: '收款人姓名',
- readOnly: false,
- placeholder: '请输入收款人姓名',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => {
- const reg = /^([\u4e00-\u9fa5\·\s]{1,25}|[a-zA-Z\.\s]{1,25})$/g;
- return reg.test(value);
- },
- errorMsg: '收款人姓名为空或不合法(请检查输入的内容是否有空格、数字等特殊字符)'
- },
- { // 支付宝登录号邮箱或手机号
- key: 'RecAccNo',
- type: 'input',
- label: '收款账号',
- readOnly: false,
- placeholder: '支付宝登录号邮箱或手机号',
- required: true,
- enabled: true,
- visible: true,
- validate: (value) => true,
- errorMsg: '收款账号为空或不合法'
- },
- ]
- export {
- channelType,
- relationType,
- form_basic,
- form_bank,
- form_wechat,
- form_zfb,
- }
|