| | |
| | | watch:{ |
| | | printFormData(newVal){ |
| | | if(newVal){ |
| | | console.log("pData变化--",newVal); |
| | | // console.log("pData变化--",newVal); |
| | | this.printFormData = newVal |
| | | } |
| | | } |
| | |
| | | style: '@page {margin: 2.0mm 2.0mm}', |
| | | targetStyles: ["*"], |
| | | // importCSS: true, |
| | | fontSize: '30px', |
| | | ignoreElements: ["no-ignore"], |
| | | orientation: 'portrait' |
| | | }); |
| | | }, |
| | | //查看报告按钮 |
| | | showPrint(row){ |
| | | console.log('----------'); |
| | | queryById(row.id).then(res=>{ |
| | | this.printFormData = res.data.data |
| | | this.printFormData.createTime = row.createTime |
| | | this.printFormData.updateTime = row.updateTime |
| | | // console.log(this.printFormData,"7777777777====="); |
| | | this.printDialogVisible = true |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | // console.log(error); |
| | | }) |
| | | }, |
| | | exportExcel(){ |
| | | let queryParam=this.$refs.finishedProduct.getQueryParam(); |
| | | delete queryParam.criteria |
| | | console.log(queryParam); |
| | | // console.log(queryParam); |
| | | exportExaminationProducts(queryParam).then((res)=>{ |
| | | transform(res) |
| | | }) |
| | | }, |
| | | deleteHandle(row){ |
| | | console.log(row.id) |
| | | // console.log(row.id) |
| | | this.$confirm('确认删除该数据吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |