|
|
@@ -49,9 +49,9 @@
|
|
|
<span>时间筛选</span>
|
|
|
<a-range-picker
|
|
|
ref="rangePicker"
|
|
|
- v-model="formState.year"
|
|
|
+ v-model="formState.time"
|
|
|
@calendarChange="onCalendarChange"
|
|
|
- :allowClear="false"
|
|
|
+ allowClear
|
|
|
:disabledDate="disabledDate"
|
|
|
style="margin-left: 10px"
|
|
|
valueFormat="YYYY-MM-DD"
|
|
|
@@ -240,7 +240,7 @@ export default {
|
|
|
mobile: "",
|
|
|
frameno: "",
|
|
|
userId: "",
|
|
|
- year: [moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD")],
|
|
|
+ time: [moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD")],
|
|
|
},
|
|
|
backLinePersonnel: {},
|
|
|
columns: columns,
|
|
|
@@ -295,6 +295,13 @@ export default {
|
|
|
// if (!this.startDate) {
|
|
|
// return false;
|
|
|
// }
|
|
|
+
|
|
|
+ if (this.formState.beginDate) {
|
|
|
+ return !(
|
|
|
+ moment(this.formState.beginDate).subtract(12, "month") < current &&
|
|
|
+ current < moment(this.formState.beginDate).add(12, "month")
|
|
|
+ );
|
|
|
+ }
|
|
|
if (this.startTime) {
|
|
|
return !(
|
|
|
moment(this.startTime).subtract(12, "month") < current &&
|
|
|
@@ -322,6 +329,7 @@ export default {
|
|
|
this.getVerification();
|
|
|
},
|
|
|
exportExcel() {
|
|
|
+ // delete this.formState.year;
|
|
|
this.$API.quote
|
|
|
.exportList({
|
|
|
// pageNum: this.pagination.current,
|
|
|
@@ -366,7 +374,7 @@ export default {
|
|
|
|
|
|
async getVerification() {
|
|
|
this.loading = true;
|
|
|
-
|
|
|
+ // delete this.formState.year;
|
|
|
this.$API.quote
|
|
|
.getBigOrderList({
|
|
|
pageNum: this.pagination.current,
|