{"version":3,"sources":["webpack:///./src/views/SalesReporting2/PaymentTrackingReport/index.vue?f31b","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/MakeTable.vue?4404","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/ProgramTrackingDetail/index.vue?f56d","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/index.vue?0ee3","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/index.vue?4248","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/TrackingOverview/index.vue?3bcf","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/MakeTable.vue?9c86","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/MakeTable.vue","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/MakeTable.vue?8a82","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/TrackingOverview/index.vue","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/TrackingOverview/index.vue?5198","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/ProgramTrackingDetail/index.vue?aec3","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/TrackingDetailTable.vue?aeb6","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/TrackingDetailTable.vue","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/TrackingDetailTable.vue?dd7b","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/ProgramTrackingDetail/index.vue","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/ProgramTrackingDetail/index.vue?8221","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/index.vue","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/index.vue?08e9","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/TrackingOverview/index.vue?d0af","webpack:///./src/utils/claim/downloadFile.ts","webpack:///./src/views/SalesReporting2/PaymentTrackingReport/components/TrackingDetailTable.vue?3d5a"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","style","src","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_space","_component_a_date_picker","_component_a_button","_component_tracking_overview","_component_a_tab_pane","_component_program_tracking_detail","_component_a_tabs","dataSource","direction","size","spaceSize","default","value","make","$event","placeholder","makeList","mk","key","_","dropdownClassName","mode","startYear","format","open","onPanelChange","handleStartYearPanelChange","onOpenChange","handleStartYearOpenChange","closeOrNot","closeOrNotList","cp","id","name","onClick","reset","$btnPermissions","type","search","activeKey","tab","trackingOverviewData","_component_make_table","exportExcel","ref","_component_a_table","rowKey","item","index","columns","pagination","scroll","x","colWidth","y","colHeight","rowClassName","totalRowClass","bordered","title","col","slots","fn","cTitle","displayColumnsClick","INDENT_ROW","props","Object","required","setup","router","store","state","salesReport","fcSearchParams","renderRowName","record","obj","children","rowName","push","color","cursor","includes","columnsAll","initFirstColumn","yearList","dataList","subColumns","PMT","generateTableData","shift","tableData","reduce","all","ele","data","currentYear","otherRowData","row","til","ind","columnName","substring","prefix","commit","distinctColor","column","generateColumnsAll","currentColumn","allColumns","display","parent","dataIndex","canExpand","expandStatus","customHeaderCell","newVal","JSON","parse","stringify","showDataSource","console","log","parentTitle","forEach","cols","filter","unshift","fixed","width","customRender","defaultWidth","len","length","downloadParams","params","url","method","downloadFile","calculateHeight","table","document","getElementById","clinetHeight","body","clientHeight","top","getBoundingClientRect","weights","window","addEventListener","__exports__","components","MakeTable","makeTableEl","_component_a_checkbox_group","_component_tracking_detail_table","checkedList","options","checkOptions","selectYear","handleSelectYearPanelChange","handleSelectYearOpenChange","downloadClick","save","trackingDetailData","saveParams","onSaveSuccess","_component_a_modal","colFather","spreadPayoutBe","args","sortColumnsFlag","sortData","columnsSons","colSon","total","visible","saveWarningModalVisible","footer","handleCancel","handleForceSave","constraintNegNumber","number","replace","emits","emit","totalData","renderInputCell","onInput","target","round","renderNo","makeTotalStr","ellipsis","sortAble","rowobj","payoutBe","childrenOfPayoutBeIndex","sonList","sons","father","wid","showData","sumColumn","countColumn","calculateTotals","calulateConfig","colName","calculateType","config","num","parseFloat","toString","isNaN","map","undefined","deep","flag","paymentTrackingFCReqVO","reportProgramTrackingDetailRespVOList","then","res","code","message","error","success","oasisapproved","pendingAdj","possibleRelease","toBeReleased","sortFun","descent","prop","a","b","ascent","columnKey","sort","INIT_YEAR","TrackingDetailTable","label","typeList","trackingDetailTable","initYear","val","selected","dateList","element","innerText","classList","add","disabledYears","dateDom","querySelector","Array","from","getElementsByClassName","status","TrackingOverview","ProgramTrackingDetail","newMake","newStartYear","newcloseOrNot","newYearList","immediate","selectedYear","fileName","responseType","Promise","resolve","reject","blob","Blob","downloadElement","createElement","href","URL","createObjectURL","str","headers","lastIndexOf","download","decodeURIComponent","Date","now","appendChild","click","removeChild","revokeObjectURL","catch"],"mappings":"kHAAA,W,6DCAA,W,sFCAA,W,2DCAA,W,4HCIMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,yBACtBC,EAA2BJ,GAAa,WAAmB,uCAAoB,UAAW,CAAEK,MAAO,CAAC,eAAe,UAAY,CACtH,gCAAoB,MAAO,CACtCC,IAAK,IACLH,MAAO,SAEI,gCAAoB,SAAU,CAAEA,MAAO,cAAgB,kCAClE,MACEI,EAAa,CAAEJ,MAAO,2BACtBK,EAA2BR,GAAa,WAAmB,uCAAoB,QAAS,CAAEG,MAAO,SAAW,QAAS,MACrHM,EAA2BT,GAAa,WAAmB,uCAAoB,QAAS,CAAEG,MAAO,SAAW,cAAe,MAC3HO,EAA2BV,GAAa,WAAmB,uCAAoB,QAAS,CAAEG,MAAO,SAAW,gBAAiB,MAC7HQ,EAA2BX,GAAa,WAAmB,uCAAoB,QAAS,CAAEG,MAAO,SAAW,KAAM,MAClHS,EAA0B,6BAAiB,SAC3CC,EAA2Bb,GAAa,WAAmB,uCAAoB,QAAS,CA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BN,EAAQhD,MAEXoE,OAAM,SAASjE,GAEZ,OADAxG,QAAQC,IAAIuG,GACL8C,EAAO9C,W,kCChD9B","file":"js/chunk-4f815b50.5f14bef8.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=0&id=32029a8d&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!./MakeTable.vue?vue&type=style&index=0&id=af45a51c&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!./index.vue?vue&type=style&index=0&id=90e7c46e&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!./index.vue?vue&type=style&index=1&id=32029a8d&lang=scss&scoped=true\"","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, 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-32029a8d\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"payment_report--outer\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"section\", { style: {\"padding-left\":\"-12px\"} }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n }),\n /*#__PURE__*/_createElementVNode(\"strong\", { class: \"wrap-title\" }, \"Payment Tracking Report (FC)\")\n], -1))\nconst _hoisted_3 = { class: \"payment_report--wrapper\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Make\", -1))\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Start Year\", -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Close or not\", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" \", -1))\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" \", -1))\nconst _hoisted_10 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_11 = { class: \"payment_report--content\" }\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_space = _resolveComponent(\"a-space\")!\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_tracking_overview = _resolveComponent(\"tracking-overview\")!\n const _component_a_tab_pane = _resolveComponent(\"a-tab-pane\")!\n const _component_program_tracking_detail = _resolveComponent(\"program-tracking-detail\")!\n const _component_a_tabs = _resolveComponent(\"a-tabs\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_Breadcrumb, { dataSource: [] }),\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_a_space, {\n class: \"payment_report--form\",\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_4,\n _createVNode(_component_a_select, {\n value: _ctx.make,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.make) = $event)),\n class: \"sel-inp-size multi-selector\",\n placeholder: \"Please select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.makeList, (mk) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: mk,\n value: mk\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(mk), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n class: \"payment_report--form\",\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_5,\n _createVNode(_component_a_date_picker, {\n \"allow-clear\": false,\n dropdownClassName: \"date-picker\",\n mode: \"year\",\n value: _ctx.startYear,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.startYear) = $event)),\n style: {\"width\":\"100%\"},\n placeholder: \"Please select\",\n format: \"YYYY\",\n open: _ctx.open,\n onPanelChange: _ctx.handleStartYearPanelChange,\n onOpenChange: _ctx.handleStartYearOpenChange\n }, null, 8, [\"value\", \"open\", \"onPanelChange\", \"onOpenChange\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n class: \"payment_report--form\",\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_6,\n _createVNode(_component_a_select, {\n value: _ctx.closeOrNot,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.closeOrNot) = $event)),\n class: \"sel-inp-size\",\n placeholder: \"Please select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.closeOrNotList, (cp) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: cp.id,\n value: cp.id\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(cp.name), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_space, {\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_7,\n _createVNode(_component_a_button, { onClick: _ctx.reset }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n direction: \"vertical\",\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_9,\n (_ctx.$btnPermissions('PTR002'))\n ? _withDirectives((_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n type: \"primary\",\n onClick: _ctx.search\n }, {\n default: _withCtx(() => [\n _hoisted_10\n ]),\n _: 1\n }, 8, [\"onClick\"])), [\n [_vShow, _ctx.activeKey === '1']\n ])\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"size\"])\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode(_component_a_tabs, {\n activeKey: _ctx.activeKey,\n \"onUpdate:activeKey\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.activeKey) = $event))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_tab_pane, {\n key: \"1\",\n tab: \"Tracking Overview\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_tracking_overview, { trackingOverviewData: _ctx.trackingOverviewData }, null, 8, [\"trackingOverviewData\"])\n ]),\n _: 1\n }),\n _createVNode(_component_a_tab_pane, {\n key: \"2\",\n tab: \"Program Tracking Detail\",\n \"force-render\": \"\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_program_tracking_detail)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"activeKey\"])\n ])\n ], 64))\n}","import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a182cbd4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"tracking-overview\" }\nconst _hoisted_2 = { class: \"content-header\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"warning\" }, \"* Amount w/o VAT (RMB)\", -1))\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\"Export\")\nconst _hoisted_5 = { class: \"tracking-overview--content\" }\nconst _hoisted_6 = { class: \"content_body\" }\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_make_table = _resolveComponent(\"make-table\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n (_ctx.$btnPermissions('PTR001'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n onClick: _ctx.exportExcel\n }, {\n default: _withCtx(() => [\n _hoisted_4\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_make_table, {\n ref: \"makeTableEl\",\n trackingOverviewData: _ctx.trackingOverviewData\n }, null, 8, [\"trackingOverviewData\"])\n ])\n ])\n ]))\n}","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-af45a51c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"title\" }\nconst _hoisted_2 = [\"onClick\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"expand-icon\"\n}\nconst _hoisted_4 = {\n key: 1,\n class: \"expand-icon\"\n}\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\n return (_openBlock(), _createBlock(_component_a_table, {\n id: \"makeTable\",\n rowKey: (item, index) => index,\n dataSource: _ctx.dataSource,\n columns: _ctx.columns,\n pagination: false,\n scroll: {\n x: _ctx.colWidth,\n y: _ctx.colHeight,\n },\n rowClassName: _ctx.totalRowClass,\n bordered: \"\"\n }, _createSlots({\n title: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, _toDisplayString(_ctx.make), 1)\n ]),\n _: 2\n }, [\n _renderList(_ctx.columns, (col) => {\n return {\n name: col.slots.title,\n fn: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", null, _toDisplayString(col.cTitle), 1),\n (col.canExpand)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n onClick: ($event: any) => (_ctx.displayColumnsClick(col.cTitle))\n }, [\n (col.expandStatus)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \" -\"))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \" +\"))\n ], 8, _hoisted_2))\n : _createCommentVNode(\"\", true)\n ])\n ])\n }\n })\n ]), 1032, [\"rowKey\", \"dataSource\", \"columns\", \"scroll\", \"rowClassName\"]))\n}","\nimport {\n defineComponent,\n ref,\n createVNode,\n computed,\n toRefs,\n watch,\n nextTick,\n onMounted,\n} from 'vue';\nimport { useStore } from 'vuex';\nimport { useRouter } from 'vue-router';\nimport { ColumnsType } from '../types';\nimport downloadFile from '@/utils/claim/downloadFile';\n\nconst INDENT_ROW = [\n 'OASIS Approved',\n 'Pending Adj.',\n 't/o to-be released',\n 't/o closed',\n 't/o open',\n];\n\nexport default defineComponent({\n props: {\n trackingOverviewData: {\n type: Object,\n default: () => ({}),\n required: true,\n },\n },\n setup(props) {\n const router = useRouter();\n const store = useStore();\n const make = computed(\n () => store.state.salesReport.fcSearchParams.make\n );\n const startYear = computed(\n () => store.state.salesReport.fcSearchParams.startYear\n );\n const closeOrNot = computed(\n () => store.state.salesReport.fcSearchParams.closeOrNot\n );\n //* 表格第一列 固定行的行头渲染逻辑\n const renderRowName = ({ record }: any) => {\n const obj = {\n children: record.rowName,\n props: { class: 'weight-font' } as any,\n };\n if (record.rowName === 'Possible Release (Accrual vs. Payout BE)') {\n return createVNode('div', {}, [\n createVNode(\n 'div',\n { class: 'weight-font' },\n 'Possible Release'\n ),\n createVNode(\n 'div',\n { class: 'weight-font' },\n '(Accrual vs. Payout BE)'\n ),\n ]);\n }\n if (record.rowName === 't/o already released (-)') {\n return createVNode(\n 'p',\n {\n onClick: ($event: any) => {\n router.push({\n // path:\n // '/salesReporting/paymentTrackingReportReleaseInput',\n name: 'PaymentTrackingReportReleaseInput',\n });\n },\n class: 'indent',\n style: { color: '#00adef', cursor: 'pointer' },\n },\n `${record.rowName}`\n );\n }\n if (INDENT_ROW.includes(record.rowName)) {\n return createVNode(\n 'p',\n { class: 'indent' },\n `${record.rowName}`\n );\n }\n return obj;\n };\n\n // 表格列名\n const columnsAll = ref([]);\n\n // 假数据\n const dataSource = ref([]);\n const initFirstColumn: any[] = [\n { rowName: 'Program Accrual' },\n { rowName: 'Payout Best Estimation' },\n { rowName: 'OASIS Approved' },\n { rowName: 'Pending Adj.' },\n { rowName: 'Possible Release (Accrual vs. Payout BE)' },\n { rowName: 't/o already released (-)' },\n { rowName: 't/o to-be released' },\n { rowName: 'No. of Program' },\n { rowName: 't/o closed' },\n { rowName: 't/o open' },\n ];\n dataSource.value = initFirstColumn;\n const { trackingOverviewData } = toRefs(props);\n const { yearList, dataList, title } = toRefs(\n trackingOverviewData.value\n );\n\n const subColumns = {\n 'Direct Subsidy': 'directSubsidy',\n 'Payout to Dealer': 'payoutToDealer',\n 'Payout to dealer': 'payoutToDealer',\n PMT: 'pmt',\n };\n\n //* 动态生成表格数据\n const generateTableData = (title: string[], dataList: any) => {\n title.shift();\n const tableData = initFirstColumn.reduce(\n (all: any, ele: any, index: number) => {\n const data = dataList[index];\n let currentYear = '';\n const otherRowData = title.reduce(\n (row: any, til: any, ind: number) => {\n let columnName = '';\n if (til[0] === 'Y') {\n currentYear = til.substring(1);\n columnName = til.substring(1);\n } else {\n const prefix = subColumns[til];\n // .replaceAll(' ', '')\n // .toLowerCase();\n columnName = `${prefix}_${currentYear}`;\n }\n return { ...row, [columnName]: data[ind] };\n },\n {}\n );\n return [...all, { ...ele, ...otherRowData }];\n },\n []\n );\n dataSource.value = tableData;\n store.commit('salesReport/setPossibleReleaseRowData', tableData[4]);\n // console.log('tableData', tableData);\n };\n\n const distinctColor = (column: any, type: string) => {\n return { class: [type] };\n };\n\n //* 动态生成表列名\n const generateColumnsAll = (title: string[]) => {\n title.shift();\n const allColumns: ColumnsType[] = [];\n let currentColumn: ColumnsType;\n let currentYear = '';\n for (const til of title) {\n let columnName = '';\n if (til[0] === 'Y') {\n currentYear = til.substring(1);\n columnName = til.substring(1);\n currentColumn = {\n cTitle: columnName,\n display: true,\n parent: null,\n dataIndex: columnName,\n key: columnName,\n canExpand: true,\n expandStatus: false,\n slots: { title: columnName },\n customHeaderCell: (column: any) =>\n distinctColor(column, 'distinct-year'),\n };\n } else {\n const prefix = subColumns[til];\n columnName = `${prefix}_${currentYear}`;\n currentColumn = {\n cTitle: til,\n display: false,\n parent: currentYear,\n dataIndex: columnName,\n key: columnName,\n canExpand: false,\n slots: { title: columnName },\n customHeaderCell: (column: any) =>\n distinctColor(column, 'distinct-subCol'),\n };\n }\n allColumns.push(currentColumn);\n }\n columnsAll.value = allColumns;\n // console.log('allColumns', allColumns);\n };\n\n watch(trackingOverviewData, (newVal) => {\n // console.log('trackingOverviewData', newVal);\n generateTableData(\n JSON.parse(JSON.stringify(newVal.title)),\n newVal.dataList\n );\n generateColumnsAll(JSON.parse(JSON.stringify(newVal.title)));\n });\n const showDataSource = () => {\n console.log('dataSource', dataSource);\n console.log(\n 'yearList,dataList, title::',\n yearList.value,\n dataList.value,\n title.value\n );\n };\n\n const displayColumnsClick = (parentTitle: string) => {\n columnsAll.value.forEach((col: any) => {\n if (col.parent === parentTitle) {\n col.display = !col.display;\n }\n if (col.cTitle === parentTitle) {\n col.expandStatus = !col.expandStatus;\n }\n });\n };\n\n const columns = computed(() => {\n const cols = columnsAll.value.filter((col: any) => {\n return col.display;\n });\n cols.unshift({\n dataIndex: 'rowName',\n key: 'rowName',\n fixed: 'left',\n width: 200,\n slots: { title: 'rowName' },\n customRender: renderRowName,\n customHeaderCell: (column: any) =>\n distinctColor(column, 'distinct-year'),\n });\n return cols;\n });\n\n const colWidth = computed(() => {\n const defaultWidth = 150;\n const len = columnsAll.value.filter((col: any) => {\n return col.display;\n }).length;\n return defaultWidth * len + 200;\n });\n\n const exportExcel = () => {\n const downloadParams = {\n make: make.value,\n startYear: startYear.value,\n closeOrNot: closeOrNot.value,\n };\n const params = {\n url: `/rpapi/paymentTrackingFC/trackingOverview/export`,\n method: 'post',\n params: downloadParams,\n };\n downloadFile(params, 'application/vnd-excel; char-set=UTF-8');\n };\n\n const colHeight = ref(500);\n const calculateHeight = () => {\n const table = document.getElementById('makeTable');\n const clinetHeight = document.body.clientHeight;\n if (table) {\n const top = table.getBoundingClientRect().top;\n colHeight.value = clinetHeight - top - 115;\n }\n };\n\n const totalRowClass = (record: any) => {\n const weights = [\n 'Program Accrual',\n 'Payout Best Estimation',\n 'Possible Release (Accrual vs. Payout BE)',\n 't/o already released (-)',\n 't/o to-be released',\n 'No. of Program',\n ];\n if (weights.includes(record.rowName)) {\n return 'weight-font';\n }\n };\n\n nextTick(() => {\n calculateHeight();\n });\n\n onMounted(() => {\n window.addEventListener('resize', calculateHeight);\n });\n\n return {\n renderRowName,\n dataSource,\n columns,\n colWidth,\n displayColumnsClick,\n showDataSource,\n exportExcel,\n make,\n colHeight,\n totalRowClass,\n };\n },\n});\n","import { render } from \"./MakeTable.vue?vue&type=template&id=af45a51c&scoped=true&ts=true\"\nimport script from \"./MakeTable.vue?vue&type=script&lang=ts\"\nexport * from \"./MakeTable.vue?vue&type=script&lang=ts\"\n\nimport \"./MakeTable.vue?vue&type=style&index=0&id=af45a51c&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-af45a51c\"]])\n\nexport default __exports__","\nimport { defineComponent, ref } from 'vue';\nimport MakeTable from '../components/MakeTable.vue';\n\nexport default defineComponent({\n components: {\n MakeTable,\n },\n props: {\n trackingOverviewData: {\n type: Object,\n default: () => ({}),\n required: true,\n },\n },\n setup() {\n const makeTableEl = ref(null);\n const exportExcel = () => {\n (makeTableEl.value as any).exportExcel();\n };\n\n return { makeTableEl, exportExcel };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=a182cbd4&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=a182cbd4&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-a182cbd4\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-90e7c46e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"program-tracking-detail\" }\nconst _hoisted_2 = { class: \"function__content\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Year\", -1))\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\"Export\")\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\"Save\")\nconst _hoisted_7 = { class: \"tracking-detail\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"warning\" }, \"* Amount w/o VAT (RMB)\", -1))\nconst _hoisted_9 = { class: \"tracking-detail--content\" }\nconst _hoisted_10 = { class: \"content_body\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_checkbox_group = _resolveComponent(\"a-checkbox-group\")!\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n const _component_a_space = _resolveComponent(\"a-space\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_tracking_detail_table = _resolveComponent(\"tracking-detail-table\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_a_checkbox_group, {\n value: _ctx.checkedList,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.checkedList) = $event)),\n options: _ctx.checkOptions\n }, null, 8, [\"value\", \"options\"]),\n _createVNode(_component_a_space, {\n style: {\"margin-left\":\"10px\"},\n size: _ctx.spaceSize\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _createVNode(_component_a_date_picker, {\n \"allow-clear\": false,\n dropdownClassName: \"date-picker\",\n mode: \"year\",\n value: _ctx.selectYear,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.selectYear) = $event)),\n style: {\"width\":\"200px\"},\n placeholder: \"Please select\",\n format: \"YYYY\",\n open: _ctx.open,\n onPanelChange: _ctx.handleSelectYearPanelChange,\n onOpenChange: _ctx.handleSelectYearOpenChange\n }, null, 8, [\"value\", \"open\", \"onPanelChange\", \"onOpenChange\"])\n ]),\n _: 1\n }, 8, [\"size\"])\n ]),\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.search\n }, {\n default: _withCtx(() => [\n _hoisted_4\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, { onClick: _ctx.downloadClick }, {\n default: _withCtx(() => [\n _hoisted_5\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.save\n }, {\n default: _withCtx(() => [\n _hoisted_6\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_tracking_detail_table, {\n ref: \"trackingDetailTable\",\n trackingDetailData: _ctx.trackingDetailData,\n \"save-params\": _ctx.saveParams,\n onSaveSuccess: _ctx.search\n }, null, 8, [\"trackingDetailData\", \"save-params\", \"onSaveSuccess\"])\n ])\n ])\n ])\n ]))\n}","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-d6620bbe\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"sort-title\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"expand-icon\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"expand-icon\"\n}\nconst _hoisted_4 = [\"onClick\"]\nconst _hoisted_5 = [\"onClick\"]\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", null, \"t/o already release total amount is not equal to Release Input, do you want to SAVE any way?\", -1))\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\"OK\")\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(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_a_table, {\n id: \"trackingDetailTable\",\n rowKey: (item, index) => index,\n dataSource: _ctx.dataSource,\n columns: _ctx.columns,\n pagination: false,\n scroll: {\n x: _ctx.colWidth,\n y: _ctx.colHeight\n },\n bordered: \"\"\n }, _createSlots({ _: 2 }, [\n _renderList(_ctx.columns, (colFather) => {\n return {\n name: colFather.slots.title,\n fn: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", null, _toDisplayString(colFather.cTitle), 1),\n (colFather.canExpand)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.spreadPayoutBe && _ctx.spreadPayoutBe(...args)))\n }, [\n (colFather.expandStatus)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, \" -\"))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \" +\"))\n ]))\n : _createCommentVNode(\"\", true),\n (colFather.sortAble)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_ctx.sortColumnsFlag[colFather.key] === 'ascent')\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n id: \"triangle-up\",\n onClick: ($event: any) => (_ctx.sortData('descent', colFather.key))\n }, null, 8, _hoisted_4))\n : (_openBlock(), _createElementBlock(\"span\", {\n key: 1,\n id: \"triangle-down\",\n onClick: ($event: any) => (_ctx.sortData('ascent', colFather.key))\n }, null, 8, _hoisted_5))\n ], 64))\n : _createCommentVNode(\"\", true)\n ])\n ])\n }\n }),\n _renderList(_ctx.columnsSons, (colSon, index) => {\n return {\n name: colSon.slots.title,\n fn: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(colSon.total), 1)\n ])\n }\n })\n ]), 1032, [\"rowKey\", \"dataSource\", \"columns\", \"scroll\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.saveWarningModalVisible,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.saveWarningModalVisible) = $event)),\n title: \"Warning\"\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {\n default: _withCtx(() => [\n _hoisted_7\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.handleForceSave\n }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _hoisted_6\n ]),\n _: 1\n }, 8, [\"visible\"])\n ], 64))\n}","\nimport { defineComponent, ref, computed, createVNode, onMounted, toRefs, watch, nextTick } from 'vue';\nimport { useStore } from 'vuex';\n// import { fakeData } from '@/views/SalesReporting2/PaymentTrackingReport/components/mockData';\nimport AInput from 'ant-design-vue/lib/input';\nimport { getProgramTrackingDetailSave } from '@/API/salesReporting';\nimport { message, Modal } from 'ant-design-vue';\nimport Decimal from '@/utils/closing/decimal';\n\ninterface SlotsType {\n title: string;\n}\n\ninterface ChildrenType {\n dataIndex?: string;\n slots?: SlotsType;\n total?: number | string;\n width?: number;\n ellipsis?: boolean;\n customRender?: Function;\n customHeaderCell?: Function;\n}\n\ninterface ColumnsType {\n cTitle: string;\n key: string;\n dataIndex?: string;\n display: boolean;\n canExpand?: boolean;\n sortAble?: boolean;\n expandStatus?: boolean;\n slots: SlotsType;\n width?: number;\n children?: Array;\n customRender?: Function;\n customHeaderCell?: Function;\n}\n\n/**\n * 限制数字格式为负数\n */\nfunction constraintNegNumber(number: string, type = 'neg') {\n number = number.replace(/[^0-9\\\\-]/g, '');\n if (number === '-') {\n number = '';\n } else if (number !== '' && number !== '0') {\n if (number[0] !== '-' && type === 'neg') {\n number = `-${number}`;\n }\n }\n return number;\n}\n\nexport default defineComponent({\n props: {\n trackingDetailData: {\n type: Object,\n default: () => ({}),\n required: true\n },\n saveParams: {\n type: Object,\n default: () => ({}),\n required: true\n }\n },\n emits: ['save-success'],\n setup(props, { emit }) {\n const { trackingDetailData } = toRefs(props);\n const { dataList: dataSource, total: totalData } = toRefs(trackingDetailData.value);\n\n const renderInputCell = ({ record }: any, type: string) => {\n //* (New Add) 表示固定用于新增数据的行\n return createVNode(AInput, {\n value: record[type],\n class: ['narrow-row'],\n // type: 'number', //? 设置单元格只能输入数字\n onInput: ($event: any) => {\n // record[type] = parseFloat($event.target.value);\n if (type === 'toAlreadyReleasedDisplay') {\n const number = constraintNegNumber($event.target.value);\n record['toAlreadyReleased'] = number;\n record['toAlreadyReleasedDisplay'] = new Decimal(number).round(0);\n } else if (type === 'pendingAdjDisplay') {\n const number = constraintNegNumber($event.target.value, 'pos');\n record['pendingAdj'] = number;\n record['pendingAdjDisplay'] = new Decimal(number).round(0);\n }\n }\n });\n };\n\n const renderNo = ({ index }: any) => {\n const obj = {\n children: index + 1,\n props: {} as any\n };\n\n return obj;\n };\n\n const store = useStore();\n const fcSearchParams = computed(() => {\n return store.state.salesReport.fcSearchParams;\n });\n const make = computed(() => store.state.salesReport.fcSearchParams.make);\n const makeTotalStr = computed(() => {\n return `${make.value} Total`;\n });\n\n const distinctColor = (column: any, type: string) => {\n return { class: [type] };\n };\n const columnsAll = ref([\n {\n cTitle: 'No',\n key: 'No',\n dataIndex: 'No',\n display: true,\n slots: { title: 'No' },\n width: 50,\n customRender: renderNo,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue')\n },\n {\n cTitle: 'Program Code',\n key: 'programCode',\n display: true,\n slots: { title: 'programCode' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'programCode',\n slots: { title: 'programCodeTotal' },\n total: makeTotalStr.value,\n // total: 'Total',\n width: 200,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'Program Name',\n key: 'programName',\n display: true,\n slots: { title: 'programName' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'programName',\n slots: { title: 'programNameTotal' },\n width: 250,\n ellipsis: true,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'Program Category',\n key: 'programCategory',\n display: true,\n slots: { title: 'programCategory' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'programCategory',\n slots: { title: 'programCategoryTotal' },\n width: 200,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'Make',\n key: 'make',\n display: true,\n slots: { title: 'makeDisplay' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'makeDisplay',\n slots: { title: 'makeTotal' },\n width: 100,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'BU',\n key: 'bu',\n display: true,\n slots: { title: 'bu' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'bu',\n slots: { title: 'buTotal' },\n width: 115,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'Program Accrual',\n key: 'programAccrual',\n display: true,\n slots: { title: 'programAccrual' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'programAccrual',\n slots: { title: 'programAccrualTotal' },\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'Payout BE',\n key: 'payoutBe',\n display: true,\n canExpand: true,\n expandStatus: false,\n slots: { title: 'payoutBe' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'payoutBE',\n slots: { title: 'payoutBeTotal' },\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'OASIS Approved',\n key: 'oasisapproved',\n display: false,\n sortAble: true,\n slots: { title: 'oasisapproved' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-gray'),\n children: [\n {\n dataIndex: 'oasisapprovedDisplay',\n slots: { title: 'approvedTotal' },\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-gray')\n }\n ]\n },\n {\n cTitle: 'Pending Adj.',\n key: 'pendingAdj',\n display: false,\n sortAble: true,\n slots: { title: 'pendingAdj' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-gray'),\n children: [\n {\n dataIndex: 'pendingAdjDisplay',\n slots: { title: 'pendingAdjTotal' },\n customRender: (rowobj: any) => renderInputCell(rowobj, 'pendingAdjDisplay'),\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-gray')\n }\n ]\n },\n {\n cTitle: 't/o pending on checking',\n key: 'pendingOnChecking',\n display: false,\n slots: { title: 'pendingOnChecking' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-gray'),\n children: [\n {\n dataIndex: 'pendingOnCheckingDisplay',\n slots: { title: 'checkingTotal' },\n total: 0,\n width: 200,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-gray')\n }\n ]\n },\n {\n cTitle: 't/o pending on approval ',\n key: 'pendingOnApproval',\n display: false,\n slots: { title: 'pendingOnApproval' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-gray'),\n children: [\n {\n dataIndex: 'pendingOnApprovalDisplay',\n slots: { title: 'approvalTotal' },\n total: 0,\n width: 200,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-gray')\n }\n ]\n },\n\n {\n cTitle: 'Close or not',\n key: 'closeOrNot',\n display: true,\n slots: { title: 'closeOrNot' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'closeOrNot',\n slots: { title: 'closeOrNotTotal' },\n // total: 0,\n width: 100,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 'Possible Release',\n key: 'possibleRelease',\n display: true,\n sortAble: true,\n slots: { title: 'possibleRelease' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'possibleReleaseDisplay',\n slots: { title: 'possibleReleaseTotal' },\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 't/o already released',\n key: 'alreadyReleased',\n display: true,\n slots: { title: 'alreadyReleased' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'toAlreadyReleasedDisplay',\n // dataIndex: 'toAlreadyReleased',\n slots: { title: 'alreadyReleasedTotal' },\n customRender: (rowobj: any) => renderInputCell(rowobj, 'toAlreadyReleasedDisplay'),\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n },\n {\n cTitle: 't/o to-be released',\n key: 'toBeReleased',\n display: true,\n sortAble: true,\n slots: { title: 'toBeReleased' },\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-first-blue'),\n children: [\n {\n dataIndex: 'toBeReleasedDisplay',\n slots: { title: 'toBeReleasedTotal' },\n total: 0,\n width: 150,\n customHeaderCell: (column: any) => distinctColor(column, 'distinct-second-blue')\n }\n ]\n }\n ]);\n\n const spreadPayoutBe = () => {\n //* 点击加减号展开收起payoutbe\n const payoutBe = columnsAll.value[7];\n payoutBe.expandStatus = !payoutBe.expandStatus;\n const childrenOfPayoutBeIndex = [8, 9, 10, 11];\n childrenOfPayoutBeIndex.forEach((index: number) => {\n columnsAll.value[index].display = !columnsAll.value[index].display;\n });\n };\n\n const columns = computed(() => {\n const cols = columnsAll.value.filter((col: any) => {\n return col.display;\n });\n return cols;\n });\n // const columns = ref([]);\n // watch(\n // columnsAll,\n // (newVal: any) => {\n // console.log(newVal);\n // columns.value = newVal.filter((col: any) => {\n // return col.display;\n // });\n // },\n // {\n // deep: true,\n // immediate: true,\n // }\n // );\n\n //* 动态计算 表头第二行 用于设置插槽 来绑定total数据\n const columnsSons = computed(() => {\n const sonList = columns.value.reduce((sons: any, father: any) => {\n if ('children' in father) {\n return [...sons, ...father.children];\n }\n return [...sons];\n }, []);\n return sonList;\n });\n\n //* 计算表格宽度\n const colWidth = computed(() => {\n const width = columns.value\n .filter((col: any) => {\n return col.display;\n })\n .reduce((wid: number, col: any) => {\n if ('children' in col) {\n return wid + col.children[0].width;\n } else {\n return col.width;\n }\n }, 0);\n return width;\n });\n\n const showData = () => {\n // console.log(dataSource.value);\n console.log('ddddddd', trackingDetailData, dataSource, totalData);\n };\n\n //? 计算 Program Accrual total\n const sumColumn = (total: number, value: number) => {\n return total + value;\n };\n\n const countColumn = (total: number, type: string) => {\n return type === 'N' ? total + 1 : total;\n };\n\n const calculateTotals = () => {\n const calulateConfig = [\n {\n index: 6,\n colName: 'programAccrual',\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 7,\n colName: 'payoutBE',\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 8,\n colName: 'oasisapproved',\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 9,\n colName: 'pendingAdj',\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 10,\n colName: 'pendingOnChecking', // TODO 需要数字版的\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 11,\n colName: 'pendingOnApproval', // TODO 需要数字版的\n total: 0,\n calculateType: 'sum'\n },\n\n // {\n // index: 12,\n // colName: 'closeOrNot',\n // total: 0,\n // calculateType: 'count'\n // },\n {\n index: 13,\n colName: 'possibleRelease',\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 14,\n colName: 'toAlreadyReleased',\n total: 0,\n calculateType: 'sum'\n },\n {\n index: 15,\n colName: 'toBeReleased',\n total: 0,\n calculateType: 'sum'\n }\n ];\n for (const row of dataSource.value) {\n for (const config of calulateConfig) {\n console.log(row[config.colName]);\n if (config.calculateType === 'count') {\n config.total = countColumn(config.total, row[config.colName]);\n } else {\n let num = parseFloat(row[config.colName].toString().replace(/,/g, ''));\n if (isNaN(num)) {\n num = 0;\n }\n config.total = sumColumn(config.total, num);\n }\n }\n }\n calulateConfig.map((config: { index: number; colName: string; total: number }) => {\n if (columnsAll.value[config.index as number].children !== undefined) {\n (columnsAll.value[config.index].children as ChildrenType)[0].total = new Decimal(config.total).round(0);\n }\n });\n };\n\n watch(\n dataSource,\n (newVal: any) => {\n if (columnsAll.value && columnsAll.value[1].children) {\n columnsAll.value[1].children[0].total = makeTotalStr.value;\n }\n calculateTotals();\n },\n {\n deep: true\n }\n );\n\n // const search = () => {\n // calculateTotals();\n // };\n const saveWarningModalVisible = ref(false);\n const save = (flag = true) => {\n const paymentTrackingFCReqVO = (props as any).saveParams;\n const reportProgramTrackingDetailRespVOList = dataSource.value;\n const params = {\n flag, // true:需要校验; false:强制保存\n paymentTrackingFCReqVO,\n reportProgramTrackingDetailRespVOList\n };\n getProgramTrackingDetailSave(params).then((res: any) => {\n if (res.code === '50090') {\n message.error(res.message);\n } else if (res.code === '50091') {\n // message.error(res.message);\n saveWarningModalVisible.value = true;\n } else if (res.code === '0') {\n emit('save-success');\n message.success('Save successfully!');\n }\n });\n };\n\n const handleForceSave = () => {\n save(false);\n saveWarningModalVisible.value = false;\n };\n\n const handleCancel = () => {\n saveWarningModalVisible.value = false;\n };\n\n // 需要排序的四列 列属性里的key, 这里的key也对应了需要排列的四列 对应在返回数据中的数值型的字段\n const sortColumnsFlag = {\n oasisapproved: 'descent',\n pendingAdj: 'descent',\n possibleRelease: 'descent',\n toBeReleased: 'descent'\n };\n\n const sortFun = {\n // 降序排列\n descent: (prop: string) => {\n return (a: any, b: any) => {\n return b[prop] - a[prop];\n };\n },\n // 升序排列\n ascent: (prop: string) => {\n return (a: any, b: any) => {\n return a[prop] - b[prop];\n };\n }\n };\n\n const sortData = (type: string, columnKey: string) => {\n if (dataSource.value.length === 0) return;\n sortColumnsFlag[columnKey] = type;\n const data = JSON.parse(JSON.stringify(dataSource.value));\n data.sort(sortFun[type](columnKey));\n dataSource.value = data;\n };\n\n // onMounted(() => {\n // search();\n // });\n const colHeight = ref(500);\n const calculateHeight = () => {\n const table = document.getElementById('trackingDetailTable');\n const clinetHeight = document.body.clientHeight;\n if (table) {\n const top = table.getBoundingClientRect().top;\n colHeight.value = clinetHeight - top - 100;\n }\n };\n\n nextTick(() => {\n calculateHeight();\n });\n\n onMounted(() => {\n window.addEventListener('resize', calculateHeight);\n });\n\n return {\n showData,\n dataSource,\n columns,\n columnsSons,\n colWidth,\n spreadPayoutBe,\n save,\n sortData,\n sortColumnsFlag,\n colHeight,\n saveWarningModalVisible,\n handleForceSave,\n handleCancel\n };\n }\n});\n","import { render } from \"./TrackingDetailTable.vue?vue&type=template&id=d6620bbe&scoped=true&ts=true\"\nimport script from \"./TrackingDetailTable.vue?vue&type=script&lang=ts\"\nexport * from \"./TrackingDetailTable.vue?vue&type=script&lang=ts\"\n\nimport \"./TrackingDetailTable.vue?vue&type=style&index=0&id=d6620bbe&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-d6620bbe\"]])\n\nexport default __exports__","\nimport {\n defineComponent,\n ref,\n computed,\n onMounted,\n watch,\n nextTick,\n} from \"vue\";\nimport { useStore } from \"vuex\";\nimport moment, { Moment } from \"moment\";\nimport TrackingDetailTable from \"../components/TrackingDetailTable.vue\";\nimport { getProgramTrackingDetailList } from \"@/API/salesReporting\";\nimport downloadFile from \"@/utils/claim/downloadFile\";\n\nconst INIT_YEAR = \"2022\";\n\nexport default defineComponent({\n components: {\n TrackingDetailTable,\n },\n setup() {\n const store = useStore();\n const fcSearchParams = computed(() => {\n return store.state.salesReport.fcSearchParams;\n });\n const spaceSize = 6;\n const checkedList = ref([\"1\", \"2\", \"3\"]);\n const checkOptions = [\n { label: \"Direct Subsidy\", value: \"1\" },\n { label: \"Payout to dealer\", value: \"2\" },\n { label: \"PMT\", value: \"3\" },\n ];\n const selectYear = ref(INIT_YEAR);\n const trackingDetailData = ref({ dataList: [], total: [] });\n const saveParams = ref();\n const search = () => {\n const params = {\n make: fcSearchParams.value.make,\n closeOrNot: fcSearchParams.value.closeOrNot,\n startYear: fcSearchParams.value.startYear,\n typeList: checkedList.value,\n selectYear: selectYear.value,\n };\n saveParams.value = {\n make: fcSearchParams.value.make,\n closeOrNot: fcSearchParams.value.closeOrNot,\n startYear: fcSearchParams.value.startYear,\n yearList: fcSearchParams.value.yearList,\n typeList: checkedList.value,\n selectYear: selectYear.value,\n };\n getProgramTrackingDetailList(params).then((res: any) => {\n trackingDetailData.value.dataList = res.dataList;\n trackingDetailData.value.total = res.total;\n });\n };\n const downloadClick = () => {\n const downloadParams = {\n make: fcSearchParams.value.make,\n closeOrNot: fcSearchParams.value.closeOrNot,\n startYear: fcSearchParams.value.startYear,\n yearList: fcSearchParams.value.yearList,\n typeList: checkedList.value,\n selectYear: selectYear.value,\n };\n const params = {\n url: `/rpapi/paymentTrackingFC/programTrackingDetail/export`,\n method: \"post\",\n params: downloadParams,\n };\n downloadFile(params, \"application/vnd-excel; char-set=UTF-8\");\n };\n\n const trackingDetailTable = ref(null);\n const save = () => {\n (trackingDetailTable.value as any).save();\n };\n\n const open = ref(false);\n const initYear = INIT_YEAR;\n const handleSelectYearPanelChange = (val: Moment) => {\n const selected = val.format(\"YYYY\");\n // if (selected >= initYear) {\n // selectYear.value = selected;\n // open.value = false;\n // }\n selectYear.value = selected;\n open.value = false;\n };\n const dateList = ref([]);\n watch(\n dateList,\n (newVal) => {\n newVal.forEach((element: any) => {\n if (element.innerText < initYear) {\n element.classList.add(\"disabled-years\");\n }\n });\n },\n { deep: true }\n );\n const disabledYears = () => {\n nextTick(() => {\n const dateDom = document.querySelector(\n \".ant-calendar-year-panel-decade-select\"\n );\n dateList.value = Array.from(\n document.getElementsByClassName(\"ant-calendar-year-panel-year\")\n );\n (dateDom as HTMLElement).addEventListener(\n \"DOMCharacterDataModified\",\n () => {\n nextTick(() => {\n dateList.value = Array.from(\n document.getElementsByClassName(\"ant-calendar-year-panel-year\")\n );\n });\n }\n );\n });\n };\n const handleSelectYearOpenChange = (status: boolean) => {\n open.value = status;\n // disabledYears();\n };\n\n onMounted(() => {\n search();\n });\n\n return {\n spaceSize,\n checkedList,\n checkOptions,\n search,\n trackingDetailData,\n downloadClick,\n trackingDetailTable,\n save,\n saveParams,\n selectYear,\n open,\n handleSelectYearPanelChange,\n handleSelectYearOpenChange,\n disabledYears,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=90e7c46e&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=90e7c46e&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-90e7c46e\"]])\n\nexport default __exports__","\nimport { defineComponent, ref, provide, watch, nextTick, onMounted } from \"vue\";\nimport moment, { Moment } from \"moment\";\nimport TrackingOverview from \"./TrackingOverview/index.vue\";\nimport ProgramTrackingDetail from \"./ProgramTrackingDetail/index.vue\";\nimport { getCheckingOverviewList } from \"@/API/salesReporting\";\nimport { useStore } from \"vuex\";\n\nconst INIT_YEAR = \"2022\";\n\nexport default defineComponent({\n components: {\n TrackingOverview,\n ProgramTrackingDetail,\n },\n setup() {\n const spaceSize = 6;\n const activeKey = ref(\"1\");\n\n // make\n const make = ref(\"CBU\");\n const makeList = ref([\"CBU\", \"PBP\", \"VAN\"]);\n\n // start year\n const startYear = ref(INIT_YEAR); //TODO 最早年份\n // close or not\n const closeOrNot = ref(\"2\");\n const closeOrNotList = ref([\n {\n id: \"0\",\n name: \"Y\",\n },\n {\n id: \"1\",\n name: \"N\",\n },\n {\n id: \"2\",\n name: \"All\",\n },\n ]);\n\n const reset = () => {\n startYear.value = INIT_YEAR;\n closeOrNot.value = \"2\";\n make.value = \"CBU\";\n };\n\n const yearList = ref([]);\n // provide('make', make);\n // provide('startYear', startYear);\n // provide('closeOrNot', closeOrNot);\n const store = useStore();\n watch(\n [make, startYear, closeOrNot, yearList],\n ([newMake, newStartYear, newcloseOrNot, newYearList]) => {\n store.commit(\"salesReport/setFCSearchParams\", {\n make: newMake,\n startYear: newStartYear,\n closeOrNot: newcloseOrNot,\n yearList: newYearList,\n });\n },\n {\n immediate: true,\n }\n );\n\n const trackingOverviewData = ref([]);\n const search = () => {\n const params = {\n // make: 'CBU',\n // startYear: '2014',\n // closeOrNot: '2',\n make: make.value,\n startYear: startYear.value,\n closeOrNot: closeOrNot.value,\n };\n getCheckingOverviewList(params).then((res: any) => {\n trackingOverviewData.value = res;\n yearList.value = res.yearList;\n });\n };\n\n // const downloadClick = () => {\n // const downloadParams = {\n // make: make.value,\n // startYear: startYear.value,\n // closeOrNot: closeOrNot.value,\n // };\n // const params = {\n // url: `/rpapi/paymentTrackingFC/trackingOverview/export`,\n // method: 'post',\n // params: downloadParams,\n // };\n // downloadFile(params, 'application/vnd-excel; char-set=UTF-8');\n // };\n\n const open = ref(false);\n const initYear = INIT_YEAR;\n const handleStartYearPanelChange = (val: Moment) => {\n const selectedYear = val.format(\"YYYY\");\n // if (selectedYear >= initYear) {\n // startYear.value = selectedYear;\n // open.value = false;\n // }\n startYear.value = selectedYear;\n open.value = false;\n };\n const dateList = ref([]);\n watch(\n dateList,\n (newVal) => {\n newVal.forEach((element: any) => {\n if (element.innerText < initYear) {\n element.classList.add(\"disabled-years\");\n }\n });\n },\n { deep: true }\n );\n const disabledYears = () => {\n nextTick(() => {\n const dateDom = document.querySelector(\n \".ant-calendar-year-panel-decade-select\"\n );\n dateList.value = Array.from(\n document.getElementsByClassName(\"ant-calendar-year-panel-year\")\n );\n (dateDom as HTMLElement).addEventListener(\n \"DOMCharacterDataModified\",\n () => {\n nextTick(() => {\n dateList.value = Array.from(\n document.getElementsByClassName(\"ant-calendar-year-panel-year\")\n );\n });\n }\n );\n });\n };\n const handleStartYearOpenChange = (status: boolean) => {\n open.value = status;\n // disabledYears();\n };\n\n onMounted(() => {\n search();\n });\n\n return {\n activeKey,\n spaceSize,\n make,\n makeList,\n startYear,\n closeOrNot,\n closeOrNotList,\n search,\n trackingOverviewData,\n open,\n handleStartYearPanelChange,\n handleStartYearOpenChange,\n reset,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=32029a8d&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=32029a8d&lang=scss\"\nimport \"./index.vue?vue&type=style&index=1&id=32029a8d&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-32029a8d\"]])\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!./index.vue?vue&type=style&index=0&id=a182cbd4&lang=scss&scoped=true\"","/*\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","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!./TrackingDetailTable.vue?vue&type=style&index=0&id=d6620bbe&lang=scss&scoped=true\""],"sourceRoot":""}