{"version":3,"sources":["webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/viewModal.vue?6463","webpack:///./src/assets/images/rv/rect.png","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/viewModal.vue?ea4a","webpack:///./src/views/Payment/components/commentModal.vue?2f3b","webpack:///./src/views/Payment/components/commentModal.vue","webpack:///./src/views/Payment/components/commentModal.vue?f3bd","webpack:///./src/components/TableWrapper.vue?0107","webpack:///./src/assets/images/copy-icon.svg","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/index.vue?79a2","webpack:///./src/hooks/useModel.ts","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/index.vue?607d","webpack:///./src/hooks/payment/EntitySiPayout/useDealerBreakdownReport.ts","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/viewModal.vue?aea8","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/viewModal.vue","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/viewModal.vue?aeea","webpack:///./node_modules/@ant-design/icons-svg/es/asn/FileExcelOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/FileExcelOutlined.js","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/index.vue","webpack:///./src/views/Payment/EntitySiPayout/DealerBreakdownReport/index.vue?b2b9","webpack:///./src/utils/rv/cleanEmptyElement.ts","webpack:///./src/components/TableWrapper.vue?0edf","webpack:///./src/components/TableWrapper.vue","webpack:///./src/components/TableWrapper.vue?c8bb","webpack:///./src/utils/payment/numberFormat.ts","webpack:///./src/utils/payment/useThousandsAndTwoDecimal.ts"],"names":["module","exports","_hoisted_1","_hoisted_2","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_table","_component_a_button","_component_a_modal","visible","_visible","$event","onCancel","handleCancel","width","title","footer","type","onClick","default","_","columns","commentColumns","pagination","dataSource","commentData","rowKey","bordered","name","props","Boolean","required","Array","setup","context","useModel","dataIndex","value","__exports__","emit","get","set","val","_withScopeId","n","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","style","_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","_hoisted_27","src","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_input","_component_FileExcelOutlined","_component_a_tooltip","_component_TableWrapper","_component_a_pagination","_component_exclamation_circle_outlined","_component_a_date_picker","_component_view_modal","_component_comment_modal","_component_main_wrapper","className","header","$t","state","payoutRound","placeholder","disabled","payoutRoundList","item","key","entity","dealerCode","batchQueryEvent","args","swtCode","dealerName","status","allowClear","statusList","code","submissionDeadline","mode","onFocus","handleDropdownVisibleChange","submissionList","submission","doReset","doSearch","exportExcel","route","query","releaseClick","downloadClick","withdrawClick","placement","viewBatchDownload","rowSelection","height","tableHeight","overflow","columnsData","scroll","x","tableWidth","y","tableData","rowClassName","record","index","action","attachment","fileId","openView","comment","commentList","length","openComment","total","onChange","handlePageChange","onShowSizeChange","handleSizeChange","pageSize","current","pageNumber","pageSizeOptions","buildOptionText","modalVisible","modalClose","centered","modalTitle","size","confirmClick","loading","btnName","fileRowSelection","fileColumns","fileList","releaseConfirmModalVisible","closable","handleCloseReleaseConfirmModal","handleRelease","format","valueFormat","disabledSubmissionDeadline","viewVisible","dealerDetailApproveId","onOnApprove","getTableData","onOnReject","commentVisible","batchVinModalVisible","clearBatchQuery","textNoArray","ref","textContentNo","textChangEvent","batchPlaceholder","useDealerBreakdownReport","store","undefined","dealerCodes","region","searchParams","entityList","regionList","customRender","useThousandsAndTwoDecimal","align","slots","selectedRowKeys","selectedRows","selectedRowData","columnWidth","params","dealerNameCn","dealerNameEn","then","data","content","totalElements","getInitSelect","payment","breakdownParams","Object","assign","pageChange","page","sizeChange","getFileList","downloadFunc","fileCode","dealerCodeList","forEach","push","url","method","downloadFile","catch","msg","message","warning","dealerCodeParam","withdrawFunc","confirm","icon","ExclamationCircleOutlined","okText","okType","cancelText","onOk","ids","res","success","date","isBefore","fileIdList","id","attachmentsDownloadReqVOS","i","isDoubleCheck","codeHandler","apiParams","_component_a_image","_component_a_spin","_component_a_textarea","_component_a_radio_button","_component_a_radio_group","approveClick","openReject","spinning","previewType","pdfSrc","frameborder","imageSrc","rejectVisible","rejectCancel","rejectClick","showCount","maxlength","blobToURL","blob","Promise","resolve","reject","fileReader","FileReader","onload","e","dataURL","target","result","BASE64_MARKER","base64DataIndex","indexOf","atob","substring","buffer","ArrayBuffer","u8a","Uint8Array","charCodeAt","Blob","URL","createObjectURL","readAsDataURL","onerror","Error","String","wait","useWait","error","preview","decodeURIComponent","matches","match","toRun","labelCol","span","wrapperCol","_objectSpread","arguments","source","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","_defineProperty","obj","defineProperty","configurable","writable","p","attrs","AntdIcon","displayName","inheritAttrs","window","innerWidth","innerHeight","components","TableWrapper","ViewModal","CommentModal","FileExcelOutlined","setBatchPlaceholder","input","replace","split","dom","document","getElementsByClassName","console","log","scrollTo","scrollHeight","focus","setBatchQueryTextNoArray","arg","array","tempArray","$slots","toThousandsAndTwoDecimal","count","Number","toFixed","toString","$0","$1","toThousands","Math","round","text"],"mappings":"kKAAA,W,qBCAAA,EAAOC,QAAU,sT,kCCAjB,W,oDCEMC,EAA0B,6BAAiB,aAC3CC,EAA0B,6BAAiB,WAE1C,SAASC,EAAOC,EAAUC,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Q,GACfF,EACJG,WACAnB,QAAQ,uBAAuB,SAASoB,EAAIC,GAC3C,OAAOA,EAAK,OAEbrB,QAAQ,MAAO,KAGPsB,EAAc,SAACN,GAC1B,QAAcvK,IAAVuK,EACF,MAAO,GAET,GAAqB,kBAAVA,EAAoB,CAC7B,IAA4B,IAAxBA,EAAMzE,QAAQ,KAChB,OAA4B,IAAxByE,EAAMzE,QAAQ,KACTyE,EAAMvE,UAAU,EAAGuE,EAAMzE,QAAQ,KAAO,GAExCyE,EAGXA,EAAQC,OAAOD,GAGjB,OADAA,EAAQO,KAAKC,MAAMR,GACZA,EACJG,WACAnB,QAAQ,uBAAuB,S,kCC7CpC,4BAEMhJ,EAA4B,WAC9B,OAAO,SAAC,G,IAACyK,EAAI,OAGT,OAAO,eAAE,OAAQ,eAAyBA,MAGjC","file":"js/chunk-10c2ee22.986f7082.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!./viewModal.vue?vue&type=style&index=0&id=09e78016&lang=scss&scoped=true\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAQCAYAAADTasWKAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAA6ADAAQAAAABAAAAEAAAAABTVpExAAAARklEQVQIHWNgWPf+GcO6Dx0MV/+zsTD8Z5BkYPhfznDzIwMTAxz8j0NwgCoQHKAK+nMYGZ4jWcq4iIUBKMLAwLiIQZ2/DgAi2RE9IOkxIAAAAABJRU5ErkJggg==\"","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!./viewModal.vue?vue&type=style&index=1&id=09e78016&lang=scss\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createTextVNode(\" Comment \")\nconst _hoisted_2 = /*#__PURE__*/_createTextVNode(\" Close \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n\n return (_openBlock(), _createBlock(_component_a_modal, {\n visible: _ctx._visible,\n \"onUpdate:visible\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx._visible) = $event)),\n onCancel: _ctx.handleCancel,\n width: \"50%\"\n }, {\n title: _withCtx(() => [\n _hoisted_1\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.handleCancel\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_a_table, {\n columns: _ctx.commentColumns,\n pagination: false,\n dataSource: _ctx.commentData,\n rowKey: \"id\",\n bordered: \"\"\n }, null, 8, [\"columns\", \"dataSource\"])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"]))\n}","\nimport { defineComponent, reactive, ref, watch, computed } from \"vue\";\nimport useModel from \"@/hooks/useModel\";\nexport default defineComponent({\n name: \"App\",\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n commentData: {\n required: true,\n type: Array,\n default: () => []\n }\n },\n setup(props, context) {\n const _visible = useModel(props, \"visible\");\n const commentColumns = computed(() => {\n return [\n { title: \"Comment\", dataIndex: \"comment\" },\n { title: \"Date\", dataIndex: \"date\" }\n ]\n })\n // type TableData = {\n // comment: string;\n // date: string;\n // }\n // const commentData = ref()\n const handleCancel = () => {\n _visible.value = false;\n }\n return {\n _visible,\n handleCancel,\n commentColumns\n };\n },\n});\n","import { render } from \"./commentModal.vue?vue&type=template&id=6deda7be&ts=true\"\nimport script from \"./commentModal.vue?vue&type=script&lang=ts\"\nexport * from \"./commentModal.vue?vue&type=script&lang=ts\"\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]])\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!./TableWrapper.vue?vue&type=style&index=0&id=037b2547&scoped=true&lang=scss\"","module.exports = __webpack_public_path__ + \"img/copy-icon.b11fe629.svg\";","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=bcc1a704&scoped=true&lang=scss\"","import { computed, getCurrentInstance } from \"vue\";\n\nconst useModel = (props: any, name: string) => {\n const emit = getCurrentInstance()?.emit;\n return computed({\n get() {\n return props[name]\n },\n set(val) {\n if (emit) {\n emit(`update:${name}`, val)\n }\n },\n });\n};\nexport default useModel;\n","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, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, vShow as _vShow, withDirectives as _withDirectives, withModifiers as _withModifiers, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/copy-icon.svg'\nimport _imports_1 from '@/assets/images/rv/rect.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-bcc1a704\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = { class: \"searchMain bg-fff m-t-8\" }\nconst _hoisted_3 = { class: \"search-wrap\" }\nconst _hoisted_4 = { class: \"d-f flex-d-c search-item m-t-16 m-l-16\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Payout Round\", -1))\nconst _hoisted_6 = { class: \"d-f flex-d-c search-item m-t-16 m-l-16\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Entity\", -1))\nconst _hoisted_8 = { class: \"d-f flex-d-c search-item m-t-16 m-l-16\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Dealer Code\", -1))\nconst _hoisted_10 = { style: {\"display\":\"flex\",\"align-items\":\"center\"} }\nconst _hoisted_11 = { class: \"d-f flex-d-c search-item m-t-16 m-l-16\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"SWT Code\", -1))\nconst _hoisted_13 = { class: \"d-f flex-d-c search-item m-t-16 m-l-16\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Dealer Name(ZH)\", -1))\nconst _hoisted_15 = { class: \"d-f search-item m-t-16 flex-d-c m-l-16\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Status\", -1))\nconst _hoisted_17 = { class: \"d-f search-item m-t-16 flex-d-c m-l-16\" }\nconst _hoisted_18 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Submission Deadline\", -1))\nconst _hoisted_19 = { class: \"d-f search-item m-t-16 flex-d-c m-l-16\" }\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-f search-item m-t-16 flex-d-c m-l-16\" }, null, -1))\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-f search-item m-t-16 flex-d-c m-l-16\" }, null, -1))\nconst _hoisted_22 = { class: \"d-f m-t-16 search-btns\" }\nconst _hoisted_23 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_24 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_25 = { class: \"main bg-fff m-t-8 flex-w-auto d-f flex-d-c\" }\nconst _hoisted_26 = { class: \"condition\" }\nconst _hoisted_27 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_1,\n class: \"rect\"\n}, null, -1))\nconst _hoisted_28 = { class: \"wrap-title\" }\nconst _hoisted_29 = { class: \"d-f justify-e btn-part\" }\nconst _hoisted_30 = {\n class: \"d-f\",\n style: {\"margin-right\":\"-8px\"}\n}\nconst _hoisted_31 = /*#__PURE__*/_createTextVNode(\"Export Detail\")\nconst _hoisted_32 = /*#__PURE__*/_createTextVNode(\"Release\")\nconst _hoisted_33 = /*#__PURE__*/_createTextVNode(\"Download\")\nconst _hoisted_34 = /*#__PURE__*/_createTextVNode(\"Withdraw\")\nconst _hoisted_35 = /*#__PURE__*/_createTextVNode(\"Download Attachment\")\nconst _hoisted_36 = { class: \"table-wrapper flex-w-auto m-t-16\" }\nconst _hoisted_37 = [\"onClick\"]\nconst _hoisted_38 = [\"onClick\"]\nconst _hoisted_39 = [\"onClick\"]\nconst _hoisted_40 = { class: \"pagination-container d-f justify-e\" }\nconst _hoisted_41 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_42 = { class: \"release-confirm-modal-content\" }\nconst _hoisted_43 = /*#__PURE__*/_createTextVNode(\"Are you sure release?\")\nconst _hoisted_44 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", null, \"Please set dealer breakdown file submission deadline:\", -1))\nconst _hoisted_45 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_46 = /*#__PURE__*/_createTextVNode(\"Release\")\nconst _hoisted_47 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Dealer Code List Search\", -1))\nconst _hoisted_48 = { style: {\"padding\":\"0 8px\"} }\nconst _hoisted_49 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"section\", { class: \"list-title\" }, \"Dealer Code List\", -1))\nconst _hoisted_50 = { class: \"list-content\" }\nconst _hoisted_51 = /*#__PURE__*/_createTextVNode(\"Clear\")\nconst _hoisted_52 = /*#__PURE__*/_createTextVNode(\"Confirm\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Breadcrumb = _resolveComponent(\"Breadcrumb\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_FileExcelOutlined = _resolveComponent(\"FileExcelOutlined\")!\n const _component_a_tooltip = _resolveComponent(\"a-tooltip\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_TableWrapper = _resolveComponent(\"TableWrapper\")!\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n const _component_exclamation_circle_outlined = _resolveComponent(\"exclamation-circle-outlined\")!\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n const _component_view_modal = _resolveComponent(\"view-modal\")!\n const _component_comment_modal = _resolveComponent(\"comment-modal\")!\n const _component_main_wrapper = _resolveComponent(\"main-wrapper\")!\n\n return (_openBlock(), _createBlock(_component_main_wrapper, { className: \"p-l-r-10\" }, {\n header: _withCtx(() => [\n _createVNode(_component_Breadcrumb, {\n dataSource: [{name: _ctx.$t('payment.dealerBreakdownReport')}]\n }, null, 8, [\"dataSource\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createVNode(_component_a_select, {\n value: _ctx.state.payoutRound,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.state.payoutRound) = $event)),\n placeholder: \"Please select\",\n disabled: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.payoutRoundList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item,\n key: item,\n title: item\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"title\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_a_input, {\n value: _ctx.state.entity,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.state.entity) = $event)),\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_a_input, {\n value: _ctx.state.dealerCode,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.state.dealerCode) = $event))\n }, null, 8, [\"value\"]),\n _createElementVNode(\"img\", {\n src: _imports_0,\n style: {\"width\":\"30px\",\"height\":\"30px\",\"display\":\"inline-block\",\"margin-left\":\"50x\",\"cursor\":\"pointer\"},\n onClick: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.batchQueryEvent && _ctx.batchQueryEvent(...args)))\n })\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createVNode(_component_a_input, {\n value: _ctx.state.swtCode,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.state.swtCode) = $event))\n }, null, 8, [\"value\"])\n ], 512), [\n [_vShow, _ctx.state.entity === 'FBAC']\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createVNode(_component_a_input, {\n value: _ctx.state.dealerName,\n \"onUpdate:value\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.state.dealerName) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createVNode(_component_a_select, {\n value: _ctx.state.status,\n \"onUpdate:value\": _cache[6] || (_cache[6] = ($event: any) => ((_ctx.state.status) = $event)),\n placeholder: \"Please select\",\n allowClear: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.statusList, ({ code, value }) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: code,\n key: code,\n title: value\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(value), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"title\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createVNode(_component_a_select, {\n value: _ctx.state.submissionDeadline,\n \"onUpdate:value\": _cache[7] || (_cache[7] = ($event: any) => ((_ctx.state.submissionDeadline) = $event)),\n placeholder: \"Please select\",\n mode: \"multiple\",\n allowClear: \"\",\n onFocus: _ctx.handleDropdownVisibleChange\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.submissionList, (submission) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: submission,\n key: submission\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(submission), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\", \"onFocus\"])\n ], 512), [\n [_vShow, _ctx.state.entity === 'MBCL']\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_19, null, 512), [\n [_vShow, _ctx.state.entity !== 'FBAC']\n ]),\n _hoisted_20,\n _hoisted_21\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_22, [\n _createVNode(_component_a_button, {\n class: \"m-l-16\",\n onClick: _withModifiers(_ctx.doReset, [\"stop\"])\n }, {\n default: _withCtx(() => [\n _hoisted_23\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n class: \"m-l-16\",\n type: \"primary\",\n onClick: _withModifiers(_ctx.doSearch, [\"stop\"])\n }, {\n default: _withCtx(() => [\n _hoisted_24\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"section\", null, [\n _hoisted_27,\n _createElementVNode(\"strong\", _hoisted_28, _toDisplayString(_ctx.$t('payment.dealerBreakdownReport')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_29, [\n _createElementVNode(\"div\", _hoisted_30, [\n _withDirectives(_createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_31\n ]),\n default: _withCtx(() => [\n _createVNode(_component_FileExcelOutlined, {\n style: {\"font-size\":\"17px\",\"margin-top\":\"10px\"},\n onClick: _ctx.exportExcel\n }, null, 8, [\"onClick\"])\n ]),\n _: 1\n }, 512), [\n [_vShow, _ctx.state.entity==='BBAC']\n ]),\n _createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_32\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: _normalizeClass([_ctx.route.query.type === 'view' ? 'color-g' :'cursor-p' ,'font_family icon-fabu m-l-12']),\n style: {\"font-size\":\"20px\",\"line-height\":\"37px\"},\n onClick: _cache[8] || (_cache[8] = \n//@ts-ignore\n(...args) => (_ctx.releaseClick && _ctx.releaseClick(...args)))\n }, null, 2)\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_33\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: \"font_family icon-xiazai m-l-12\",\n style: {\"font-size\":\"20px\",\"line-height\":\"37px\"},\n onClick: _cache[9] || (_cache[9] = ($event: any) => (_ctx.downloadClick('')))\n })\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_34\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: _normalizeClass([_ctx.route.query.type === 'view' ? 'color-g' :'cursor-p' ,'font_family icon-fanhui m-l-12']),\n style: {\"font-size\":\"20px\",\"line-height\":\"37px\"},\n onClick: _cache[10] || (_cache[10] = \n//@ts-ignore\n(...args) => (_ctx.withdrawClick && _ctx.withdrawClick(...args)))\n }, null, 2)\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, { placement: \"topRight\" }, {\n title: _withCtx(() => [\n _hoisted_35\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: \"font_family icon-Attachment m-l-12\",\n style: {\"font-size\":\"20px\",\"line-height\":\"37px\",\"padding-right\":\"8px\"},\n onClick: _cache[11] || (_cache[11] = \n//@ts-ignore\n(...args) => (_ctx.viewBatchDownload && _ctx.viewBatchDownload(...args)))\n })\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_36, [\n _createVNode(_component_TableWrapper, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_table, {\n class: \"tab-container default-self-table-text\",\n \"row-selection\": _ctx.rowSelection,\n style: _normalizeStyle({ height: _ctx.tableHeight + 38 + 'px', overflow: 'hidden' }),\n columns: _ctx.columnsData,\n scroll: { x: _ctx.tableWidth, y: _ctx.tableHeight},\n pagination: false,\n dataSource: _ctx.tableData,\n rowKey: \"id\",\n rowClassName: (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n }, {\n action: _withCtx(({ record }) => [\n _createElementVNode(\"a\", null, [\n _createElementVNode(\"span\", {\n class: \"font_family\",\n style: {\"font-size\":\"14px\"},\n onClick: ($event: any) => (_ctx.downloadClick(record.dealerCode))\n }, \"Download\", 8, _hoisted_37)\n ])\n ]),\n attachment: _withCtx(({ record }) => [\n _createElementVNode(\"span\", {\n class: _normalizeClass(['font_family', record.fileId ? 'link cursor-p' : 'color-g']),\n style: {\"font-size\":\"14px\"},\n onClick: ($event: any) => (_ctx.openView(record))\n }, \"View\", 10, _hoisted_38)\n ]),\n comment: _withCtx(({ record }) => [\n _createElementVNode(\"span\", {\n class: _normalizeClass(['font_family icon-Comment', record.commentList.length > 0 ? 'link cursor-p' : 'color-g']),\n style: {\"font-size\":\"16px\"},\n onClick: ($event: any) => (_ctx.openComment(record))\n }, null, 10, _hoisted_39)\n ]),\n _: 1\n }, 8, [\"row-selection\", \"style\", \"columns\", \"scroll\", \"dataSource\", \"rowClassName\"])\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_40, [\n _createVNode(_component_a_pagination, {\n total: _ctx.total,\n \"show-size-changer\": \"\",\n \"show-total\": (total) => `共 ${total} 条`,\n onChange: _ctx.handlePageChange,\n onShowSizeChange: _ctx.handleSizeChange,\n pageSize: _ctx.pageSize,\n \"onUpdate:pageSize\": _cache[12] || (_cache[12] = ($event: any) => ((_ctx.pageSize) = $event)),\n current: _ctx.pageNumber,\n \"onUpdate:current\": _cache[13] || (_cache[13] = ($event: any) => ((_ctx.pageNumber) = $event)),\n pageSizeOptions: ['10', '20', '30', '40', '50', '1000']\n }, {\n buildOptionText: _withCtx((props) => [\n _createElementVNode(\"span\", null, _toDisplayString(props.value) + \"条/页\", 1)\n ]),\n _: 1\n }, 8, [\"total\", \"show-total\", \"onChange\", \"onShowSizeChange\", \"pageSize\", \"current\"])\n ]),\n _createVNode(_component_a_modal, {\n visible: _ctx.modalVisible,\n \"onUpdate:visible\": _cache[14] || (_cache[14] = ($event: any) => ((_ctx.modalVisible) = $event)),\n onCancel: _ctx.modalClose,\n width: 400,\n class: \"batch-query-modal\",\n centered: \"\"\n }, {\n title: _withCtx(() => [\n _createElementVNode(\"strong\", null, _toDisplayString(_ctx.modalTitle), 1)\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n size: \"small\",\n onClick: _ctx.modalClose\n }, {\n default: _withCtx(() => [\n _hoisted_41\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n size: \"small\",\n onClick: _ctx.confirmClick,\n loading: _ctx.loading,\n type: \"primary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.btnName), 1)\n ]),\n _: 1\n }, 8, [\"onClick\", \"loading\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_a_table, {\n \"row-selection\": _ctx.fileRowSelection,\n columns: _ctx.fileColumns,\n pagination: false,\n dataSource: _ctx.fileList,\n rowKey: \"code\",\n bordered: \"\"\n }, null, 8, [\"row-selection\", \"columns\", \"dataSource\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.releaseConfirmModalVisible,\n \"onUpdate:visible\": _cache[16] || (_cache[16] = ($event: any) => ((_ctx.releaseConfirmModalVisible) = $event)),\n width: 350,\n closable: false\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.handleCloseReleaseConfirmModal }, {\n default: _withCtx(() => [\n _hoisted_45\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n onClick: _ctx.handleRelease,\n loading: _ctx.loading,\n disabled: !_ctx.submissionDeadline,\n type: \"primary\"\n }, {\n default: _withCtx(() => [\n _hoisted_46\n ]),\n _: 1\n }, 8, [\"onClick\", \"loading\", \"disabled\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_42, [\n _createElementVNode(\"h1\", null, [\n _createVNode(_component_exclamation_circle_outlined, { class: \"icon\" }),\n _hoisted_43\n ]),\n _hoisted_44,\n _createVNode(_component_a_date_picker, {\n value: _ctx.submissionDeadline,\n \"onUpdate:value\": _cache[15] || (_cache[15] = ($event: any) => ((_ctx.submissionDeadline) = $event)),\n format: \"YYYY-MM-DD\",\n valueFormat: \"YYYY-MM-DD\",\n \"disabled-date\": _ctx.disabledSubmissionDeadline\n }, null, 8, [\"value\", \"disabled-date\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_view_modal, {\n visible: _ctx.viewVisible,\n \"onUpdate:visible\": _cache[17] || (_cache[17] = ($event: any) => ((_ctx.viewVisible) = $event)),\n fileId: _ctx.fileId,\n dealerDetailApproveId: _ctx.dealerDetailApproveId,\n onOnApprove: _ctx.getTableData,\n onOnReject: _ctx.getTableData\n }, null, 8, [\"visible\", \"fileId\", \"dealerDetailApproveId\", \"onOnApprove\", \"onOnReject\"]),\n _createVNode(_component_comment_modal, {\n visible: _ctx.commentVisible,\n \"onUpdate:visible\": _cache[18] || (_cache[18] = ($event: any) => ((_ctx.commentVisible) = $event)),\n commentData: _ctx.commentData\n }, null, 8, [\"visible\", \"commentData\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.batchVinModalVisible,\n \"onUpdate:visible\": _cache[21] || (_cache[21] = ($event: any) => ((_ctx.batchVinModalVisible) = $event)),\n class: \"batch-query-modal\",\n width: 420,\n centered: \"\"\n }, {\n title: _withCtx(() => [\n _hoisted_47\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n size: \"small\",\n onClick: _ctx.clearBatchQuery\n }, {\n default: _withCtx(() => [\n _hoisted_51\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n size: \"small\",\n type: \"primary\",\n onClick: _cache[20] || (_cache[20] = ($event: any) => {\n _ctx.batchVinModalVisible = false;\n })\n }, {\n default: _withCtx(() => [\n _hoisted_52\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_48, [\n _createElementVNode(\"article\", null, [\n _hoisted_49,\n _createElementVNode(\"section\", _hoisted_50, [\n (_ctx.textNoArray.length > 0)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_ctx.textNoArray, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"list-item\",\n key: index\n }, _toDisplayString(item), 1))\n }), 128))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_a_input, {\n ref: \"input\",\n value: _ctx.textContentNo,\n \"onUpdate:value\": _cache[19] || (_cache[19] = ($event: any) => ((_ctx.textContentNo) = $event)),\n onChange: _ctx.textChangEvent,\n style: {\"height\":\"24px\"}\n }, null, 8, [\"value\", \"onChange\"]),\n (_ctx.batchPlaceholder.length > 0)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 1 }, _renderList(_ctx.batchPlaceholder, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n class: \"list-item\",\n style: {\"height\":\"24px\",\"margin-top\":\"8px\"}\n }))\n }), 128))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]),\n _: 1\n }))\n}","import { ref, reactive } from 'vue';\nimport * as API from '@/API/payment';\nimport useThousandsAndTwoDecimal from '@/utils/payment/useThousandsAndTwoDecimal';\nimport { ColumnProps } from 'ant-design-vue/es/table/interface';\nimport { message } from 'ant-design-vue';\nimport downloadFile from '@/utils/payment/downloadFile';\nimport { ExclamationCircleOutlined } from '@ant-design/icons-vue';\nimport { createVNode } from 'vue';\nimport { Modal } from 'ant-design-vue';\nimport { useStore } from 'vuex';\nimport { useRoute } from 'vue-router';\nimport moment from 'moment';\nimport type { Moment } from 'moment';\n\ntype Key = ColumnProps['key'];\n\ntype SearchParams = {\n payoutRound?: string;\n entity: string;\n dealerCode: string;\n dealerCodes: string[];\n swtCode: string;\n dealerName: string;\n region?: string;\n status?: string;\n submissionDeadline?: string[];\n};\n\ntype CommentData = {\n comment: string;\n date: string;\n};\n\nexport interface SalesBreakdownData {\n payoutRound: string;\n region: string;\n dealerCode: string;\n dealerNameEn: string;\n dealerNameCn: string;\n amountWVat: string;\n amountWOVat: string;\n status: string;\n fileId?: string;\n id: string;\n commentList: CommentData[];\n}\n\ntype fileData = {\n code: string;\n value: string;\n};\n\nconst useDealerBreakdownReport = () => {\n const store = useStore();\n const route = useRoute();\n const state = reactive({\n payoutRound: undefined,\n entity: '',\n dealerCode: '',\n dealerCodes: [],\n swtCode: '',\n dealerName: '',\n region: undefined,\n status: undefined,\n submissionDeadline: []\n });\n const searchParams: SearchParams = {\n payoutRound: undefined,\n entity: '',\n dealerCode: '',\n dealerCodes: [],\n swtCode: '',\n dealerName: '',\n region: undefined,\n status: undefined,\n submissionDeadline: []\n };\n const total = ref(0);\n const pageNumber = ref(0);\n const pageSize = ref(10);\n const entityList = ref([]);\n const payoutRoundList = ref([]);\n const regionList = ref([]);\n const statusList = ref<{ code: string; value: string }[]>([]);\n const submissionList = ref([]);\n const submissionDeadline = ref('')\n const releaseConfirmModalVisible = ref(false)\n const columnsData = ref([\n { title: 'Payout Round', dataIndex: 'payoutRound', width: 180 },\n // { title: \"Region\", dataIndex: \"region\", width: 180},\n { title: 'Dealer Code', dataIndex: 'dealerCode', width: 180 },\n { title: 'Dealer Name (EN)', dataIndex: 'dealerNameEn', width: 180 },\n { title: 'Dealer Name (ZH)', dataIndex: 'dealerNameCn', width: 180 },\n {\n title: 'Payout Amount w/o VAT',\n dataIndex: 'amountWOVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n {\n title: 'Payout Amount w VAT',\n dataIndex: 'amountWVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n { title: 'Status', dataIndex: 'status', width: 180, align: 'center' },\n { title: 'Operation', dataIndex: 'action', slots: { customRender: 'action' }, key: 'action', width: 100 },\n {\n title: 'Attachment',\n dataIndex: 'attachment',\n slots: { customRender: 'attachment' },\n key: 'attachment',\n width: 100\n },\n {\n title: 'Comment',\n dataIndex: 'comment',\n slots: { customRender: 'comment' },\n key: 'comment',\n width: 100,\n align: 'center'\n }\n ]);\n const tableData = ref();\n const rowSelection = reactive<{\n selectedRowKeys: Key[];\n selectedRowData: SalesBreakdownData[];\n onChange: Function;\n columnWidth: string;\n }>({\n onChange: (selectedRowKeys: Key[], selectedRows: SalesBreakdownData[]) => {\n rowSelection.selectedRowKeys = selectedRowKeys;\n rowSelection.selectedRowData = selectedRows;\n },\n selectedRowKeys: [],\n selectedRowData: [],\n columnWidth: '30px'\n });\n const getTableData = () => {\n rowSelection.selectedRowKeys = [];\n rowSelection.selectedRowData = [];\n const params = {\n payoutRound: searchParams.payoutRound,\n entity: searchParams.entity,\n dealerCode: searchParams.dealerCode,\n dealerCodes: searchParams.dealerCodes,\n swtCode: searchParams.swtCode,\n dealerNameCn: searchParams.dealerName,\n dealerNameEn: '',\n region: searchParams.region,\n status: searchParams.status,\n pageNumber: pageNumber.value,\n pageSize: pageSize.value,\n submissionDeadline: state.submissionDeadline\n };\n API.salesBreakDownList(params).then((data) => {\n tableData.value = data.content;\n total.value = data.totalElements;\n });\n };\n const doSearch = () => {\n searchParams.payoutRound = state.payoutRound ? state.payoutRound : '';\n searchParams.entity = state.entity ? state.entity : '';\n searchParams.dealerCode = state.dealerCode ? state.dealerCode : '';\n searchParams.dealerCodes = state.dealerCodes.length > 0 ? state.dealerCodes : [];\n searchParams.swtCode = state.swtCode ? state.swtCode : '';\n searchParams.dealerName = state.dealerName ? state.dealerName : '';\n searchParams.region = state.region ? state.region : '';\n searchParams.status = state.status ? state.status : '';\n pageNumber.value = 1;\n if (searchParams.entity === 'FBAC') {\n columnsData.value = [\n { title: 'Payout Round', dataIndex: 'payoutRound', width: 180 },\n // { title: \"Region\", dataIndex: \"region\", width: 180},\n { title: 'Dealer Code', dataIndex: 'dealerCode', width: 180 },\n { title: 'SWT Code', dataIndex: 'swtCode', width: 180 },\n { title: 'Dealer Name (EN)', dataIndex: 'dealerNameEn', width: 180 },\n { title: 'Dealer Name (ZH)', dataIndex: 'dealerNameCn', width: 180 },\n {\n title: 'Payout Amount w/o VAT',\n dataIndex: 'amountWOVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n {\n title: 'Payout Amount w VAT',\n dataIndex: 'amountWVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n { title: 'Status', dataIndex: 'status', width: 180, align: 'center' },\n { title: 'Opration', dataIndex: 'action', slots: { customRender: 'action' }, key: 'action', width: 100 },\n {\n title: 'Attachment',\n dataIndex: 'attachment',\n slots: { customRender: 'attachment' },\n key: 'attachment',\n width: 100\n },\n // { title: 'Submission Deadline', dataIndex: 'submissionDeadline', width: 200 },\n { title: 'Comment', dataIndex: 'comment', slots: { customRender: 'comment' }, key: 'comment', width: 100 }\n ];\n } else if (searchParams.entity === 'MBCL') {\n columnsData.value = [\n { title: 'Payout Round', dataIndex: 'payoutRound', width: 180 },\n // { title: \"Region\", dataIndex: \"region\", width: 180},\n { title: 'Dealer Code', dataIndex: 'dealerCode', width: 180 },\n { title: 'Dealer Name (EN)', dataIndex: 'dealerNameEn', width: 180 },\n { title: 'Dealer Name (ZH)', dataIndex: 'dealerNameCn', width: 180 },\n {\n title: 'Payout Amount w/o VAT',\n dataIndex: 'amountWOVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n {\n title: 'Payout Amount w VAT',\n dataIndex: 'amountWVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n { title: 'Status', dataIndex: 'status', width: 180, align: 'center' },\n { title: 'Operation', dataIndex: 'action', slots: { customRender: 'action' }, key: 'action', width: 100 },\n {\n title: 'Attachment',\n dataIndex: 'attachment',\n slots: { customRender: 'attachment' },\n key: 'attachment',\n width: 100\n },\n {\n title: 'Submission Deadline',\n dataIndex: 'submissionDeadline',\n width: 100\n },\n { title: 'Comment', dataIndex: 'comment', slots: { customRender: 'comment' }, key: 'comment', width: 100 }\n ]\n } else {\n columnsData.value = [\n { title: 'Payout Round', dataIndex: 'payoutRound', width: 180 },\n // { title: \"Region\", dataIndex: \"region\", width: 180},\n { title: 'Dealer Code', dataIndex: 'dealerCode', width: 180 },\n { title: 'Dealer Name (EN)', dataIndex: 'dealerNameEn', width: 180 },\n { title: 'Dealer Name (ZH)', dataIndex: 'dealerNameCn', width: 180 },\n {\n title: 'Payout Amount w/o VAT',\n dataIndex: 'amountWOVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n {\n title: 'Payout Amount w VAT',\n dataIndex: 'amountWVat',\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: 'right'\n },\n { title: 'Status', dataIndex: 'status', width: 180, align: 'center' },\n { title: 'Operation', dataIndex: 'action', slots: { customRender: 'action' }, key: 'action', width: 100 },\n {\n title: 'Attachment',\n dataIndex: 'attachment',\n slots: { customRender: 'attachment' },\n key: 'attachment',\n width: 100\n },\n // { title: 'Submission Deadline', dataIndex: 'submissionDeadline', width: 200 },\n { title: 'Comment', dataIndex: 'comment', slots: { customRender: 'comment' }, key: 'comment', width: 100 }\n ];\n }\n getTableData();\n };\n const getInitSelect = () => {\n // entityList.value = ['BBAC', 'FBAC', 'MBCL', 'DENZA']\n // if(entityList.value.length > 0) {\n // state.entity = entityList.value[0]\n // }\n state.payoutRound = store.state.payment.breakdownParams.payoutRound;\n state.entity = store.state.payment.breakdownParams.entity;\n API.salesBreakDownInitSelect(state.entity).then((data) => {\n // payoutRoundList.value = data.payoutRound\n // regionList.value = data.region\n statusList.value = data.status;\n // if (payoutRoundList.value.length > 0) {\n // state.payoutRound = payoutRoundList.value[0]\n // doSearch()\n // }\n });\n API.getSubmissionByRound(state.payoutRound!).then(data => {\n submissionList.value = data\n });\n doSearch();\n };\n const doReset = () => {\n Object.assign(state, {\n payoutRound: undefined,\n entity: '',\n dealerCode: '',\n dealerName: '',\n region: undefined,\n status: undefined\n });\n entityList.value = [];\n tableData.value = [];\n getInitSelect();\n };\n const pageChange = (page: number, size: number) => {\n pageNumber.value = page > 0 ? page : 1;\n pageSize.value = size;\n getTableData();\n };\n const sizeChange = (page: number, size: number) => {\n pageNumber.value = page > 0 ? page : 1;\n pageSize.value = size;\n getTableData();\n };\n const modalVisible = ref(false);\n const modalTitle = ref('');\n const fileList = ref([]);\n const fileColumns = [{ title: 'File Name', dataIndex: 'value' }];\n const fileRowSelection = reactive<{\n selectedRowKeys: Key[];\n selectedRowData: fileData[];\n onChange: Function;\n columnWidth: string;\n }>({\n onChange: (selectedRowKeys: Key[], selectedRows: fileData[]) => {\n fileRowSelection.selectedRowKeys = selectedRowKeys;\n fileRowSelection.selectedRowData = selectedRows;\n },\n selectedRowKeys: [],\n selectedRowData: [],\n columnWidth: '20px'\n });\n const btnName = ref('');\n const loading = ref(false);\n const dealerCode = ref('');\n const modalClose = () => {\n modalVisible.value = false;\n modalTitle.value = '';\n fileList.value = [];\n fileRowSelection.selectedRowKeys = [];\n fileRowSelection.selectedRowData = [];\n btnName.value = '';\n };\n const getFileList = async () => {\n const params = {\n entity: searchParams.entity\n };\n fileList.value = await API.salesBreakDownFileList(params);\n };\n const downloadFunc = (fileCode = '') => {\n const dealerCodeList: string[] = [];\n rowSelection.selectedRowData.forEach((item: SalesBreakdownData) => {\n dealerCodeList.push(item.dealerCode);\n });\n const params = {\n url: '/ptapi/export/dealer/breakdown/downloadFile/sales',\n method: 'post',\n params: {\n dealerCode: '',\n dealerCodeList: dealerCode.value ? [dealerCode.value] : dealerCodeList,\n entity: searchParams.entity,\n entityList: [],\n fileList: fileCode ? [fileCode] : fileRowSelection.selectedRowKeys,\n payoutRound: searchParams.payoutRound\n }\n };\n downloadFile(params)\n .then(() => {\n loading.value = false;\n })\n .catch((msg) => {\n loading.value = false;\n message.warning(msg);\n });\n };\n const downloadClick = async (dealerCodeParam: string) => {\n if (!dealerCodeParam && rowSelection.selectedRowKeys.length === 0) {\n message.warning('Please select the data first');\n return;\n }\n dealerCode.value = dealerCodeParam;\n modalTitle.value = 'Download Files';\n btnName.value = 'Download';\n await getFileList();\n if (fileList.value.length > 1) {\n modalVisible.value = true;\n } else {\n downloadFunc(fileList.value[0].code);\n }\n };\n const withdrawFunc = (fileCode = '') => {\n Modal.confirm({\n title: 'Are you sure withdraw?',\n icon: createVNode(ExclamationCircleOutlined),\n okText: 'Withdraw',\n okType: 'primary',\n cancelText: 'Cancle',\n onOk() {\n const params = {\n fileList: fileCode ? [fileCode] : fileRowSelection.selectedRowKeys,\n ids: rowSelection.selectedRowKeys\n };\n API.salesBreakDownBatchWithdraw(params)\n .then((res) => {\n loading.value = false;\n if (res.code === '0') {\n message.success('Sucessfully Withdraw!');\n modalClose();\n getTableData();\n } else {\n message.warning(res.message);\n }\n })\n .catch(() => {\n loading.value = false;\n });\n },\n onCancel() {\n loading.value = false;\n }\n });\n };\n const disabledSubmissionDeadline = (date: Moment) => {\n return date.isBefore(moment(), 'day')\n }\n const releaseClick = async () => {\n if (route.query.type === 'view') return;\n if (rowSelection.selectedRowKeys.length === 0) {\n message.warning('Please select the data first');\n return;\n }\n\n if (searchParams.entity === 'MBCL') {\n const date = await API.getLastSubmissionDeadline(state.payoutRound!);\n submissionDeadline.value = date && moment(date).isBefore(moment(), 'day') ? '' : date;\n releaseConfirmModalVisible.value = true;\n return\n }\n\n await getFileList();\n const fileIdList: string[] = [];\n fileList.value.forEach((item: fileData) => {\n fileIdList.push(item.code);\n });\n Modal.confirm({\n title: 'Are you sure release?',\n icon: createVNode(ExclamationCircleOutlined),\n okText: 'Release',\n okType: 'primary',\n cancelText: 'Cancle',\n onOk() {\n const params = {\n fileList: fileIdList,\n ids: rowSelection.selectedRowKeys\n };\n API.salesBreakDownBatchRelease(params).then((res) => {\n if (res.code === '0') {\n message.success('Sucessfully Release!');\n getTableData();\n } else {\n message.warning(res.message);\n }\n });\n }\n });\n };\n const withdrawClick = async () => {\n if (route.query.type === 'view') return;\n if (rowSelection.selectedRowKeys.length === 0) {\n message.warning('Please select the data first');\n return;\n }\n modalTitle.value = 'Withdraw Files';\n btnName.value = 'Withdraw';\n await getFileList();\n if (fileList.value.length > 1) {\n modalVisible.value = true;\n } else {\n withdrawFunc(fileList.value[0].code);\n }\n };\n const confirmClick = () => {\n if (fileRowSelection.selectedRowKeys.length === 0) {\n message.warning('Please select the data first');\n return;\n }\n loading.value = true;\n if (btnName.value === 'Download') {\n downloadFunc();\n } else if (btnName.value === 'Withdraw') {\n withdrawFunc();\n }\n };\n\n // view弹出框\n const viewVisible = ref(false);\n const fileId = ref('');\n const dealerDetailApproveId = ref('');\n const openView = (record: SalesBreakdownData) => {\n if (!record.fileId) return;\n fileId.value = record.fileId;\n dealerDetailApproveId.value = record.id;\n viewVisible.value = true;\n };\n\n const commentVisible = ref(false);\n const commentData = ref();\n const openComment = (record: SalesBreakdownData) => {\n if (record.commentList.length === 0) return;\n commentData.value = record.commentList;\n commentVisible.value = true;\n };\n\n const viewBatchDownload = () => {\n if (rowSelection.selectedRowKeys.length === 0) {\n message.warning('Please select the data first');\n return;\n }\n const attachmentsDownloadReqVOS = [];\n for (let i = 0; i < rowSelection.selectedRowData.length; i++) {\n if (rowSelection.selectedRowData[i].fileId && rowSelection.selectedRowData[i].dealerCode) {\n attachmentsDownloadReqVOS.push({\n dealerCode: rowSelection.selectedRowData[i].dealerCode,\n fileId: rowSelection.selectedRowData[i].fileId\n });\n }\n }\n const params = {\n url: '/ptapi/downloadFiles',\n method: 'post',\n params: {\n attachmentsDownloadReqVOS,\n entity: searchParams.entity,\n payoutRound: searchParams.payoutRound\n }\n };\n downloadFile(params);\n };\n const handleCloseReleaseConfirmModal = () => {\n releaseConfirmModalVisible.value = false;\n };\n const handleRelease = async (isDoubleCheck = true) => {\n await getFileList();\n const fileIdList: string[] = [];\n fileList.value.forEach((item: fileData) => {\n fileIdList.push(item.code);\n });\n \n const params = {\n fileList: fileIdList,\n ids: rowSelection.selectedRowKeys,\n submissionDeadline: submissionDeadline.value,\n isDoubleCheck: isDoubleCheck ? 0 : undefined\n };\n \n API.salesBreakDownBatchRelease(params, {\n codeHandler: 'ignore'\n }).then((res) => {\n if (res.code === '0') {\n message.success('Sucessfully Release!');\n getTableData();\n handleCloseReleaseConfirmModal();\n } else if (isDoubleCheck && res.code === '50098') {\n Modal.confirm({\n title: 'Notice: Are you sure to set different submission deadline for current round?',\n icon: createVNode(ExclamationCircleOutlined),\n okText: 'Confirm To Release',\n okType: 'primary',\n cancelText: 'Cancel',\n onOk() {\n handleRelease(false)\n }\n });\n //handleCloseReleaseConfirmModal();\n } else {\n message.warning(res.message);\n handleCloseReleaseConfirmModal();\n }\n });\n };\n \n\n const exportExcel = () => {\n const apiParams = {\n payoutRound: searchParams.payoutRound,\n entity: searchParams.entity,\n dealerCode: searchParams.dealerCode,\n dealerCodes: searchParams.dealerCodes,\n swtCode: searchParams.swtCode,\n dealerNameCn: searchParams.dealerName,\n dealerNameEn: '',\n region: searchParams.region,\n status: searchParams.status,\n pageNumber: pageNumber.value,\n pageSize: pageSize.value,\n submissionDeadline: state.submissionDeadline\n };\n if (rowSelection.selectedRowKeys.length === 0) {\n const params = {\n url: `/ptapi/dealer/approve/exportPayRoundByEntity`,\n method: 'post',\n params: apiParams \n };\n downloadFile(params);\n\n }else{\n const params = {\n url: `/ptapi/dealer/approve/exportPayRoundByEntity`,\n method: 'post',\n params: apiParams\n };\n downloadFile(params); \n }\n\n \n }\n \n const cleanEmptyEleArray = (array: any[]) => {\n\n if (array.length === 1) {\n if (array[0] === '') {\n return []\n } else {\n return array\n }\n } else {\n return array\n }\n }\n return {\n state,\n entityList,\n payoutRoundList,\n regionList,\n statusList,\n getInitSelect,\n columnsData,\n tableData,\n rowSelection,\n doSearch,\n doReset,\n pageChange,\n sizeChange,\n pageSize,\n pageNumber,\n total,\n downloadClick,\n releaseClick,\n withdrawClick,\n viewBatchDownload,\n modalVisible,\n modalClose,\n modalTitle,\n fileColumns,\n fileList,\n fileRowSelection,\n confirmClick,\n btnName,\n loading,\n viewVisible,\n openView,\n fileId,\n dealerDetailApproveId,\n getTableData,\n commentVisible,\n commentData,\n openComment,\n releaseConfirmModalVisible,\n handleCloseReleaseConfirmModal,\n handleRelease,\n submissionList,\n submissionDeadline,\n disabledSubmissionDeadline,\n exportExcel\n };\n};\nexport default useDealerBreakdownReport;\n","import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-09e78016\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n class: \"form-wrapper\",\n style: {\"height\":\"100%\"}\n}\nconst _hoisted_2 = [\"src\"]\nconst _hoisted_3 = {\n key: 1,\n class: \"img-viewer-container\"\n}\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\" Payment Statement Return \")\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\" Approve \")\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\" Reject \")\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\" Download \")\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Quick Enter\", -1))\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\" Reject Comments \")\nconst _hoisted_10 = /*#__PURE__*/_createTextVNode(\" Confirm \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_image = _resolveComponent(\"a-image\")!\n const _component_a_spin = _resolveComponent(\"a-spin\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n const _component_a_textarea = _resolveComponent(\"a-textarea\")!\n const _component_a_radio_button = _resolveComponent(\"a-radio-button\")!\n const _component_a_radio_group = _resolveComponent(\"a-radio-group\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_a_modal, {\n class: \"payment-statement-return-preview\",\n visible: _ctx._visible,\n \"onUpdate:visible\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx._visible) = $event)),\n onCancel: _ctx.handleCancel,\n width: \"80%\",\n height: \"80%\"\n }, {\n title: _withCtx(() => [\n _hoisted_4\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.approveClick\n }, {\n default: _withCtx(() => [\n _hoisted_5\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.openReject\n }, {\n default: _withCtx(() => [\n _hoisted_6\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.downloadClick\n }, {\n default: _withCtx(() => [\n _hoisted_7\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_a_spin, { spinning: _ctx.spinning }, {\n default: _withCtx(() => [\n (_ctx.previewType === 'pdf')\n ? (_openBlock(), _createElementBlock(\"iframe\", {\n key: 0,\n id: \"iframe\",\n src: _ctx.pdfSrc,\n frameborder: \"0\",\n style: {\"width\":\"100%\",\"height\":\"100%\"}\n }, null, 8, _hoisted_2))\n : _createCommentVNode(\"\", true),\n (_ctx.previewType === 'image')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(_component_a_image, { src: _ctx.imageSrc }, null, 8, [\"src\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"spinning\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.rejectVisible,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.rejectVisible) = $event)),\n onCancel: _ctx.rejectCancel\n }, {\n title: _withCtx(() => [\n _hoisted_9\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.rejectClick\n }, {\n default: _withCtx(() => [\n _hoisted_10\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_a_textarea, {\n value: _ctx.comment,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.comment) = $event)),\n showCount: \"\",\n maxlength: 50,\n placeholder: \"Comments......\"\n }, null, 8, [\"value\"]),\n _hoisted_8,\n _createElementVNode(\"div\", null, [\n _createVNode(_component_a_radio_group, {\n value: _ctx.comment,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.comment) = $event))\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.commentList, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"m-t-10\",\n key: index\n }, [\n _createVNode(_component_a_radio_button, { value: item }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1032, [\"value\"])\n ]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"])\n ], 64))\n}","\nimport { defineComponent, ref, watch, onMounted, nextTick } from \"vue\";\nimport { message } from \"ant-design-vue\";\nimport useModel from \"@/hooks/useModel\";\nimport * as API from \"@/API/payment\";\nimport { downloadFromStream } from '@/utils/payment/downloadFile';\n\n// import { GlobalWorkerOptions, getDocument, PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist'\n// import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry'\nimport useWait from \"@/utils/payment/useWait\";\n\nfunction blobToRaw(blob: Blob) {\n return new Promise((resolve, reject) => {\n const fileReader = new FileReader()\n fileReader.onload = (e) => {\n const dataURL = e.target?.result as string\n if (dataURL) {\n const BASE64_MARKER = ';base64,'\n const base64DataIndex = dataURL.indexOf(BASE64_MARKER) + BASE64_MARKER.length\n const base64Data = dataURL.substring(base64DataIndex)\n\n const raw = atob(base64Data)\n resolve(raw)\n }\n }\n fileReader.readAsDataURL(blob)\n fileReader.onerror = () => {\n reject(new Error('blobToBase64 error'))\n }\n })\n}\n\nfunction blobToURL(blob: Blob, type = 'application/pdf') {\n return new Promise((resolve, reject) => {\n const fileReader = new FileReader()\n fileReader.onload = (e) => {\n const dataURL = e.target?.result as string\n if (dataURL) {\n const BASE64_MARKER = ';base64,'\n const base64DataIndex = dataURL.indexOf(BASE64_MARKER) + BASE64_MARKER.length\n const data = atob(dataURL.substring(base64DataIndex))\n\n const buffer = new ArrayBuffer(data.length);\n const u8a = new Uint8Array(buffer);\n for (let i = 0; i < data.length; i++) {\n u8a[i] = data.charCodeAt(i);\n }\n const blob = new Blob([buffer], {type});\n resolve(URL.createObjectURL(blob))\n }\n }\n fileReader.readAsDataURL(blob)\n fileReader.onerror = () => {\n reject(new Error('blobToBase64 error'))\n }\n })\n}\n\nexport default defineComponent({\n name: \"App\",\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n fileId: {\n required: true,\n type: String,\n default: ''\n },\n dealerDetailApproveId: {\n required: true,\n type: String,\n default: ''\n }\n },\n setup(props, context) {\n const wait = useWait()\n const _visible = useModel(props, \"visible\");\n const handleCancel = () => {\n _visible.value = false;\n };\n const approveClick = () => {\n const params = {\n dealerDetailApproveId: props.dealerDetailApproveId\n }\n API.salesBreakDownApprove(params).then((res: any) => {\n if (res.code === '0') {\n context.emit('on-approve')\n message.success('Sucessfully Approve!')\n _visible.value = false;\n } else {\n message.error(res.message)\n }\n });\n };\n const rejectVisible = ref(false)\n const comment = ref('')\n const commentList = ref()\n API.salesBreakDownCommentList().then((data: any) => {\n commentList.value = data\n })\n const openReject = () => {\n rejectVisible.value = true\n }\n const rejectCancel = () => {\n comment.value = ''\n rejectVisible.value = false\n }\n const rejectClick = () => {\n const params = {\n dealerDetailApproveId: props.dealerDetailApproveId,\n comment: comment.value\n }\n API.salesBreakDownReject(params).then((res: any) => {\n if (res.code === '0') {\n context.emit('on-reject')\n message.success('Sucessfully Reject!')\n rejectVisible.value = false\n _visible.value = false\n comment.value = ''\n } else {\n message.error(res.message)\n }\n });\n };\n const downloadClick = async () => {\n const res = await API.downloadAttachmentWatermark(props.fileId)\n downloadFromStream(res)\n }\n const spinning = ref(true)\n const previewType = ref('')\n const imageSrc = ref('')\n const pdfSrc = ref('')\n\n const preview = () => {\n API.getDealerBreakdownAttachmentFile(props.fileId).then(data => {\n const url = decodeURIComponent(data as unknown as string)\n const matches = url.match(/response-content-type=([^&]*)/)\n if (matches && matches.length === 2) {\n if (matches[1] === 'application/pdf') {\n previewType.value = 'pdf'\n\n API.downloadAttachment(props.fileId).then(res => {\n return blobToURL(res.data)\n }).then(data => {\n pdfSrc.value = data\n spinning.value = false\n })\n } else {\n previewType.value = 'image'\n imageSrc.value = data\n spinning.value = false\n }\n }\n })\n }\n\n // 关闭弹窗\n watch(_visible, (val) => {\n spinning.value = true\n previewType.value = ''\n imageSrc.value = ''\n if (val) {\n wait.then(() => {\n preview()\n })\n }\n })\n\n onMounted(() => {\n wait.toRun && wait.toRun()\n })\n\n return {\n spinning,\n previewType,\n pdfSrc,\n imageSrc,\n labelCol: { span: 6 },\n wrapperCol: { span: 14 },\n _visible,\n handleCancel,\n approveClick,\n rejectClick,\n downloadClick,\n rejectVisible,\n openReject,\n rejectCancel,\n comment,\n commentList\n };\n },\n});\n","import { render } from \"./viewModal.vue?vue&type=template&id=09e78016&scoped=true&ts=true\"\nimport script from \"./viewModal.vue?vue&type=script&lang=ts\"\nexport * from \"./viewModal.vue?vue&type=script&lang=ts\"\n\nimport \"./viewModal.vue?vue&type=style&index=0&id=09e78016&lang=scss&scoped=true\"\nimport \"./viewModal.vue?vue&type=style&index=1&id=09e78016&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-09e78016\"]])\n\nexport default __exports__","// This icon file is generated automatically.\nvar FileExcelOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z\" } }] }, \"name\": \"file-excel\", \"theme\": \"outlined\" };\nexport default FileExcelOutlined;\n","import * as _vue from \"vue\";\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport FileExcelOutlinedSvg from \"@ant-design/icons-svg/es/asn/FileExcelOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar FileExcelOutlined = function FileExcelOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": FileExcelOutlinedSvg\n }), null);\n};\n\nFileExcelOutlined.displayName = 'FileExcelOutlined';\nFileExcelOutlined.inheritAttrs = false;\nexport default FileExcelOutlined;","\n import { defineComponent,computed } from 'vue'\n import useDealerBreakdownReport from \"@/hooks/payment/EntitySiPayout/useDealerBreakdownReport\";\n import { ColumnProps } from 'ant-design-vue/es/table/interface';\n import TableWrapper from \"@/components/TableWrapper.vue\";\n import ViewModal from \"@/views/Payment/EntitySiPayout/DealerBreakdownReport/viewModal.vue\";\n import CommentModal from '@/views/Payment/components/commentModal.vue'\n import { useRoute } from \"vue-router\";\n import { ExclamationCircleOutlined } from '@ant-design/icons-vue'\n import {\n FileExcelOutlined} from '@ant-design/icons-vue';\n import * as API from '@/API/payment';\n import {ref, nextTick} from 'vue'\n import { message, Modal } from 'ant-design-vue';\n import cleanEmptyEleArray from '@/utils/rv/cleanEmptyElement';\n\n\n\n type Key = ColumnProps['key'];\n const tableWidth = window.innerWidth\n const tableHeight = window.innerHeight-482\n\n\n\n \n export default defineComponent({\n name: 'VehicleNameSet',\n components: {\n TableWrapper,\n ViewModal,\n CommentModal,\n ExclamationCircleOutlined,\n FileExcelOutlined\n },\n props: {},\n setup() {\n const {\n state, payoutRoundList, regionList, statusList, getInitSelect,\n columnsData, tableData, rowSelection, doSearch, doReset, pageChange, sizeChange, pageSize, pageNumber, total,\n downloadClick, releaseClick, withdrawClick, viewBatchDownload,\n modalVisible, modalClose, modalTitle, fileColumns, fileList, fileRowSelection, confirmClick, btnName, loading,\n viewVisible, openView, fileId, dealerDetailApproveId, getTableData,\n commentVisible, commentData, openComment, submissionList, submissionDeadline, disabledSubmissionDeadline,\n releaseConfirmModalVisible, handleCloseReleaseConfirmModal, handleRelease, exportExcel\n } = useDealerBreakdownReport()\n const route = useRoute()\n // 获取Entity下拉列表\n getInitSelect();\n const handlePageChange = (page: number,pageSize: number) =>{\n pageChange(page, pageSize)\n }\n const handleSizeChange = (page: number,pageSize: number) =>{\n sizeChange(page, pageSize)\n }\n const handleDropdownVisibleChange = () => {\n API.getSubmissionByRound(state.payoutRound!).then(data => {\n submissionList.value = data\n });\n }\n\n const setBatchPlaceholder = () => {\n if (textNoArray.value.length) {\n batchPlaceholder.value = [];\n } else {\n batchPlaceholder.value = ['', '', '', '', '', ''];\n }\n };\n const batchVinModalVisible = ref(false);\n const textNoArray = ref([]);\n const textContentNo = ref('');\n const input = ref();\n const batchPlaceholder = ref(['', '', '', '', '', '']);\n const textChangEvent = () => {\n if (textContentNo.value.length < 5) {\n message.error('请从Excel中粘贴到文本框');\n textContentNo.value = '';\n return;\n }\n textNoArray.value = textNoArray.value.concat(\n textContentNo.value\n .replace(/\\r|\\n|\\s/g, ',')\n .split(',')\n .filter((item) => item)\n );\n const dom = document.getElementsByClassName('list-content')[0];\n textContentNo.value = '';\n state.dealerCodes = [];\n console.log('textNoArray.value'+textNoArray.value);\n state.dealerCodes = state.dealerCodes.concat(textNoArray.value);\n console.log('state.dealerCode'+state.dealerCode);\n setBatchPlaceholder();\n nextTick(() => {\n dom.scrollTo(0, dom.scrollHeight + 40);\n input.value.focus();\n });\n };\n\n const setBatchQueryTextNoArray = () => {\n textNoArray.value =\n cleanEmptyEleArray(state.dealerCodes).length === 0 ? [] : cleanEmptyEleArray(state.dealerCodes);\n };\n\n const clearBatchQuery = () => {\n state.dealerCodes = [];\n setBatchQueryTextNoArray();\n setBatchPlaceholder();\n input.value.focus();\n };\n\n // 批量查询按钮事件\n const batchQueryEvent = (arg: string) => {\n batchVinModalVisible.value = true;\n setBatchQueryTextNoArray();\n setBatchPlaceholder();\n const dom = document.getElementsByClassName('list-content')[0];\n nextTick(() => {\n dom && dom.scrollTo(0, textNoArray.value.length * 36);\n input.value.focus();\n });\n };\n\n return {\n route,\n state,\n payoutRoundList,\n regionList,\n statusList,\n doSearch,\n doReset,\n tableWidth,\n tableHeight,\n columnsData,\n tableData,\n rowSelection,\n pageSize,\n pageNumber,\n total,\n handlePageChange,\n handleSizeChange,\n downloadClick,\n releaseClick,\n withdrawClick,\n viewBatchDownload,\n modalVisible,\n modalClose,\n modalTitle,\n fileColumns,\n fileList,\n fileRowSelection,\n confirmClick,\n btnName,\n loading,\n viewVisible,\n openView,\n fileId,\n dealerDetailApproveId,\n getTableData,\n commentVisible,\n commentData,\n openComment,\n submissionList,\n submissionDeadline,\n disabledSubmissionDeadline,\n releaseConfirmModalVisible,\n handleCloseReleaseConfirmModal,\n handleRelease,\n FileExcelOutlined,\n exportExcel,\n handleDropdownVisibleChange,\n batchVinModalVisible,\n textNoArray,\n textContentNo,\n input,\n batchPlaceholder,\n textChangEvent,\n clearBatchQuery,\n batchQueryEvent,\n setBatchQueryTextNoArray\n }\n }\n })\n ","import { render } from \"./index.vue?vue&type=template&id=bcc1a704&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=bcc1a704&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-bcc1a704\"]])\n\nexport default __exports__","export default (array: Array) => {\n if (array.length > 1) {\n const tempArray = array.filter(item => item !== '')\n tempArray.length || tempArray.push('')\n return tempArray\n } else {\n return array\n }\n}\n","import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"table\",\n style: _normalizeStyle({width: _ctx.visible ? '50%' : '100%'})\n }, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ], 4))\n}","\n import { defineComponent } from 'vue';\n export default defineComponent({\n name: \"TableWrapper\",\n props: {\n visible: {\n type: Boolean,\n default: false\n }\n }\n })\n","import { render } from \"./TableWrapper.vue?vue&type=template&id=037b2547&scoped=true&ts=true\"\nimport script from \"./TableWrapper.vue?vue&type=script&lang=ts\"\nexport * from \"./TableWrapper.vue?vue&type=script&lang=ts\"\n\nimport \"./TableWrapper.vue?vue&type=style&index=0&id=037b2547&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-037b2547\"]])\n\nexport default __exports__","/*\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};","import { h } from 'vue'\nimport { toThousandsAndTwoDecimal } from './numberFormat'\nconst useThousandsAndTwoDecimal = () => {\n return ({text}: {\n text: number | string;\n }) => {\n return h('span', toThousandsAndTwoDecimal(text));\n };\n };\n export default useThousandsAndTwoDecimal;\n "],"sourceRoot":""}