{"version":3,"sources":["webpack:///./src/views/Payment/PaymentTracking/DealerPayout/index.vue?2580","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/index.vue?1f85","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entityWrapper.vue?96cf","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entityWrapper.vue","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entityWrapper.vue?6230","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entity.vue?4726","webpack:///./src/hooks/payment/PaymentTracking/useDealerPayout.ts","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entity.vue","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entity.vue?2aa2","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/index.vue","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/index.vue?da40","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entity.vue?c0c1","webpack:///./src/views/Payment/PaymentTracking/DealerPayout/entityWrapper.vue?e6d0","webpack:///./src/utils/payment/numberFormat.ts"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","style","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_select_option","_component_a_select","_component_entity","_component_entity_wrapper","allowClear","value","payoutRound","$event","placeholder","default","roundList","item","key","_","heightStyle","$slots","undefined","name","props","setup","__exports__","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_component_RightOutlined","_component_a_table","_component_a_collapse_panel","_component_a_collapse","pageData","length","activeKey","expandIconPosition","expandIcon","isActive","rotate","index","toString","header","entity","toThousandsAndTwoDecimal","payoutAmountWVat","payoutAmountWoVat","dataSource","normalPayment","columns","rowKey","pagination","rowClassName","getRowClass","status","record","color","formatThousand","text","bold","rePayment","originColumns","title","dataIndex","width","align","slots","customRender","unique","arr","arr1","i","includes","push","useDealerPayout","getData","id","type","then","res","dynamicColumns","vatheader","map","content","forEach","concat","store","payoutList","state","user","fulnm","tableList","getPayoutList","pageNumber","pageSize","userId","usrid","typeList","data","payoutTrackingList","getPayoutTrackingList","params","year","month","payoutCode","String","required","newValue","components","RightOutlined","roundListRes","EntityWrapper","Entity","count","indexOf","Number","toFixed","replace","$0","$1","toThousands","substring","Math","round"],"mappings":"2IAAA,W,oFCEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,aACtBC,EAAa,CAAED,MAAO,kCACtBE,EAAa,CAAEF,MAAO,0BACtBG,EAAa,CAAEH,MAAO,0BACtBI,EAAa,CAAEJ,MAAO,sBACtBK,EAAa,CAAEL,MAAO,eACtBM,EAA2BT,GAAa,WAAmB,uCAAoB,QAAS,CAAEG,MAAO,SAAW,kBAAmB,MAC/HO,EAA2BV,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,eAAiB,MAAO,MACvHQ,EAA2BX,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,eAAiB,MAAO,MACvHS,EAA4BZ,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,eAAiB,MAAO,MACxHU,EAA4Bb,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,eAAiB,MAAO,MACxHW,EAAc,CAClBX,MAAO,yBACPY,MAAO,CAAC,aAAa,SAGhB,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA6B,8BAAkB,mBAC/CC,EAAsB,8BAAkB,YACxCC,EAAoB,8BAAkB,UACtCC,EAA4B,8BAAkB,kBAEpD,OAAQ,yBAAc,gCAAoB,MAAOxB,EAAY,CAC3D,gCAAoB,MAAOE,EAAY,CACrC,gCAAoB,MAAO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AC,YAAY,qBAE1E,iB,kCCTf,W,kCCAA,W,yDCAA,oEAKO,IAAMyD,EAA2B,SAACqE,GACvC,QAAcvG,IAAVuG,GAAiC,OAAVA,EACzB,MAAO,GAET,GAAqB,kBAAVA,EAAoB,CAC7B,IAA4B,IAAxBA,EAAMC,QAAQ,KAChB,OAA4B,IAAxBD,EAAMC,QAAQ,KACTD,EAEAA,EAAQ,MAGnBA,EAAQE,OAAOF,GAGjB,OADAA,EAAQA,EAAMG,QAAQ,GACfH,EACJxE,WACA4E,QAAQ,uBAAuB,SAASC,EAAIC,GAC3C,OAAOA,EAAK,OAEbF,QAAQ,MAAO,KAGPG,EAAc,SAACP,GAC1B,QAAcvG,IAAVuG,EACF,MAAO,GAET,GAAqB,kBAAVA,EAAoB,CAC7B,IAA4B,IAAxBA,EAAMC,QAAQ,KAChB,OAA4B,IAAxBD,EAAMC,QAAQ,KACTD,EAAMQ,UAAU,EAAGR,EAAMC,QAAQ,KAAO,GAExCD,EAGXA,EAAQE,OAAOF,GAGjB,OADAA,EAAQS,KAAKC,MAAMV,GACZA,EACJxE,WACA4E,QAAQ,uBAAuB","file":"js/chunk-324a87ce.69f9e8bb.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=0&id=122e4e14&lang=scss&scoped=true\"","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-122e4e14\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = { class: \"payment-overview-block-wrapper\" }\nconst _hoisted_3 = { class: \"payment-overview-block\" }\nconst _hoisted_4 = { class: \"payment-search-wrapper\" }\nconst _hoisted_5 = { class: \"payment-search-row\" }\nconst _hoisted_6 = { class: \"search-item\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Payout Round \", -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"search-item\" }, null, -1))\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"search-item\" }, null, -1))\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"search-item\" }, null, -1))\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"search-item\" }, null, -1))\nconst _hoisted_12 = {\n class: \"payment-overview-block\",\n style: {\"margin-top\":\"10px\"}\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_entity = _resolveComponent(\"entity\")!\n const _component_entity_wrapper = _resolveComponent(\"entity-wrapper\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_a_select, {\n allowClear: \"\",\n value: _ctx.payoutRound,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.payoutRound) = $event)),\n class: \"sel-inp-size\",\n placeholder: \"Please select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.roundList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, { key: item }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _hoisted_8,\n _hoisted_9,\n _hoisted_10,\n _hoisted_11\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _createVNode(_component_entity_wrapper, null, {\n default: _withCtx(() => [\n _createVNode(_component_entity, { \"payout-round\": _ctx.payoutRound }, null, 8, [\"payout-round\"])\n ]),\n _: 1\n })\n ])\n ])\n ]))\n}","import { createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a58853b2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"wrapper\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"wrapper-header\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"header-title\" }, \"Entity\"),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"header-item-wrapper\" })\n], -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", {\n class: \"wrapper-content\",\n style: _normalizeStyle(_ctx.heightStyle)\n }, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ], 4)\n ]))\n}","\nimport { defineComponent, reactive } from \"vue\";\nexport default defineComponent({\n name: \"entityWrapper\",\n props: {},\n setup() {\n const heightStyle = reactive({\n // height: \"300px\"\n })\n return {\n heightStyle\n };\n },\n});\n","import { render } from \"./entityWrapper.vue?vue&type=template&id=a58853b2&scoped=true&ts=true\"\nimport script from \"./entityWrapper.vue?vue&type=script&lang=ts\"\nexport * from \"./entityWrapper.vue?vue&type=script&lang=ts\"\n\nimport \"./entityWrapper.vue?vue&type=style&index=0&id=a58853b2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a58853b2\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-623ed308\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"collapse-wrapper\" }\nconst _hoisted_2 = {\n class: \"collapse-icon-wrapper\",\n style: {\"padding\":\"5px\",\"background\":\"white\",\"border-radius\":\"20px\"}\n}\nconst _hoisted_3 = { class: \"collapse-header-wrapper\" }\nconst _hoisted_4 = { class: \"collapse-header-title\" }\nconst _hoisted_5 = { class: \"collapse-header-data\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"collapse-header-data-item-title\"\n}\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"count-title\" }, null, -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \"Payout Amount w/oVAT\", -1))\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \"Payout Amount w/VAT\", -1))\nconst _hoisted_10 = [\n _hoisted_7,\n _hoisted_8,\n _hoisted_9\n]\nconst _hoisted_11 = { class: \"collapse-header-data-item\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"light-color count-title\" }, \"Total Normal\", -1))\nconst _hoisted_13 = { class: \"collapse-header-data-item\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"light-color count-title\" }, \"Total Repayment\", -1))\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h3\", { class: \"light-color\" }, \"Normal Payment\", -1))\nconst _hoisted_16 = {\n key: 0,\n class: \"status-circle green\"\n}\nconst _hoisted_17 = {\n key: 1,\n class: \"status-circle yellow\"\n}\nconst _hoisted_18 = {\n key: 0,\n style: {\"font-weight\":\"bold\"}\n}\nconst _hoisted_19 = { key: 1 }\nconst _hoisted_20 = { style: {\"margin-top\":\"10px\"} }\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h3\", { class: \"light-color\" }, \"Repayment\", -1))\nconst _hoisted_22 = {\n key: 0,\n class: \"status-circle green\"\n}\nconst _hoisted_23 = {\n key: 1,\n class: \"status-circle yellow\"\n}\nconst _hoisted_24 = {\n key: 0,\n style: {\"font-weight\":\"bold\"}\n}\nconst _hoisted_25 = { key: 1 }\nconst _hoisted_26 = {\n key: 1,\n style: {\"text-align\":\"center\",\"color\":\"lightgray\"}\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_RightOutlined = _resolveComponent(\"RightOutlined\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_collapse_panel = _resolveComponent(\"a-collapse-panel\")!\n const _component_a_collapse = _resolveComponent(\"a-collapse\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.pageData.length > 0)\n ? (_openBlock(), _createBlock(_component_a_collapse, {\n key: 0,\n activeKey: _ctx.activeKey,\n \"onUpdate:activeKey\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.activeKey) = $event)),\n expandIconPosition: \"right\"\n }, {\n expandIcon: _withCtx(({ isActive }) => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createVNode(_component_RightOutlined, {\n rotate: isActive ? 90 : 0\n }, null, 8, [\"rotate\"])\n ])\n ]),\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pageData, (item, index) => {\n return (_openBlock(), _createBlock(_component_a_collapse_panel, {\n key: index.toString()\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(item.entity), 1),\n _createElementVNode(\"div\", _hoisted_5, [\n (index === 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, _hoisted_10))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"div\", null, _toDisplayString(item[\"totalNormal\"] ? _ctx.toThousandsAndTwoDecimal(item[\"totalNormal\"].payoutAmountWVat) : 0), 1),\n _createElementVNode(\"div\", null, _toDisplayString(item[\"totalNormal\"]? _ctx.toThousandsAndTwoDecimal(item[\"totalNormal\"].payoutAmountWoVat) : 0), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", null, _toDisplayString(item[\"totalRepayment\"] ? _ctx.toThousandsAndTwoDecimal(item[\"totalRepayment\"].payoutAmountWVat) : 0), 1),\n _createElementVNode(\"div\", null, _toDisplayString(item[\"totalRepayment\"] ? _ctx.toThousandsAndTwoDecimal(item[\"totalRepayment\"].payoutAmountWoVat) : 0), 1)\n ])\n ])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _hoisted_15,\n _createVNode(_component_a_table, {\n dataSource: item.normalPayment ? item.normalPayment: [],\n columns: item.columns,\n rowKey: \"id\",\n pagination: false,\n rowClassName: _ctx.getRowClass(item.normalPayment)\n }, {\n status: _withCtx(({record}) => [\n (record.color === 'green')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_16))\n : _createCommentVNode(\"\", true),\n (record.color === 'yellow')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_17))\n : _createCommentVNode(\"\", true)\n ]),\n formatThousand: _withCtx(({text}) => [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(text)), 1)\n ]),\n bold: _withCtx(({text, index}) => [\n (index===item.normalPayment.length-1)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_18, _toDisplayString(text), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_19, _toDisplayString(text), 1))\n ]),\n _: 2\n }, 1032, [\"dataSource\", \"columns\", \"rowClassName\"])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _hoisted_21,\n _createVNode(_component_a_table, {\n dataSource: item.rePayment ? item.rePayment : [],\n columns: item.columns,\n rowKey: \"id\",\n pagination: false,\n rowClassName: _ctx.getRowClass(item.normalPayment)\n }, {\n status: _withCtx(({record}) => [\n (record.color === 'green')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_22))\n : _createCommentVNode(\"\", true),\n (record.color === 'yellow')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_23))\n : _createCommentVNode(\"\", true)\n ]),\n formatThousand: _withCtx(({text}) => [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(text)), 1)\n ]),\n bold: _withCtx(({text, index}) => [\n (index===item.rePayment.length-1)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_24, _toDisplayString(text), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_25, _toDisplayString(text), 1))\n ]),\n _: 2\n }, 1032, [\"dataSource\", \"columns\", \"rowClassName\"])\n ])\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 1\n }, 8, [\"activeKey\"]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_26, \"No Data\"))\n ]))\n}","import { ref } from \"vue\";\nimport { useStore } from \"vuex\";\nimport {\n EntityProps,\n ApprovalProps,\n} from \"@/views/Payment/Mgmt/PendingApproval/PayoutRound/type\";\nimport {\n fetchPaymentAprovalPendingList,\n getDealerPendingList,\n getDealerTrackingList,\n fetchPaymentAprovalTrackingList,\n getDealer2RoundDetailForPeding,\n getDealer2RoundDetailForPayout\n} from \"@/API/payment\";\nimport { getDealer2RoundDetail } from \"@/API/payment\";\nimport axios from \"axios\";\n// axios.defaults.baseURL = \"\";\nconst MOCK: {\n content: any[];\n payoutRound: string;\n vatheader: any[];\n} = {\n content: [\n {\n entity: \"MBCL\",\n normalPayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n rePayment: [\n {\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n totalNormal: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n totalRepayment: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n },\n {\n entity: \"BBAC\",\n normalPayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n rePayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n totalNormal: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n totalRepayment: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n },\n {\n entity: \"FBAC\",\n normalPayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n rePayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n totalNormal: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n totalRepayment: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n },\n {\n entity: \"DENZA\",\n normalPayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n rePayment: [\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"MB\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"AMG\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"EQ\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n {\n \"2018 w/o VAT\": \"12000\",\n \"2019 w/o VAT\": \"12000\",\n \"2020 w/o VAT\": \"12000\",\n businessUnit: \"subtotal\",\n color: \"green\",\n periodwoVat: \"12000\",\n },\n ],\n totalNormal: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n totalRepayment: {\n payoutAmountWVat: \"120000\",\n payoutAmountWoVat: \"12000\",\n },\n },\n ],\n payoutRound: \"2021_Apr_R1\",\n vatheader: [\"2018 w/o VAT\", \"2019 w/o VAT\", \"2020 w/o VAT\"],\n};\nconst originColumns = [\n {\n title: \"\",\n dataIndex: \"color\",\n width: 20,\n align: \"center\",\n slots: { customRender: \"status\" },\n },\n {\n title: \"Business Unit\",\n dataIndex: \"businessUnit\",\n slots: { customRender: \"bold\" },\n width: 150,\n },\n {\n title: \"Period Total w/o VAT\",\n dataIndex: \"periodwoVat\",\n align: \"right\",\n slots: { customRender: \"formatThousand\" },\n },\n];\nfunction unique(arr: string[]) {\n const arr1: string[] = [];\n for (let i = 0; i < arr.length; i++) {\n if (!arr1.includes(arr[i])) {\n // 检索arr1中是否含有arr中的值\n arr1.push(arr[i]);\n }\n }\n return arr1;\n}\nconst useDealerPayout = (payoutRound?: string) => {\n // 折叠面板数据\n const pageData = ref([]);\n const getData = (id: string, type?: string) => {\n if (!id) {\n return false;\n }\n if (type === \"pendingApproval\") {\n getDealer2RoundDetailForPeding(id).then((res: any) => {\n const dynamicColumns = res.vatheader.map((item: string) => {\n return {\n title: item,\n dataIndex: item,\n align: \"right\",\n slots: { customRender: \"formatThousand\" },\n };\n });\n res.content.forEach((entity: EntityProps) => {\n entity.columns = originColumns.concat(dynamicColumns);\n });\n pageData.value = res.content;\n });\n } else {\n getDealer2RoundDetailForPayout(id).then((res: any) => {\n const dynamicColumns = res.vatheader.map((item: string) => {\n return {\n title: item,\n dataIndex: item,\n align: \"right\",\n slots: { customRender: \"formatThousand\" },\n };\n });\n res.content.forEach((entity: EntityProps) => {\n entity.columns = originColumns.concat(dynamicColumns);\n });\n pageData.value = res.content;\n });\n }\n\n // const dynamicColumns = MOCK.vatheader.map((item: string) => {\n // return {\n // title: item,\n // dataIndex: item,\n // align: \"right\",\n // slots: { customRender: \"formatThousand\" },\n // };\n // });\n // MOCK.content.forEach((entity: EntityProps) => {\n // entity.columns = originColumns.concat(dynamicColumns);\n // });\n // pageData.value = MOCK.content;\n };\n // payoutlist 下拉列表\n const store = useStore();\n const userName = store.state.user.fulnm;\n const payoutList = ref([]);\n const tableList = ref([]);\n // 获取pending的下拉列表\n const getPayoutList = () => {\n getDealerPendingList({\n payoutRound,\n pageNumber: 1,\n pageSize: 10000,\n userId: store.state.user.usrid,\n typeList: [],\n }).then((data: any) => {\n payoutList.value = unique(\n data.content.map((item: any) => {\n return item.payoutRound;\n })\n );\n tableList.value = data.content;\n });\n };\n // 获取tracking下拉列表\n const payoutTrackingList = ref([]);\n const getPayoutTrackingList = () => {\n const params = {\n year: \"\",\n month: \"\",\n payoutCode: \"\",\n pageNumber: 1,\n pageSize: 10000,\n userId: store.state.user.usrid,\n payoutRound: \"\",\n typeList: [],\n };\n getDealerTrackingList(params).then((data: any) => {\n payoutTrackingList.value = unique(\n data.content.map((item: any) => {\n return item.payoutRound;\n })\n );\n });\n // fetchPaymentAprovalTrackingList({\n // month: \"\",\n // pageNumber: 1,\n // pageSize: 10000,\n // payoutCode: \"\",\n // userName,\n // status: \"DEALER\",\n // year: \"\",\n // }).then((data) => {\n // payoutTrackingList.value = unique(\n // data.content.map((item: any) => {\n // return item.payoutRound;\n // })\n // );\n // });\n };\n // 斑马纹\n const getRowClass = (record: ApprovalProps, index: number) => {\n if (index % 2 === 1) {\n return \"table-striped\";\n } else {\n return null;\n }\n };\n return {\n getData,\n pageData,\n payoutList,\n payoutTrackingList,\n tableList,\n getPayoutList,\n getPayoutTrackingList,\n getRowClass,\n };\n};\nexport default useDealerPayout;\n","\nimport { defineComponent, watch, ref } from \"vue\";\nimport { RightOutlined } from \"@ant-design/icons-vue\";\n// import { toThousands } from \"@/utils/approve/index\";\nimport { toThousandsAndTwoDecimal } from '@/utils/payment/numberFormat'\nimport useDealerPayout from \"@/hooks/payment/PaymentTracking/useDealerPayout\"\nimport { DataProps } from \"./type\";\nexport default defineComponent({\n name: \"entity\",\n props: {\n payoutRound: {\n type: String,\n required: true,\n },\n },\n setup(props) {\n const { getData, pageData } = useDealerPayout();\n getData(props.payoutRound);\n watch(\n () => props.payoutRound,\n (newValue: string) => {\n getData(newValue);\n }\n );\n const getRowClass = (data: DataProps[]) => {\n if (!data) {\n data = []\n }\n return (record: DataProps, index: number) => {\n if (index + 1 === data.length) {\n return \"table-total\";\n } else {\n if (index % 2 === 1) {\n return \"table-striped\";\n } else {\n return null;\n }\n }\n };\n };\n const activeKey = ref([\"0\"]);\n return {\n pageData,\n getRowClass,\n activeKey,\n toThousandsAndTwoDecimal\n };\n },\n components: {\n RightOutlined,\n },\n});\n","import { render } from \"./entity.vue?vue&type=template&id=623ed308&scoped=true&ts=true\"\nimport script from \"./entity.vue?vue&type=script&lang=ts\"\nexport * from \"./entity.vue?vue&type=script&lang=ts\"\n\nimport \"./entity.vue?vue&type=style&index=0&id=623ed308&scoped=true&lang=scss\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-623ed308\"]])\n\nexport default __exports__","\nimport { defineComponent, ref, computed } from \"vue\";\nimport EntityWrapper from \"./entityWrapper.vue\";\nimport Entity from \"./entity.vue\";\nimport { getRoundListByDate } from \"@/API/payment\";\nexport default defineComponent({\n name: \"DealerSetting\",\n props: {},\n setup() {\n const payoutRound = ref();\n const roundListRes = ref();\n const roundList = computed(() => {\n return roundListRes.value;\n });\n getRoundListByDate({\n params: {\n month: '0',\n year: '0',\n type: \"DEALER\",\n },\n }).then((res) => {\n roundListRes.value = res;\n payoutRound.value = roundListRes.value[0]\n });\n return {\n payoutRound,\n roundList\n };\n },\n components: {\n EntityWrapper,\n Entity,\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=122e4e14&scoped=true&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=122e4e14&lang=scss&scoped=true\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-122e4e14\"]])\n\nexport default __exports__","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./entity.vue?vue&type=style&index=0&id=623ed308&scoped=true&lang=scss\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./entityWrapper.vue?vue&type=style&index=0&id=a58853b2&lang=scss&scoped=true\"","/*\n * @Author: hanxi\n * @Date: 2021-06-08 15:27:45\n * @Description: 千分位符处理,处理后的数字保留两位小数\n */\nexport const toThousandsAndTwoDecimal = (count: number | string): string => {\n if (count === undefined || count === null) {\n return \"\";\n }\n if (typeof count === \"string\") {\n if (count.indexOf(\",\") !== -1) {\n if (count.indexOf(\".\") !== -1) {\n return count;\n } else {\n return count + \".00\";\n }\n }\n count = Number(count);\n }\n count = count.toFixed(2);\n return count\n .toString()\n .replace(/(\\d)(?=(\\d{3})+\\.)/g, function($0, $1) {\n return $1 + \",\";\n })\n .replace(/\\.$/, \"\");\n};\n\nexport const toThousands = (count: number | string): string => {\n if (count === undefined) {\n return \"\";\n }\n if (typeof count === \"string\") {\n if (count.indexOf(\",\") !== -1) {\n if (count.indexOf(\".\") !== -1) {\n return count.substring(0, count.indexOf(\".\") + 1)\n } else {\n return count;\n }\n }\n count = Number(count);\n }\n count = Math.round(count)\n return count\n .toString()\n .replace(/(\\d)(?=(?:\\d{3})+$)/g,'$1,')\n};"],"sourceRoot":""}