{"version":3,"sources":["webpack:///./src/views/master/claim-and-insurance/claim-and-payment/PenaltyPaymentList.vue?6a9d","webpack:///./src/composables/master/claim-and-insurance/claim-and-payment/penaltyPaymentListComposable.ts","webpack:///./src/views/master/claim-and-insurance/claim-and-payment/PenaltyPaymentList.vue","webpack:///./src/views/master/claim-and-insurance/claim-and-payment/PenaltyPaymentList.vue?a434"],"names":["_hoisted_1","id","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","key","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","style","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","src","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","render","_ctx","_cache","$props","$setup","$data","$options","_component_InputIconRightGrey","_component_Column","_component_Button","_component_PenaltyDetailTable","_component_DataTable","_component_Paginator","_component_Card","_component_ListCopyEditDel","_component_OverlayPanel","_component_Dialog","_component_AddClaimForm","_component_PaymentForm","_component_Sidebar","title","placeholder","type","$enumBase","input","text","modelValue","inputSearch","$event","canClick","onSubmitInput","onSearch","onKeyup","icon","$icon","svg","searchEva","content","isLoading","expandedRows","value","dataSource","dataKey","onRowExpand","onRowCollapse","tableStyle","responsiveLayout","expansion","slotProps","penaltyId","data","Id","onReloadHeaderTable","getAllData","default","header","body","AgentInChargeName","_","Date","rupiahFormat","Amount","ListReference","color","label","Status","onClick","rowExpandAct","$store","state","appActiveUser","agent","AgentInChargeId","permissions","includes","showSidebar","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","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","rowApproveAct","payload","note","require","message","accept","approveDataPenalty","errorSubmit","successSubmit","checkPermission","PermissionEnum","__exports__"],"mappings":"wOAKMA,EAAa,CAAEC,GAAI,qBACnBC,EAAa,CAAEC,MAAO,qCACtBC,EAA0B,yBAAa,MAAO,CAAED,MAAO,qBAAuB,CACrE,yBAAa,KAAM,CAAEA,MAAO,oBAAsB,mCAC7D,GACEE,EAAa,CAAEF,MAAO,2BACtBG,EAAa,CAAEC,IAAK,GACpBC,EAAa,CACjBD,IAAK,EACLJ,MAAO,mBAEHM,EAAa,CACjBF,IAAK,EACLJ,MAAO,aAEHO,EAAa,CACjBH,IAAK,EACLJ,MAAO,gBAEHQ,EAAa,CACjBJ,IAAK,EACLJ,MAAO,eAEHS,EAAc,CAAET,MAAO,2BACvBU,EAAc,CAClBV,MAAO,qDACPW,MAAO,CAAC,gBAAgB,sBAEpBC,EAA2B,yBAAa,KAAM,CAAEZ,MAAO,oCAAmD,6BAAiB,gCAAiC,GAC5Ja,EAAc,CAAET,IAAK,GACrBU,EAA2B,yBAAa,IAAK,CAAEd,MAAO,QAAU,aAAc,GAC9Ee,EAAc,CAAEf,MAAO,8DACvBgB,EAAc,CAAEhB,MAAO,gCACvBiB,EAAc,CAAEjB,MAAO,+BACvBkB,EAA2B,yBAAa,IAAK,CAAElB,MAAO,iBAAgC,6BAAiB,yBA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ACAI,cACAC,gBACAuB,eACAkD,WACA1C,cACAf,eAAA,KACA+H,gBACAlE,cACA1F,WACAO,gB,iCC/SN,MAAMgK,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAStM,KAErD,gB,kCCTf","file":"js/chunk-14325da9.e6fe606c.js","sourcesContent":["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 = /*#__PURE__*/_createVNode(\"div\", { class: \"flex items-center\" }, [\n /*#__PURE__*/_createVNode(\"h6\", { class: \"mr-3 font-normal\" }, \"Approval dan Pembayaran Klaim\")\n], -1)\nconst _hoisted_4 = { class: \"flex items-center gap-2\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = {\n key: 1,\n class: \"blue-grey-label\"\n}\nconst _hoisted_7 = {\n key: 0,\n class: \"red-label\"\n}\nconst _hoisted_8 = {\n key: 1,\n class: \"orange-label\"\n}\nconst _hoisted_9 = {\n key: 2,\n class: \"green-label\"\n}\nconst _hoisted_10 = { class: \"flex items-center gap-4\" }\nconst _hoisted_11 = {\n class: \"flex w-full justify-between items-center px-2 pb-5\",\n style: {\"border-bottom\":\"1px solid #CFD8DC\"}\n}\nconst _hoisted_12 = /*#__PURE__*/_createVNode(\"h6\", { class: \"font-semibold text-xl text-black\" }, /*#__PURE__*/_toDisplayString('Histoy Klaim Dan Pembayaran'), -1)\nconst _hoisted_13 = { key: 0 }\nconst _hoisted_14 = /*#__PURE__*/_createVNode(\"p\", { class: \"mr-2\" }, \"Tanggal :\", -1)\nconst _hoisted_15 = { class: \"rounded-lg px-4 py-4 background-orange-lighten-5 mx-2 mb-4\" }\nconst _hoisted_16 = { class: \"font-bold color-primary mb-1\" }\nconst _hoisted_17 = { class: \"flex w-full justify-between\" }\nconst _hoisted_18 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-primary\" }, /*#__PURE__*/_toDisplayString('Total Klaim Saat Ini'), -1)\nconst _hoisted_19 = { class: \"font-bold color-primary\" }\nconst _hoisted_20 = {\n key: 0,\n class: \"px-1\"\n}\nconst _hoisted_21 = {\n class: \"flex\",\n style: {\"width\":\"20%\"}\n}\nconst _hoisted_22 = {\n key: 0,\n src: _imports_0,\n class: \"w-8 h-8\"\n}\nconst _hoisted_23 = {\n key: 1,\n src: _imports_1,\n class: \"w-8 h-8\"\n}\nconst _hoisted_24 = {\n class: \"\",\n style: {\"width\":\"55%\"}\n}\nconst _hoisted_25 = { class: \"color-blue-grey text-sm\" }\nconst _hoisted_26 = {\n class: \"flex justify-end\",\n style: {\"width\":\"25%\"}\n}\nconst _hoisted_27 = {\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_InputIconRightGrey = _resolveComponent(\"InputIconRightGrey\")\n const _component_Column = _resolveComponent(\"Column\")\n const _component_Button = _resolveComponent(\"Button\")\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 _hoisted_3,\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[1] || (_cache[1] = ($event: any) => (_ctx.inputSearch = $event)),\n canClick: true,\n onSubmitInput: _cache[2] || (_cache[2] = ($event: any) => (_ctx.onSearch(_ctx.inputSearch))),\n onKeyup: _cache[3] || (_cache[3] = _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 (!_ctx.isLoading)\n ? (_openBlock(), _createBlock(_component_DataTable, {\n key: 0,\n expandedRows: _ctx.expandedRows,\n \"onUpdate:expandedRows\": _cache[5] || (_cache[5] = ($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[4] || (_cache[4] = ($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_4, [\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_5, [\n _createVNode(\"div\", {\n class: \"base-label\",\n style: `background: ${data.color}`\n }, _toDisplayString(data.label), 5)\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_6, _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_7, _toDisplayString('Diajukan')))\n : (slotProps.data.Status === 'Approved')\n ? (_openBlock(), _createBlock(\"div\", _hoisted_8, _toDisplayString('Belum Lunas')))\n : (slotProps.data.Status === 'Paid')\n ? (_openBlock(), _createBlock(\"div\", _hoisted_9, _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_10, [\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 (slotProps.data.Status === 'Approved' && _ctx.$store.state.appActiveUser.agent.id === slotProps.data.AgentInChargeId && (_ctx.$store.state.appActiveUser.permissions.includes('penalty:CreatePayment') || _ctx.$store.state.appActiveUser.permissions.includes('*:*')))\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 1,\n label: \"Bayar\",\n onClick: ($event: any) => (_ctx.showSidebar(slotProps.data, 1)),\n class: \"font-semibold p-button-sm btn-primary\"\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"expandedRows\", \"value\", \"onRowExpand\", \"onRowCollapse\"]))\n : _createCommentVNode(\"\", true),\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[6] || (_cache[6] = ($event: any) => (_ctx.paymentKlaim(_ctx.dataEdit))),\n onAddKlaim: _cache[7] || (_cache[7] = ($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[10] || (_cache[10] = ($event: any) => (_ctx.showDialogHistory = $event)),\n class: \"dialog-voucher\",\n modal: true,\n dismissableMask: true\n }, {\n header: _withCtx(() => [\n _createVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createVNode(\"i\", {\n class: \"pi pi-times text-black cursor-pointer\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (_ctx.hideDialogHistory()))\n })\n ])\n ]),\n default: _withCtx(() => [\n (_ctx.dataEdit)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_13, [\n _createVNode(\"div\", {\n class: \"mb-2 flex items-center mx-2\",\n onClick: _cache[9] || (_cache[9] = ($event: any) => (_ctx.showFilterDate($event)))\n }, [\n _hoisted_14,\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_15, [\n _createVNode(\"p\", _hoisted_16, _toDisplayString(_ctx.dataEdit.NamaAgen), 1),\n _createVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createVNode(\"p\", _hoisted_19, \"Rp. \" + _toDisplayString(new Number(_ctx.dataEdit.Total).toLocaleString(\"id-ID\")), 1)\n ])\n ]),\n (_ctx.dataHistory.length > 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_20, [\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_21, [\n _createVNode(\"div\", {\n class: [\"flex rounded-full p-3\", _ctx.colorAndBgHistory(item.IsPayment).bg]\n }, [\n (item.IsPayment)\n ? (_openBlock(), _createBlock(\"img\", _hoisted_22))\n : (_openBlock(), _createBlock(\"img\", _hoisted_23))\n ], 2)\n ]),\n _createVNode(\"div\", _hoisted_24, [\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_25, _toDisplayString(_ctx.moment(item.TanggalKlaim).format('DD MMMM YYYY, HH:mm')) + \" WIB\", 1)\n ]),\n _createVNode(\"div\", _hoisted_26, [\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_27, \"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[15] || (_cache[15] = ($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[11] || (_cache[11] = ($event: any) => (_ctx.closeSidebar())),\n onReloadTable: _cache[12] || (_cache[12] = ($event: any) => (_ctx.getAllData()))\n }))\n : (_ctx.formType === 1)\n ? (_openBlock(), _createBlock(_component_PaymentForm, {\n key: 1,\n onCloseSidebar: _cache[13] || (_cache[13] = ($event: any) => (_ctx.closeSidebar())),\n onReloadTable: _cache[14] || (_cache[14] = ($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\nimport { result } from 'lodash'\r\n\r\nexport default defineComponent({\r\n name: 'PenaltyPaymentList',\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', '=', 'Approved,Paid'], ['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 isLoading\r\n }\r\n },\r\n})\r\n","import { render } from \"./PenaltyPaymentList.vue?vue&type=template&id=1ff5c0e6&ts=true\"\nimport script from \"@/composables/master/claim-and-insurance/claim-and-payment/penaltyPaymentListComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/claim-and-insurance/claim-and-payment/penaltyPaymentListComposable.ts?vue&type=script&lang=ts\"\n\nimport \"./PenaltyPaymentList.vue?vue&type=style&index=0&id=1ff5c0e6&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__","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!./PenaltyPaymentList.vue?vue&type=style&index=0&id=1ff5c0e6&lang=scss\""],"sourceRoot":""}