| ÎļþÃû´Ó src/views/kb/index.vue ÐÞ¸Ä |
| | |
| | | <el-dialog |
| | | title="é¢è§" |
| | | :visible.sync="dialogVisible" |
| | | width="1140" |
| | | width="812px" |
| | | > |
| | | <!-- è¦æå°çåºå --> |
| | | <div id="printMe" style="padding: 30px"> |
| | |
| | | id="table" |
| | | :data="tableData" |
| | | border |
| | | :header-cell-style="{ background: '#c0c0c0',textAlign:'center',color:'#000'}" |
| | | :cell-style="{textAlign: 'center',color:'#000',}" |
| | | class="elTable" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column |
| | | id="column0" |
| | | prop="date" |
| | | label="æ¥æ" |
| | | width="100" |
| | | prop="id" |
| | | label="å·¥åºå·" |
| | | width="70" |
| | | /> |
| | | <el-table-column |
| | | id="column1" |
| | | prop="name" |
| | | label="å§å" |
| | | prop="stepcode" |
| | | label="å·¥åºäºç»´ç " |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | id="column2" |
| | | prop="address" |
| | | label="å°å" |
| | | width="150" |
| | | prop="stepname" |
| | | label="å·¥åº" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | id="column3" |
| | | prop="address" |
| | | label="å°å" |
| | | width="150" |
| | | prop="plan_qty" |
| | | label="å å·¥æ°é" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | id="column4" |
| | | prop="address" |
| | | width="150" |
| | | |
| | | label="å°å" |
| | | prop="good_qty" |
| | | width="100" |
| | | label="åæ ¼æ°é" |
| | | /> |
| | | <el-table-column |
| | | id="column5" |
| | | width="150" |
| | | |
| | | prop="address" |
| | | label="å°å" |
| | | width="100" |
| | | prop="ng_qty" |
| | | label="ä¸è¯æ°é" |
| | | /> |
| | | <el-table-column |
| | | id="column6" |
| | | prop="address" |
| | | prop="desc" |
| | | width="120" |
| | | |
| | | label="å°å" |
| | | /> |
| | | <el-table-column |
| | | id="column7" |
| | | width="119" |
| | | |
| | | prop="address" |
| | | label="å°å" |
| | | label="夿³¨" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | |
| | | }, |
| | | QRImgUrl: '', |
| | | QRlink: 'www.xxx.com', |
| | | dialogVisible: false, |
| | | dialogVisible: true, |
| | | printObj: { |
| | | id: 'printMe', |
| | | popTitle: 'æå°æ¨¡æ¿', |
| | |
| | | // standard: '', |
| | | // extraCss: '' |
| | | }, |
| | | tableData: [{ |
| | | date: '2016-05-02', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸æ®éåºéæ²æ±è·¯ 1518 å¼' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸æ®éåºéæ²æ±è·¯ 1517 å¼' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸æ®éåºéæ²æ±è·¯ 1519 å¼' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸æ®éåºéæ²æ±è·¯ 1516 å¼' |
| | | }], |
| | | tableData: [ |
| | | { id: 1, stepcode: '001', stepname: '颿', plan_qty: 100, good_qty: 10, ng_qty: 5, desc: 'åæ ¼' }, |
| | | { id: 2, stepcode: '001', stepname: '颿', plan_qty: 100, good_qty: 10, ng_qty: 5, desc: 'åæ ¼' } |
| | | ], |
| | | printContentObj: {} |
| | | } |
| | | }, |
| | |
| | | // 妿WEBæ¥è¡¨å®¢æ·ç«¯ç¨åºä¸ºå¼æºèªå¯å¨ï¼ä»¥ä¸è°ç¨åºè¯¥å»æãæ´å¤è¯´æè¯·åè帮å©âWEBæ¥è¡¨(B/Sæ¥è¡¨)->WEBæ¥è¡¨å®¢æ·ç«¯->é¨ç½²ä¸å®è£
âé¨åä¸ä¸è°·æChromeæµè§å¨çç¸å
³è¯´æ |
| | | webapp_urlprotocol_startup() // å¯å¨WEBæ¥è¡¨å®¢æ·ç«¯ç¨åºï¼ä»¥ä¾¿ä¾¦å¬æ¥å WebSocket æ°æ® |
| | | // } |
| | | // this.$nextTick(() => { |
| | | // this.bindQRCode() |
| | | // }) |
| | | this.$nextTick(() => { |
| | | this.bindQRCode() |
| | | }) |
| | | }, |
| | | methods: { |
| | | // addWatermark() { |
| | |
| | | // } |
| | | // }, |
| | | clickMe() { |
| | | // this.dialogVisible = true |
| | | // this.$nextTick(() => { |
| | | // this.bindQRCode() |
| | | // this.addWatermark() |
| | | // console.log(document.getElementById('column0').style.width = '200px', 0) |
| | | // console.log(document.getElementById('column7'), 7) |
| | | // console.log(document.getElementById('table'), 2) |
| | | // console.log(document.getElementById('table').getElementsByTagName('el-table'), 1) |
| | | // }) |
| | | // this.dialogVisible = true |
| | | // this.$nextTick(() => { |
| | | // this.bindQRCode() |
| | | // this.addWatermark() |
| | | // console.log(document.getElementById('column0').style.width = '200px', 0) |
| | | // console.log(document.getElementById('column7'), 7) |
| | | // console.log(document.getElementById('table'), 2) |
| | | // console.log(document.getElementById('table').getElementsByTagName('el-table'), 1) |
| | | // }) |
| | | this.dialogVisible = true |
| | | }, |
| | | // bindQRCode() { |
| | | // if (this.firstbindQRCode) { |
| | | // const text = 'PO202206280001;Step02' |
| | | // new QRCode(this.$refs.qrCodeDiv2, { |
| | | // // text: 'Vueå®ç°çæäºç»´ç ï¼', |
| | | // text: text, |
| | | // width: 80, |
| | | // height: 80, |
| | | // colorDark: '#333333', // äºç»´ç é¢è² |
| | | // colorLight: '#ffffff', // äºç»´ç èæ¯è² |
| | | // correctLevel: QRCode.CorrectLevel.L// 容éçï¼L/M/H |
| | | // }) |
| | | // this.firstbindQRCode = false |
| | | // } |
| | | // }, |
| | | bindQRCode() { |
| | | if (this.firstbindQRCode) { |
| | | const text = 'PO202206280001;Step02' |
| | | new QRCode(this.$refs.qrCodeDiv, { |
| | | // text: 'Vueå®ç°çæäºç»´ç ï¼', |
| | | text: text, |
| | | width: 80, |
| | | height: 80, |
| | | colorDark: '#333333', // äºç»´ç é¢è² |
| | | colorLight: '#ffffff', // äºç»´ç èæ¯è² |
| | | correctLevel: QRCode.CorrectLevel.L// 容éçï¼L/M/H |
| | | }) |
| | | this.firstbindQRCode = false |
| | | } |
| | | }, |
| | | async TestClick() { |
| | | const data = { |
| | | mesordercode: 'PO202206280001_4', |
| | |
| | | /*/deep/.el-table__body-wrapper::-webkit-scrollbar{*/ |
| | | /* width: 0;*/ |
| | | /*}*/ |
| | | |
| | | /*.el-table--border,.el-table--fit{*/ |
| | | /* border-right: 1px solid #000 !important;*/ |
| | | /* border-bottom: 1px solid #000 !important;*/ |
| | | /*}*/ |
| | | /*.el-table--border td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{*/ |
| | | /* border-left: 1px solid #000 !important;*/ |
| | | /* border-top: 1px solid #000 !important;*/ |
| | | /*}*/ |
| | | </style> |
| | | |