{"version":3,"sources":["webpack:///./src/views/Payment/Mgmt/components/entityWrapper.vue?7b86","webpack:///./src/views/Payment/Mgmt/components/entityWrapper.vue","webpack:///./src/views/Payment/Mgmt/components/entityWrapper.vue?5f49","webpack:///./src/hooks/payment/Mgmt/PendingApproval/PayoutRound/useDealerPayout.ts","webpack:///./src/assets/images/claim/rect.png","webpack:///./src/views/Payment/Mgmt/components/entity.vue?d92a","webpack:///./src/views/Payment/Mgmt/components/entity.vue","webpack:///./src/views/Payment/Mgmt/components/entity.vue?f7be","webpack:///./src/views/Payment/Mgmt/components/entityWrapper.vue?fb2e","webpack:///./src/views/Payment/Mgmt/components/entity.vue?146d","webpack:///./src/utils/payment/numberFormat.ts"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","render","_ctx","_cache","$props","$setup","$data","$options","style","heightStyle","$slots","undefined","name","props","setup","__exports__","originColumns","title","dataIndex","width","align","slots","customRender","unique","arr","arr1","i","length","includes","push","useDealerPayout","payoutRound","pageData","payoutCodes","getData","id","type","then","res","dynamicColumns","vatheader","map","item","content","forEach","entity","columns","concat","value","payoutCode","console","log","store","payoutList","state","user","fulnm","tableList","getPayoutList","pageNumber","pageSize","userId","usrid","typeList","data","payoutTrackingList","getPayoutTrackingList","params","year","month","getRowClass","record","index","module","exports","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_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","activeKey","$event","expandIconPosition","expandIcon","isActive","rotate","default","toString","header","toThousandsAndTwoDecimal","payoutAmountWVat","payoutAmountWoVat","dataSource","normalPayment","rowKey","pagination","rowClassName","status","color","formatThousand","text","bold","_","rePayment","String","required","fetchData","refreshData","newValue","components","RightOutlined","count","indexOf","Number","toFixed","replace","$0","$1","toThousands","substring","Math","round"],"mappings":"2JAEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,WACtBC,EAA2BJ,GAAa,WAAmB,uCAAoB,MAAO,CAAEG,MAAO,kBAAoB,CAC1G,gCAAoB,MAAO,CAAEA,MAAO,gBAAkB,UACtD,gCAAoB,MAAO,CAAEA,MAAO,uBAAyB,CAC3D,gCAAoB,WAEjC,MAEG,SAASE,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQ,yBAAc,gCAAoB,MAAOT,EAAY,CAC3DE,EACA,gCAAoB,MAAO,CACzBD,MAAO,kBACPS,MAAO,4BAAgBN,EAAKO,cAC3B,CACD,wBAAYP,EAAKQ,OAAQ,UAAW,QAAIC,GAAW,IAClD,KCjBQ,mCAAgB,CAC7BC,KAAM,gBACNC,MAAO,GACPC,MAAK,WACH,IAAML,EAAc,sBAAS,IAG7B,MAAO,CACLA,YAAW,M,iCCHjB,MAAMM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASd,GAAQ,CAAC,YAAY,qBAE1E,U,yDCTf,wCAsVMe,EAAgB,CACpB,CACEC,MAAO,GACPC,UAAW,QACXC,MAAO,GACPC,MAAO,SACPC,MAAO,CAAEC,aAAc,WAEzB,CACEL,MAAO,gBACPC,UAAW,eACXG,MAAO,CAAEC,aAAc,QACvBH,MAAO,KAET,CACEF,MAAO,uBACPC,UAAW,cACXE,MAAO,QACPC,MAAO,CAAEC,aAAc,oBAG3B,SAASC,EAAOC,GAEd,IADA,IAAMC,EAAiB,GACdC,EAAI,EAAGA,EAAIF,EAAIG,OAAQD,IACzBD,EAAKG,SAASJ,EAAIE,KAErBD,EAAKI,KAAKL,EAAIE,IAGlB,OAAOD,EAET,IAAMK,EAAkB,SAACC,GAEvB,IAAMC,EAAW,iBAAmB,I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bF,QAAQ,MAAO,KAGPG,EAAc,SAACP,GAC1B,QAAc5H,IAAV4H,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,EACJxB,WACA4B,QAAQ,uBAAuB","file":"js/chunk-075d9caf.6fc1624d.js","sourcesContent":["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-b30ed742\"),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 /*#__PURE__*/_createElementVNode(\"div\")\n ])\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=b30ed742&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=b30ed742&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-b30ed742\"]])\n\nexport default __exports__","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} 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 payoutCodes = 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 payoutCodes.value = res.payoutCode;\n });\n } else {\n getDealer2RoundDetail(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 console.log(\"pageData\", pageData.value);\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 payoutCodes,\n getPayoutList,\n getPayoutTrackingList,\n getRowClass,\n };\n};\nexport default useDealerPayout;\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAQCAYAAADTasWKAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAA6ADAAQAAAABAAAAEAAAAABTVpExAAAARklEQVQIHWNgWPf+GcO6Dx0MV/+zsTD8Z5BkYPhfznDzIwMTAxz8j0NwgCoQHKAK+nMYGZ4jWcq4iIUBKMLAwLiIQZ2/DgAi2RE9IOkxIAAAAABJRU5ErkJggg==\"","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-10b7a8c4\"),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, [\n (item['totalNormal'])\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(\n item[\"totalNormal\"].payoutAmountWVat\n )), 1)\n ], 64))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", null, [\n (item['totalNormal'])\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(\n item[\"totalNormal\"].payoutAmountWoVat\n )), 1)\n ], 64))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", null, [\n (item['totalRepayment'])\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(\n item[\"totalRepayment\"].payoutAmountWVat\n )), 1)\n ], 64))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", null, [\n (item['totalRepayment'])\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(\n item[\"totalRepayment\"].payoutAmountWoVat\n )), 1)\n ], 64))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _hoisted_15,\n _createVNode(_component_a_table, {\n dataSource: 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,\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}","\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/Mgmt/PendingApproval/PayoutRound/useDealerPayout\";\nimport { DataProps } from \"@/views/Payment/Mgmt/PendingApproval/PayoutRound/type\";\nexport default defineComponent({\n name: \"entity\",\n props: {\n payoutRound: {\n type: String,\n required: true,\n },\n type: {\n type: String,\n default: \"pendingApproval\",\n },\n },\n setup(props) {\n const { getData, pageData } = useDealerPayout();\n getData(props.payoutRound, props.type);\n const fetchData = () => {\n getData(props.payoutRound, props.type);\n };\n const refreshData = () => {\n getData(props.payoutRound, props.type);\n };\n watch(\n () => props.payoutRound,\n (newValue: string) => {\n getData(newValue, props.type);\n }\n );\n const getRowClass = (data: DataProps[]) => {\n return (record: DataProps, index: number) => {\n if (data && 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 fetchData,\n refreshData,\n };\n },\n components: {\n RightOutlined,\n },\n});\n","import { render } from \"./entity.vue?vue&type=template&id=10b7a8c4&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=10b7a8c4&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-10b7a8c4\"]])\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!./entityWrapper.vue?vue&type=style&index=0&id=b30ed742&lang=scss&scoped=true\"","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=10b7a8c4&scoped=true&lang=scss\"","/*\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":""}