From 1bcee828a3340d5f5642b3dbcf4cd9733072b7aa Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期一, 21 七月 2025 14:24:35 +0800
Subject: [PATCH] LLJ检验结果录入优化:添加自动保存和回车保存功能
---
pages/QC/LLJ/List.vue | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/pages/QC/LLJ/List.vue b/pages/QC/LLJ/List.vue
index 779c14c..d02936a 100644
--- a/pages/QC/LLJ/List.vue
+++ b/pages/QC/LLJ/List.vue
@@ -30,7 +30,6 @@
</view>
</view>
-
<!-- 妫�楠屽崟鍒楄〃 -->
<view class="inspection-list">
<!-- 妫�楠屽崟鍗$墖1 -->
@@ -302,10 +301,19 @@
},
onShow() {
//姣忔杩涘叆椤甸潰閮戒細鎵ц鐨勬柟娉�
- // this.pageIndex = 1;
- // this.data = [];
- // //this.current = 0
+ // 妫�鏌ユ槸鍚﹂渶瑕佸埛鏂版暟鎹�
+ const app = getApp();
+ if (app.globalData && app.globalData.needRefreshList) {
+ // 娓呴櫎鏍囪
+ app.globalData.needRefreshList = false;
+ // 寮哄埗鍒锋柊鏁版嵁
+ this.pageIndex = 1; // 閲嶇疆椤电爜
+ this.inspectionList = []; // 娓呯┖鍒楄〃鏁版嵁
+ this.init(); // 閲嶆柊鍔犺浇鏁版嵁
+ } else {
+ // 姝e父鍒锋柊
this.init();
+ }
},
async onLoad() {
if (this.$loginInfo.roleid.indexOf("90134") != -1 || this.$loginInfo.account == "PL017") {
--
Gitblit v1.9.3