(async function () { Vue.component('bundle-table', { props: ['bundles'], methods: { removeBundle: function (idx) { this.$emit('bundle-remove', idx) }, getFormattedDateTime: function (bundle) { if (!!bundle.createdAt) { return bundle.createdAt.split('T')[0] + ' ' + bundle.createdAt.split('T')[1]; } return luxon.DateTime.now().toFormat('yyyy-MM-dd HH:mm:ss'); }, }, template: `
ID | Item ID | Sku | Job Card ID | Wrap Quantity | Type | Action |
---|---|---|---|---|---|---|
{{bundle.id}} | {{bundle.itemId}} | {{bundle.sku}} | {{bundle.jobCardId}} | {{bundle.wrapQuantity}} | {{bundle.type}} |