{"version":3,"sources":["webpack:///./src/assets/images/rv/rect.png","webpack:///./src/components/TableWrapper.vue?0107","webpack:///./src/views/Payment/EntitySiPayout/Demo/demoCDView.vue?0196","webpack:///./src/components/TableWrapper.vue?0edf","webpack:///./src/components/TableWrapper.vue","webpack:///./src/components/TableWrapper.vue?c8bb","webpack:///./src/views/Payment/EntitySiPayout/Demo/demoCDView.vue","webpack:///./src/views/Payment/EntitySiPayout/Demo/demoCDView.vue?308f","webpack:///./src/utils/payment/numberFormat.ts","webpack:///./src/utils/payment/useThousandsAndTwoDecimal.ts"],"names":["module","exports","render","_ctx","_cache","$props","$setup","$data","$options","class","style","width","visible","$slots","undefined","name","props","type","Boolean","default","__exports__","_withScopeId","n","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_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","src","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","key","_hoisted_29","_hoisted_30","setup","__props","tableWidth","window","innerWidth","tableHeight","innerHeight","rowSelection","onChange","selectedRowKeys","selectedRows","selectedRowData","columnWidth","columnsData","title","dataIndex","customRender","useThousandsAndTwoDecimal","align","fileNamesColumns","modalRowSelection","state","releaseRound","entity","dealerCode","swtCode","dealerName","region","status","total","pageSize","pageIndex","tableData","releaseRoundList","fileNames","withdrawedDealer","route","value","query","statusList","code","doReset","handleSearch","tableAction","action","length","confirm","okText","okType","cancelText","onOk","message","warning","releaseAction","loadTableData","error","withdrawAction","downloadClick","getDownloadFilesInfo","hideModal","handleOk","res","content","totalElements","data","withdrawnDealers","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_input","_component_a_button","_component_a_tooltip","_component_a_table","_component_a_pagination","_component_a_modal","_component_main_wrapper","className","header","dataSource","$t","$event","placeholder","disabled","item","_","allowClear","onClick","TableWrapper","height","overflow","columns","scroll","x","y","pagination","rowKey","rowClassName","record","index","onShowSizeChange","current","pageSizeOptions","buildOptionText","onCancel","okButtonProps","join","toThousandsAndTwoDecimal","count","indexOf","Number","toFixed","toString","replace","$0","$1","toThousands","substring","Math","round","text"],"mappings":"4HAAAA,EAAOC,QAAU,sT,oCCAjB,W,oCCAA,W,yECEO,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQ,yBAAc,gCAAoB,MAAO,CAC/CC,MAAO,QACPC,MAAO,4BAAgB,CAACC,MAAOR,EAAKS,QAAU,MAAQ,UACrD,CACD,wBAAYT,EAAKU,OAAQ,UAAW,QAAIC,GAAW,IAClD,GCNc,mCAAgB,CAC3BC,KAAM,eACNC,MAAO,CACHJ,QAAS,CACLK,KAAMC,QACNC,SAAS,M,iCCAzB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlB,GAAQ,CAAC,YAAY,qBAE1E,U,8KCJTmB,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEd,MAAO,aACtBe,EAAa,CAAEf,MAAO,2BACtBgB,EAAa,CAAEhB,MAAO,eACtBiB,EAAa,CAAEjB,MAAO,0CACtBkB,EAA2BN,GAAa,WAAmB,uCAAoB,OAAQ,CAAEZ,MAAO,iBAAmB,iBAAkB,MACrImB,EAAa,CAAEnB,MAAO,0CACtBoB,EAA2BR,GAAa,WAAmB,uCAAoB,OAAQ,CAAEZ,MAAO,iBAAmB,UAAW,MAC9HqB,EAAa,CAAErB,MAAO,0CACtBsB,EAA2BV,GAAa,WAAmB,uCAAoB,OAAQ,CAAEZ,MAAO,iBAAmB,eAAgB,MACnIuB,EAAc,CAAEvB,MAAO,0CACvBwB,EAA4BZ,GAAa,WAAmB,uCAAoB,OAAQ,CAAEZ,MAAO,iBAAmB,mBAAoB,MACxIy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,eAAyBA,MAGjC","file":"js/chunk-649972c2.de89fdc0.js","sourcesContent":["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!./TableWrapper.vue?vue&type=style&index=0&id=037b2547&scoped=true&lang=scss\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./demoCDView.vue?vue&type=style&index=0&id=47450a3a&scoped=true&lang=scss\"","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__","import { defineComponent as _defineComponent } from 'vue'\nimport { 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, withModifiers as _withModifiers, unref as _unref, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/rv/rect.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-47450a3a\"),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\" }, \"Release 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 = { class: \"d-f flex-d-c search-item m-t-16 m-l-16\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Dealer Name(ZH)\", -1))\nconst _hoisted_12 = { class: \"d-f search-item m-t-16 flex-d-c m-l-16\" }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Status\", -1))\nconst _hoisted_14 = { class: \"d-f m-t-16 search-btns\" }\nconst _hoisted_15 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_17 = { class: \"main bg-fff m-t-8 flex-w-auto d-f flex-d-c\" }\nconst _hoisted_18 = { class: \"condition\" }\nconst _hoisted_19 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n}, null, -1))\nconst _hoisted_20 = { class: \"wrap-title\" }\nconst _hoisted_21 = { class: \"d-f justify-e btn-part\" }\nconst _hoisted_22 = {\n class: \"d-f\",\n style: {\"margin-right\":\"-8px\"}\n}\nconst _hoisted_23 = /*#__PURE__*/_createTextVNode(\"Release\")\nconst _hoisted_24 = /*#__PURE__*/_createTextVNode(\"Download All Data\")\nconst _hoisted_25 = /*#__PURE__*/_createTextVNode(\"Withdraw\")\nconst _hoisted_26 = { class: \"table-wrapper flex-w-auto m-t-16\" }\nconst _hoisted_27 = { class: \"pagination-container d-f justify-e\" }\nconst _hoisted_28 = {\n key: 0,\n style: {\"color\":\"#ff0000\",\"margin-bottom\":\"20px\"}\n}\nconst _hoisted_29 = /*#__PURE__*/_createTextVNode(\"Be aware that below dealers had been withdrawn:\")\nconst _hoisted_30 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\n\nimport TableWrapper from \"@/components/TableWrapper.vue\";\nimport useThousandsAndTwoDecimal from \"@/utils/payment/useThousandsAndTwoDecimal\";\nimport { useRoute } from \"vue-router\";\nimport { ref, reactive, toRaw } from \"vue\";\nimport {\n getDCDDealersApi,\n putDCDReleaseApi,\n putDCDWithdrawApi,\n getDemoCarDeductionFileList,\n demoCarDeductionDownload\n} from \"@/API/payment\";\nimport { message, Modal } from \"ant-design-vue\";\nimport { downloadFromStream } from '@/utils/payment/downloadFile';\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst tableWidth = window.innerWidth;\nconst tableHeight = window.innerHeight - 482;\nconst rowSelection = reactive({\n onChange: (selectedRowKeys: any[], selectedRows: any[]) => {\n rowSelection.selectedRowKeys = selectedRowKeys;\n rowSelection.selectedRowData = selectedRows;\n },\n selectedRowKeys: [],\n selectedRowData: [],\n columnWidth: \"30px\",\n});\nconst columnsData = ref([\n { title: \"Payout Round\", dataIndex: \"payoutRound\", 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: \"amountWithoutVat\",\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: \"right\",\n },\n {\n title: \"Payout Amount w VAT\",\n dataIndex: \"amountWithVat\",\n customRender: useThousandsAndTwoDecimal(),\n width: 190,\n align: \"right\",\n },\n { title: \"Status\", dataIndex: \"status\", width: 180, align: \"center\" },\n]);\nconst fileNamesColumns = ref([{ title: \"File Name\", dataIndex: \"fileName\" }])\nconst modalRowSelection = reactive({\n onChange: (selectedRowKeys: any[]) => {\n modalRowSelection.selectedRowKeys = selectedRowKeys;\n },\n selectedRowKeys: [],\n columnWidth: \"20px\",\n});\nconst state = ref({\n releaseRound: \"\",\n entity: \"\",\n dealerCode: \"\",\n swtCode: \"\",\n dealerName: \"\",\n region: \"\",\n status: \"\",\n total: 0,\n pageSize: 10,\n pageIndex: 1,\n tableData: [],\n releaseRoundList: [],\n fileNames: [],\n visible:false,\n withdrawedDealer:[]\n});\nconst route = useRoute();\nstate.value.entity = route.query.entity;\nstate.value.releaseRound = route.query.releaseRound;\nstate.value.releaseRoundList = [route.query.releaseRound];\n// TODO:目前数据先写死\nconst statusList = ref([\n {\n value: \"Released\",\n code: \"Released\",\n },\n {\n value: \"Withdrawn\",\n code: \"Withdrawn\",\n },\n]);\nfunction doReset(){\n state.value.dealerCode = ''\n state.value.dealerName = ''\n state.value.status = ''\n handleSearch()\n}\nfunction tableAction(title:string, action: Function){\n if (rowSelection.selectedRowKeys.length == 0) {\n message.warning(\"Please select the data first!\");\n return;\n }\n Modal.confirm({\n title,\n okText: \"Confirm\",\n okType: \"primary\",\n cancelText: \"Cancel\",\n onOk() {\n action();\n },\n });\n}\nasync function releaseAction(){\n try {\n await putDCDReleaseApi(state.value.releaseRound, state.value.entity, rowSelection.selectedRowKeys);\n loadTableData()\n } catch (error: any) {\n message.error(error);\n }\n}\nasync function withdrawAction(){\n try {\n await putDCDWithdrawApi(state.value.releaseRound, state.value.entity, rowSelection.selectedRowKeys);\n loadTableData()\n } catch (error: any) {\n message.error(error);\n }\n}\nasync function downloadClick() {\n modalRowSelection.selectedRowKeys = []\n await getDownloadFilesInfo()\n state.value.visible = true\n}\nfunction hideModal() {\n state.value.visible = false;\n}\nasync function handleOk(){\n if (modalRowSelection.selectedRowKeys.length == 0){\n message.error(\"Please select the data first!\")\n return;\n }\n const res = await demoCarDeductionDownload(state.value.releaseRound, state.value.entity, modalRowSelection.selectedRowKeys)\n downloadFromStream(res)\n}\n\nasync function loadTableData() {\n rowSelection.selectedRowKeys = []\n rowSelection.selectedRowData = []\n const {\n releaseRound,\n entity,\n dealerCode,\n dealerName,\n status,\n pageIndex,\n pageSize,\n } = toRaw(state.value);\n const res = await getDCDDealersApi({\n releaseRound,\n entity,\n dealerCode,\n dealerName,\n status,\n pageIndex,\n pageSize,\n });\n state.value.tableData = res.content;\n state.value.total = res.totalElements;\n}\n\nconst handleSearch = () => {\n state.value.pageIndex = 1\n loadTableData()\n}\n\nasync function getDownloadFilesInfo() {\n const data = await getDemoCarDeductionFileList(state.value.releaseRound, state.value.entity)\n state.value.fileNames = data.fileNames\n state.value.withdrawedDealer = data.withdrawnDealers\n}\nloadTableData();\n\nreturn (_ctx: any,_cache: 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_a_tooltip = _resolveComponent(\"a-tooltip\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n const _component_a_modal = _resolveComponent(\"a-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.demoCDView') }]\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: state.value.releaseRound,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((state.value.releaseRound) = $event)),\n placeholder: \"Please select\",\n disabled: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(state.value.releaseRoundList, (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: state.value.entity,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((state.value.entity) = $event)),\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_component_a_input, {\n value: state.value.dealerCode,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((state.value.dealerCode) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createVNode(_component_a_input, {\n value: state.value.dealerName,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((state.value.dealerName) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_a_select, {\n value: state.value.status,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((state.value.status) = $event)),\n placeholder: \"Please select\",\n allowClear: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(statusList.value, ({ 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 ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createVNode(_component_a_button, {\n class: \"m-l-16\",\n onClick: _withModifiers(doReset, [\"stop\"])\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n class: \"m-l-16\",\n type: \"primary\",\n onClick: _withModifiers(handleSearch, [\"stop\"])\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"section\", null, [\n _hoisted_19,\n _createElementVNode(\"strong\", _hoisted_20, _toDisplayString(_ctx.$t(\"payment.demoCDView\")), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_23\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\n _unref(route).query.type === 'view' ? 'color-g' : 'cursor-p',\n 'font_family icon-fabu m-l-12',\n ]),\n style: {\"font-size\":\"20px\",\"line-height\":\"37px\"},\n onClick: _cache[5] || (_cache[5] = ($event: any) => (tableAction('Are you sure release?', releaseAction)))\n }, null, 2)\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_24\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[6] || (_cache[6] = ($event: any) => (downloadClick()))\n })\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, null, {\n title: _withCtx(() => [\n _hoisted_25\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\n _unref(route).query.type === 'view' ? 'color-g' : 'cursor-p',\n 'font_family icon-fanhui m-l-12',\n ]),\n style: {\"font-size\":\"20px\",\"line-height\":\"37px\"},\n onClick: _cache[7] || (_cache[7] = ($event: any) => (tableAction('Are you sure withdraw?', withdrawAction)))\n }, null, 2)\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _createVNode(TableWrapper, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_table, {\n class: \"tab-container default-self-table-text\",\n \"row-selection\": _unref(rowSelection),\n style: _normalizeStyle({ height: tableHeight + 38 + 'px', overflow: 'hidden' }),\n columns: columnsData.value,\n scroll: { x: _unref(tableWidth), y: tableHeight },\n pagination: false,\n dataSource: state.value.tableData,\n rowKey: \"dealerCode\",\n rowClassName: \n (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n \n }, null, 8, [\"row-selection\", \"style\", \"columns\", \"scroll\", \"dataSource\", \"rowClassName\"])\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_27, [\n _createVNode(_component_a_pagination, {\n total: state.value.total,\n \"show-size-changer\": \"\",\n \"show-total\": (total) => `共 ${total} 条`,\n onChange: loadTableData,\n onShowSizeChange: loadTableData,\n pageSize: state.value.pageSize,\n \"onUpdate:pageSize\": _cache[8] || (_cache[8] = ($event: any) => ((state.value.pageSize) = $event)),\n current: state.value.pageIndex,\n \"onUpdate:current\": _cache[9] || (_cache[9] = ($event: any) => ((state.value.pageIndex) = $event)),\n pageSizeOptions: ['10', '20', '30', '40', '50']\n }, {\n buildOptionText: _withCtx((props) => [\n _createElementVNode(\"span\", null, _toDisplayString(props.value) + \"条/页\", 1)\n ]),\n _: 1\n }, 8, [\"total\", \"show-total\", \"pageSize\", \"current\"])\n ])\n ]),\n _createVNode(_component_a_modal, {\n visible: state.value.visible,\n title: \"Download Files\",\n onCancel: hideModal,\n okText: 'Download',\n okButtonProps: {disabled: !_unref(modalRowSelection).selectedRowKeys.length},\n onOk: handleOk\n }, {\n default: _withCtx(() => [\n (state.value.withdrawedDealer.length)\n ? (_openBlock(), _createElementBlock(\"h3\", _hoisted_28, [\n _hoisted_29,\n _hoisted_30,\n _createTextVNode(_toDisplayString(state.value.withdrawedDealer.join(';')), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_a_table, {\n \"row-selection\": _unref(modalRowSelection),\n columns: fileNamesColumns.value,\n pagination: false,\n dataSource: state.value.fileNames,\n rowKey: \"fileId\"\n }, null, 8, [\"row-selection\", \"columns\", \"dataSource\"])\n ]),\n _: 1\n }, 8, [\"visible\", \"okButtonProps\"])\n ]),\n _: 1\n }))\n}\n}\n\n})","import script from \"./demoCDView.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./demoCDView.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./demoCDView.vue?vue&type=style&index=0&id=47450a3a&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, [['__scopeId',\"data-v-47450a3a\"]])\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":""}