add automatic filling

This commit is contained in:
2025-09-18 11:26:29 +02:00
parent 792aa958e0
commit af45523d4f

View File

@@ -203,6 +203,19 @@ Vue.component('warehouse-shipping-note-modal', {
hoursEntries: JSON.parse(data.hoursEntries),
metadata: data.metadata ? JSON.parse(data.metadata) : null
};
if (window.TT_CONFIG['WAREHOUSE_ADMIN'] == true && this.shippingNote.metadata && this.shippingNote.metadata.event_type_id) {
const typeMap = {
2: 'XI',
3: 'ESTMK',
7: 'SBIDI'
};
if (typeMap[this.shippingNote.metadata.event_type_id]) {
this.shippingNote.type = typeMap[this.shippingNote.metadata.event_type_id];
}
}
},
watch: {
geoAddr: async function() {