Commit 391d037b authored by jingnan's avatar jingnan 👀

ERP相关_线边库台账流水增加打印标签

parent ed46c1fc
...@@ -105,6 +105,8 @@ export default { ...@@ -105,6 +105,8 @@ export default {
this.printMoveLibraryLabel(selection) this.printMoveLibraryLabel(selection)
} else if (selectSubTypeName === 'JobResponseOutStorageMaterialUse') { // 打印材料领用出库标签 } else if (selectSubTypeName === 'JobResponseOutStorageMaterialUse') { // 打印材料领用出库标签
this.printJobResMaterialUseLabel(selection) this.printJobResMaterialUseLabel(selection)
} else if (selectSubTypeName === 'ErpInventoryFlow') { // 打印线边库台账流水标签
this.printErpInventoryFlowLabel(selection)
} else if (selectSubTypeName === 'JobResponseOutStorageMatch' || selectSubTypeName === 'JobResponseOutStorageOut' || selectSubTypeName === 'JobResponseOutStorageUse') { // 批量签审_配套出库响应打印标签||批量签审_供外出库响应打印标签||批量签审_领用出库响应打印标签 } else if (selectSubTypeName === 'JobResponseOutStorageMatch' || selectSubTypeName === 'JobResponseOutStorageOut' || selectSubTypeName === 'JobResponseOutStorageUse') { // 批量签审_配套出库响应打印标签||批量签审_供外出库响应打印标签||批量签审_领用出库响应打印标签
this.printBatchSignMatchJob(selection) this.printBatchSignMatchJob(selection)
} else if (selectSubTypeName.includes('OutStorage')) { // 打印出库标签 } else if (selectSubTypeName.includes('OutStorage')) { // 打印出库标签
...@@ -422,7 +424,7 @@ export default { ...@@ -422,7 +424,7 @@ export default {
{ label: '出库数量', value: row.allocatedAmount || '' }, { label: '出库数量', value: row.allocatedAmount || '' },
{ label: '验收单号', value: responseInventory.testNo }, { label: '验收单号', value: responseInventory.testNo },
{ label: '贮存期', value: responseInventory.qualityPeriod && responseInventory.qualityPeriod.replace(' 00:00:00', '') }, { label: '贮存期', value: responseInventory.qualityPeriod && responseInventory.qualityPeriod.replace(' 00:00:00', '') },
{ label: '库位号', value: responseInventory.workunit || '' }, { label: '库位号', value: responseInventory.workerUnit || '' },
{ label: 'AO号', value: responseInventory.erpOutRequest && responseInventory.erpOutRequest.aoPlan || '' }, { label: 'AO号', value: responseInventory.erpOutRequest && responseInventory.erpOutRequest.aoPlan || '' },
{ label: '备注', value: row.remark || '' } { label: '备注', value: row.remark || '' }
] ]
...@@ -430,6 +432,33 @@ export default { ...@@ -430,6 +432,33 @@ export default {
}) })
this.print() this.print()
}, },
printErpInventoryFlowLabel(selection) {
this.config.prints = []
selection.forEach((row) => {
this.config = Object.assign({}, this.config, {
visible: true
})
this.config.prints.push({
text: row.id || row.id,
propertys: [
{ label: '编码', value: row.extMaterial.resCode },
{ label: '名称', value: row.extMaterial.resName },
{ label: '型号/牌号/件号', value: row.extMaterial.modelNo },
{ label: '规格', value: row.extMaterial.spec },
{ label: '批号', value: row.batchNumber },
{ label: '系列号/序列号', value: row.serialNo },
{ label: '机型', value: row.airModel },
{ label: '出库数量', value: row.amount || '' },
{ label: '验收单号', value: row.testNo },
{ label: '贮存期', value: row.qualityPeriod && row.qualityPeriod.replace(' 00:00:00', '') },
{ label: '库位号', value: row.workerUnit || '' },
{ label: 'AO号', value: row.aoPlan || '' },
{ label: '备注', value: row.remark || '' }
]
})
})
this.print()
},
printOutStorageLabel(selection) { printOutStorageLabel(selection) {
this.config.prints = [] this.config.prints = []
selection.forEach((row) => { selection.forEach((row) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment