Commit 375c9135 authored by jingnan's avatar jingnan 👀

打印标签相关代码修改

parent c18a3b0d
......@@ -70,6 +70,14 @@ export default {
value: {
type: [Number, String, Object],
default: () => ''
},
formAttrs: {
type: Object,
default: () => {}
},
scope: {
type: Object,
default: () => {}
}
},
data() {
......@@ -189,7 +197,8 @@ export default {
this.$api.searchApi('ExtDxProductWorkUnit', querys).then(res => {
this.options = res.items.content.map(row => {
return {
value: row.id,
// 批量移库打印标签需要使用到code
value: this.scope && this.scope.column && this.scope.column.property === 'currExtWorkUnitId' ? `${row.id}/${row.extcode}` : row.id,
label: row.extcode
}
})
......@@ -214,14 +223,16 @@ export default {
if (querys.pageNumber === 1) {
options = arr.map(row => {
return {
value: row.id,
// 批量移库打印标签需要使用到code
value: this.scope && this.scope.column && this.scope.column.property === 'currExtWorkUnitId' ? `${row.id}/${row.extcode}` : row.id,
label: row.extcode
}
})
} else {
options = [...this.options, ...arr.map(row => {
return {
value: row.id,
// 批量移库打印标签需要使用到code
value: this.scope && this.scope.column && this.scope.column.property === 'currExtWorkUnitId' ? `${row.id}/${row.extcode}` : row.id,
label: row.extcode
}
})]
......
......@@ -59,7 +59,7 @@ export default {
return {
inventoryId: item.id,
extWorkCenterId: extWorkCenterId,
extWorkUnitId: item.currExtWorkUnitId,
extWorkUnitId: item.currExtWorkUnitId && item.currExtWorkUnitId.split('/') && Number(item.currExtWorkUnitId.split('/')[0]),
outsideAmount: item.currOutsideAmount,
disposeDes: item.currDisposeDes || ''
}
......@@ -69,6 +69,7 @@ export default {
}
const reponse = await post('InventoryRequest/moveApplication/createMoveStorage', params)
this.$utils.showMessageSuccess(reponse.items)
this.$bus.$emit('refreshMoveWarehouse')
this.$emit('cancel')
},
cancelEvent() {
......
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