<el-form-item label="付税日期" class="flex-20" prop="taxDate">
<el-date-picker
v-model="value3"
:editable="false"
type="datetime"
:picker-options="pickerOptions2"
placeholder="付税日期"
style="width: 192px;"
align="right"
value-format="yyyy-MM-dd HH:mm:ss"
@change='getTime()'
>
</el-date-picker>
value3: '',
pickerOptions2: {
shortcuts: [{
text: '最近一周',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近一个月',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近三个月',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]);
}
}]
},
getTime(){//格式化时间
this.getDataInfo();
},