Update
This commit is contained in:
parent
f943c9dc5d
commit
5b5c3b4cc3
@ -416,6 +416,7 @@
|
|||||||
},
|
},
|
||||||
initTable() {
|
initTable() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
var app = this;
|
||||||
this.userItemsTable = $('#userItemsTable').DataTable();
|
this.userItemsTable = $('#userItemsTable').DataTable();
|
||||||
const stationTableData = this.formResponse.stationItemBalance ? this.formResponse.stationItemBalance : [];
|
const stationTableData = this.formResponse.stationItemBalance ? this.formResponse.stationItemBalance : [];
|
||||||
this.stationItemsTable = $('#stationItemsTable').DataTable({
|
this.stationItemsTable = $('#stationItemsTable').DataTable({
|
||||||
@ -437,6 +438,11 @@
|
|||||||
</tr>`
|
</tr>`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
"createdRow": function (row, data, dataIndex) {
|
||||||
|
$(row).on('click', function () {
|
||||||
|
app.fetchItemMovement(data.uniqueID);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const storeTableData = this.formResponse.storeItemBalance ? this.formResponse.storeItemBalance : [];
|
const storeTableData = this.formResponse.storeItemBalance ? this.formResponse.storeItemBalance : [];
|
||||||
this.storeItemsTable = $('#storeItemsTable').DataTable({
|
this.storeItemsTable = $('#storeItemsTable').DataTable({
|
||||||
@ -459,6 +465,11 @@
|
|||||||
</tr>`
|
</tr>`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
"createdRow": function (row, data, dataIndex) {
|
||||||
|
$(row).on('click', function () {
|
||||||
|
app.fetchItemMovement(data.uniqueID);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const storeAllTableData = this.formResponse.allProductInStore ? this.formResponse.allProductInStore : [];
|
const storeAllTableData = this.formResponse.allProductInStore ? this.formResponse.allProductInStore : [];
|
||||||
this.storeAllItemsTable = $('#storeAllItemsTable').DataTable({
|
this.storeAllItemsTable = $('#storeAllItemsTable').DataTable({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user