check.js 2.23 KB
import moment from 'moment';
import LimitbodyCheck from '~/components/business/limitbody/model/check.js';
import CfagitCheck from '~/components/business/Cfagit/model/check.js';
import Utils from "~/utils"
import RmbbopCheck from "../../../../components/business/rmb/rmbbop/model/check";
import BopgatCheck from "../../../../components/business/Bopgat/model/check"

export default function () {
  return {
    ...new RmbbopCheck(this).check,
    ...new BopgatCheck(this).check,
    //邮路选择
    "cpdgrp.rec.cptrou": [
      { type: "string", required: true, message: "必输项" },
    ],
    "cpdgrp.rec.swftyp": [
      { type: "string", required: true, message: "必输项" },
    ],
    //基本信息
    //处理方式
    "cpdgrp.rec.accmod": [
      { type: "string", required: true, message: "必输项" },
    ],
    //汇款性质
    "cpdgrp.rec.trntyp": [
      { type: "string", required: true, message: "必输项" },
    ],
    "cpdgrp.rec.ownref": [
      { type: "string", required: true, message: "必输项" },
      { max: 16, message: "长度不能超过16" }
    ],
    //汇款币种/金额
    "cpdgrp.cbs.nom1.cur": [
      { type: "string", required: true, message: "必输项" },
    ],
    "cpdgrp.cbs.nom1.amt": [
      { type: "string", required: true, message: "必输项" },
      { max: 18, message: "整数位不能超过14位" },
      { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
    ],
    //汇款语种
    "cptp.payuil": [
      { type: "string", required: true, message: "必输项" },
    ],
    //汇款人
    "cpdgrp.orc.pts.extkey": [
      { type: "string", required: true, message: "必输项" },
      { max: 16, message: "长度不能超过16" }
    ],
    // "cpdgrp.orc.pts.adrblk": [
    //   { type: "string", required: true, message: "必输项" },
    //   { max: 35, message: "长度不能超过35" }
    // ],
    //收款人
    "cpdgrp.pye.pts.extkey": [
      { type: "string", required: true, message: "必输项" },
      { max: 16, message: "长度不能超过16" }
    ],
    //付款人常驻国家/地区代码
    "cptp.draweecountcode": [
      { type: "string", required: true, message: "必输项" },
      { max: 3, message: "长度不能超过3" }
    ],
  }

}