From a6e0ea9ce13e791f3edae4edffeb3be3ccb760be Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期一, 31 三月 2025 02:14:59 +0800 Subject: [PATCH] 版本更新 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/check/checkOrder.js | 70 +++++++++++++++++++++++++++++++++-- 1 files changed, 66 insertions(+), 4 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/check/checkOrder.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/check/checkOrder.js" index 8935403..96cf207 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/check/checkOrder.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/check/checkOrder.js" @@ -6,12 +6,13 @@ **鍚庡彴鎿嶄綔瑙侊細http://v2.volcore.xyz/document/netCoreDev *****************************************************************************************/ //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 - +import gridBody from './extend/checkResult.vue' +import gridHeader from './extend/checkResultInfo.vue' let extension = { components: { //鏌ヨ鐣岄潰鎵╁睍缁勪欢 - gridHeader: '', - gridBody: '', + gridHeader: gridHeader, + gridBody: gridBody, gridFooter: '', //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 modelHeader: '', @@ -32,7 +33,68 @@ // this.$Message.success('鐐瑰嚮浜嗘寜閽�'); // } // }); - + this.columns.push({ + title: '鎿嶄綔', + field: '鎿嶄綔', + width: 120, + align: 'center', + render: (h, { row, column, index }) => { + if ( row.checkOrderStatus == 0 ) { + return ( + <div> + <el-button + onClick={($e) => { + this.$refs.gridBody.open([row],true); + }} + type="primary" + plain + size="small" + style="height:26px; padding: 10px !important;" + > + 瀹℃牳 + </el-button> + </div> + ) + } + if ( row.checkOrderStatus == 1 ) { + return ( + <div> + <el-button + onClick={($e) => { + this.http + .post("api/CheckOrderResult/GetCheckResultInfo?checkId="+row.checkOrderId, "鏁版嵁澶勭悊涓�...") + .then((x) => { + if (x.status) { + if (x.data) { + x.data.checkquantity=row.receivedQuantity + } + this.$refs.gridHeader.open(x.data); + } else { + return this.$error(x.message); + } + }); + + }} + type="primary" + plain + size="small" + style="height:26px; padding: 10px !important;" + > + 妫�楠屼俊鎭� + </el-button> + </div> + ) + } + } + + }); + this.columns.forEach(x=>{ + //璁剧疆title鍒楀浐瀹� + if (x.field=='鎿嶄綔') { + x.fixed = 'right'; + // x.align="center"//璁剧疆鏂囨湰灞呬腑 + } + }) //绀轰緥锛氳缃慨鏀规柊寤恒�佺紪杈戝脊鍑烘瀛楁鏍囩鐨勯暱搴� // this.boxOptions.labelWidth = 150; }, -- Gitblit v1.9.3