创建备料单
This commit is contained in:
@@ -103,14 +103,18 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
exportTable() {
|
||||
const htmlNode = $('#BL').html()
|
||||
const body = $('body')
|
||||
body.children().hide()
|
||||
const printNode = $(htmlNode)
|
||||
body.append(printNode)
|
||||
window.print()
|
||||
body.children().not('script').show()
|
||||
printNode.remove()
|
||||
if (this.tableData2.length === 0) {
|
||||
this.$message.warning('暂无数据')
|
||||
} else {
|
||||
const htmlNode = $('#BL').html()
|
||||
const body = $('body')
|
||||
body.children().hide()
|
||||
const printNode = $(htmlNode)
|
||||
body.append(printNode)
|
||||
window.print()
|
||||
body.children().not('script').show()
|
||||
printNode.remove()
|
||||
}
|
||||
},
|
||||
// 查询表格数据
|
||||
searchTable() {
|
||||
|
||||
Reference in New Issue
Block a user