| | |
| | | text: '打印', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.showPrint |
| | | fun: this.showPrint, |
| | | show: { |
| | | val: [ |
| | | '1', |
| | | ], |
| | | key: 'result' |
| | | } |
| | | },{ |
| | | text: '作废', |
| | | type: 'text', |
| | |
| | | } |
| | | }, |
| | | created() { }, |
| | | watch:{ |
| | | printFormData(newVal){ |
| | | if(newVal){ |
| | | this.printFormData = newVal |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //查看报告按钮 |
| | | showPrint(){ |
| | | |
| | | }, |
| | | // showPrint(row){ |
| | | // queryById(row.id).then(res=>{ |
| | | // console.log(res); |
| | | // this.printFormData = res.data.data |
| | | // this.printDialogVisible = true |
| | | // }) |
| | | // .catch(error=>{ |
| | | // console.log(error); |
| | | // }) |
| | | // }, |
| | | //打印按钮 |
| | | printFun() { |
| | | this.printDialogVisible = false; |
| | |
| | | showPrint(row){ |
| | | queryById(row.id).then(res=>{ |
| | | console.log(res); |
| | | this.printFormData = res.data.data |
| | | this.printDialogVisible = true |
| | | }).catch(error=>{ |
| | | console.log(error); |