Check.js 858 Bytes
Newer Older
1 2 3 4 5 6
import Utils from "~/utils"

/**
* Cnysel Check规则
*/
let checkObj = {
7 8 9 10
    "cnyselp.cnyout.spayercountrycode"                      :null,
    "cnyselp.cnyvou.svouchercountrycode"                      :null,
    "cnyselp.cnyinc.spayercountrycode"                      :null,
    "cnyselp.cnyvou.sdebtorcountrycode"                      :null,
11
    "cnytyp"                      :null,
12 13 14
    "cnyselp.cnyvou.svoucheecountrycode"                      :null,
    "cnyselp.cnytra.samttranspurpose"                      :null,
    "cnyselp.cnyvou.sreversecountrycode"                      :null,
15
    "cnyselp.cnylib.sforeigncountrycode"                      :null,
16 17 18 19 20 21 22 23 24
}

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