From 3859552775fdf2dc25bbf6d4504209acc6c846df Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期二, 17 三月 2026 09:33:53 +0800
Subject: [PATCH] 增加老厂排程单页面的物料编号缺料变红的显示和去除物料幅宽的小数点
---
项目代码/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue"
index 0d7740c..876ead7 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue"
@@ -86,9 +86,22 @@
</div>
<div v-else-if="item.type == 'tag'">
- <el-tag size="small">
+ <el-tag
+ size="small"
+ :type="getTagType(scoped.row, item)">
{{ getDictionary(scoped.row, item) }}
</el-tag>
+ </div>
+
+ <div v-else>
+ <!-- 鐗╂枡缂栧彿鍒楃壒娈婂鐞嗭紝缂烘枡鏃舵樉绀虹孩鑹� -->
+ <span v-if="item.prop == 'materialNo'" :style="{color: isMaterialShortage(scoped.row) ? 'red' : ''}">
+ {{ scoped.row[item.prop] }}
+ </span>
+ <!-- 鍏朵粬鏅�氬垪 -->
+ <span v-else>
+ {{ scoped.row[item.prop] }}
+ </span>
</div>
</template>
</el-table-column>
@@ -325,7 +338,7 @@
this.$refs.child.open(row);
} else {
//鐐瑰嚮鎵撳紑鍑哄簱璇︽儏
- this.$refs.selectedStock.open(row,this.row.outBSTOrderNo);
+ this.$refs.selectedStock.open(row,this.row.orderId);
}
},
outbound() {
@@ -412,6 +425,24 @@
}
}
},
+ getTagType(row, column) {
+ // 鏍规嵁璁㈠崟鐘舵�佽繑鍥炲搴旂殑鏍囩绫诲瀷
+ const status = row[column.prop];
+ if (status === 3) { // 缂烘枡
+ return 'danger'; // 绾㈣壊
+ } else if (status === 0) { // 鏈紑濮�
+ return 'success'; // 缁胯壊
+ } else if (status === 1) { // 鍑哄簱涓�
+ return 'primary'; // 钃濊壊
+ }
+ return ''; // 榛樿鏃犻鑹�
+ },
+ isMaterialShortage(row) {
+ // 鍒ゆ柇鐗╂枡鏄惁缂烘枡锛屼笌涓婚〉闈㈤�昏緫淇濇寔涓�鑷�
+ // 鏄庣粏鐘舵�佷负3琛ㄧず缂烘枡锛屾垨isLackMaterial涓簍rue/"鏄�"
+ return row.outSGOrderDetailStatus === 3 ||
+ (row.isLackMaterial && (typeof row.isLackMaterial === 'boolean' ? row.isLackMaterial : row.isLackMaterial === '鏄�'));
+ },
},
};
</script>
--
Gitblit v1.9.3