创建备料单

This commit is contained in:
zhangdingyu
2019-01-07 09:31:38 +08:00
parent 9dc3d8f448
commit ec13e61f74

View File

@@ -103,14 +103,18 @@ export default {
}, },
methods: { methods: {
exportTable() { exportTable() {
const htmlNode = $('#BL').html() if (this.tableData2.length === 0) {
const body = $('body') this.$message.warning('暂无数据')
body.children().hide() } else {
const printNode = $(htmlNode) const htmlNode = $('#BL').html()
body.append(printNode) const body = $('body')
window.print() body.children().hide()
body.children().not('script').show() const printNode = $(htmlNode)
printNode.remove() body.append(printNode)
window.print()
body.children().not('script').show()
printNode.remove()
}
}, },
// 查询表格数据 // 查询表格数据
searchTable() { searchTable() {