创建备料单
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user