Commit 0dc18423 authored by WindyWTH's avatar WindyWTH

客户保单结束日期自动填充逻辑改为加一年减一天

parent 0061005d
......@@ -225,7 +225,7 @@ export default {
// 保单生效日期选择后自动将保单结束日期置为一年后
startDateChange(val) {
if(!val){return}
this.form.endDate = moment(val).add(1, 'year').format('YYYY-MM-DD 00:00:00')
this.form.endDate = moment(val).add(1, 'year').subtract(1, 'day').format('YYYY-MM-DD 00:00:00')
},
handlerSave() {
this.$refs.form.validate((valid) => {
......
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