From 3158acfcdb77eb34aa9ee4f7779b0025de7c56d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Fri, 4 Sep 2026 10:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81wcs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../noOrderIssue/noOrderNotification54.vue | 251 ++++++------------ 1 file changed, 82 insertions(+), 169 deletions(-) diff --git a/src/views/modules/haianWarehouse/noOrderIssue/noOrderNotification54.vue b/src/views/modules/haianWarehouse/noOrderIssue/noOrderNotification54.vue index ab62c26..19421f3 100644 --- a/src/views/modules/haianWarehouse/noOrderIssue/noOrderNotification54.vue +++ b/src/views/modules/haianWarehouse/noOrderIssue/noOrderNotification54.vue @@ -197,13 +197,13 @@ - + + width="70%"> @@ -241,150 +241,76 @@ label="订单号" width="130" align="center"> + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + = 0) { - return 'danger-row' - } - if (['TARGET_AREA', 'SHARED_PALLET_CONFLICT', 'ALREADY_PUSHED'].indexOf(failureCode) >= 0) { - return 'warning-row' - } - if (row && row.matchStatus === 'MATCHED' && row.orderSatisfactionStatus === 'COMPLETE') { - return 'success-row' - } - if (row && row.matchStatus === 'FAILED') { - return 'danger-row' - } - return '' + const classNames = [] + if (row && row.displayRowType === 'SPECIFIED') classNames.push('specified-preview-row') + if (row && row.matchStatus === 'FAILED') classNames.push('danger-row') + if (row && row.matchStatus === 'MATCHED') classNames.push('success-row') + return classNames.join(' ') }, - /** - * 将机器状态转换成现场可读文案,失败时优先显示指定明细或区域阻塞阶段 - rqrq - */ - getMatchStatusText (row) { - if (!row) return '' - if (row.failureCode && row.failureCode.indexOf('SPECIFIED_DETAIL') === 0) return '指定明细阻塞' - if (row.failureCode === 'TARGET_AREA') return '目标区域配置失败' - if (row.failureCode === 'SHARED_PALLET_CONFLICT') return '共享托盘阻塞' - if (row.failureCode === 'ALREADY_PUSHED') return '已存在推送任务' - if (row.failureCode === 'INVENTORY_SHORTAGE') return '普通库存不足' - if (row.matchStatus === 'MATCHED' && row.orderSatisfactionStatus === 'COMPLETE') return '完整满足' - if (row.matchStatus === 'MATCHED') return '已匹配' - if (row.matchStatus === 'FAILED') return '匹配失败' - return '汇总待确认' - }, - - /** - * 返回预览状态颜色,成功、指定阻塞、库存不足和配置失败保持不同视觉层级 - rqrq - */ - getMatchStatusColor (row) { - if (row && row.failureCode && row.failureCode.indexOf('SPECIFIED_DETAIL') === 0) return '#F56C6C' - if (row && (row.failureCode === 'TARGET_AREA' || row.failureCode === 'SHARED_PALLET_CONFLICT' || row.failureCode === 'ALREADY_PUSHED')) return '#E6A23C' - if (row && row.failureCode === 'INVENTORY_SHORTAGE') return '#F56C6C' - if (row && row.matchStatus === 'MATCHED' && row.orderSatisfactionStatus === 'COMPLETE') return '#67C23A' - return '#909399' + /** 数量展示去除无意义尾零,空值统一显示0,避免同一列出现不同格式 - rqrq */ + formatPreviewQty (value) { + if (value === null || value === undefined || value === '') return '0' + return String(value).replace(/(\.\d*?[1-9])0+$|\.0+$/, '$1') }, /** @@ -2824,7 +2718,7 @@ export default { }