From 153c6519bc5e5a3dc93fa511b165b5ee7b01e8d5 Mon Sep 17 00:00:00 2001
From: qb <1191961160@qq.com>
Date: Sat, 11 May 2024 13:49:09 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=B9=B2?=
=?UTF-8?q?=E7=BA=BFbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../distribution/artery/AddVehicleStowage.vue | 95 ++++++++++++-------
src/views/waybill/TemporaryStorageList.vue | 2 +-
2 files changed, 61 insertions(+), 36 deletions(-)
diff --git a/src/views/distribution/artery/AddVehicleStowage.vue b/src/views/distribution/artery/AddVehicleStowage.vue
index 1b7ff261..91b9cbf2 100644
--- a/src/views/distribution/artery/AddVehicleStowage.vue
+++ b/src/views/distribution/artery/AddVehicleStowage.vue
@@ -355,7 +355,7 @@
搜 索
- 重置
+ 重 置
@@ -425,8 +425,7 @@
:model="details.newQuery"
class="el-fr-d"
>
-
-
-
- item.itemTimesc(value, { prop: 'createTimeArr' })"
- />
-
-
-
+
+ item.itemTimesc(value, { prop: 'createTimeArr' })"
+ />
+
+
+ item.itemTimesc(value, { prop: 'openTimeArr' })"
+ />
+
+
+ item.itemFilterData()"
+ >
+ 搜 索
+
+ item.itemClearQuery()">
+ 重 置
+
+
@@ -619,6 +637,7 @@ import {
isNumber,
deepClone,
debounce,
+ handleClearTableQuery,
} from '@/utils/util';
import {
columnList,
@@ -1048,7 +1067,7 @@ const onLoad = async () => {
if (!value) delete this.timeQuery[prop];
- this.itemFilterData();
+ // this.itemFilterData();
},
/** 筛选数据 */
itemFilterData() {
@@ -1086,6 +1105,13 @@ const onLoad = async () => {
this.renderData = _filterArr;
},
+ /** 清空搜索的值 */
+ itemClearQuery() {
+ this.query = {};
+ this.timeQuery = {};
+ handleClearTableQuery(this.newColumnList);
+ this.itemFilterData();
+ },
MappingData: [],
};
@@ -1171,10 +1197,8 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.page.pageNum = 1;
- for (let i = 0; i < details.columnList.length; i++) {
- const value = details.columnList[i];
- value.values = '';
- }
+
+ handleClearTableQuery(details.columnList);
initOriginWarehouseOrder();
};
@@ -1392,7 +1416,7 @@ const handleAddNode = async (index: number) => {
if (!value) delete this.timeQuery[prop];
- this.itemFilterData();
+ // this.itemFilterData();
},
/** 筛选数据 */
itemFilterData() {
@@ -1430,6 +1454,13 @@ const handleAddNode = async (index: number) => {
this.renderData = _filterArr;
},
+ /** 清空搜索的值 */
+ itemClearQuery() {
+ this.query = {};
+ this.timeQuery = {};
+ handleClearTableQuery(this.newColumnList);
+ this.itemFilterData();
+ },
MappingData: [],
});
@@ -1882,12 +1913,6 @@ const handleSubmit = (formEl: FormInstance | undefined) => {