Commit ef1d7fbf authored by jingnan's avatar jingnan 👀

打印标签二维码修改

parent 05f0ad4a
...@@ -420,12 +420,16 @@ export default { ...@@ -420,12 +420,16 @@ export default {
this.$utils.showMessageWarning('打印标签需要先选择库位') this.$utils.showMessageWarning('打印标签需要先选择库位')
return return
} }
JobResponseInStorageEntryId = row.extWorkUnit.extcode // 打印标签二维码扫描结果展示入库响应的id
if (row.inventoryJobResponses && row.inventoryJobResponses.length) {
const entryResponse = row.inventoryJobResponses.find(el => el.subTypeName === 'JobResponseInEntry' || el.subTypeName.includes('JobResponseOutStorage'))
entryResponse && (JobResponseInStorageEntryId = entryResponse.id)
}
this.printConfig = Object.assign({}, this.printConfig, { this.printConfig = Object.assign({}, this.printConfig, {
visible: true visible: true
}) })
this.printConfig.prints.push({ this.printConfig.prints.push({
text: JobResponseInStorageEntryId, text: JobResponseInStorageEntryId || row.id,
propertys: [ propertys: [
{ label: '编码', value: row.extMaterial.resCode }, { label: '编码', value: row.extMaterial.resCode },
{ label: '名称', value: row.extMaterial.resName }, { label: '名称', value: row.extMaterial.resName },
......
...@@ -100,8 +100,14 @@ export default { ...@@ -100,8 +100,14 @@ export default {
this.config = Object.assign({}, this.config, { this.config = Object.assign({}, this.config, {
visible: true visible: true
}) })
let JobResponseInStorageEntryId = ''
// 打印标签二维码扫描结果展示入库响应的id
if (row.inventoryJobResponses && row.inventoryJobResponses.length) {
const entryResponse = row.inventoryJobResponses.find(el => el.subTypeName === 'JobResponseInEntry' || el.subTypeName.includes('JobResponseOutStorage'))
entryResponse && (JobResponseInStorageEntryId = entryResponse.id)
}
this.config.prints.push({ this.config.prints.push({
text: row.id, text: JobResponseInStorageEntryId || row.id,
propertys: [ propertys: [
{ label: '编码', value: row.extMaterial.resCode }, { label: '编码', value: row.extMaterial.resCode },
{ label: '名称', value: row.extMaterial.resName }, { label: '名称', value: row.extMaterial.resName },
......
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