From 6bf8209f8bdfe138d5282059eef765324909f2fd Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期一, 09 六月 2025 23:31:19 +0800 Subject: [PATCH] 新增特殊物料备注 --- pages/QC/LLJ/List.vue | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/pages/QC/LLJ/List.vue b/pages/QC/LLJ/List.vue index 79d303f..779c14c 100644 --- a/pages/QC/LLJ/List.vue +++ b/pages/QC/LLJ/List.vue @@ -38,10 +38,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> @@ -176,7 +182,8 @@ result: result, SearchValue: this.searchValue, selectedIndex: this.optionsIndex, //涓嬫媺妗嗙瓫閫夋潯浠� - userIndex: this.projectIndex + userIndex: this.projectIndex, + emergency:this.meergency, } }).then(res => { if (this.pageIndex === 1) { @@ -186,6 +193,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 { @@ -196,6 +204,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); }); } @@ -470,6 +479,12 @@ color: white; } + .badge.emergency { + background-color: #ff4d4f; + color: white; + margin-right: 5px; + } + .status { font-size: 12px; padding: 4px 8px; @@ -610,5 +625,9 @@ order: 4; width: 100%; } */ + .status.emergency-pending { + background-color: #ff0000; /* 绾㈣壊鑳屾櫙 */ + color: white; + } } </style> \ No newline at end of file -- Gitblit v1.9.3