| | |
| | | selectMethod(val){ |
| | | this.multipleSelection = val |
| | | }, |
| | | async searchPrint(selection){ |
| | | let res = await this.$axios.post(this.$api.insOrder.checkNumber,{ |
| | | ids:selection.map(m=>m.id).join(',') |
| | | }) |
| | | console.log(1111,res) |
| | | }, |
| | | getLabelPrinting(selection){ |
| | | this.loadPint = true; |
| | | this.$axios.post(this.$api.insOrder.labelPrinting,{ |
| | |
| | | font_size: '0.20cm', |
| | | }); |
| | | }, |
| | | print(){ |
| | | async print(){ |
| | | if(this.multipleSelection.length==0){ |
| | | this.$message.warning('请选择一条数据') |
| | | return |
| | | } |
| | | let selection = this.multipleSelection |
| | | await this.searchPrint(selection) |
| | | this.getLabelPrinting(selection) |
| | | this.printDialogVisible = true |
| | | }, |