| | |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç |
| | | import { th } from 'element-plus/es/locales.mjs'; |
| | | import gridBody from './extend/printView.vue' |
| | | // import gridHeader from './extend/palletCodeAdd.vue' |
| | | let extension = { |
| | |
| | | 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, "æ£å¨æå°æ¡ç ....").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, "æ£å¨çææ¡ç ....").then(x => { |
| | | let codeImgSrc= 'data:image/png;base64,' + x; |
| | | this.http.post("api/PalletCodeInfo/newBarcodeLib?key=" + row.id, "", "æ£å¨çææ¡ç ....").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, "æ£å¨çææ¡ç ....").then(x => { |
| | | // let codeImgSrc= 'data:image/png;base64,' + x; |
| | | // this.$refs.gridBody.open(codeImgSrc); |
| | | // }); |
| | | } |
| | | }); |
| | | }, |