Commit 389dce80 by denyu

添加校验大于开证日期

parent d9a9ec14
...@@ -143,28 +143,12 @@ export default { ...@@ -143,28 +143,12 @@ export default {
}, },
data(){ data(){
// var checkDate = (rule, value, callback) => {
// var a = new Date(value)
// var b =new Date(this.model.didgrp.rec.opndat)
// if (a.getTime()<b.getTime()) {
// return callback(new Error('日期必须大于开证日期'));
// }
//
// };
return { return {
trnName:"ditopn", trnName:"ditopn",
model:new Ditopn().data, model:new Ditopn().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
// rules: {
// "didgrp.rec.shpdat":[
// { validator: checkDate, trigger: 'blur' }
// ],
// "didgrp.rec.expdat":[
// { validator: checkDate, trigger: 'blur' }
// ],
// },
rules:null, rules:null,
codes:{ codes:{
cur:CodeTable.cur, cur:CodeTable.cur,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment