From f49fa4b5027cfdc27b429985d023e8002abcca2e Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 05 十一月 2025 23:54:12 +0800
Subject: [PATCH] 1
---
代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js | 96 +++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 94 insertions(+), 2 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js"
index fb16aa7..2632621 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js"
@@ -1,12 +1,14 @@
//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
import gridBody from "./extend/HandOutbound.vue"
+import modelBody from "./extend/HandMaterials.vue"
+import griForter from "./extend/HandGenerateti.vue"
let extension = {
components: {
//鏌ヨ鐣岄潰鎵╁睍缁勪欢
- gridHeader: '',
+ gridHeader: modelBody,
gridBody: gridBody,
- gridFooter: '',
+ gridFooter: griForter,
//鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
modelHeader: '',
modelBody: '',
@@ -61,6 +63,38 @@
}
}
+ var btnMaterialstaticupdate = this.buttons.find(x => x.value == "Materialstaticupdate");
+ if (btnMaterialstaticupdate != null) {
+ btnMaterialstaticupdate.onClick = () => {
+ let rows = this.$refs.table.getSelected();
+ if (rows.length == 0) {
+ return this.$error("璇烽�夋嫨鏁版嵁!");
+ } else {
+ var ids = rows.map(x => {
+ return x.id
+ })
+ this.$refs.gridHeader.open(ids);
+ this.refresh();
+ }
+ }
+ }
+
+ var btnHanGeneratetime = this.buttons.find(x => x.value == "HanGeneratetime");
+ if (btnHanGeneratetime != null) {
+ btnHanGeneratetime.onClick = () => {
+ let rows = this.$refs.table.getSelected();
+ if (rows.length == 0) {
+ return this.$error("璇烽�夋嫨鏁版嵁!");
+ } else {
+ var ids = rows.map(x => {
+ return x.id
+ })
+ this.$refs.gridFooter.open(ids);
+ this.refresh();
+ }
+ }
+ }
+
var btnHandOutbound2 = this.buttons.find(x => x.value == "HandOutboundt");
if (btnHandOutbound2 != null) {
@@ -89,6 +123,64 @@
}
}
}
+
+
+ this.columns.forEach(x => {
+ if (x.field == "wlstatus") {
+ //鏍规嵁涓嶅悓鐨勫�硷紝瀹氫箟涓嶅悓鐨勬牱寮�(濡傦細鏂囧瓧棰滆壊)
+ x.render = (h, { row, column, index }) => {
+ if(row.wlstatus=='1'){
+ return (
+ <span style="display:block;background-color:#67c23a;width:65px;text-align:center;color:white;border:1px solid #67c23a;border-radius:5px;">
+ 鍚堟牸
+ </span>
+ );
+ }else if(row.wlstatus=='0'){
+ return (
+ <tr style="display:block;background-color:#f4b400;width:65px;text-align:center;color:white;border:1px solid #f4b400;border-radius:5px;">
+ 寰呮
+ </tr>
+ );
+ }else if(row.wlstatus=='2'){
+ return (
+ <tr style="display:block;background-color:#f56c6c;width:65px;text-align:center;color:white;border:1px solid #f56c6c;border-radius:5px;">
+ 涓嶅悎鏍�
+ </tr>
+ );
+ }else if(row.wlstatus=='3'){
+ return (
+ <tr style="display:block;background-color:#909399;width:65px;text-align:center;color:white;border:1px solid #909399;border-radius:5px;">
+ 绌烘墭
+ </tr>
+ );
+ }else if(row.wlstatus=='4'){
+ return (
+ <tr style="display:block;background-color:#f87eb9;width:65px;text-align:center;color:white;border:1px solid #f87eb9;border-radius:5px;">
+ 閫�璐�
+ </tr>
+ );
+ }else if(row.wlstatus=='5'){
+ return (
+ <tr style="display:block;background-color:#409eff;width:65px;text-align:center;color:white;border:1px solid #409eff;border-radius:5px;">
+ 杩斿伐
+ </tr>
+ );
+ }else if(row.wlstatus=='6'){
+ return (
+ <tr style="display:block;background-color:#9b59b6;width:65px;text-align:center;color:white;border:1px solid #9b59b6;border-radius:5px;">
+ 鐗归噰
+ </tr>
+ );
+ }else{
+ return (
+ <span style="display:block;background-color:#909399;width:55px;text-align:center;color:white;border:1px solid #e9e9eb;border-radius:5px;">
+ 鏈煡
+ </span>
+ );
+ }
+ }
+ }
+ });
},
onInited() {
//妗嗘灦鍒濆鍖栭厤缃悗
--
Gitblit v1.9.3