diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue
index 1d3646af..7cdbe545 100644
--- a/src/views/device/sparePartsApplicationRecord/index.vue
+++ b/src/views/device/sparePartsApplicationRecord/index.vue
@@ -57,14 +57,6 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
+
+
+
+
搜索
重置
@@ -140,17 +145,17 @@
-
+
- {{ parseTime(scope.row.applyTime, '{y}-{m}-{d}') }}
+ {{ parseTime(scope.row.applyTime) }}
-
-
+
+
@@ -272,8 +277,37 @@ export default {
attr1: null,
attr2: null,
attr3: null,
- factoryCode: null
+ factoryCode: null,
+ applyTimeArray: []
},
+ // 日期范围选择快捷
+ pickerOptions: {
+ 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]);
+ }
+ }]
+ },
// 表单参数
form: {},
// 表单校验
@@ -337,6 +371,7 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
+ this.queryParams.applyTimeArray = [];
this.handleQuery();
},
// 多选框选中数据