{"version":3,"file":"wms-UlgGbqad.js","sources":["../../../app/frontend/entrypoints/controllers/erp/order/overview/show/wms.ts"],"sourcesContent":["import jQuery from 'jquery/dist/jquery';\nimport * as bootstrap from 'bootstrap'\nimport Swal from 'sweetalert2';\nimport Utils from '../../../../../utils'\nimport ErpShipmentEntity from \"../../../shipment/entity\";\n\nexport default class ErpOrderWMS {\n private parent: any;\n private entity = \"\";\n private toastr: any;\n\n constructor(parent: any) {\n this.parent = parent\n this.toastr = parent.toastr\n this.bindListeners();\n }\n\n getEntityData(elem: any) {\n return {}\n }\n\n bindListeners() {\n\n }\n\n async update(data: any) {\n console.log(\"data\", data)\n const elem = document.querySelector(\"#erp_order_wms\") as HTMLElement;\n let html = '';\n data.wms.forEach((wms: any) => {\n html += `
Item | \nSerial | \nPicked | \nPicked at | \n
---|---|---|---|
${data.items.filter(i => i.id === item.order_line_item_uuid)[0].name} | \n${item.serial} | \n${item.picked ? '' : ''} | \n${new Date(Date.parse(item.picked_at)).toLocaleString()} | \n