|
@@ -284,11 +284,12 @@ export default {
|
|
|
this.startTime = values[0];
|
|
this.startTime = values[0];
|
|
|
let startTime = moment(values[0]);
|
|
let startTime = moment(values[0]);
|
|
|
let endTime = moment(values[1]);
|
|
let endTime = moment(values[1]);
|
|
|
- this.formState.beginDate = values[0];
|
|
|
|
|
- this.formState.endDate = values[1];
|
|
|
|
|
|
|
+ this.formState.beginDate = values[0] || "";
|
|
|
|
|
+ this.formState.endDate = values[1] || "";
|
|
|
if (endTime.diff(startTime, "years") > 1) {
|
|
if (endTime.diff(startTime, "years") > 1) {
|
|
|
this.$message.error("选择范围不能超过一年!");
|
|
this.$message.error("选择范围不能超过一年!");
|
|
|
}
|
|
}
|
|
|
|
|
+ // this.getList();
|
|
|
},
|
|
},
|
|
|
disabledDate(current) {
|
|
disabledDate(current) {
|
|
|
// console.log(current);
|
|
// console.log(current);
|
|
@@ -373,6 +374,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async getVerification() {
|
|
async getVerification() {
|
|
|
|
|
+ console.log(this.formState);
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
// delete this.formState.year;
|
|
// delete this.formState.year;
|
|
|
this.$API.quote
|
|
this.$API.quote
|
|
@@ -380,6 +382,12 @@ export default {
|
|
|
pageNum: this.pagination.current,
|
|
pageNum: this.pagination.current,
|
|
|
pageSize: this.pagination.defaultPageSize,
|
|
pageSize: this.pagination.defaultPageSize,
|
|
|
...this.formState,
|
|
...this.formState,
|
|
|
|
|
+ beginDate: this.formState.time.length
|
|
|
|
|
+ ? this.formState.time[0]
|
|
|
|
|
+ : undefined,
|
|
|
|
|
+ endDate: this.formState.time.length
|
|
|
|
|
+ ? this.formState.time[1]
|
|
|
|
|
+ : undefined,
|
|
|
deptId: this.deptId,
|
|
deptId: this.deptId,
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
@@ -398,6 +406,12 @@ export default {
|
|
|
// pageNum: this.pagination.current,
|
|
// pageNum: this.pagination.current,
|
|
|
// pageSize: this.pagination.defaultPageSize,
|
|
// pageSize: this.pagination.defaultPageSize,
|
|
|
...this.formState,
|
|
...this.formState,
|
|
|
|
|
+ beginDate: this.formState.time.length
|
|
|
|
|
+ ? this.formState.time[0]
|
|
|
|
|
+ : undefined,
|
|
|
|
|
+ endDate: this.formState.time.length
|
|
|
|
|
+ ? this.formState.time[1]
|
|
|
|
|
+ : undefined,
|
|
|
deptId: this.deptId,
|
|
deptId: this.deptId,
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|