//打印--start--hyl-5.6--start
async inventoryPrint(){
let LODOP = getLodop() //调用getLodop获取LODOP对象
LODOP.PRINT_INIT('打印控件功能演示_Lodop功能_打印表格')
LODOP.SET_PRINT_PAGESIZE(1, 0, 0, 'A4')
let htmlHead =
'' +
'' + '' + '盘点单' + '' + '' +
''
// +'| '+'序号'+' | '
+
'' + '库位' + ' | ' +
'' + '库存数量' + ' | ' +
'' + '盘点数量' + ' | ' +
'' + '复盘数量' + ' | ' +
'' + '货主' + ' | ' +
'' + '货品名称' + ' | ' +
'' + '货品SKU' + ' | '
+
'
'
let htmlTotal;
//eee
for (let y = 0; y < this.printMasterInfo.length; y++) {//for开始 printMasterInfo--多选中的数据
LODOP.ADD_PRINT_BARCODE(20, 20, 177, 80, 'EAN128A', this.printMasterInfo[y].checkNo)
let obj = {};
obj.applyId = this.printMasterInfo[y].applyId;
let printData = await getInventoryAppliyDetail(obj.applyId).then(function(response) {//根据多选的主id查其子数据赋值给printData
return response.data
});
for (let x = 0; x '
// + ''+ i+1 + ' | '
+
'' + printData[x].locationName + ' | ' +
'' + printData[x].stockNum + ' | ' +
'' + printData[x].checkNum + ' | ' +
'' + printData[x].recheckNum + ' | ' +
'' + printData[x].ownerName + ' | ' +
'' + printData[x].goodsName + ' | ' +
'' + printData[x].goodsBarCode + ' | '
// + '' + this.waveGoods[y][x].createTime + ' | '
// + '' +""+ ' | '
+
''
}
htmlTotal =htmlHead+ htmlTotal + '
'
LODOP.ADD_PRINT_TABLE(45, 20, '95%', 250, htmlTotal);
LODOP.NewPage();
htmlTotal = '';
}//for结尾
LODOP.PREVIEW()
},
//---end