check.js 5.69 KB
Newer Older
fukai committed
1 2 3 4 5 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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
import {checkRuleOfTCP} from "RcpmisRules"
export default {
    data() {
			return{
				rules:checkRuleOfTCP().call({module:"TCPADD"}).call(this,this)
			}
        // return {
        //     rules: {
        //         "pblmod.pbl.reldat": [{
        //             validator: (rule, value, callback) => {
        //                 if (!value) {
        //                     callback(new Error('请输入业务发生日期'))
        //                 }
        //                 const currentDate = new Date().toISOString().slice(0, 10);
        //                 if (value > currentDate) {
        //                     callback(new Error('业务发生日期不得晚于系统日期!'))
        //                 } else {
        //                     callback()
        //                 }
        //             },
        //         }],
        //         "rmbbut.ownextkey": [
        //             {required: true, message: '必输项'}
        //         ],
        //         "recgrp.ads.levyno": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 24, message: "长度不能超过24"}
        //         ],


        //         "recgrp.ads.banktrano": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 16, message: "长度不能超过16"}
        //         ],
        //         "recgrp.ads.actiondesc": [
        //             {type: "string", required: false, message: "必输项"},
        //             {max: 126, message: "长度不能超过126"}
        //         ],
        //         // "recgrp.ads.bankorgcode": [
        //         //     {type: "string", required: true, message: "必输项"},
        //         //     {max: 12, message: "长度不能超过12"}
        //         // ],
        //         "recgrp.ads.openorgcode": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 18, message: "若存在18位的统一社会信用代码则填写统一社会信用代码,否则填写9位企业机构代码"},
        //             {
        //                 pattern: /[A-Z0-9]$/,
        //                 message: "仅支持数字和大写字母",
        //             },
        //             {
        //                 validator: function (rule, value, callback) {
        //                     if (value.length === 9 || value.length === 18) {
        //                         callback();

        //                     } else {
        //                         return callback(new Error('若存在18位的统一社会信用代码则填写统一社会信用代码,否则填写9位企业机构代码'));
        //                     }
        //                 }
        //             }
        //         ],
        //         "recgrp.ads.owenername": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 126, message: "长度不能超过126"}
        //         ],
        //         "recgrp.ads.bicbkacct": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 32, message: "长度不能超过32"}
        //         ],
        //         "recgrp.ads.counterorgcode": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 18, message: "若存在18位的统一社会信用代码则填写统一社会信用代码,否则填写9位企业机构代码"},
        //             {
        //                 pattern: /[A-Z|0-9]$/,
        //                 message: "仅支持数字和大写字母",
        //             },
        //             {
        //                 validator: function (rule, value, callback) {
        //                     if (value.length === 9 || value.length === 18) {
        //                         callback();

        //                     } else {
        //                         return callback(new Error('若存在18位的统一社会信用代码则填写统一社会信用代码,否则填写9位企业机构代码'));
        //                     }
        //                 }
        //             }
        //         ],
        //         "recgrp.ads.countername": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 126, message: "长度不能超过126"}
        //         ],
        //         "recgrp.ads.transdate": [
        //             {required: true, message: "输入正确的日期", trigger: "change"}
        //         ],

        //         "recgrp.ads.transamt": [
        //             {required: true, message: "必输项"},
        //             {
        //                 validator: (rule, value, callback) => {
        //                     if (value <= 0) {
        //                         return callback(new Error('必输项'))
        //                     }
        //                     callback()
        //                 }
        //             }
        //         ],

        //         "recgrp.ads.amttranspurpose": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 63, message: "长度不能超过63"}
        //         ],
        //         "recgrp.ads.transdirection": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 63, message: "长度不能超过63"}
        //         ],
        //         "recgrp.ads.addword": [
        //             {type: "string", required: true, message: "必输项"},
        //             {max: 126, message: "长度不能超过126"}
        //         ]

        //     }
        // }
    }
}