Merge branch 'WarehouseShippingNote/add-automatic-filling' into 'master'
add automatic filling See merge request fronk/thetool!1771
This commit is contained in:
@@ -203,6 +203,19 @@ Vue.component('warehouse-shipping-note-modal', {
|
|||||||
hoursEntries: JSON.parse(data.hoursEntries),
|
hoursEntries: JSON.parse(data.hoursEntries),
|
||||||
metadata: data.metadata ? JSON.parse(data.metadata) : null
|
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: {
|
watch: {
|
||||||
geoAddr: async function() {
|
geoAddr: async function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user