Commit 56f55357 by WF1020

letopn修改开证日期初始值

parent 4dc08bf1
......@@ -460,14 +460,12 @@ export default {
"model.ledgrp.rec.nomtop":{
immediate:true,
handler(val,old) {
console.log(val);
this.model.ledgrp.rec.nomtop = `${val}''`.replace(/\D/g, '');
}
},
"model.ledgrp.rec.nomton":{
immediate:true,
handler(val,old) {
console.log(val);
this.model.ledgrp.rec.nomton = `${val}''`.replace(/\D/g, '');
}
}
......@@ -479,6 +477,14 @@ export default {
}
},
},
created() {
var aData = new Date();
console.log(aData) //Wed Aug 21 2023 10:00:58 GMT+0800 (中国标准时间)
this.model.ledgrp.rec.opndat =
aData.getFullYear() + "-" + (aData.getMonth() + 1) + "-" + aData.getDate();
console.log(this.model.ledgrp.rec.opndat) //2019-8-20
},
};
</script>
......
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