{"version":3,"sources":["webpack:///./src/views/master/claim-and-insurance/claim-and-payment/SubmittedPenaltyList.vue?4846","webpack:///./src/views/master/claim-and-insurance/claim-and-payment/SubmittedPenaltyList.vue?a0e4","webpack:///./src/composables/master/claim-and-insurance/claim-and-payment/submittedPenaltyListComposable.ts","webpack:///./src/views/master/claim-and-insurance/claim-and-payment/SubmittedPenaltyList.vue"],"names":["_hoisted_1","id","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","style","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","src","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","render","_ctx","_cache","$props","$setup","$data","$options","_component_Button","_component_InputIconRightGrey","_component_Column","_component_PenaltyDetailTable","_component_DataTable","_component_Paginator","_component_Card","_component_ListCopyEditDel","_component_OverlayPanel","_component_Dialog","_component_AddClaimForm","_component_PaymentForm","_component_Sidebar","title","label","icon","onClick","$event","showSidebar","placeholder","type","$enumBase","input","text","modelValue","inputSearch","canClick","onSubmitInput","onSearch","onKeyup","$icon","svg","searchEva","content","expandedRows","value","dataSource","dataKey","onRowExpand","onRowCollapse","tableStyle","responsiveLayout","expansion","slotProps","penaltyId","data","Id","onReloadHeaderTable","getAllData","default","header","body","AgentInChargeName","_","Date","rupiahFormat","Amount","ListReference","color","Status","rowExpandAct","rowApproveAct","rows","filters","pageSize","totalRecords","onPage","ref","payKlaim","route","meta","permission","update","addKlaim","onPayKlaim","paymentKlaim","dataEdit","onAddKlaim","addedKlaimAgent","visible","showDialogHistory","modal","dismissableMask","hideDialogHistory","showFilterDate","dateFilter","moment","format","NamaAgen","Number","Total","toLocaleString","dataHistory","length","item","colorAndBgHistory","IsPayment","bg","TanggalKlaim","Nominal","sliderActive","showCloseIcon","position","formType","onCloseSidebar","closeSidebar","onReloadTable","selectedRow","name","components","AddClaimForm","PaymentForm","PenaltyDetailTable","PenaltyDetail","setup","app","appContext","config","globalProperties","$toast","$strInd","$confirm","router","store","op","filterCal","sendDateFilter","detailSelectedRow","isLoading","pageNumber","search","filterField","custom","isPaymentKlaim","val","showDropDown","evt","toggle","getHistory","idAgent","dispatch","filter","getAllTransKlaim","response","error","add","severity","detail","toast","errorAllData","group","life","result","Data","map","CreatedAt","arrReference","getPenaltyReferences","referecesResponse","console","log","obj","Name","Attributes","Value","push","Count","showingHistory","AgenId","saveFilterDate","hide","clearFilter","event","page","payload","note","require","message","accept","approveDataPenalty","errorSubmit","successSubmit","state","checkPermission","PermissionEnum","__exports__"],"mappings":"gHAAA,W,6GCKMA,EAAa,CAAEC,GAAI,qBACnBC,EAAa,CAAEC,MAAO,qCACtBC,EAAa,CAAED,MAAO,qBACtBE,EAA0B,yBAAa,KAAM,CAAEF,MAAO,oBAAsB,mBAAoB,GAChGG,EAAa,CAAEH,MAAO,2BACtBI,EAAa,CAAEC,IAAK,GACpBC,EAAa,CACjBD,IAAK,EACLL,MAAO,mBAEHO,EAAa,CACjBF,IAAK,EACLL,MAAO,aAEHQ,EAAa,CACjBH,IAAK,EACLL,MAAO,gBAEHS,EAAc,CAClBJ,IAAK,EACLL,MAAO,eAEHU,EAAc,CAAEV,MAAO,2BACvBW,EAAc,CAClBX,MAAO,qDACPY,MAAO,CAAC,gBAAgB,sBAEpBC,EAA2B,yBAAa,KAAM,CAAEb,MAAO,oCAAmD,6BAAiB,gCAAiC,GAC5Jc,EAAc,CAAET,IAAK,GACrBU,EAA2B,yBAAa,IAAK,CAAEf,MAAO,QAAU,aAAc,GAC9EgB,EAAc,CAAEhB,MAAO,8DACvBiB,EAAc,CAAEjB,MAAO,gCACvBkB,EAAc,CAAElB,MAAO,+BACvBmB,EAA2B,yBAAa,IAAK,CAAEnB,MAAO,iBAAgC,6BAAiB,yBAA0B,GACjIoB,EAAc,CAAEpB,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AAShM,KAErD,gB","file":"js/chunk-5aad7085.f59b5c09.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./SubmittedPenaltyList.vue?vue&type=style&index=0&id=4e25c28f&lang=scss\"","import { createVNode as _createVNode, resolveComponent as _resolveComponent, withKeys as _withKeys, toDisplayString as _toDisplayString, withCtx as _withCtx, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\nimport _imports_0 from '@/assets/img/icon/payKlaimGreen.svg'\nimport _imports_1 from '@/assets/img/icon/invoiceRed.svg'\n\n\nconst _hoisted_1 = { id: \"claim-and-payment\" }\nconst _hoisted_2 = { class: \"flex items-center justify-between\" }\nconst _hoisted_3 = { class: \"flex items-center\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"h6\", { class: \"mr-3 font-normal\" }, \"Pengajuan Klaim\", -1)\nconst _hoisted_5 = { class: \"flex items-center gap-2\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = {\n key: 1,\n class: \"blue-grey-label\"\n}\nconst _hoisted_8 = {\n key: 0,\n class: \"red-label\"\n}\nconst _hoisted_9 = {\n key: 1,\n class: \"orange-label\"\n}\nconst _hoisted_10 = {\n key: 2,\n class: \"green-label\"\n}\nconst _hoisted_11 = { class: \"flex items-center gap-4\" }\nconst _hoisted_12 = {\n class: \"flex w-full justify-between items-center px-2 pb-5\",\n style: {\"border-bottom\":\"1px solid #CFD8DC\"}\n}\nconst _hoisted_13 = /*#__PURE__*/_createVNode(\"h6\", { class: \"font-semibold text-xl text-black\" }, /*#__PURE__*/_toDisplayString('Histoy Klaim Dan Pembayaran'), -1)\nconst _hoisted_14 = { key: 0 }\nconst _hoisted_15 = /*#__PURE__*/_createVNode(\"p\", { class: \"mr-2\" }, \"Tanggal :\", -1)\nconst _hoisted_16 = { class: \"rounded-lg px-4 py-4 background-orange-lighten-5 mx-2 mb-4\" }\nconst _hoisted_17 = { class: \"font-bold color-primary mb-1\" }\nconst _hoisted_18 = { class: \"flex w-full justify-between\" }\nconst _hoisted_19 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-primary\" }, /*#__PURE__*/_toDisplayString('Total Klaim Saat Ini'), -1)\nconst _hoisted_20 = { class: \"font-bold color-primary\" }\nconst _hoisted_21 = {\n key: 0,\n class: \"px-1\"\n}\nconst _hoisted_22 = {\n class: \"flex\",\n style: {\"width\":\"20%\"}\n}\nconst _hoisted_23 = {\n key: 0,\n src: _imports_0,\n class: \"w-8 h-8\"\n}\nconst _hoisted_24 = {\n key: 1,\n src: _imports_1,\n class: \"w-8 h-8\"\n}\nconst _hoisted_25 = {\n class: \"\",\n style: {\"width\":\"55%\"}\n}\nconst _hoisted_26 = { class: \"color-blue-grey text-sm\" }\nconst _hoisted_27 = {\n class: \"flex justify-end\",\n style: {\"width\":\"25%\"}\n}\nconst _hoisted_28 = {\n key: 1,\n class: \"color-blue-grey font-medium text-sm px-4 py-3 text-center\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_InputIconRightGrey = _resolveComponent(\"InputIconRightGrey\")\n const _component_Column = _resolveComponent(\"Column\")\n const _component_PenaltyDetailTable = _resolveComponent(\"PenaltyDetailTable\")\n const _component_DataTable = _resolveComponent(\"DataTable\")\n const _component_Paginator = _resolveComponent(\"Paginator\")\n const _component_Card = _resolveComponent(\"Card\")\n const _component_ListCopyEditDel = _resolveComponent(\"ListCopyEditDel\")\n const _component_OverlayPanel = _resolveComponent(\"OverlayPanel\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n const _component_AddClaimForm = _resolveComponent(\"AddClaimForm\")\n const _component_PaymentForm = _resolveComponent(\"PaymentForm\")\n const _component_Sidebar = _resolveComponent(\"Sidebar\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_Card, { class: \"h-full\" }, {\n title: _withCtx(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createVNode(_component_Button, {\n label: \"Tambah Klaim\",\n icon: \"pi pi-plus\",\n class: \"font-semibold p-button-sm btn-primary\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.showSidebar(null, 0)))\n })\n ]),\n _createVNode(\"div\", null, [\n _createVNode(_component_InputIconRightGrey, {\n placeholder: \"Cari Disini ...\",\n type: _ctx.$enumBase.input.text,\n modelValue: _ctx.inputSearch,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.inputSearch = $event)),\n canClick: true,\n onSubmitInput: _cache[3] || (_cache[3] = ($event: any) => (_ctx.onSearch(_ctx.inputSearch))),\n onKeyup: _cache[4] || (_cache[4] = _withKeys(($event: any) => (_ctx.onSearch(_ctx.inputSearch)), [\"enter\"])),\n icon: _ctx.$icon.svg.searchEva\n }, null, 8, [\"type\", \"modelValue\", \"icon\"])\n ])\n ])\n ]),\n content: _withCtx(() => [\n _createVNode(_component_DataTable, {\n expandedRows: _ctx.expandedRows,\n \"onUpdate:expandedRows\": _cache[6] || (_cache[6] = ($event: any) => (_ctx.expandedRows = $event)),\n value: _ctx.dataSource,\n dataKey: \"Id\",\n class: \"expandedTable\",\n onRowExpand: _ctx.onRowExpand,\n onRowCollapse: _ctx.onRowCollapse,\n tableStyle: \"min-width: 60rem\",\n responsiveLayout: \"scroll\"\n }, {\n expansion: _withCtx((slotProps) => [\n _createVNode(_component_PenaltyDetailTable, {\n penaltyId: slotProps.data.Id,\n onReloadHeaderTable: _cache[5] || (_cache[5] = ($event: any) => (_ctx.getAllData()))\n }, null, 8, [\"penaltyId\"])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Column, {\n header: \"Nama Agen/Kru\",\n style: {\"min-width\":\"200px\",\"width\":\"200px\"}\n }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", null, _toDisplayString(slotProps.data.AgentInChargeName), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Tanggal\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", null, _toDisplayString(slotProps.data.Date), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Nominal Klaim\" }, {\n body: _withCtx((slotProps) => [\n _createTextVNode(\" Rp. \" + _toDisplayString(_ctx.rupiahFormat(slotProps.data.Amount)), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Label/Resi\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(slotProps.data.ListReference, (data) => {\n return (_openBlock(), _createBlock(\"div\", { key: data }, [\n (data.color)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_6, [\n _createVNode(\"div\", {\n class: \"base-label\",\n style: `background: ${data.color}`\n }, _toDisplayString(data.label), 5)\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_7, _toDisplayString(data.label), 1))\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Status Klaim\" }, {\n body: _withCtx((slotProps) => [\n (slotProps.data.Status === 'Submitted')\n ? (_openBlock(), _createBlock(\"div\", _hoisted_8, _toDisplayString('Diajukan')))\n : (slotProps.data.Status === 'Approved')\n ? (_openBlock(), _createBlock(\"div\", _hoisted_9, _toDisplayString('Belum Lunas')))\n : (slotProps.data.Status === 'Paid')\n ? (_openBlock(), _createBlock(\"div\", _hoisted_10, _toDisplayString('Lunas')))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n header: \"Action\",\n style: {\"width\":\"125px\"}\n }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", _hoisted_11, [\n (slotProps.data.Status !== 'Submitted')\n ? (_openBlock(), _createBlock(\"div\", {\n key: 0,\n class: \"rounded-full orange-round-button\",\n onClick: ($event: any) => (_ctx.rowExpandAct(slotProps.data))\n }, [\n _createVNode(\"i\", {\n class: _ctx.expandedRows[0]?.Id === slotProps.data.Id ? 'pi pi-angle-down' : 'pi pi-angle-right'\n }, null, 2)\n ], 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n (slotProps.data.Status === 'Submitted')\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n label: \"Approve\",\n onClick: ($event: any) => (_ctx.rowApproveAct(slotProps.data, 0)),\n class: \"font-semibold p-button-sm btn-primary\"\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"expandedRows\", \"value\", \"onRowExpand\", \"onRowCollapse\"]),\n _createVNode(_component_Paginator, {\n rows: _ctx.filters.pageSize,\n totalRecords: _ctx.filters.totalRecords,\n onPage: _ctx.onPage\n }, null, 8, [\"rows\", \"totalRecords\", \"onPage\"])\n ]),\n _: 1\n }),\n _createVNode(_component_OverlayPanel, { ref: \"op\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ListCopyEditDel, {\n payKlaim: _ctx.route.meta.permission.update,\n addKlaim: _ctx.route.meta.permission.update,\n onPayKlaim: _cache[7] || (_cache[7] = ($event: any) => (_ctx.paymentKlaim(_ctx.dataEdit))),\n onAddKlaim: _cache[8] || (_cache[8] = ($event: any) => (_ctx.addedKlaimAgent(_ctx.dataEdit)))\n }, null, 8, [\"payKlaim\", \"addKlaim\"])\n ]),\n _: 1\n }, 512),\n _createVNode(_component_Dialog, {\n visible: _ctx.showDialogHistory,\n \"onUpdate:visible\": _cache[11] || (_cache[11] = ($event: any) => (_ctx.showDialogHistory = $event)),\n class: \"dialog-voucher\",\n modal: true,\n dismissableMask: true\n }, {\n header: _withCtx(() => [\n _createVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(\"i\", {\n class: \"pi pi-times text-black cursor-pointer\",\n onClick: _cache[9] || (_cache[9] = ($event: any) => (_ctx.hideDialogHistory()))\n })\n ])\n ]),\n default: _withCtx(() => [\n (_ctx.dataEdit)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_14, [\n _createVNode(\"div\", {\n class: \"mb-2 flex items-center mx-2\",\n onClick: _cache[10] || (_cache[10] = ($event: any) => (_ctx.showFilterDate($event)))\n }, [\n _hoisted_15,\n _createVNode(\"p\", {\n class: `${(_ctx.dateFilter) ? 'font-bold' : 'color-blue-grey font-medium'} cursor-pointer`\n }, _toDisplayString((_ctx.dateFilter) ? _ctx.moment(_ctx.dateFilter).format('DD MMM YYYY') : 'Pilih Tanggal'), 3)\n ]),\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(\"p\", _hoisted_17, _toDisplayString(_ctx.dataEdit.NamaAgen), 1),\n _createVNode(\"div\", _hoisted_18, [\n _hoisted_19,\n _createVNode(\"p\", _hoisted_20, \"Rp. \" + _toDisplayString(new Number(_ctx.dataEdit.Total).toLocaleString(\"id-ID\")), 1)\n ])\n ]),\n (_ctx.dataHistory.length > 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_21, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.dataHistory, (item) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"flex px-3 py-4 items-center\",\n style: {\"border-bottom\":\"1px solid #CFD8DC\"},\n key: item.Id\n }, [\n _createVNode(\"div\", _hoisted_22, [\n _createVNode(\"div\", {\n class: [\"flex rounded-full p-3\", _ctx.colorAndBgHistory(item.IsPayment).bg]\n }, [\n (item.IsPayment)\n ? (_openBlock(), _createBlock(\"img\", _hoisted_23))\n : (_openBlock(), _createBlock(\"img\", _hoisted_24))\n ], 2)\n ]),\n _createVNode(\"div\", _hoisted_25, [\n _createVNode(\"p\", {\n class: [\"font-bold mb-1\", _ctx.colorAndBgHistory(item.IsPayment).color]\n }, _toDisplayString(item.IsPayment ? 'Pembayaran Klaim' : 'Klaim Agen'), 3),\n _createVNode(\"p\", _hoisted_26, _toDisplayString(_ctx.moment(item.TanggalKlaim).format('DD MMMM YYYY, HH:mm')) + \" WIB\", 1)\n ]),\n _createVNode(\"div\", _hoisted_27, [\n _createVNode(\"p\", {\n class: [\"font-bold\", _ctx.colorAndBgHistory(item.IsPayment).color]\n }, _toDisplayString(item.IsPayment ? '-' : '+') + \" Rp. \" + _toDisplayString(new Number(item.Nominal).toLocaleString(\"id-ID\")), 3)\n ])\n ]))\n }), 128))\n ]))\n : (_openBlock(), _createBlock(\"p\", _hoisted_28, \"Data history tidak ditemukan\"))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_Sidebar, {\n class: \"penalty-sidebar\",\n visible: _ctx.sliderActive,\n \"onUpdate:visible\": _cache[16] || (_cache[16] = ($event: any) => (_ctx.sliderActive = $event)),\n showCloseIcon: false,\n position: \"right\"\n }, {\n default: _withCtx(() => [\n (_ctx.formType === 0)\n ? (_openBlock(), _createBlock(_component_AddClaimForm, {\n key: 0,\n onCloseSidebar: _cache[12] || (_cache[12] = ($event: any) => (_ctx.closeSidebar())),\n onReloadTable: _cache[13] || (_cache[13] = ($event: any) => (_ctx.getAllData()))\n }))\n : (_ctx.formType === 1)\n ? (_openBlock(), _createBlock(_component_PaymentForm, {\n key: 1,\n onCloseSidebar: _cache[14] || (_cache[14] = ($event: any) => (_ctx.closeSidebar())),\n onReloadTable: _cache[15] || (_cache[15] = ($event: any) => (_ctx.getAllData())),\n penaltyId: _ctx.selectedRow.Id\n }, null, 8, [\"penaltyId\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}","import {\r\n ref,\r\n onMounted,\r\n getCurrentInstance,\r\n defineComponent\r\n} from 'vue'\r\nimport {\r\n useRouter,\r\n useRoute\r\n} from 'vue-router'\r\nimport ClaimAndPaymentForm from '@/views/master/claim-and-insurance/claim-and-payment/ClaimAndPaymentForm.vue'\r\nimport AddClaimForm from '@/views/master/claim-and-insurance/claim-and-payment/form/AddClaimForm.vue'\r\nimport PaymentForm from '@/views/master/claim-and-insurance/claim-and-payment/form/PaymentForm.vue'\r\nimport PenaltyDetailTable from '@/views/master/claim-and-insurance/claim-and-payment/components/PenaltyDetail.vue'\r\nimport {\r\n claimUseCase\r\n} from '@/domain/usecase'\r\nimport {\r\n useStore\r\n} from 'vuex'\r\nimport moment from 'moment'\r\nimport { checkPermission } from '@/utils/helpers/checkPermission'\r\nimport PermissionEnum from '@/utils/enum/permissions'\r\nimport rupiahFormat from '@/utils/helpers/rupiahFormat'\r\n\r\nexport default defineComponent({\r\n name: 'SubmittedPenaltyList',\r\n components: {\r\n AddClaimForm,\r\n PaymentForm,\r\n PenaltyDetailTable\r\n },\r\n setup() {\r\n const app = getCurrentInstance()\r\n const {\r\n $toast,\r\n $strInd,\r\n $confirm\r\n } = app!.appContext.config.globalProperties\r\n const router = useRouter()\r\n const route = useRoute()\r\n const store = useStore()\r\n const op = ref()\r\n const dataEdit = ref(null) as any\r\n const sliderActive = ref(false)\r\n const dataSource = ref([]) as any\r\n const dataHistory = ref([])\r\n const filterCal = ref()\r\n const sendDateFilter = ref(false)\r\n const dateFilter = ref(null)\r\n const inputSearch = ref('')\r\n const expandedRows = ref([]) as any\r\n const selectedRow = ref(null) as any\r\n const detailSelectedRow = ref([]) as any\r\n const formType = ref(null) as any\r\n const isLoading = ref(true)\r\n const filters = {\r\n pageNumber: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n search: '',\r\n filterField: ['agentInChargeName'],\r\n custom: [['status', '=', 'Submitted'], ['orderBy', '=', 'CreatedAt desc']] as any\r\n }\r\n const isPaymentKlaim = ref(false)\r\n const showDialogHistory = ref(false)\r\n\r\n const addedKlaimAgent = (val: any) => {\r\n isPaymentKlaim.value = false\r\n sliderActive.value = true\r\n dataEdit.value = val\r\n }\r\n\r\n // const paymentKlaim = (val: any) => {\r\n // console.log('xxx')\r\n // isPaymentKlaim.value = true\r\n // sliderActive.value = true\r\n // dataEdit.value = val\r\n // }\r\n\r\n const showDropDown = (evt: any, val: any) => {\r\n dataEdit.value = val\r\n op.value.toggle(evt)\r\n }\r\n\r\n const hideDialogHistory = () => {\r\n showDialogHistory.value = false\r\n }\r\n\r\n const colorAndBgHistory = (IsPayment: any) => {\r\n let bg\r\n let color\r\n if (IsPayment) {\r\n bg = 'background-green-lighten-5'\r\n color = 'color-green'\r\n } else {\r\n bg = 'background-red-lighten-5'\r\n color = 'color-red'\r\n }\r\n return {\r\n bg,\r\n color\r\n }\r\n }\r\n\r\n const getHistory = async (idAgent: any) => {\r\n store.dispatch('showLoading')\r\n const filter = {\r\n filter: `AgenId eq ${idAgent} ${dateFilter.value ? `and TanggalKlaim eq ${moment(dateFilter.value).format('YYYY-MM-DD')}` : ''}`,\r\n }\r\n const response = await claimUseCase.getAllTransKlaim(filter)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error',\r\n detail: $strInd.toast.errorAllData,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n } else {\r\n dataHistory.value = response.result\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const getAllData = async () => {\r\n const response = await claimUseCase.getAllTransKlaim(filters)\r\n // console.log('res', response)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error',\r\n detail: $strInd.toast.errorAllData,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n } else {\r\n dataSource.value = response.result.Data.map((data: any) => ({\r\n ...data,\r\n ListReference: [] as any,\r\n Date: moment(data.CreatedAt).format('DD MMM YYYY HH:mm:ss')\r\n }))\r\n\r\n dataSource.value.map(async (data: any) => {\r\n const arrReference = [] as any\r\n const referecesResponse = await claimUseCase.getPenaltyReferences(data.Id)\r\n console.log('ref', [data.Id, referecesResponse.result])\r\n // eslint-disable-next-line array-callback-return\r\n referecesResponse.result.map((item: any) => {\r\n const obj = {\r\n label: item.Name,\r\n color: item.Attributes.length > 0 ? item.Attributes[0]?.Value : null\r\n }\r\n arrReference.push(obj)\r\n })\r\n data.ListReference = arrReference\r\n })\r\n\r\n isLoading.value = false\r\n console.log('data', dataSource.value)\r\n\r\n filters.totalRecords = response.result.Count\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const showingHistory = async (val: any) => {\r\n dataEdit.value = await val\r\n showDialogHistory.value = true\r\n getHistory(val.AgenId)\r\n }\r\n\r\n const closeSidebar = () => {\r\n sliderActive.value = false\r\n expandedRows.value = []\r\n }\r\n const showFilterDate = (evt: any) => {\r\n filterCal.value.toggle(evt)\r\n }\r\n\r\n const saveFilterDate = () => {\r\n sendDateFilter.value = true\r\n getHistory(dataEdit.value.AgenId)\r\n filterCal.value.hide()\r\n }\r\n\r\n const clearFilter = () => {\r\n dateFilter.value = null\r\n sendDateFilter.value = false\r\n getHistory(dataEdit.value.AgenId)\r\n filterCal.value.hide()\r\n }\r\n\r\n const onPage = (event: any) => {\r\n filters.pageNumber = event.page + 1\r\n expandedRows.value = []\r\n dataSource.value = []\r\n getAllData()\r\n }\r\n\r\n const onRowExpand = (event: any) => {\r\n console.log('eventExp', expandedRows.value)\r\n }\r\n\r\n const onRowCollapse = (event: any) => {\r\n console.log('eventCol', expandedRows.value)\r\n }\r\n\r\n const rowExpandAct = async (data: any) => {\r\n store.dispatch('showLoading')\r\n console.log('length', expandedRows.value.length)\r\n console.log((expandedRows.value.length > 0 && data.Id !== expandedRows.value[0].Id) || expandedRows.value.length === 0 ? 'true' : 'false')\r\n if ((expandedRows.value.length > 0 && data.Id !== expandedRows.value[0].Id) || expandedRows.value.length === 0) {\r\n expandedRows.value = []\r\n detailSelectedRow.value = []\r\n console.log('dataId', data.Id)\r\n expandedRows.value.push(data)\r\n // await getPenaltyPaymentsData(data.Id)\r\n } else if (expandedRows.value.length > 0 && data.Id === expandedRows.value[0].Id) {\r\n expandedRows.value = []\r\n detailSelectedRow.value = []\r\n }\r\n console.log('exprow', expandedRows.value)\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const rowApproveAct = (data: any) => {\r\n console.log('data', data)\r\n const payload = {\r\n note: 'ok'\r\n }\r\n $confirm.require({\r\n header: 'Proses Approve Klaim',\r\n message: 'Apakah anda yakin ingin melakukan proses approve klaim, lanjutkan ?',\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: async () => {\r\n const response = await claimUseCase.approveDataPenalty(data.Id, payload)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error', detail: $strInd.toast.errorSubmit, group: 'bc', life: 3000\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success', detail: $strInd.toast.successSubmit, group: 'bc', life: 3000\r\n })\r\n getAllData()\r\n }\r\n }\r\n })\r\n }\r\n\r\n const showSidebar = (data: any = null, type: any) => {\r\n console.log('xxxx', type)\r\n selectedRow.value = data\r\n formType.value = type\r\n sliderActive.value = true\r\n }\r\n\r\n const onSearch = (val: any) => {\r\n filters.search = val\r\n filters.pageNumber = 1\r\n expandedRows.value = []\r\n getAllData()\r\n }\r\n\r\n onMounted(() => {\r\n store.dispatch('showLoading')\r\n getAllData()\r\n console.log('store', store.state)\r\n })\r\n\r\n return {\r\n router,\r\n route,\r\n sliderActive,\r\n dataEdit,\r\n dataSource,\r\n addedKlaimAgent,\r\n // paymentKlaim,\r\n closeSidebar,\r\n inputSearch,\r\n op,\r\n showDropDown,\r\n isPaymentKlaim,\r\n getAllData,\r\n showDialogHistory,\r\n showingHistory,\r\n hideDialogHistory,\r\n colorAndBgHistory,\r\n dateFilter,\r\n filterCal,\r\n sendDateFilter,\r\n showFilterDate,\r\n clearFilter,\r\n saveFilterDate,\r\n dataHistory,\r\n moment,\r\n filters,\r\n onPage,\r\n checkPermission,\r\n PermissionEnum,\r\n expandedRows,\r\n onRowExpand,\r\n onRowCollapse,\r\n rowExpandAct,\r\n formType,\r\n showSidebar,\r\n rupiahFormat,\r\n rowApproveAct,\r\n selectedRow,\r\n onSearch\r\n }\r\n },\r\n})\r\n","import { render } from \"./SubmittedPenaltyList.vue?vue&type=template&id=4e25c28f&ts=true\"\nimport script from \"@/composables/master/claim-and-insurance/claim-and-payment/submittedPenaltyListComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/claim-and-insurance/claim-and-payment/submittedPenaltyListComposable.ts?vue&type=script&lang=ts\"\n\nimport \"./SubmittedPenaltyList.vue?vue&type=style&index=0&id=4e25c28f&lang=scss\"\n\nimport exportComponent from \"C:\\\\Harapan Jaya\\\\hjex-web-agen\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}