将需要打印的内容用<div id="printOrder-data"></div>包裹起来;
<div id="printOrder-data"></div>
//打印
doPrintVue:function () {
var newstr = document.getElementById('printOrder-data').innerHTML
document.body.innerHTML = newstr
window.print()
// 重新加载页面,以刷新数据
window.location.reload()
},