From f0ee0dda301ef09ddbf36c1699309e4dc0963e63 Mon Sep 17 00:00:00 2001 From: kyy <3283105747@qq.com> Date: 星期五, 29 八月 2025 17:55:32 +0800 Subject: [PATCH] 1、新增重新获取按钮 --- pages/QC/OQC/Add.vue | 56 ++++++++++---------------------------------------------- 1 files changed, 10 insertions(+), 46 deletions(-) diff --git a/pages/QC/OQC/Add.vue b/pages/QC/OQC/Add.vue index c9263fb..9ce65df 100644 --- a/pages/QC/OQC/Add.vue +++ b/pages/QC/OQC/Add.vue @@ -51,23 +51,20 @@ </view> <view v-if="tableData.length > 0" class="inspection-list"> - <view v-for="(item, index) in tableData" :key="index" - :class="{ 'item-completed': item.fcheckResu === '鍚堟牸', 'item-failed': item.fcheckResu === '涓嶅悎鏍�' }" + <view v-for="(item, index) in tableData" :key="index" :class="{ 'item-completed': item.fcheckResu === '鍚堟牸', 'item-failed': item.fcheckResu === '涓嶅悎鏍�' }" class="inspection-item"> <!-- 宸︿晶鐘舵�佹寚绀哄櫒 --> - <view - :class="{ 'status-pass': item.fcheckResu === '鍚堟牸', 'status-fail': item.fcheckResu === '涓嶅悎鏍�', 'status-pending': item.fcheckResu === '鏈楠�' }" - class="status-indicator"> + <view :class="{ 'status-pass': item.fcheckResu === '鍚堟牸', 'status-fail': item.fcheckResu === '涓嶅悎鏍�', 'status-pending': item.fcheckResu === '鏈楠�' }" + class="status-indicator"> </view> <!-- 涓昏鍐呭鍖哄煙 --> <view class="item-content"> <view class="item-header"> <view class="item-title">{{ item.fcheckItem }}</view> - <view - :class="{ 'badge-pass': item.fcheckResu === '鍚堟牸', 'badge-fail': item.fcheckResu === '涓嶅悎鏍�', 'badge-pending': item.fcheckResu === '鏈楠�' }" - class="status-badge"> + <view :class="{ 'badge-pass': item.fcheckResu === '鍚堟牸', 'badge-fail': item.fcheckResu === '涓嶅悎鏍�', 'badge-pending': item.fcheckResu === '鏈楠�' }" + class="status-badge"> <text class="status-icon">{{ item.fcheckResu === '鍚堟牸' ? '鉁�' : item.fcheckResu === '涓嶅悎鏍�' ? '鉁�' : '鈼�' }} @@ -84,19 +81,16 @@ <view class="progress-info"> <text class="progress-label">妫�楠岃繘搴�:</text> <view class="progress-bar"> - <view - :class="{ 'progress-complete': item.fenterQty >= item.checkQyt, 'progress-incomplete': item.fenterQty < item.checkQyt }" - :style="{ width: (item.fenterQty / item.checkQyt * 100) + '%' }" - class="progress-fill"> + <view :class="{ 'progress-complete': item.fenterQty >= item.checkQyt, 'progress-incomplete': item.fenterQty < item.checkQyt }" + :style="{ width: (item.fenterQty / item.checkQyt * 100) + '%' }" + class="progress-fill"> </view> </view> <text class="progress-text">{{ item.fenterQty }}/{{ item.checkQyt }}</text> </view> - <view - :class="{ 'btn-complete': item.fenterQty >= item.checkQyt, 'btn-incomplete': item.fenterQty < item.checkQyt }" - class="action-button" - @click="toDetail(item)"> + <view :class="{ 'btn-complete': item.fenterQty >= item.checkQyt, 'btn-incomplete': item.fenterQty < item.checkQyt }" class="action-button" + @click="toDetail(item)"> <text class="btn-text">{{ item.fenterQty >= item.checkQyt ? '鏌ョ湅璇︽儏' : '寮�濮嬫楠�' }}</text> <text class="btn-icon">鈫�</text> </view> @@ -116,7 +110,6 @@ <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> <view class="action-buttons"> <button class="btn btn-primary" @click="submitInspection">鎻愪氦</button> - <button v-if="formData.fsubmit != 1" class="btn btn-primary" @click="regenerate">鐢熸垚妫�楠岄」鐩�</button> <button class="secondary-btn" @click="uploadImages">涓婁紶/鏌ョ湅鍥剧墖</button> <button class="btn btn-secondary" @click="addDefectDescription">娣诲姞涓嶅悎鏍兼弿杩�</button> </view> @@ -247,35 +240,6 @@ }); }, 2000); // 淇濇寔涓� duration 鐩稿悓鐨勬椂闀� - } else { - uni.showModal({ - title: "鎻愮ず", - content: res.message.toString(), - confirmText: "纭畾", - showCancel: false, - success: (res) => { - - } - }) - } - }) - }, - - regenerate() { - // 妫�楠屾彁浜ょ殑閫昏緫 - this.$post({ - url: "/MesOqcItemsDetect02/Regenerate", - data: { - releaseNo: this.formData.releaseNo, - itemId: this.formData.itemId - } - }).then(res => { - if (res.status == 0) { - uni.showToast({ - title: res.message.toString(), - icon: 'success', - duration: 2000 - }) } else { uni.showModal({ title: "鎻愮ず", -- Gitblit v1.9.3