Check.js 4.76 KB
Newer Older
潘际乾 committed
1
import Utils from "~/utils"
2 3 4 5

/**
* Cptopn Check规则
*/
潘际乾 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
let checkObj = {
    "cptp.resbchnam"                      :null,
    "cptp.liqtyp"                      :null,
    "cpdgrp.ori.pts.adrblk"                      :null,
    "trdgrp.rec.ownref"                      :null,
    "cptp.recget.sdamod.dadsnd"                      :null,
    "cpdgrp.orc.pts.extkey"                      :null,
    "cnybop.outflg"                      :null,
    "cpdgrp.pye.namelc"                      :null,
    "cptp.commet"                      :null,
    "finmod.ratchgdat"                      :null,
    "cptp.orcp.ptsget.sdamod.dadsnd"                      :null,
    "cpdgrp.rec.amt71f"                      :null,
    "setmod.dspflg"                      :null,
    "cpdgrp.rec.ownref"                      :null,
    "cpdgrp.orc.adrelc"                      :null,
    "finmod.intamt"                      :null,
    "cptp.coract"                      :null,
    "cpdgrp.pye.pts.extkey"                      :null,
    "cpdgrp.pye.pts.adrblk"                      :null,
    "cpdgrp.rec.trntyp"                      :null,
    "cptp.reconebchnam"                      :null,
    "cpdgrp.ori.namelc"                      :null,
    "cnybop.cnyflg"                      :null,
    "cptp.bustyp"                      :null,
    "cpdgrp.rec.sztyp"                      :null,
    "finmod.ratchgprd"                      :null,
    "cptp.pyebchnam"                      :null,
    "cpdgrp.pye.adrelc"                      :null,
    "finmod.ratchgtyp"                      :null,
    "cpdgrp.rec.valdat"                      :null,
    "cpdgrp.rec.swftyp"                      :null,
    "cptp.orcnam"                      :null,
    "cptp.pyenam"                      :null,
    "trdgrp.fip.pts.extkey"                      :null,
    "cpdgrp.rec.f36"                      :null,
    "cpdgrp.rec.amtf33b"                      :null,
    "cptp.pyeadr"                      :null,
    "trdgrp.fip.namelc"                      :null,
    "finmod.ovdinttyp"                      :null,
    "cpdgrp.rec.curf33b"                      :null,
    "cpdgrp.rec.clityp"                      :null,
    "cptp.orcadr"                      :null,
    "cpdgrp.rec.paytype"                      :null,
    "finmod.flttyp"                      :null,
    "cpdgrp.snd.adrelc"                      :null,
    "cptp.payeecountcode"                      :null,
    "cptp.cleage"                      :null,
    "cptp.resbch"                      :null,
    "finmod.ovdintrat"                      :null,
    "cptp.orip.ptsget.sdamod.dadsnd"                      :null,
    "cpdgrp.orc.pts.adrblk"                      :null,
    "cpdgrp.rec.ischktyp"                      :null,
    "bopmod.szflg"                      :null,
    "cptp.sndp.ptsget.sdamod.dadsnd"                      :null,
    "cptp.evebch"                      :null,
    "finmod.fltval"                      :null,
    "cptp.secmod"                      :null,
    "cpdgrp.orc.namelc"                      :null,
    "cnybop.traflg"                      :null,
    "cptp.pyep.ptsget.sdamod.dadsnd"                      :null,
    "fipp.ptsget.sdamod.dadsnd"                      :null,
    "cpdgrp.ori.adrelc"                      :null,
    "cpdgrp.snd.pts.adrblk"                      :null,
    "cpdgrp.ori.pts.ref"                      :null,
    "finmod.act1"                      :null,
    "finmod.act3"                      :null,
    "cpdgrp.cbs.nom1.amt"                      :null,
    "finmod.intdat"                      :null,
    "cpdgrp.ori.pts.extkey"                      :null,
    "cptp.pyebchkey"                      :null,
    "cpdgrp.cbs.max.amt"                      :null,
    "cpdgrp.snd.pts.extkey"                      :null,
    "cpdgrp.rec.pyeact"                      :null,
    "trdgrp.fip.pts.adrblk"                      :null,
    "cpdgrp.rec.orcact"                      :null,
    "bopmod.basflg"                      :null,
    "trdgrp.fip.adrelc"                      :null,
    "mtabut.coninf.conexedat"                      :null,
    "cpdgrp.rec.paydat"                      :null,
    "cnybop.libflg"                      :null,
    "cpdgrp.cbs.max.cur"                      :null,
    "cpdgrp.rec.prechkdat"                      :null,
liuxin committed
89
    // "bopmod.ownextkey"                      :null,
潘际乾 committed
90 91 92 93 94 95
    "cpdgrp.rec.sysno"                      :null,
    "setmod.docamt"                      :null,
    "bopmod.acttyp"                      :null,
    "cpdgrp.snd.namelc"                      :null,
    "cpdgrp.rec.cur71f"                      :null,
    "cnybop.vouflg"                      :null,
96
}
潘际乾 committed
97 98 99 100 101

for (const key in checkObj) {
    if (Object.hasOwnProperty.call(checkObj, key)) {
        checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
    }
102
}
潘际乾 committed
103
export default checkObj