From 95e39ae7aecd6e1016c71cf5ae70a680d8f569bb Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期二, 29 四月 2025 10:48:30 +0800 Subject: [PATCH] 上传最新代码 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js" index 92ad623..d4a4ff8 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js" @@ -19,6 +19,7 @@ methods: { //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� onInit() { + // let InOrder = this.buttons.find(x => x.value == 'StockOutbound'); // if (InOrder) { // InOrder.onClick = function () { @@ -86,7 +87,7 @@ .map(x => { sum += (x.stockQuantity) }) - return '<span style="color: #F56C6C">' + sum + row.details[0].unit + '</span>'; + return '<span style="color: #F56C6C">' + sum.toFixed(3) + row.details[0].unit + '</span>'; } else { return '<span style="color: #F56C6C">' + "1涓�" + '</span>'; } @@ -94,11 +95,38 @@ } } }) + this.columns.forEach((x) => { + if (x.field == 'materielInfo') { + x.cellStyle = (row, rowIndex, columnIndex) => { + if (row.palletCode == 'BCS20250225001') { + return { background: '#E6A23C' }; + } + }; + } + + //濡傛灉鏍规嵁琛岀殑鏌愪釜鍊艰缃暣琛岄鑹� + //璁剧疆鏁磋鑳屾櫙棰滆壊 + // x.cellStyle = (row, rowIndex, columnIndex) => { + // if (row.ProductCode == '10044464880643') { + // return { background: '#ddecfd' }; + // } + // }; + }); }, onInited() { //妗嗘灦鍒濆鍖栭厤缃悗 //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 //this.detailOptions.columns.forEach(column=>{ }); + this.detailOptions.summary = true; + this.detailOptions.columns.forEach(x => { + if (x.field == 'stockQuantity') { + x.summary = true; + //璁$畻骞冲潎鍊� + // x.summary = 'avg';//2023.05.03鏇存柊voltable鏂囦欢鍚庢墠鑳戒娇鐢� + //璁剧疆灏忔暟鏄剧ず浣嶆暟(榛樿2浣�) + // x.numberLength = 4; + } + }); }, searchBefore(param) { //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 -- Gitblit v1.9.3