Commit 389dce80 by denyu

添加校验大于开证日期

parent d9a9ec14
......@@ -143,28 +143,12 @@ export default {
},
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 {
trnName:"ditopn",
model:new Ditopn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
// rules: {
// "didgrp.rec.shpdat":[
// { validator: checkDate, trigger: 'blur' }
// ],
// "didgrp.rec.expdat":[
// { validator: checkDate, trigger: 'blur' }
// ],
// },
rules:null,
codes:{
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