{"version":3,"sources":["webpack:///./src/views/Payment/components/TableWrapper.vue?cc43","webpack:///./src/views/Payment/components/TableWrapper.vue","webpack:///./src/views/Payment/components/TableWrapper.vue?6966","webpack:///./src/hooks/payment/DgrcAccounting/useDGRCAccounting.ts","webpack:///./src/assets/images/rv/upload.svg","webpack:///./src/utils/payment/useThousands.ts","webpack:///./src/views/Payment/DgrcAccounting/uploadFile.vue?ec8b","webpack:///./src/views/Payment/components/TableWrapper.vue?058f","webpack:///./node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/UploadOutlined.js","webpack:///./src/views/Payment/DgrcAccounting/index.vue?163d","webpack:///./src/assets/images/claim/rect.png","webpack:///./src/utils/payment/useOverflowText.ts","webpack:///./src/hooks/useModel.ts","webpack:///./src/views/Payment/DgrcAccounting/uploadFile.vue?5ff1","webpack:///./src/utils/payment/useTableIndex.ts","webpack:///./src/utils/claim/downloadFile.ts","webpack:///./src/views/Payment/DgrcAccounting/index.vue?948e","webpack:///./src/views/Payment/DgrcAccounting/uploadFile.vue?6ddf","webpack:///./src/views/Payment/DgrcAccounting/uploadFile.vue","webpack:///./src/views/Payment/DgrcAccounting/uploadFile.vue?0bc9","webpack:///./src/views/Payment/DgrcAccounting/index.vue","webpack:///./src/views/Payment/DgrcAccounting/index.vue?a7fe","webpack:///./src/utils/payment/numberFormat.ts","webpack:///./src/utils/payment/useThousandsAndTwoDecimal.ts"],"names":["render","_ctx","_cache","$props","$setup","$data","$options","class","isPagination","$slots","tableHeight","tableSize","height","bottomHeight","undefined","name","props","type","Boolean","default","Number","setup","__exports__","useDGRCAccounting","pagination","total","pageNumber","pageSize","column","title","dataIndex","customRender","width","align","columnTracking","className","query","payoutRound","dealerCode","dealerName","vendorCode","region","dealerGroup","tableSelection","onChange","selectedRowKeys","selectedRows","selectedRowData","res","data","value","search","_query","Object","keys","forEach","key","then","length","pageChange","val","sizeChange","current","size","roundRes","roundList","searchRoundList","Promise","resolve","reject","params","month","year","reset","download","row","payoutRoundArr","dealerCodeArr","dealerRegionArr","item","push","url","join","method","fileName","Date","warning","uploadSuccess","module","exports","useThousands","text","_objectSpread","target","i","arguments","source","ownKeys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","_defineProperty","obj","defineProperty","configurable","writable","context","p","attrs","AntdIcon","displayName","inheritAttrs","useOverflowText","style","display","overflow","whiteSpace","textOverflow","useModel","emit","get","set","useTableIndex","index","content","options","config","responseType","blob","Blob","downloadElement","document","createElement","href","window","URL","createObjectURL","str","headers","lastIndexOf","substring","decodeURIComponent","now","toString","body","appendChild","click","removeChild","revokeObjectURL","catch","error","console","log","_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","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","src","_hoisted_27","_hoisted_28","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_input","_component_a_button","_component_UploadOutlined","_component_DownloadOutlined","_component_a_table","_component_table_wrapper","_component_a_pagination","_component_upload_file","dataSource","$event","placeholder","_","$btnPermissions","onClick","upload","slotProps","scroll","y","x","columns","rowKey","rowSelection","rowClassName","getRowClass","onShowSizeChange","pageSizeOptions","buildOptionText","visible","uploadVisible","onChangeTable","handleTableChange","round","curRoleType","_component_a_upload_dragger","_component_a_progress","_component_CheckCircleOutlined","_component_a_drawer","_component_ExclamationCircleOutlined","_component_a_modal","placement","_visible","handleDownload","listType","showUploadList","multiple","beforeUpload","customRequest","uploadRequest","uploadStatus","curUploadFile","percent","curPercent","strokeColor","uploadFileSize","handleBrowse","uploadFile","disabled","importFile","tableData","operation","record","handleTableDelete","id","handleTableDownLoad","downloadModalVisible","onOk","centered","footer","cancelTip","loading","handleCheckedMsgDownload","downloadTipsText","emptyVisible","emptyTipsText","String","state","handleCancel","formData","FormData","file","isXlsx","message","isLt5M","payment","maxFileSize","has","delete","append","toFixed","Math","floor","fileId","role","payoutRoundId","code","success","slots","tableRes","getTableData","confirm","okText","cancelText","onCancel","downloadFile","downloadParams","components","CheckCircleOutlined","ExclamationCircleOutlined","TableWrapper","init","UploadOutlined","DownloadOutlined","toThousandsAndTwoDecimal","count","indexOf","replace","$0","$1","toThousands","useThousandsAndTwoDecimal"],"mappings":"kIAEO,SAASA,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQ,yBAAc,gCAAoB,MAAO,CAC/CC,MAAO,4BAAgB,CAAC,wBAAyB,CAAC,WAAaN,EAAKO,iBACnE,CACD,wBAAYP,EAAKQ,OAAQ,UAAW,CAClCC,YAAaT,EAAKU,UAAUC,QAAUX,EAAKO,aAAeP,EAAKY,aAAe,GAAKZ,EAAKY,oBACvFC,GAAW,IACb,G,gBCNU,+BAAgB,CAC7BC,KAAM,eACNC,MAAO,CACLR,aAAc,CACZS,KAAMC,QACNC,SAAS,GAEXN,aAAc,CACZI,KAAMG,OACND,QAAS,KAGbE,MAAK,WACH,IAAMV,EAAY,eAAY,0BAC9B,MAAO,CACLA,UAAS,M,iCCXf,MAAMW,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAStB,GAAQ,CAAC,YAAY,qBAE1E,U,oCCTf,oGAaMuB,EAAoB,WACxB,IAAMC,EAAa,sBAAS,CAC1BC,MAAO,EACPC,WAAY,EACZC,SAAU,KAENC,EAAS,iBAAI,CACjB,CACEC,MAAO,MACPC,UAAW,KACXC,aAAc,eAAcP,GAC5BQ,MAAO,IAET,CACEH,MAAO,eACPC,UAAW,cACXE,MAAO,KAET,CACEH,MAAO,SACPC,UAAW,SACXE,MAAO,KAET,CACEH,MAAO,eACPC,UAAW,cACXE,MAAO,KAET,CACEH,MAAO,cACPC,UAAW,aACXE,MAA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AAqB,kBAAVA,EAAoB,CAC7B,IAA4B,IAAxBA,EAAMC,QAAQ,KAChB,OAA4B,IAAxBD,EAAMC,QAAQ,KACTD,EAEAA,EAAQ,MAGnBA,EAAQ3R,OAAO2R,GAGjB,OADAA,EAAQA,EAAMzB,QAAQ,GACfyB,EACJ7J,WACA+J,QAAQ,uBAAuB,SAASC,EAAIC,GAC3C,OAAOA,EAAK,OAEbF,QAAQ,MAAO,KAGPG,EAAc,SAACL,GAC1B,QAAcjS,IAAViS,EACF,MAAO,GAET,GAAqB,kBAAVA,EAAoB,CAC7B,IAA4B,IAAxBA,EAAMC,QAAQ,KAChB,OAA4B,IAAxBD,EAAMC,QAAQ,KACTD,EAAMhK,UAAU,EAAGgK,EAAMC,QAAQ,KAAO,GAExCD,EAGXA,EAAQ3R,OAAO2R,GAGjB,OADAA,EAAQxB,KAAK1D,MAAMkF,GACZA,EACJ7J,WACA+J,QAAQ,uBAAuB,S,kCC7CpC,4BAEMI,EAA4B,WAC9B,OAAO,SAAC,G,IAAC1N,EAAI,OAGT,OAAO,eAAE,OAAQ,eAAyBA,MAGjC","file":"js/chunk-6c122f92.cbe862ca.js","sourcesContent":["import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, 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: _normalizeClass([\"payment-table-wrapper\", {'pagination':_ctx.isPagination}])\n }, [\n _renderSlot(_ctx.$slots, \"default\", {\n tableHeight: _ctx.tableSize.height - (_ctx.isPagination ? _ctx.bottomHeight + 40 : _ctx.bottomHeight)\n }, undefined, true)\n ], 2))\n}","\nimport { defineComponent } from \"vue\";\nimport { elementSize } from \"@/utils\";\nexport default defineComponent({\n name: \"TableWrapper\",\n props: {\n isPagination: {\n type: Boolean,\n default: false\n },\n bottomHeight: {\n type: Number,\n default: 40\n }\n },\n setup() {\n const tableSize = elementSize(\".payment-table-wrapper\");\n return {\n tableSize,\n };\n },\n});\n","import { render } from \"./TableWrapper.vue?vue&type=template&id=ca3a3046&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=ca3a3046&lang=scss&scoped=true\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ca3a3046\"]])\n\nexport default __exports__","import { reactive, ref, computed, toRaw } from \"vue\";\nimport { message } from \"ant-design-vue\";\nimport { ColumnProps } from \"ant-design-vue/es/table/interface\";\nimport downloadFile from \"@/utils/claim/downloadFile\";\nimport useMock from \"@/utils/payment/useMock\";\nimport useThousandsAndTwoDecimal from \"@/utils/payment/useThousandsAndTwoDecimal\";\nimport useThousands from \"@/utils/payment/useThousands\";\nimport useTableIndex from \"@/utils/payment/useTableIndex\";\nimport { getRoundListByDate, getTrackingLogicList } from \"@/API/payment\";\nimport Data from \"@/views/Payment/DgrcAccounting/mock\";\nimport { DataProps } from \"@/views/Payment/DgrcAccounting/type\";\nimport useOverflowText from \"@/utils/payment/useOverflowText\";\ntype Key = ColumnProps[\"key\"];\nconst useDGRCAccounting = () => {\n const pagination = reactive({\n total: 0,\n pageNumber: 1,\n pageSize: 10,\n });\n const column = ref([\n {\n title: \"NO.\",\n dataIndex: \"no\",\n customRender: useTableIndex(pagination),\n width: 70,\n },\n {\n title: \"Payout Round\",\n dataIndex: \"payoutRound\",\n width: 200,\n },\n {\n title: \"Region\",\n dataIndex: \"region\",\n width: 110,\n },\n {\n title: \"Dealer Group\",\n dataIndex: \"dealerGroup\",\n width: 130,\n },\n {\n title: \"Dealer Code\",\n dataIndex: \"dealerCode\",\n width: 100,\n },\n {\n title: \"Vendor Code\",\n dataIndex: \"vendorCode\",\n width: 100,\n },\n {\n title: \"Dealer Name (EN)\",\n dataIndex: \"dealerNameEn\",\n customRender: useThousands(),\n align: \"right\",\n },\n {\n title: \"Dealer Name (ZH)\",\n dataIndex: \"dealerChineseName\",\n },\n {\n title: \"Payout Amount w/o VAT\",\n dataIndex: \"amountWo\",\n customRender: useThousandsAndTwoDecimal(),\n align: \"right\",\n width: 180,\n },\n {\n title: \" Payout Amount w VAT\",\n dataIndex: \"amountW\",\n customRender: useThousandsAndTwoDecimal(),\n align: \"right\",\n width: 160,\n },\n {\n title: \"Date of Payment Statement Received\",\n dataIndex: \"dateOfPaymentStatementReceived\",\n },\n {\n title: \"Date of Red Invoice issued\",\n dataIndex: \"dateRedInvoiceIssued\",\n },\n {\n title: \"Date of AP approve payment voucher\",\n dataIndex: \"dateOfRedFaVoucher\",\n },\n ]);\n const columnTracking = ref([\n {\n title: \"NO.\",\n dataIndex: \"no\",\n customRender: useTableIndex(pagination),\n width: 55,\n },\n {\n title: \"Payout Round\",\n dataIndex: \"payoutRound\",\n className: \"column-no-wrap\",\n width: 200,\n },\n {\n title: \"Region\",\n dataIndex: \"region\",\n width: 110,\n },\n {\n title: \"Dealer Group\",\n dataIndex: \"dealerGroup\",\n width: 130,\n },\n {\n title: \"Dealer Code\",\n dataIndex: \"dealerCode\",\n width: 100,\n },\n {\n title: \"Vendor Code\",\n dataIndex: \"vendorCode\",\n width: 100,\n },\n {\n title: \"Dealer Name (EN)\",\n dataIndex: \"dealerNameEn\",\n customRender: useOverflowText(),\n width: 180,\n },\n {\n title: \"Dealer Name (ZH)\",\n dataIndex: \"dealerChineseName\",\n customRender: useOverflowText(),\n width: 180,\n },\n {\n title: \"Payout Amount w/o VAT\",\n dataIndex: \"amountWo\",\n customRender: useThousandsAndTwoDecimal(),\n align: \"right\",\n width: 180,\n },\n {\n title: \" Payout Amount w VAT\",\n dataIndex: \"amountW\",\n customRender: useThousandsAndTwoDecimal(),\n align: \"right\",\n width: 160,\n },\n {\n title: \"Date of Payment Statement Received\",\n dataIndex: \"dateOfPaymentStatementReceived\",\n width: 150,\n },\n {\n title: \"Date of Red Invoice Notice received\",\n dataIndex: \"dateRedInvoiceReceived\", //\"dateOfRedFaNotice\",\n width: 150,\n } /*\n {\n title: \"Date of AP approve payment voucher\",\n dataIndex: \"dateOfRedFaVoucher\",\n }*/,\n ]);\n const query = reactive({\n payoutRound: \"\",\n dealerCode: \"\",\n dealerName: \"\",\n vendorCode: \"\",\n region: \"\",\n dealerGroup: \"\",\n });\n // 分页\n\n // 复选框\n const tableSelection = reactive<{\n selectedRowKeys: Key[];\n selectedRowData: DataProps[];\n onChange: Function;\n }>({\n onChange: (selectedRowKeys: string[], selectedRows: DataProps[]) => {\n tableSelection.selectedRowKeys = selectedRowKeys;\n tableSelection.selectedRowData = selectedRows;\n },\n selectedRowKeys: [],\n selectedRowData: [],\n });\n // 表格列表查询\n const res = ref();\n const data = computed(() => {\n return res.value;\n });\n const search = () => {\n const _query = {};\n Object.keys(query).forEach((key) => {\n if (query[key]) {\n _query[key] = query[key];\n }\n });\n tableSelection.selectedRowData = [];\n tableSelection.selectedRowKeys = [];\n getTrackingLogicList(\n _query,\n pagination.pageNumber,\n pagination.pageSize\n ).then((data) => {\n res.value = data;\n // pagination.total = data.totalElements\n });\n getTrackingLogicList(_query, 1, 9999).then((data) => {\n // res.value = data\n pagination.total = data.length;\n });\n // useMock(Data, _query).then((data) => {\n // res.value = data;\n // });\n };\n // 分页事件\n const pageChange = (val: number) => {\n pagination.pageNumber = val;\n search();\n };\n const sizeChange = (current: number, size: number) => {\n pagination.pageSize = size;\n search();\n };\n\n // payout round列表查询\n const roundRes = ref();\n const roundList = computed(() => {\n return roundRes.value ? roundRes.value : [];\n });\n const searchRoundList = () => {\n return new Promise((resolve, reject) => {\n getRoundListByDate({\n params: {\n month: \"0\",\n year: \"0\",\n type: \"DEALER\",\n },\n }).then((res: any) => {\n roundRes.value = res;\n query.payoutRound = res[0];\n resolve(res);\n });\n });\n };\n // reset\n const reset = () => {\n for (const key in query) {\n query[key] = \"\";\n if (key === \"payoutRound\") {\n query[key] = roundList.value[0];\n }\n }\n pageChange(1);\n };\n // download按钮\n const download = () => {\n const row = tableSelection.selectedRowData;\n if (row.length === 0) {\n message.warning(\"Please select the data first.\");\n return;\n }\n const payoutRoundArr: string[] = [];\n const dealerCodeArr: string[] = [];\n const dealerRegionArr: string[] = [];\n row.forEach((item) => {\n payoutRoundArr.push(item.payoutRound as string);\n dealerCodeArr.push(item.dealerCode as string);\n dealerRegionArr.push(item.region as string);\n });\n const params = {\n url: `/ptapi/overview/trackingLogic/${payoutRoundArr.join(\n \",\"\n )}/${dealerCodeArr.join(\",\")}/${dealerRegionArr.join(\",\")}`,\n method: \"get\",\n fileName: `${+new Date()}.xlsx`,\n };\n downloadFile(params, \"application/vnd-excel; char-set=UTF-8\");\n };\n const uploadSuccess = () => {\n search();\n };\n return {\n search,\n query,\n reset,\n column,\n data,\n tableSelection,\n searchRoundList,\n roundList,\n download,\n pagination,\n pageChange,\n sizeChange,\n columnTracking,\n uploadSuccess,\n };\n};\nexport default useDGRCAccounting;\n","module.exports = __webpack_public_path__ + \"img/upload.e4734716.svg\";","import { h } from 'vue'\nimport { toThousands } from './numberFormat'\nconst useThousands = () => {\n return ({text}: {\n text: number | string;\n }) => {\n return h('span', toThousands(text));\n };\n };\n export default useThousands;\n ","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!./uploadFile.vue?vue&type=style&index=0&id=faa58654&lang=scss&scoped=true\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./TableWrapper.vue?vue&type=style&index=0&id=ca3a3046&lang=scss&scoped=true\"","// This icon file is generated automatically.\nvar UploadOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z\" } }] }, \"name\": \"upload\", \"theme\": \"outlined\" };\nexport default UploadOutlined;\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 UploadOutlinedSvg from \"@ant-design/icons-svg/es/asn/UploadOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar UploadOutlined = function UploadOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": UploadOutlinedSvg\n }), null);\n};\n\nUploadOutlined.displayName = 'UploadOutlined';\nUploadOutlined.inheritAttrs = false;\nexport default UploadOutlined;","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=55f908e8&lang=scss&scoped=true\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAQCAYAAADTasWKAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAA6ADAAQAAAABAAAAEAAAAABTVpExAAAARklEQVQIHWNgWPf+GcO6Dx0MV/+zsTD8Z5BkYPhfznDzIwMTAxz8j0NwgCoQHKAK+nMYGZ4jWcq4iIUBKMLAwLiIQZ2/DgAi2RE9IOkxIAAAAABJRU5ErkJggg==\"","import { h } from \"vue\";\nimport { Tooltip } from \"ant-design-vue\";\nconst useOverflowText = () => {\n return ({ text }: { text: number | string }) => {\n return h(\n Tooltip as any,\n {\n title: text\n },\n h(\n \"span\",\n {\n style: {\n width: \"100%\",\n display: \"block\",\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n },\n },\n text\n )\n );\n };\n};\nexport default useOverflowText;\n","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","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!./uploadFile.vue?vue&type=style&index=1&id=faa58654&lang=scss\"","import { h } from \"vue\";\nconst useTableIndex = (pagination: any = undefined) => {\n return ({ index }: { index: number }): any => {\n const content =\n pagination === undefined\n ? index + 1\n : index + 1 + (pagination.pageNumber - 1) * pagination.pageSize;\n return h(\"span\", content);\n };\n};\nexport default useTableIndex;\n","/*\n * @Author: zhengda.lv\n * @Date: 2021-10-30 10:15:26\n * @LastEditTime: 2021-12-17 16:13:15\n * @LastEditors: zhengda.lv\n * @Description:\n */\nimport axios from 'axios';\nimport { AxiosRequestConfig } from '@/API/types';\nexport default (options: AxiosRequestConfig, type: string) => {\n const { url, method = 'get', params, fileName } = options;\n const config: any = {\n url: url,\n method,\n responseType: 'blob',\n };\n if (method === 'get') {\n config['params'] = params;\n } else {\n config['data'] = params;\n }\n return new Promise((resolve, reject) => {\n axios(config)\n .then((res: any) => {\n // 文件格式\n const blob = new Blob([res.data], { type: type }); //指定格式为vnd.ms-excel\n const downloadElement = document.createElement('a');\n const href = window.URL.createObjectURL(blob); //创建下载的链接\n downloadElement.href = href;\n const str = res.headers['content-disposition'];\n const index = str.lastIndexOf('=');\n if (str.substring(index + 1, str.length)) {\n downloadElement.download = decodeURIComponent(\n str.substring(index + 1, str.length)\n );\n } else if (fileName) {\n downloadElement.download = fileName;\n } else {\n downloadElement.download = Date.now().toString();\n }\n document.body.appendChild(downloadElement);\n downloadElement.click(); //点击下载\n document.body.removeChild(downloadElement); //下载完成移除元素\n window.URL.revokeObjectURL(href); //释放掉blob对象\n resolve(res);\n })\n .catch(function(error: string) {\n console.log(error);\n return reject(error);\n });\n });\n};\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, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/claim/rect.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-55f908e8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"payment-container\" }\nconst _hoisted_2 = { class: \"payment-overview-block-wrapper flex-wrapper flex-height\" }\nconst _hoisted_3 = { class: \"payment-overview-block\" }\nconst _hoisted_4 = { class: \"payment-search-wrapper\" }\nconst _hoisted_5 = { class: \"payment-search-row\" }\nconst _hoisted_6 = { class: \"search-item\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Payout Round \", -1))\nconst _hoisted_8 = { class: \"search-item\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Delear Code \", -1))\nconst _hoisted_10 = { class: \"search-item\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Delear Name(ZH) \", -1))\nconst _hoisted_12 = { class: \"search-item\" }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Vendor Code \", -1))\nconst _hoisted_14 = { class: \"payment-search-row\" }\nconst _hoisted_15 = { class: \"search-item\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Region \", -1))\nconst _hoisted_17 = { class: \"search-item\" }\nconst _hoisted_18 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" Dealer Group \", -1))\nconst _hoisted_19 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"search-item\" }, null, -1))\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"search-item\" }, null, -1))\nconst _hoisted_21 = { class: \"search-btn\" }\nconst _hoisted_22 = /*#__PURE__*/_createTextVNode(\" Reset \")\nconst _hoisted_23 = /*#__PURE__*/_createTextVNode(\" Search \")\nconst _hoisted_24 = { class: \"payment-overview-block mt-10 flex-wrapper flex-height\" }\nconst _hoisted_25 = { class: \"content-header\" }\nconst _hoisted_26 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"section\", { class: \"page-title\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n }),\n /*#__PURE__*/_createElementVNode(\"strong\", { class: \"wrap-title\" }, \"A3 Tracking\")\n], -1))\nconst _hoisted_27 = { class: \"control-wrapper\" }\nconst _hoisted_28 = {\n key: 0,\n class: \"pagination-container d-f justify-e\"\n}\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_UploadOutlined = _resolveComponent(\"UploadOutlined\")!\n const _component_DownloadOutlined = _resolveComponent(\"DownloadOutlined\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_table_wrapper = _resolveComponent(\"table-wrapper\")!\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n const _component_upload_file = _resolveComponent(\"upload-file\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_Breadcrumb, { dataSource: [] }),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_a_select, {\n value: _ctx.query.payoutRound,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.query.payoutRound) = $event)),\n class: \"sel-inp-size\",\n placeholder: \"Please select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.roundList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, { key: item }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_component_a_input, {\n placeholder: \"Please input\",\n value: _ctx.query.dealerCode,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.query.dealerCode) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createVNode(_component_a_input, {\n placeholder: \"Please input\",\n value: _ctx.query.dealerName,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.query.dealerName) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_a_input, {\n placeholder: \"Please input\",\n value: _ctx.query.vendorCode,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.query.vendorCode) = $event))\n }, null, 8, [\"value\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createVNode(_component_a_input, {\n placeholder: \"Please input\",\n value: _ctx.query.region,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.query.region) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createVNode(_component_a_input, {\n placeholder: \"Please input\",\n value: _ctx.query.dealerGroup,\n \"onUpdate:value\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.query.dealerGroup) = $event))\n }, null, 8, [\"value\"])\n ]),\n _hoisted_19,\n _hoisted_20\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n (_ctx.$btnPermissions('DA0001'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n style: {\"margin-right\":\"15px\"},\n onClick: _ctx.reset\n }, {\n default: _withCtx(() => [\n _hoisted_22\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('DA0002'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n type: \"primary\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.pageChange(1)))\n }, {\n default: _withCtx(() => [\n _hoisted_23\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _hoisted_26,\n _createElementVNode(\"div\", _hoisted_27, [\n (_ctx.$btnPermissions('DA0003'))\n ? (_openBlock(), _createBlock(_component_UploadOutlined, {\n key: 0,\n class: \"mr-10\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (_ctx.upload('AR')))\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('DA0004'))\n ? (_openBlock(), _createBlock(_component_UploadOutlined, {\n key: 1,\n class: \"mr-10\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (_ctx.upload('AP')))\n }))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_DownloadOutlined, { onClick: _ctx.download }, null, 8, [\"onClick\"])\n ])\n ]),\n _createVNode(_component_table_wrapper, { \"is-pagination\": _ctx.isPagination }, {\n default: _withCtx((slotProps) => [\n _createVNode(_component_a_table, {\n scroll: { y: slotProps.tableHeight, x: 2200 },\n dataSource: _ctx.data,\n columns: _ctx.column,\n rowKey: \"id\",\n pagination: false,\n rowSelection: _ctx.tableSelection,\n rowClassName: _ctx.getRowClass\n }, null, 8, [\"scroll\", \"dataSource\", \"columns\", \"rowSelection\", \"rowClassName\"])\n ]),\n _: 1\n }, 8, [\"is-pagination\"]),\n (_ctx.isPagination)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_28, [\n _createVNode(_component_a_pagination, {\n total: _ctx.total,\n \"show-size-changer\": \"\",\n \"show-total\": (total) => `共 ${total} 条`,\n onChange: _ctx.pageChange,\n onShowSizeChange: _ctx.sizeChange,\n pageSize: _ctx.pageSize,\n \"onUpdate:pageSize\": _cache[9] || (_cache[9] = ($event: any) => ((_ctx.pageSize) = $event)),\n current: _ctx.pageNumber,\n \"onUpdate:current\": _cache[10] || (_cache[10] = ($event: any) => ((_ctx.pageNumber) = $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\", \"onChange\", \"onShowSizeChange\", \"pageSize\", \"current\"])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createVNode(_component_upload_file, {\n visible: _ctx.uploadVisible,\n \"onUpdate:visible\": _cache[11] || (_cache[11] = ($event: any) => ((_ctx.uploadVisible) = $event)),\n onChangeTable: _ctx.handleTableChange,\n round: _ctx.query.payoutRound,\n \"cur-role-type\": _ctx.curRoleType\n }, null, 8, [\"visible\", \"onChangeTable\", \"round\", \"cur-role-type\"])\n ], 64))\n}","import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/rv/upload.svg'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-faa58654\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"upload-wrapper flex-wrapper\" }\nconst _hoisted_2 = { class: \"download-con\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"font_family icon-xiazai\" }, null, -1))\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\" Template Download \")\nconst _hoisted_5 = { class: \"border-style\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"ant-upload-drag-icon\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"uploadIcon\"\n })\n], -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"ant-upload-text\" }, [\n /*#__PURE__*/_createTextVNode(\" Drag and drop to upload or \"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"blueFont\" }, \"browse for files\")\n], -1))\nconst _hoisted_8 = { class: \"process-con\" }\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\" Selected Files: \")\nconst _hoisted_10 = { class: \"margin-style\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"process-title-style\" }, \"Total Process:\", -1))\nconst _hoisted_12 = { class: \"process-style\" }\nconst _hoisted_13 = { key: 0 }\nconst _hoisted_14 = /*#__PURE__*/_createTextVNode(\" Complete\")\nconst _hoisted_15 = { key: 1 }\nconst _hoisted_16 = { class: \"size-style\" }\nconst _hoisted_17 = /*#__PURE__*/_createTextVNode(\"Browse\")\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Upload\")\nconst _hoisted_19 = { style: {\"margin-top\":\"10px\"} }\nconst _hoisted_20 = /*#__PURE__*/_createTextVNode(\"Import\")\nconst _hoisted_21 = [\"onClick\"]\nconst _hoisted_22 = [\"onClick\"]\nconst _hoisted_23 = /*#__PURE__*/_createTextVNode(\" Tips \")\nconst _hoisted_24 = { class: \"modal-txt\" }\nconst _hoisted_25 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_26 = /*#__PURE__*/_createTextVNode(\"Download\")\nconst _hoisted_27 = /*#__PURE__*/_createTextVNode(\" Tips \")\nconst _hoisted_28 = { class: \"modal-txt\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_upload_dragger = _resolveComponent(\"a-upload-dragger\")!\n const _component_a_progress = _resolveComponent(\"a-progress\")!\n const _component_CheckCircleOutlined = _resolveComponent(\"CheckCircleOutlined\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_table_wrapper = _resolveComponent(\"table-wrapper\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n const _component_ExclamationCircleOutlined = _resolveComponent(\"ExclamationCircleOutlined\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_a_drawer, {\n title: \"Upload A3 Tracking List\",\n placement: \"right\",\n visible: _ctx._visible,\n \"onUpdate:visible\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx._visible) = $event)),\n width: \"600\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"section\", _hoisted_2, [\n _createVNode(_component_a_button, {\n type: \"link\",\n class: \"blueFont\",\n onClick: _ctx.handleDownload\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _hoisted_4\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _withDirectives(_createVNode(_component_a_upload_dragger, {\n name: \"file\",\n listType: \"picture-card\",\n showUploadList: false,\n multiple: false,\n \"before-upload\": _ctx.beforeUpload,\n customRequest: _ctx.uploadRequest\n }, {\n default: _withCtx(() => [\n _hoisted_6,\n _hoisted_7\n ]),\n _: 1\n }, 8, [\"before-upload\", \"customRequest\"]), [\n [_vShow, _ctx.uploadStatus === 'start']\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"p\", null, [\n _hoisted_9,\n _createElementVNode(\"strong\", null, _toDisplayString(_ctx.curUploadFile.name), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"span\", _hoisted_12, [\n _createVNode(_component_a_progress, {\n percent: _ctx.curPercent,\n strokeColor: \"#108ee9\"\n }, null, 8, [\"percent\"]),\n (_ctx.uploadStatus === 'checked' || _ctx.uploadStatus === 'imported')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_13, [\n _createVNode(_component_CheckCircleOutlined, { style: {\"color\":\"#108ee9\"} }),\n _hoisted_14\n ]))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_15, _toDisplayString(_ctx.curPercent) + \"% done\", 1)),\n _createElementVNode(\"span\", _hoisted_16, _toDisplayString(_ctx.uploadFileSize), 1)\n ])\n ]),\n (_ctx.uploadStatus === 'checked' || _ctx.uploadStatus === 'imported')\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"right-style\",\n type: \"primary\",\n onClick: _ctx.handleBrowse\n }, {\n default: _withCtx(() => [\n _hoisted_17\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n class: \"right-style\",\n type: \"primary\",\n onClick: _ctx.uploadFile\n }, {\n default: _withCtx(() => [\n _hoisted_18\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n ], 512), [\n [_vShow, _ctx.uploadStatus !== 'start']\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createVNode(_component_a_button, {\n type: \"primary\",\n disabled: _ctx.uploadStatus !== 'checked',\n onClick: _ctx.importFile\n }, {\n default: _withCtx(() => [\n _hoisted_20\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"])\n ]),\n _createVNode(_component_table_wrapper, {\n \"is-pagination\": false,\n class: \"table-wrapper\"\n }, {\n default: _withCtx((slotProps) => [\n _createVNode(_component_a_table, {\n scroll: { y: slotProps.tableHeight },\n class: \"m-t-16\",\n columns: _ctx.column,\n pagination: false,\n dataSource: _ctx.tableData,\n rowKey: \"id\"\n }, {\n operation: _withCtx(({ record }) => [\n _createElementVNode(\"span\", {\n class: \"link\",\n style: {\"margin-right\":\"10px\"},\n onClick: ($event: any) => (_ctx.handleTableDelete(record.id))\n }, \"Delete\", 8, _hoisted_21),\n _createElementVNode(\"span\", {\n class: \"link\",\n onClick: ($event: any) => (_ctx.handleTableDownLoad(record.id))\n }, \"Download\", 8, _hoisted_22)\n ]),\n _: 2\n }, 1032, [\"scroll\", \"columns\", \"dataSource\"])\n ]),\n _: 1\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.downloadModalVisible,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.downloadModalVisible) = $event)),\n \"ok-button-props\": { disabled: true },\n \"cancel-button-props\": { disabled: true },\n onOk: _ctx.handleDownload,\n centered: \"\"\n }, {\n title: _withCtx(() => [\n _createVNode(_component_ExclamationCircleOutlined, { style: {\"color\":\"#faad14\"} }),\n _hoisted_23\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n key: \"back\",\n onClick: _ctx.cancelTip\n }, {\n default: _withCtx(() => [\n _hoisted_25\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n key: \"submit\",\n type: \"primary\",\n loading: _ctx.loading,\n onClick: _ctx.handleCheckedMsgDownload\n }, {\n default: _withCtx(() => [\n _hoisted_26\n ]),\n _: 1\n }, 8, [\"loading\", \"onClick\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_24, _toDisplayString(_ctx.downloadTipsText), 1)\n ]),\n _: 1\n }, 8, [\"visible\", \"onOk\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.emptyVisible,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.emptyVisible) = $event)),\n footer: null,\n centered: \"\"\n }, {\n title: _withCtx(() => [\n _createVNode(_component_ExclamationCircleOutlined, { style: {\"color\":\"#faad14\"} }),\n _hoisted_27\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_28, _toDisplayString(_ctx.emptyTipsText), 1)\n ]),\n _: 1\n }, 8, [\"visible\"])\n ], 64))\n}","\nimport {\n computed,\n defineComponent,\n PropType,\n reactive,\n ref,\n watch,\n toRaw,\n} from \"vue\";\nimport {\n CheckCircleOutlined,\n ExclamationCircleOutlined,\n} from \"@ant-design/icons-vue\";\nimport { message } from \"ant-design-vue\";\nimport { Modal } from \"ant-design-vue\";\nimport { useRoute } from \"vue-router\";\nimport useModel from \"@/hooks/useModel\";\nimport downloadFile from \"@/utils/claim/downloadFile\";\nimport { FileItem } from \"@/API/types\";\nimport axios from \"axios\";\nimport { fetchDgrcDownloadList, deleteDgrcUploadFile } from \"@/API/payment\";\nimport TableWrapper from \"@/views/Payment/components/TableWrapper.vue\";\nimport { useStore } from \"vuex\";\n\ntype titleProps = \"Risk Dealer\" | \"Normal Dealer\" | \"Name/Code Changing\";\ntype StatusType = \"start\" | \"beforeUpload\" | \"checked\" | \"imported\";\nexport default defineComponent({\n name: \"App\",\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n round: {\n type: String,\n default: \"\",\n },\n curRoleType: {\n type: String,\n default: \"AP\",\n },\n },\n setup(props, context) {\n const { state } = useStore();\n // const route = useRoute();\n // const role = route.query.role ? route.query.role : \"AP\";\n const _visible = useModel(props, \"visible\");\n const handleCancel = () => {\n _visible.value = false;\n };\n // 上传相关\n const uploadStatus = ref(\"start\");\n const curUploadFile = ref({});\n const uploadFileSize = ref(\"\");\n // formData\n const formData = new FormData();\n const curPercent = computed(() => {\n if (\n uploadStatus.value === \"checked\" ||\n uploadStatus.value === \"imported\"\n ) {\n return 100;\n } else {\n return 0;\n }\n });\n // 上传前校验\n const beforeUpload = (file: FileItem) => {\n const isXlsx =\n file.type ===\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\";\n if (!isXlsx) {\n message.error(\"Only xlsx format files can be uploaded!\");\n }\n const isLt5M = file.size / 1024 / 1024 < state.payment.maxFileSize;\n if (!isLt5M) {\n message.error(\n `The file size should not be larger than ${state.payment.maxFileSize}MB!`\n );\n }\n return isXlsx && isLt5M;\n };\n // 保存文件数据\n const uploadRequest = (source: any) => {\n if (formData.has(\"file\")) {\n formData.delete(\"file\");\n }\n formData.append(\"file\", source.file);\n curUploadFile.value = source.file;\n uploadFileSize.value =\n source.file.size / 1024 > 1024\n ? `${(source.file.size / 1024 / 1024).toFixed(1)} MB`\n : `${Math.floor(source.file.size / 1024)} KB`;\n uploadStatus.value = \"beforeUpload\";\n };\n const downloadModalVisible = ref(false);\n const cancelTip = () => {\n downloadModalVisible.value = false;\n };\n const downloadTipsText = ref(\"\");\n const emptyVisible = ref(false);\n const emptyTipsText = ref(\"\");\n const fileId = ref(\"\");\n const uploadFile = (source: any) => {\n const params = {\n role: props.curRoleType,\n payoutRoundId: props.round,\n };\n axios({\n method: \"post\",\n data: formData,\n url: `/ptapi/vendor/uploadFileA3`,\n params,\n })\n .then((res) => {\n if (res.data.code !== \"0\" && res.data.code !== \"9011\") {\n // 显示模态窗口\n downloadModalVisible.value = true;\n downloadTipsText.value = res.data.message;\n fileId.value = res.data.data;\n uploadStatus.value = \"start\";\n } else if (res.data.code === \"9011\") {\n emptyVisible.value = true;\n emptyTipsText.value = res.data.message;\n uploadStatus.value = \"start\";\n } else {\n message.success(\"File check successfully!\");\n uploadStatus.value = \"checked\";\n }\n })\n .catch(() => {\n uploadStatus.value = \"start\";\n });\n };\n // 上传历史记录表格\n const column = ref([\n {\n title: \"File Name\",\n dataIndex: \"fileName\",\n width: 260,\n },\n {\n title: \"Upload Date\",\n dataIndex: \"updatedAt\",\n },\n {\n title: \"Operation\",\n slots: {\n customRender: \"operation\",\n },\n },\n ]);\n const tableRes = ref();\n const tableData = computed(() => {\n return tableRes.value;\n });\n const getTableData = () => {\n fetchDgrcDownloadList({\n pageNumber: 1,\n pageSize: 9999,\n }).then((res) => {\n tableRes.value = res;\n });\n };\n getTableData();\n const handleTableDelete = (id: string) => {\n Modal.confirm({\n title: \"Please confirm\",\n content: \"Do you confirm to delete current data?\",\n okText: \"Confirm\",\n cancelText: \"Cancel\",\n onOk() {\n deleteDgrcUploadFile(id).then((res) => {\n message.success(\"File Upload successfully!\");\n getTableData();\n });\n },\n onCancel() {\n console.log(\"Cancel\");\n },\n });\n };\n const handleTableDownLoad = (id: string) => {\n const params = {\n url: `/ptapi/downloadFile`,\n method: \"get\",\n params: {\n fileId: id,\n },\n // fileName: `${+new Date()}.xlsx`,\n };\n downloadFile(params, \"application/vnd-excel; char-set=UTF-8\");\n };\n // 导入接口调用\n const importFile = () => {\n const params = {\n file: formData,\n role: props.curRoleType,\n payoutRoundId: props.round,\n };\n axios({\n method: \"post\",\n data: formData,\n url: `/ptapi/vendor/importFileA3`,\n params: params,\n }).then((res) => {\n if (res.data.code !== \"0\") {\n Modal.warning({\n title: \"Tips\",\n content: res.data.message,\n centered: true,\n });\n } else {\n uploadStatus.value = \"imported\";\n message.success(\"File Upload successfully!\");\n getTableData();\n context.emit(\"change-table\");\n }\n });\n };\n const handleBrowse = () => {\n uploadStatus.value = \"start\";\n };\n const handleDownload = () => {\n const params = {\n url: `/ptapi/vendor/downloadTemplate/${props.curRoleType}`,\n method: \"get\",\n // fileName: `${+new Date()}.xlsx`,\n };\n downloadFile(params, \"application/vnd-excel; char-set=UTF-8\");\n };\n // 上传功能出错后下载模态窗口\n const handleCheckedMsgDownload = () => {\n const downloadParams = {\n fileId: fileId.value,\n };\n const params = {\n url: `/ptapi/downloadFile`,\n method: \"get\",\n params: downloadParams,\n fileName: `${+new Date()}.xlsx`,\n };\n downloadFile(params, \"application/vnd-excel; char-set=UTF-8\").then(\n (res) => {\n downloadModalVisible.value = false;\n emptyVisible.value = false;\n }\n );\n };\n return {\n _visible,\n handleCancel,\n beforeUpload,\n uploadRequest,\n uploadFile,\n importFile,\n handleBrowse,\n handleDownload,\n handleCheckedMsgDownload,\n curUploadFile,\n uploadFileSize,\n curPercent,\n uploadStatus,\n downloadModalVisible,\n downloadTipsText,\n emptyVisible,\n emptyTipsText,\n cancelTip,\n column,\n tableData,\n handleTableDelete,\n handleTableDownLoad,\n };\n },\n components: {\n CheckCircleOutlined,\n ExclamationCircleOutlined,\n TableWrapper,\n },\n});\n","import { render } from \"./uploadFile.vue?vue&type=template&id=faa58654&scoped=true&ts=true\"\nimport script from \"./uploadFile.vue?vue&type=script&lang=ts\"\nexport * from \"./uploadFile.vue?vue&type=script&lang=ts\"\n\nimport \"./uploadFile.vue?vue&type=style&index=0&id=faa58654&lang=scss&scoped=true\"\nimport \"./uploadFile.vue?vue&type=style&index=1&id=faa58654&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-faa58654\"]])\n\nexport default __exports__","\nimport { defineComponent, ref, toRefs } from 'vue';\nimport useDGRCAccounting from '@/hooks/payment/DgrcAccounting/useDGRCAccounting';\nimport { UploadOutlined, DownloadOutlined } from '@ant-design/icons-vue';\nimport TableWrapper from '@/views/Payment/components/TableWrapper.vue';\nimport uploadFile from './uploadFile.vue';\nexport default defineComponent({\n name: 'App',\n props: {},\n setup() {\n const {\n search,\n query,\n reset,\n column,\n data,\n tableSelection,\n searchRoundList,\n roundList,\n download,\n pagination,\n pageChange,\n sizeChange,\n } = useDGRCAccounting();\n // 上传相关\n const uploadVisible = ref(false);\n const curRoleType = ref();\n const upload = (type: string) => {\n uploadVisible.value = true;\n curRoleType.value = type;\n };\n const init = () => {\n searchRoundList().then(() => {\n search();\n });\n };\n init();\n const handleTableChange = () => {\n search();\n };\n return {\n query,\n search,\n reset,\n column,\n data,\n tableSelection,\n roundList,\n download,\n upload,\n curRoleType,\n uploadVisible,\n isPagination: true,\n ...toRefs(pagination),\n pageChange,\n sizeChange,\n handleTableChange,\n };\n },\n components: {\n UploadOutlined,\n DownloadOutlined,\n TableWrapper,\n uploadFile,\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=55f908e8&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=55f908e8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-55f908e8\"]])\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":""}