出入库明细打印的接口联调+根据公司的不同设置不同的打印宽度
| | |
| | | }, |
| | | created(){ |
| | | const userObj = Cookies.get('userObj'); |
| | | console.log(Cookies.get(),'==userObj') |
| | | if (userObj) { |
| | | let userInfo = JSON.parse(userObj); |
| | | this.editConfig.userId=userInfo.id |
| | |
| | | console.log(res); |
| | | if (res.code == 200) { |
| | | console.log(this.editConfig.infomation.baseOperationType, "类型"); |
| | | let name='' |
| | | if(res.data){ |
| | | name=res.data.name?res.data.name:'' |
| | | } |
| | | let pdfParams = { |
| | | url: res.data, |
| | | url: res.data?res.data.url:'', |
| | | baseOperationType: |
| | | this.editConfig.infomation.baseOperationType || undefined, |
| | | cutAfterWidth: |
| | | this.editConfig.infomation.baseOperationType == 2 |
| | | // 1是嘉联 |
| | | cutAfterWidth:name=='jialian'?52.6: |
| | | (this.editConfig.infomation.baseOperationType == 2 |
| | | ? 50.8 |
| | | : 53.3, |
| | | : 53.3), |
| | | }; |
| | | var { href } = this.$router.resolve({ |
| | | path: "/overview/previewExcel", |