| | |
| | | <div |
| | | style="display: flex; justify-content: center; align-items: center" |
| | | > |
| | | <VueQrcode id="qrcode" :value="palletCode" :size="200"></VueQrcode> |
| | | <VueQrcode id="qrcode" :value="materielCode" :size="200"></VueQrcode> |
| | | </div> |
| | | </div> |
| | | <div id="palletcode"> |
| | | <span |
| | | style="display: flex; justify-content: center; align-items: center" |
| | | >{{ palletCode }}</span |
| | | >ç©æç¼å·ï¼{{ materielCode }}<br> |
| | | ç©æåç§°ï¼{{ materielName }}</span |
| | | > |
| | | </div> |
| | | |
| | |
| | | showDetialBox: false, |
| | | row: null, |
| | | qrcodeDataURL: "", |
| | | palletCode: "", |
| | | materielCode: "", |
| | | materielName: "", |
| | | materielinfo:"", |
| | | }; |
| | | }, |
| | | methods: { |
| | | open(row) { |
| | | this.row = row; |
| | | this.showDetialBox = true; |
| | | if (row && row.palletCode) { |
| | | this.palletCode = row.palletCode; |
| | | if (row && row.materielCode) { |
| | | this.materielCode = row.materielCode; |
| | | this.materielName = row.materielName; |
| | | this.materielinfo="ç©æç¼å·ï¼"+row.materielCode+"ç©æåç§°ï¼"+row.materielName; |
| | | } |
| | | }, |
| | | print() { |
| | |
| | | printWindow.focus(); |
| | | printWindow.print(); |
| | | printWindow.close(); |
| | | this.http |
| | | .post("api/palletCodeInfo/PrintStatusUp?printCode="+this.palletCode, null, "æ°æ®å¤çä¸") |
| | | .then((x) => { |
| | | if (!x.status) return this.$message.error(x.message); |
| | | this.$message.success("æä½æå"); |
| | | this.$parent.refresh(); |
| | | this.showDetialBox = false; |
| | | }); |
| | | // this.http |
| | | // .post("api/palletCodeInfo/PrintStatusUp?printCode="+this.palletCode, null, "æ°æ®å¤çä¸") |
| | | // .then((x) => { |
| | | // if (!x.status) return this.$message.error(x.message); |
| | | // this.$message.success("æä½æå"); |
| | | // this.$parent.refresh(); |
| | | // this.showDetialBox = false; |
| | | // }); |
| | | }, |
| | | }, |
| | | created() {}, |