|
|
@@ -650,22 +650,32 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
650
|
650
|
data: Object,
|
|
651
|
651
|
dataCount: Number,
|
|
652
|
652
|
typeVehicles: Object,
|
|
653
|
|
- entryTransactions: Object,
|
|
|
653
|
+ entryTransactionData: Object,
|
|
654
|
654
|
entryTransactionCount: Number
|
|
655
|
655
|
},
|
|
656
|
656
|
setup: function setup(__props, _ref) {
|
|
657
|
657
|
var expose = _ref.expose;
|
|
658
|
658
|
expose();
|
|
659
|
659
|
var props = __props;
|
|
660
|
|
- var localEntryTransactions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)([]);
|
|
661
|
|
- var localEntryTransactionDeleted = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)([]);
|
|
|
660
|
+ (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(function () {
|
|
|
661
|
+ return props.entryTransactionData;
|
|
|
662
|
+ }, function () {
|
|
|
663
|
+ setLocalEntryTransaction();
|
|
|
664
|
+ });
|
|
662
|
665
|
(0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(function () {
|
|
663
|
|
- localEntryTransactions.push.apply(localEntryTransactions, _toConsumableArray(props.entryTransactions.data));
|
|
|
666
|
+ setLocalEntryTransaction();
|
|
664
|
667
|
});
|
|
|
668
|
+ var localEntryTransactions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)([]);
|
|
|
669
|
+ var localEntryTransactionDeleted = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)([]);
|
|
|
670
|
+
|
|
|
671
|
+ var setLocalEntryTransaction = function setLocalEntryTransaction() {
|
|
|
672
|
+ localEntryTransactions.splice(0);
|
|
|
673
|
+ localEntryTransactions.push.apply(localEntryTransactions, _toConsumableArray(props.entryTransactionData.data));
|
|
|
674
|
+ };
|
|
665
|
675
|
|
|
666
|
676
|
var copy = function copy(data) {
|
|
667
|
677
|
form.entry_transaction_id = data.transactionNumber;
|
|
668
|
|
- var filterLocalEntryTransactions = props.entryTransactions.data.filter(function (val) {
|
|
|
678
|
+ var filterLocalEntryTransactions = props.entryTransactionData.data.filter(function (val) {
|
|
669
|
679
|
localEntryTransactionDeleted.push(data.transactionNumber);
|
|
670
|
680
|
return val.entryTransactionId !== data.transactionNumber;
|
|
671
|
681
|
});
|
|
|
@@ -688,10 +698,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
688
|
698
|
props: props,
|
|
689
|
699
|
localEntryTransactions: localEntryTransactions,
|
|
690
|
700
|
localEntryTransactionDeleted: localEntryTransactionDeleted,
|
|
|
701
|
+ setLocalEntryTransaction: setLocalEntryTransaction,
|
|
691
|
702
|
copy: copy,
|
|
692
|
703
|
form: form,
|
|
693
|
704
|
submit: submit,
|
|
694
|
705
|
reactive: vue__WEBPACK_IMPORTED_MODULE_0__.reactive,
|
|
|
706
|
+ watch: vue__WEBPACK_IMPORTED_MODULE_0__.watch,
|
|
695
|
707
|
onMounted: vue__WEBPACK_IMPORTED_MODULE_0__.onMounted,
|
|
696
|
708
|
useForm: _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_1__.useForm,
|
|
697
|
709
|
AppInputText: _components_AppInputText_vue__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
|
@@ -1639,7 +1651,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1639
|
1651
|
}, 8
|
|
1640
|
1652
|
/* PROPS */
|
|
1641
|
1653
|
, ["value"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)($setup["AppPagination"], {
|
|
1642
|
|
- links: $props.entryTransactions.links
|
|
|
1654
|
+ links: $props.entryTransactionData.links
|
|
1643
|
1655
|
}, null, 8
|
|
1644
|
1656
|
/* PROPS */
|
|
1645
|
1657
|
, ["links"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Divider, {
|