// import Check2122 from "~/components/business/rmb/rmb2122/model/check.js"
import CfagitCheck from '~/components/business/Cfagit/model/check.js';

export default {
  data() {
    return {
      rules: {
         // 关联类型
        "fremsg.erxmod.ersp.mantyp": [
          { type: "string", required: true, message: this.$t('remit.必输项') }
          // { max: 4, message: this.$t('components.长度不能超过')+4 }
        ],
        // 事务类型
        "fremsg.erxmod.ersp.dontyp": [
          { type: "string", required: true, message: this.$t('remit.必输项') }
          // { max: 4, message: this.$t('components.长度不能超过')+4 }
        ],
        "fremsg.erxmod.ersp.bwbsh": [
          // 原报文标识号
          { type: "string", required: true, message: this.$t('remit.必输项') },
          { max: 35, message: this.$t('components.长度不能超过')+35 }
        ],
        // 止付原因
        "cpdgrp.cpdret.rejcod": [
          { type: "string", required: true, message: this.$t('remit.必输项') },
          { max: 4, message: this.$t('components.长度不能超过')+4 }
        ],
        // 原行内关联编号
        "fremsg.erxmod.ersp.yhnglbh": [
          { type: "string", required: true, message: this.$t('remit.必输项') }
          // { max: 4, message: this.$t('components.长度不能超过')+4 }
        ],
        // 收报行行号
        "cpdgrp.ooa.pts.extkey": [
          { type: "string", required: false, message: this.$t('remit.必输项') },
          { max: 11, message: this.$t('components.长度不能超过')+11 }
        ],
        // 收报行名称
        "cpdgrp.ooa.pts.namforall": [
          { type: "string", required: false, message: this.$t('remit.必输项') },
          { max: 140, message: this.$t('components.长度不能超过')+140 }
        ],
        // ...new Check2122(this).check,
        ...new CfagitCheck(this).check,
      }
    };
  },
};