From eaa506e57403d1b8502f16ca5dd6e82c347724d0 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期四, 17 七月 2025 23:09:32 +0800 Subject: [PATCH] 优化QC模块样式统一和功能完善 --- pages/QC/LLJ/List.vue | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/pages/QC/LLJ/List.vue b/pages/QC/LLJ/List.vue index 0320e9e..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 --> @@ -38,10 +37,16 @@ <view class="card-header"> <text class="badge urgent" v-if="item.urgentFlag == 1">鎬ユ枡</text> <text class="badge urgent" v-if="item.jycs == 1">瓒呮椂</text> + <text class="badge normal" v-if="item.ftype == 1">濮斿</text> <text class="badge normal" v-if="item.first == 1">棣栨鏉ユ枡</text> <text class="card-title">妫�楠屽崟鍙�: {{item.releaseNo}}</text> - <text class="status pending" v-if="item.userName==null && item.activeTab==0">寰呭垎閰�</text> + <view v-if="item.userName == null && item.activeTab == 0"> + <text class="status pending" :class="{ 'emergency-pending': item.lotNo1 === '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!' }"> + {{ item.lotNo1 === '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!' ? '绱ф�ユ斁琛�/寰呭垎閰�' : '寰呭垎閰�' }} + </text> + + </view> <text class="status assigned" v-if="item.userName!=null && item.activeTab==0">宸插垎閰�</text> <text class="status pass" v-if="item.fcheckResu=='鍚堟牸' && item.activeTab==1">鍚堟牸</text> <text class="status Unqualified" v-if="item.fcheckResu=='涓嶅悎鏍�' && item.activeTab==1">涓嶅悎鏍�</text> @@ -121,7 +126,7 @@ pageIndex: 1, limit: 20, IQCJL: 0, - options: ['椤圭洰', '鐗╂枡缂栧彿', '鐗╂枡鍚嶇О', '渚涘簲鍟�', '閲囪喘鍛�','鍒拌揣鍗曞彿','妫�楠屽崟鍙�'], + options: ['椤圭洰', '鐗╂枡缂栧彿', '鐗╂枡鍚嶇О', '渚涘簲鍟�', '閲囪喘鍛�','鍒拌揣鍗曞彿','妫�楠屽崟鍙�','鐗╂枡瑙勬牸'], searchValue: '' } @@ -143,6 +148,7 @@ 4: 'purchaser' ,// 閲囪喘鍛� 5: 'lotNO' ,// 鍒拌揣鍗曞彿 6: 'releaseNO' ,// 妫�楠屽崟鍙� + 7: 'ItemModel',//鐗╂枡瑙勬牸 }; this.selectedField = fieldMap[this.optionsIndex]; }, @@ -175,7 +181,8 @@ result: result, SearchValue: this.searchValue, selectedIndex: this.optionsIndex, //涓嬫媺妗嗙瓫閫夋潯浠� - userIndex: this.projectIndex + userIndex: this.projectIndex, + emergency:this.meergency, } }).then(res => { if (this.pageIndex === 1) { @@ -185,6 +192,7 @@ this.inspectionList.forEach((item, index) => { this.$set(item, 'activeTab', this.activeTab); this.$set(item, 'IQCJL', this.IQCJL); + this.$set(item, 'EMERGENCY', item.emergency || null); }); } else { @@ -195,6 +203,7 @@ this.inspectionList.forEach((item, index) => { this.$set(item, 'activeTab', this.activeTab); this.$set(item, 'IQCJL', this.IQCJL); + this.$set(item, 'EMERGENCY', item.emergency || null); }); } @@ -292,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") { @@ -469,6 +487,12 @@ color: white; } + .badge.emergency { + background-color: #ff4d4f; + color: white; + margin-right: 5px; + } + .status { font-size: 12px; padding: 4px 8px; @@ -609,5 +633,9 @@ order: 4; width: 100%; } */ + .status.emergency-pending { + background-color: #ff0000; /* 绾㈣壊鑳屾櫙 */ + color: white; + } } </style> \ No newline at end of file -- Gitblit v1.9.3