{"version":3,"sources":["webpack:///./src/views/cashier/detail/FinishedProcessingDetail.vue?7dea","webpack:///./src/views/cashier/detail/TableFinishedProcessingDetail.vue?d9cb","webpack:///./src/composables/cashier/detail/tableFinishedProcessingDetailComposable.ts","webpack:///./src/views/cashier/detail/TableFinishedProcessingDetail.vue","webpack:///./src/composables/cashier/detail/finishedProcessingDetailComposable.ts","webpack:///./src/views/cashier/detail/FinishedProcessingDetail.vue","webpack:///./src/views/cashier/detail/TableFinishedProcessingDetail.vue?f261"],"names":["_hoisted_1","id","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","style","_hoisted_11","_hoisted_12","_hoisted_13","key","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_TableFinishedProcessingDetail","_component_Button","_component_Card","title","dataHeader","KodeJadwal","moment","TanggalAktif","format","Rit","TipeBus","Kode","content","showTableFinished","jadwalId","Number","decryptData","ref","footer","IsClose","default","_","onClick","$event","prosesPendapatan","_component_DxScrolling","_component_DxColumn","_component_DxGroupPanel","_component_DxGrouping","_component_DxPaging","_component_DxSearchPanel","_component_DxDataGrid","_component_InputNumber","_component_Textarea","dataSource","mode","width","caption","visible","autoExpandAll","enabled","sumTunai","toLocaleString","sumNonTunai","totalReceived","modelValue","modelModifiers","lazy","currency","currencyDisplay","locale","autoResize","descriptionTableFinished","rows","placeholder","disabled","name","components","DxColumn","DxGroupPanel","DxGrouping","DxPaging","DxSearchPanel","DxDataGrid","DxScrolling","props","setup","getAllTable","getAll","expand","select","filter","response","value","result","map","x","Id","Agent","AgenAsal","Nama","Manifest","NoManifest","Resi","Tunai","JenisPembayaran","toLowerCase","GrandTotal","NonTunai","NumTunai","NumNonTunai","Keterangan","KeteranganPembayaran","forEach","element","UangDiterima","KeteranganClose","__exports__","TableFinishedProcessingDetail","app","appContext","config","globalProperties","$confirm","$toast","$strInd","route","router","refTableFinished","encryptDecriptMethods","decrypt","params","getHeader","hasilDec","getOneDetail","error","add","severity","detail","toast","errorAllData","group","life","checkResponse","message","summary","Title","Detail","push","storeData","formData","closeSchedule","require","header","icon","accept"],"mappings":"0KAEMA,EAAa,CAAEC,GAAI,2BACnBC,EAAa,CAAEC,MAAO,uDACtBC,EAAa,CAAED,MAAO,+CACtBE,EAAa,CAAEF,MAAO,uCACtBG,EAAa,CAAEH,MAAO,wBACtBI,EAAa,CAAEJ,MAAO,6BACtBK,EAA0B,yBAAa,IAAK,CAAEL,MAAO,uDAAyD,gBAAiB,GAC/HM,EAAa,CAAEN,MAAO,sCACtBO,EAAa,CAAEP,MAAO,kCACtBQ,EAAc,CAClBR,MAAO,uDACPS,MAAO,CAAC,OAAS,sBAEbC,EAAc,CAAEV,MAAO,gCACvBW,EAAc,CAClBX,MAAO,iDACPS,MAAO,CAAC,OAAS,sBAEbG,EAAc,CAClBC,IAAK,EACLb,MAAO,2BAEHc,EAA2B,yBAAa,MAAO,CAAEd,MAAO,0CAA4C,CAC3F,yBAAa,IAAK,CAAEA,MAAO,+CACtC,GACEe,EAA2B,yBAAa,IAAK,CAAEf,MAAO,wBAA0B,kBAAmB,GACnGgB,EAA2B,yBAAa,IAAK,CAAEhB,MAAO,wBAA0B,qBAAsB,GAEtG,SAAUiB,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA2C,8BAAkB,iCAC7DC,EAAoB,8BAAkB,UACtCC,EAAkB,8BAAkB,QAE1C,OAAQ,yBAAc,yBAAa,UAAW7B,EAAY,CACxD,yBAAa6B,EAAiB,KAAM,CAClCC,MAAO,sBAAS,iBAAM,CACpB,yBAAa,MAAO5B,EAAY,CAC9B,yBAAa,MAAOE,EAAY,CAC9B,yBAAa,IAAKC,EAAY,6BAAiBgB,EAAKU,WAAWC,YAAa,KAE9E,yBAAa,MAAO1B,EAAY,CAC9B,yBAAa,MAAOC,EAAY,CAC9BC,EACA,yBAAa,IAAKC,EAAY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B,0BAJrB,SAMO,QAAwB+E,cAAcpH,OAAOC,KAAgBkH,GANpE,OAMV1D,EANU,OAOhBmD,EAAcnD,GAPE,2CAAH,qDAUThD,EAAmB,WAEvB+E,EAAS6B,QAAQ,CACfC,OAAQ,oBACRT,QAAS,mEACTU,KAAM,6BACNC,OAAQ,WAAF,8CAAE,8FACNN,IADM,2CAAF,qDAAE,MAUZ,OAJA,wBAAU,WACRjH,IACAgG,OAEK,CACL5G,aACAE,OAAA,IACAoG,QACA1F,cACAQ,mBACAoF,mBACA/F,uBCzGN,MAAM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpB,KAErD,gB,kCCPf","file":"js/chunk-3609fb9a.50379b14.js","sourcesContent":["import { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { id: \"delivery-pending-detail\" }\nconst _hoisted_2 = { class: \"background-grey-lighten-5 px-6 py-6 mb-4 rounded-lg\" }\nconst _hoisted_3 = { class: \"sm:flex w-full items-center justify-between\" }\nconst _hoisted_4 = { class: \"font-bold py-2 text-2xl md:text-3xl\" }\nconst _hoisted_5 = { class: \"sm:flex items-center\" }\nconst _hoisted_6 = { class: \"flex batas-chip mr-3 pr-3\" }\nconst _hoisted_7 = /*#__PURE__*/_createVNode(\"p\", { class: \"font-normal color-blue-grey-darken-3 text-base mr-1\" }, \"Berangkat : \", -1)\nconst _hoisted_8 = { class: \"color-blue-grey-darken-3 text-base\" }\nconst _hoisted_9 = { class: \"flex items-center mt-3 sm:mt-0\" }\nconst _hoisted_10 = {\n class: \"rounded-md background-green-lighten-5 py-1 px-3 mr-2\",\n style: {\"border\":\"1px solid #66BB6A\"}\n}\nconst _hoisted_11 = { class: \"color-green-darken-1 text-sm\" }\nconst _hoisted_12 = {\n class: \"rounded-md background-grey-lighten-5 py-1 px-3\",\n style: {\"border\":\"1px solid #607D8B\"}\n}\nconst _hoisted_13 = {\n key: 0,\n class: \"color-blue-grey text-sm\"\n}\nconst _hoisted_14 = /*#__PURE__*/_createVNode(\"div\", { class: \"flex rounded-full background-green p-1\" }, [\n /*#__PURE__*/_createVNode(\"i\", { class: \"pi pi-check text-white w-4 h-4 text-bold\" })\n], -1)\nconst _hoisted_15 = /*#__PURE__*/_createVNode(\"p\", { class: \"font-bold text-black\" }, \"Sudah Diproses\", -1)\nconst _hoisted_16 = /*#__PURE__*/_createVNode(\"p\", { class: \"font-bold text-black\" }, \"Proses Pendapatan\", -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_TableFinishedProcessingDetail = _resolveComponent(\"TableFinishedProcessingDetail\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Card = _resolveComponent(\"Card\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_Card, null, {\n title: _withCtx(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"p\", _hoisted_4, _toDisplayString(_ctx.dataHeader.KodeJadwal), 1)\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(\"p\", _hoisted_8, _toDisplayString(_ctx.moment(_ctx.dataHeader.TanggalAktif).format('dddd, DD MMMM YYYY')), 1)\n ]),\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"p\", _hoisted_11, \"RIT \" + _toDisplayString(_ctx.dataHeader.Rit), 1)\n ]),\n _createVNode(\"div\", _hoisted_12, [\n (_ctx.dataHeader.TipeBus)\n ? (_openBlock(), _createBlock(\"p\", _hoisted_13, _toDisplayString(_ctx.dataHeader.TipeBus.Kode), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ])\n ]),\n content: _withCtx(() => [\n (_ctx.showTableFinished)\n ? (_openBlock(), _createBlock(_component_TableFinishedProcessingDetail, {\n key: 0,\n jadwalId: Number(_ctx.decryptData()),\n dataHeader: _ctx.dataHeader,\n ref: \"refTableFinished\"\n }, null, 8, [\"jadwalId\", \"dataHeader\"]))\n : _createCommentVNode(\"\", true)\n ]),\n footer: _withCtx(() => [\n (_ctx.dataHeader.IsClose)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n class: \"btn-secondary p-button-sm flex gap-2 cursor-default\"\n }, {\n default: _withCtx(() => [\n _hoisted_14,\n _hoisted_15\n ]),\n _: 1\n }))\n : (_openBlock(), _createBlock(_component_Button, {\n key: 1,\n class: \"btn-primary p-button-sm rounded-md\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.prosesPendapatan()))\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }))\n ]),\n _: 1\n })\n ]))\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"w-full background-orange-lighten-5 py-2 px-5 gap-4 grid grid-cols-4 items-center\" }\nconst _hoisted_2 = /*#__PURE__*/_createVNode(\"div\", null, [\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-primary font-bold text-xs sm:text-base\" }, \"Total Pendapatan Jadwal\")\n], -1)\nconst _hoisted_3 = { class: \"col-span-2 md:col-span-1\" }\nconst _hoisted_4 = { class: \"color-primary font-bold text-sm sm:text-base\" }\nconst _hoisted_5 = { style: {} }\nconst _hoisted_6 = { class: \"color-primary font-bold text-sm sm:text-base\" }\nconst _hoisted_7 = { class: \"w-full background-grey-lighten-5 py-2 px-5 gap-4 grid grid-cols-4 items-center\" }\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"div\", { style: {} }, [\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey font-bold text-sm sm:text-base\" }, \"Total Yang Diterima\")\n], -1)\nconst _hoisted_9 = { class: \"col-span-3 md:col-span-2\" }\nconst _hoisted_10 = {\n key: 1,\n class: \"flex justify-between bg-white rounded-lg py-1 px-2 w-full\",\n style: {\"border\":\"1px solid #CFD8DC\"}\n}\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey font-bold text-sm sm:text-base\" }, \"Rp. \", -1)\nconst _hoisted_12 = { class: \"color-blue-grey font-bold text-sm sm:text-base\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_DxScrolling = _resolveComponent(\"DxScrolling\")\n const _component_DxColumn = _resolveComponent(\"DxColumn\")\n const _component_DxGroupPanel = _resolveComponent(\"DxGroupPanel\")\n const _component_DxGrouping = _resolveComponent(\"DxGrouping\")\n const _component_DxPaging = _resolveComponent(\"DxPaging\")\n const _component_DxSearchPanel = _resolveComponent(\"DxSearchPanel\")\n const _component_DxDataGrid = _resolveComponent(\"DxDataGrid\")\n const _component_InputNumber = _resolveComponent(\"InputNumber\")\n const _component_Textarea = _resolveComponent(\"Textarea\")\n\n return (_openBlock(), _createBlock(\"section\", null, [\n _createVNode(_component_DxDataGrid, {\n class: \"data-grid-table-finished\",\n \"allow-column-reordering\": false,\n \"show-column-lines\": false,\n \"show-row-lines\": true,\n \"show-borders\": true,\n \"row-alternation-enabled\": true,\n \"allow-column-resizing\": false,\n \"word-wrap-enabled\": true,\n \"data-source\": _ctx.dataSource,\n \"key-expr\": \"Id\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_DxScrolling, { mode: \"virtual\" }),\n _createVNode(_component_DxColumn, {\n \"group-index\": 0,\n \"data-field\": \"Agent\",\n width: 250\n }),\n _createVNode(_component_DxColumn, {\n \"group-index\": 1,\n \"data-field\": \"Manifest\",\n width: 250\n }),\n _createVNode(_component_DxColumn, {\n \"data-field\": \"Resi\",\n caption: \"No. Resi\",\n width: 250,\n \"css-class\": \"cell-highlighted\"\n }),\n _createVNode(_component_DxColumn, {\n \"data-field\": \"Tunai\",\n caption: \"Tunai\"\n }),\n _createVNode(_component_DxColumn, {\n \"data-field\": \"NonTunai\",\n caption: \"Non-Tunai\"\n }),\n _createVNode(_component_DxColumn, {\n \"data-field\": \"Keterangan\",\n caption: \"Keterangan\"\n }),\n _createVNode(_component_DxGroupPanel, { visible: true }),\n _createVNode(_component_DxGrouping, { \"auto-expand-all\": _ctx.autoExpandAll }, null, 8, [\"auto-expand-all\"]),\n _createVNode(_component_DxPaging, {\n \"page-size\": 10,\n enabled: false\n }),\n _createVNode(_component_DxSearchPanel, { visible: false })\n ]),\n _: 1\n }, 8, [\"data-source\"]),\n _createVNode(\"div\", null, [\n _createVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"p\", _hoisted_4, _toDisplayString(`Rp. ${new Number(_ctx.sumTunai).toLocaleString('id-ID')}`), 1)\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"p\", _hoisted_6, _toDisplayString(`Rp. ${new Number(_ctx.sumNonTunai).toLocaleString('id-ID')}`), 1)\n ])\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createVNode(\"div\", _hoisted_9, [\n (!_ctx.dataHeader.IsClose)\n ? (_openBlock(), _createBlock(_component_InputNumber, {\n key: 0,\n id: \"totalReceivedId\",\n class: \"input-primary rounded-lg w-full\",\n modelValue: _ctx.totalReceived,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.totalReceived = $event)),\n modelModifiers: { lazy: true },\n mode: \"currency\",\n currency: \"IDR\",\n currencyDisplay: \"code\",\n locale: \"id-ID\"\n }, null, 8, [\"modelValue\"]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_10, [\n _hoisted_11,\n _createVNode(\"p\", _hoisted_12, _toDisplayString(`${new Number(_ctx.totalReceived).toLocaleString('id-ID')}`), 1)\n ]))\n ])\n ])\n ]),\n _createVNode(\"div\", null, [\n _createVNode(_component_Textarea, {\n autoResize: true,\n id: \"descriptionTableFinishedId\",\n modelValue: _ctx.descriptionTableFinished,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.descriptionTableFinished = $event)),\n rows: \"2\",\n class: \"md:w-1/2 w-full rounded-lg input-primary mb-0 mt-4\",\n placeholder: \"Keterangan\",\n disabled: _ctx.dataHeader.IsClose\n }, null, 8, [\"modelValue\", \"disabled\"])\n ])\n ]))\n}","/* eslint-disable */\r\nimport {\r\n DxDataGrid,\r\n DxColumn,\r\n DxGrouping,\r\n DxGroupPanel,\r\n DxSearchPanel,\r\n DxPaging,\r\n DxScrolling\r\n} from 'devextreme-vue/data-grid'\r\nimport 'devextreme/dist/css/dx.common.css'\r\nimport 'devextreme/dist/css/dx.light.css'\r\nimport {\r\n deliveryPendingUseCase\r\n} from '@/domain/usecase'\r\nimport {\r\n ref,\r\n onMounted,\r\n reactive\r\n} from 'vue'\r\n\r\nexport default {\r\n name: 'TableFinishedProcessingDetail',\r\n components: {\r\n // DxCheckBox,\r\n DxColumn,\r\n DxGroupPanel,\r\n DxGrouping,\r\n DxPaging,\r\n DxSearchPanel,\r\n DxDataGrid,\r\n DxScrolling\r\n },\r\n props: ['jadwalId', 'dataHeader'],\r\n setup(props: any) {\r\n const dataSource = ref([])\r\n const {\r\n jadwalId,\r\n dataHeader\r\n } = reactive(props)\r\n const autoExpandAll = ref(false)\r\n const sumTunai = ref(0)\r\n const sumNonTunai = ref(0)\r\n const totalReceived = ref(0)\r\n const descriptionTableFinished = ref(null)\r\n const getAllTable = async () => {\r\n const response = await deliveryPendingUseCase.getAll({\r\n expand: '&$expand=Manifest($select=NoManifest,Id,TransJadwalHdId), AgenAsal($select=Id,Nama), JenisPembayaran($select=Kode,Nama,Id)',\r\n select: '&$select=Resi,JenisPembayaranId,KategoriBarang,TipePengiriman,Id,KeteranganPembayaran,TransJadwalHdId,GrandTotal',\r\n filter: `Manifestid ne null and TransJadwalHdId eq ${jadwalId}`,\r\n // top: 10,\r\n // skip: 0\r\n })\r\n dataSource.value = response.result.map((x: any) => {\r\n return {\r\n Id: x.Id,\r\n Agent: x.AgenAsal.Nama,\r\n Manifest: x.Manifest.NoManifest,\r\n Resi: x.Resi,\r\n Tunai: x.JenisPembayaran.Kode.toLowerCase() === 'tunai' ? `Rp. ${Number(x.GrandTotal).toLocaleString('id-ID')}` : '-',\r\n NonTunai: x.JenisPembayaran.Kode.toLowerCase() !== 'tunai' ? `Rp. ${Number(x.GrandTotal).toLocaleString('id-ID')}` : '-',\r\n NumTunai: x.JenisPembayaran.Kode.toLowerCase() === 'tunai' ? x.GrandTotal : 0,\r\n NumNonTunai: x.JenisPembayaran.Kode.toLowerCase() !== 'tunai' ? x.GrandTotal : 0,\r\n Keterangan: x.KeteranganPembayaran\r\n }\r\n })\r\n dataSource.value.forEach((element: any) => {\r\n sumTunai.value += element.NumTunai\r\n sumNonTunai.value += element.NumNonTunai\r\n })\r\n if (dataHeader.IsClose) {\r\n totalReceived.value = dataHeader.UangDiterima\r\n descriptionTableFinished.value = dataHeader.KeteranganClose\r\n } else {\r\n totalReceived.value = sumTunai.value + sumNonTunai.value\r\n }\r\n // console.log('response', tunai.value)\r\n }\r\n onMounted(() => {\r\n // console.log('dataHeader', dataHeader, jadwalId)\r\n getAllTable()\r\n })\r\n return {\r\n // dummyData\r\n dataSource,\r\n autoExpandAll,\r\n sumTunai,\r\n sumNonTunai,\r\n totalReceived,\r\n dataHeader,\r\n descriptionTableFinished\r\n }\r\n },\r\n // watch: {\r\n // dataHeader: {\r\n // immediate: true,\r\n // handler(newVal: any, oldVal: any) {\r\n // console.log('on watch', newVal, oldVal)\r\n // }\r\n // }\r\n // }\r\n}","import { render } from \"./TableFinishedProcessingDetail.vue?vue&type=template&id=ef8ee8d8&ts=true\"\nimport script from \"@/composables/cashier/detail/tableFinishedProcessingDetailComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/cashier/detail/tableFinishedProcessingDetailComposable.ts?vue&type=script&lang=ts\"\n\nimport \"./TableFinishedProcessingDetail.vue?vue&type=style&index=0&id=ef8ee8d8&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__","import TableFinishedProcessingDetail from '@/views/cashier/detail/TableFinishedProcessingDetail.vue'\r\nimport {\r\n deliveryManifestUseCase,\r\n transScheduleBusUseCase\r\n} from '@/domain/usecase'\r\nimport {\r\n ref,\r\n onMounted,\r\n getCurrentInstance\r\n} from 'vue'\r\nimport moment from 'moment'\r\nimport {\r\n useRoute,\r\n useRouter\r\n} from 'vue-router'\r\nimport { encryptDecriptMethods } from '@/plugins/encryptDecriptMethods'\r\n\r\nexport default {\r\n components: {\r\n TableFinishedProcessingDetail\r\n },\r\n setup() {\r\n const app = getCurrentInstance()\r\n const {\r\n $confirm,\r\n $toast,\r\n $strInd\r\n } = app!.appContext.config.globalProperties\r\n const route = useRoute()\r\n const router = useRouter()\r\n const dataHeader = ref({}) as any\r\n const showTableFinished = ref(false)\r\n const refTableFinished = ref()\r\n const decryptData = () => encryptDecriptMethods.decrypt(route.params.id)\r\n const getHeader = async () => {\r\n const hasilDec = await decryptData()\r\n const response = await deliveryManifestUseCase.getOneDetail(Number(hasilDec), {\r\n expand: '&$expand=TipeBus($select=Kode)',\r\n select: '&$select=Id,KodeJadwal,Rit,TanggalAktif,TanggalNonAktif,IsClose,UangDiterima,KeteranganClose'\r\n })\r\n if (!response.error) {\r\n dataHeader.value = await response.result.value\r\n showTableFinished.value = true\r\n } else {\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 }\r\n }\r\n\r\n const checkResponse = (response: any) => {\r\n // console.log('response after put', response)\r\n if (!response.error) {\r\n $toast.add({\r\n severity: 'success',\r\n summary: response.result.title ?? response.result.Title,\r\n detail: response.result.detail ?? response.result.Detail,\r\n group: 'bc',\r\n life: 3000\r\n })\r\n router.push({\r\n name: 'manifest-revenue'\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'error',\r\n // summary: response.result.title,\r\n detail: response.message,\r\n group: 'bc',\r\n life: 3000\r\n })\r\n }\r\n }\r\n\r\n const storeData = async () => {\r\n const formData = {\r\n Id: Number(decryptData()),\r\n UangDiterima: refTableFinished.value.totalReceived,\r\n Keterangan: refTableFinished.value.descriptionTableFinished\r\n }\r\n const response = await transScheduleBusUseCase.closeSchedule(Number(decryptData()), formData)\r\n checkResponse(response)\r\n }\r\n\r\n const prosesPendapatan = () => {\r\n // console.log('ini ref', refTableFinished.value.totalReceived)\r\n $confirm.require({\r\n header: 'Proses Pendapatan',\r\n message: 'Apakah anda yakin ingin melakukan proses pendapatan, lanjutkan ?',\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: async () => {\r\n storeData()\r\n }\r\n })\r\n }\r\n\r\n onMounted(() => {\r\n decryptData()\r\n getHeader()\r\n })\r\n return {\r\n dataHeader,\r\n moment,\r\n route,\r\n decryptData,\r\n prosesPendapatan,\r\n refTableFinished,\r\n showTableFinished\r\n }\r\n }\r\n}\r\n","import { render } from \"./FinishedProcessingDetail.vue?vue&type=template&id=47604bdd&ts=true\"\nimport script from \"@/composables/cashier/detail/finishedProcessingDetailComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/cashier/detail/finishedProcessingDetailComposable.ts?vue&type=script&lang=ts\"\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!./TableFinishedProcessingDetail.vue?vue&type=style&index=0&id=ef8ee8d8&lang=scss\""],"sourceRoot":""}