From 9e579eda4601ed7b492b9d19a24e8146f6ebdf8d Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期六, 19 四月 2025 19:50:43 +0800 Subject: [PATCH] 优化空托出入库逻辑 --- 项目代码/WMS/WIDESEA_WMSClient/src/extension/basic/palletCodeInfo.js | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/palletCodeInfo.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/palletCodeInfo.js" index 67bcc6f..b59d307 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/palletCodeInfo.js" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/palletCodeInfo.js" @@ -1,4 +1,5 @@ //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 +import { th } from 'element-plus/es/locales.mjs'; import gridBody from './extend/printView.vue' // import gridHeader from './extend/palletCodeAdd.vue' let extension = { @@ -32,20 +33,34 @@ align: 'center', formatter: (row) => { return ( - '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-printer">鎵撳嵃</i>' + '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-printer">鐢熸垚鏉$爜</i>' ); }, + // click: (row) => { + // let keys = [row.id] + // this.http.post("api/PalletCodeInfo/PrintBarcodeLib", keys, "姝e湪鎵撳嵃鏉$爜....").then(x => { + // if (x.status) + // this.$message.success(x.message); + // else + // this.$message.error(x.message); + // }); + // } click: (row) => { - let palletCodeInfoDTO = { - PalletCode: row.palletCode, - Width: row.width, - Height: row.height, - Size: row.size - } - this.http.post("api/PalletCodeInfo/newBarcodeLib", palletCodeInfoDTO, "姝e湪鐢熸垚鏉$爜....").then(x => { - let codeImgSrc= 'data:image/png;base64,' + x; + this.http.post("api/PalletCodeInfo/newBarcodeLib?key=" + row.id, "", "姝e湪鐢熸垚鏉$爜....").then(x => { + let codeImgSrc = 'data:image/png;base64,' + x; this.$refs.gridBody.open(codeImgSrc); }); + // let palletCodeInfoDTO = { + // PalletCode: row.palletCode, + // Width: row.width, + // Height: row.height, + // Size: row.size, + // Code:row.code + // } + // this.http.post("api/PalletCodeInfo/newBarcodeLib", palletCodeInfoDTO, "姝e湪鐢熸垚鏉$爜....").then(x => { + // let codeImgSrc= 'data:image/png;base64,' + x; + // this.$refs.gridBody.open(codeImgSrc); + // }); } }); }, -- Gitblit v1.9.3