add automatic filling
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user