diff --git a/src/pages/Item/ItemRequest.vue b/src/pages/Item/ItemRequest.vue
index 41248afbb..0e59a16c4 100644
--- a/src/pages/Item/ItemRequest.vue
+++ b/src/pages/Item/ItemRequest.vue
@@ -7,6 +7,7 @@ import { useArrayData } from 'composables/useArrayData';
import { toCurrency } from 'filters/index';
import useNotify from 'src/composables/useNotify.js';
import axios from 'axios';
+import ItemRequestDenyForm from './ItemRequestDenyForm.vue';
import { toDate } from 'src/filters';
import VnTable from 'components/VnTable/VnTable.vue';
import VnInput from 'src/components/common/VnInput.vue';
@@ -26,6 +27,10 @@ const arrayData = useArrayData('ItemRequests', {
});
const store = arrayData.store;
+const userParams = {
+ state: 'pending',
+};
+
watch(
() => store.data,
(value) => (itemRequestsOptions.value = value)
@@ -174,7 +179,9 @@ const onDenyAccept = (_, responseData) => {
itemRequestsOptions.value[denyRequestIndex.value].isOk = responseData.isOk;
itemRequestsOptions.value[denyRequestIndex.value].attenderFk =
responseData.attenderFk;
+ console.log('itemRequestsOptions: ', itemRequestsOptions.value);
itemRequestsOptions.value[denyRequestIndex.value].response = responseData.response;
+ console.log('itemRequestsOptions.value', itemRequestsOptions.value);
denyRequestId.value = null;
denyRequestIndex.value = null;
};
@@ -341,8 +348,10 @@ onBeforeMount(() => {
url="ticketRequests/filter"
order="shippedDate ASC, isOk ASC"
:columns="columns"
+ :user-params="userParams"
:is-editable="true"
auto-load
+ :disable-option="{ card: true }"
>
@@ -378,7 +387,7 @@ onBeforeMount(() => {
{{ row.itemDescription }}
-
+
{
+
+
+