Check.js 5.01 KB
Newer Older
1
import Utils from "~/utils"
2 3 4 5

/**
* Cptadv Check规则
*/
6 7 8 9 10 11 12
let checkObj = {
    "cptp.liqtyp"                      :null,
    "cpdgrp.ori.pts.adrblk"                      :null,
    "cpdgrp.snd.pts.nam"                      :null,
    "cpdgrp.orc.pts.extkey"                      :null,
    "cnybop.outflg"                      :null,
    "cpdgrp.pye.namelc"                      :null,
13 14
    "cnybop.cnyinc.sbalancemode"                      :null,
    "cnybop.cnyinc.spayercountrycode"                      :null,
15 16 17 18 19
    "cptp.draweecountcode"                      :null,
    "setmod.dspflg"                      :null,
    "cpdgrp.rec.ownref"                      :null,
    "cpdgrp.orc.adrelc"                      :null,
    "cpdgrp.pye.pts.extkey"                      :null,
20
    "cnybop.cnyinc.frecordamt"                      :null,
21
    "cptp.uetr"                      :null,
22
    "cnybop.cnyinc.dpayeedate"                      :null,
23 24
    "cpdgrp.pye.pts.adrblk"                      :null,
    "cpdgrp.rec.trntyp"                      :null,
25
    "cnybop.cnyinc.sbankorgcode"                      :null,
26 27
    "cpdgrp.ori.namelc"                      :null,
    "cnybop.cnyflg"                      :null,
28
    "cnybop.saddword"                      :null,
29
    "cpdgrp.rec.sztyp"                      :null,
30 31
    "cnybop.cnyinc.sorilevyno"                      :null,
    "cnybop.cnyinc.sbanktrano"                      :null,
32 33 34 35 36
    "cptp.pyebchnam"                      :null,
    "cpdgrp.pye.adrelc"                      :null,
    "cpdgrp.rec.valdat"                      :null,
    "cpdgrp.rec.swftyp"                      :null,
    "cptp.orcnam"                      :null,
37 38
    "cnybop.cnyinc.iaccountperiod"                      :null,
    "cnybop.spayeename"                      :null,
39 40
    "lendoc.account"                      :null,
    "cpdgrp.rec.clityp"                      :null,
41
    "cnybop.cnyinc.cpayeeattr"                      :null,
42
    "cpdgrp.rec.paytype"                      :null,
43
    "cnybop.cnyinc.spayeeorgcode"                      :null,
44
    "cpdgrp.snd.adrelc"                      :null,
45
    "cnybop.incscale"                      :null,
46
    "cpdgrp.orc.pts.adrblk"                      :null,
47
    "cnybop.cnyinc.sswiftbic"                      :null,
48
    "bopmod.szflg"                      :null,
49
    "cnybop.cnyinc.fpayeeamt"                      :null,
50 51 52
    "cptp.secmod"                      :null,
    "cpdgrp.orc.namelc"                      :null,
    "cnybop.traflg"                      :null,
53
    "cnybop.sbankname"                      :null,
54 55 56 57 58 59 60
    "cpdgrp.ori.adrelc"                      :null,
    "cpdgrp.snd.pts.adrblk"                      :null,
    "cpdgrp.ori.pts.ref"                      :null,
    "cpdgrp.cbs.nom1.amt"                      :null,
    "cpdgrp.ori.pts.extkey"                      :null,
    "cptp.pyebchkey"                      :null,
    "cpdgrp.cbs.max.amt"                      :null,
61 62
    "cnybop.cnyinc.ftotalamt"                      :null,
    "cnybop.cnyinc.spayeecny"                      :null,
63 64 65
    "cpdgrp.snd.pts.extkey"                      :null,
    "bopmod.basflg"                      :null,
    "mtabut.coninf.conexedat"                      :null,
66
    "cnybop.spayername"                      :null,
67 68 69 70 71 72 73 74
    "cpdgrp.rec.paydat"                      :null,
    "cnybop.libflg"                      :null,
    "cpdgrp.cbs.max.cur"                      :null,
    "bopmod.ownextkey"                      :null,
    "cpdgrp.rec.sysno"                      :null,
    "setmod.docamt"                      :null,
    "bopmod.acttyp"                      :null,
    "cpdgrp.snd.namelc"                      :null,
75
    "cnybop.cnyinc.cpayeraccttyp"                      :null,
76
    "cnybop.vouflg"                      :null,
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

    "bopmod.dbbgrp.bas.exrate"                      :null,
    "bopmod.dbbgrp.bas.fcyamt"                      :null,
    "bopmod.dbbgrp.bas.methods"                      :null,
    "bopmod.dbbgrp.bas.idcode"                      :null,
    "bopmod.dbbgrp.bas.buscode"                      :null,
    "bopmod.dbbgrp.bas.lcyacc"                      :null,
    "bopmod.dbbgrp.bas.custype"                      :null,
    "bopmod.dbbgrp.bas.fcyacc"                      :null,
    "bopmod.dbbgrp.bas.txamt"                      :null,
    "bopmod.dbbgrp.bas.othamt"                      :null,
    "bopmod.dbbgrp.bas.actiontype"                      :null,
    "bopmod.dbbgrp.bas.lcyamt"                      :null,
    "bopmod.dbbgrp.bas.othacc"                      :null,
    "bopmod.dbbgrp.bas.actiondesc"                      :null,
    "bopmod.dbbgrp.bas.rptno"                      :null,
    "bopmod.dbbgrp.bas.custnm"                      :null,
    "bopmod.dbbgrp.bas.oppuser"                      :null,
    "bopmod.dbbgrp.bas.custcod"                      :null,
    "bopmod.dbbgrp.bas.txccy"                      :null,

98
}
99 100 101 102 103

for (const key in checkObj) {
    if (Object.hasOwnProperty.call(checkObj, key)) {
        checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
    }
104
}
105 106
export default checkObj