{"version":3,"sources":["webpack:///./src/views/SalesReporting/PaymentTrackingReport/index.vue?475e","webpack:///./src/API/salesReporting/claimCheckingReport.ts","webpack:///./src/views/SalesReporting/components/downloadModal.vue?7166","webpack:///./src/views/SalesReporting/PaymentTrackingReport/index.vue?0c3e","webpack:///./src/views/SalesReporting/PaymentTrackingReport/index.vue","webpack:///./src/views/SalesReporting/PaymentTrackingReport/index.vue?0410","webpack:///./src/assets/images/claim/rect.png","webpack:///./src/utils/claim/downloadFile.ts","webpack:///./src/views/SalesReporting/type.ts","webpack:///./src/views/SalesReporting/components/downloadModal.vue?abd1","webpack:///./src/views/SalesReporting/components/downloadModal.vue","webpack:///./src/views/SalesReporting/components/downloadModal.vue?0c3e"],"names":["getModelYear","getAllParentBu","getCurretParentBu","getRegionLst","params","bu","getRegion","buId","regionId","getRegionList","buIdList","getRegionDealerGroup","getBuSubregion","getDealerList","getProgramList","getComDealerList","getComProgramList","getDemoDealerList","getDemoProgramList","getCesarAnalyst","getCesarBased","getPayoutBreakdown","getPayoutBreakdown2","getCheckingRoundList","getTypeClass","getDealerGroup","planActualRoundPage","planActualCategory","getPaymentTrackingReportTable","_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","style","src","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","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_tree_select","_component_a_button","_component_a_table","_component_DM","dataSource","size","spaceSize","direction","default","value","$event","placeholder","allowClear","onChange","handleBuChange","buList","key","id","nameEn","_","mode","valueFormat","format","year","open","openProgramPeriodYear","onOpenChange","handlerOpenProgramPeriodChange","onPanelChange","handlerPanelProgramPeriodChange","disabled","quarter","qmOptions","SHOW_PARENT","maxTagCount","onClick","reset","getTableData","type","$btnPermissions","download","pagination","columns","columns1","dataSource1","bordered","columns2","dataSource2","showHeader","totalSource","language","onDownloadAction","handleOk","downloadVisible","downloadTypeVisible","onCloseAction","downloadTableData","components","DM","setup","tableHeight","window","innerHeight","downloadType","searchData","undefined","newVal","status","time","resetBu","store","state","user","filter","parentId","getParams","isDownload","month","monthList","qm","console","log","forEach","push","Object","assign","fileNameList","then","res","noDemoCarList2","demoCarList2","pop","title","dataIndex","width","children","noDemoCarList1","demoCarList1","message","error","data","length","sign","array","downloadParams","url","method","downloadFile","dogetDefault","mbIndex","findIndex","i","initIndex","file","__exports__","module","exports","options","fileName","config","responseType","Promise","resolve","reject","blob","Blob","downloadElement","document","createElement","href","URL","createObjectURL","str","headers","index","lastIndexOf","substring","decodeURIComponent","Date","now","toString","body","appendChild","click","removeChild","revokeObjectURL","catch","qOptions","_component_a_modal","visible","onCancel","closeDownload","footer","cancelButton","downloadClick","confirmButton","downloadRowSelection","downloadColumnsData","rowKey","emit","props","required","Boolean","String","Array","selectedRowKeys","selectedRows","selectedRowData","warning"],"mappings":"yIAAA,W,oCCAA,g0BAYaA,EAAe,WAC1B,OAAO,eAAS,qDAYLC,EAAiB,WAC5B,OAAO,eAAS,8BAGLC,EAAoB,WAC/B,OAAO,eAAS,qCAGLC,EAAe,SAACC,GAC3B,YAD2B,IAAAA,MAAA,CAAWC,GAAI,KACnC,eAAU,mCAAmCD,EAAOC,GAAMD,IAGtDE,EAAY,SAACF,GACxB,OAAO,eACL,8CACEA,EAAOG,KAAOH,EAAOG,KAAO,IAAE,cACnBH,EAAOI,SAAWJ,EAAOI,SAAW,IACjDJ,IAGSK,EAAgB,SAC3BC,EACAF,GAEA,OAAO,eACL,0DACA,GACA,CACEJ,OAAQ,CACNM,SAAQ,EACRF,SAAQ,MAKHG,EAAuB,SAACP,GACnC,OAAO,eAAU,qCAAsCA,IAG5CQ,EAAiB,SAACR,GAC7B,OAAO,eACL,gDACEA,EAAOG,KAAOH,EAAOG,KAAO,IAE9BH,IAISS,EAAgB,SAACT,GAC5B,OAAO,eACL,kFACAA,I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BAAiB,eACxBC,MAAO,CACH3G,gBAAgB,CACZ4G,UAAU,EACV3H,KAAK4H,SAEThH,SAAS,CACL+G,UAAU,EACV3H,KAAK6H,OACL3J,QAAQ,MAEZgD,kBAAmB,CACflB,KAAM8H,MACNH,UAAU,EACVzJ,QAAO,WACH,MAAO,MAIrBmD,MAAA,SAAMqG,EAAM,G,IAACD,EAAI,OAEPN,EAA0C,MAA1BO,EAAc9G,SAAiB,SAAS,KACxDyG,EAA2C,MAA1BK,EAAc9G,SAAiB,WAAW,KAE3D2G,EAAsB,iBAAW,IAER,MAA1BG,EAAc9G,SACjB2G,EAAoBpJ,MAAQ,CAAC,CACzBmF,MAAO,OACPC,UAAW,OACX7E,IAAK,SAGP6I,EAAoBpJ,MAAQ,CAAW,CACrCmF,MAAO,KACPC,UAAW,OACX7E,IAAK,SAKb,IAAM4I,EAAuB,sBAI1B,CACC/I,SAAU,SAACwJ,EAAwBC,GAC/BV,EAAqBS,gBAAkBA,EACvCT,EAAqBW,gBAAkBD,GAE3CC,gBAAiB,GACjBF,gBAAiB,KAGfd,EAAe,WACjBK,EAAqBS,gBAAkB,GACvCT,EAAqBW,gBAAkB,GAEvCR,EAAK,iBAEHL,EAAe,WACkC,GAA/CE,EAAqBW,gBAAgBlE,QASzC0D,EAAK,kBAAkBH,EAAqBW,iBAC5CX,EAAqBS,gBAAkB,GACvCT,EAAqBW,gBAAkB,IAVJ,MAA1BP,EAAc9G,SACfgD,EAAA,KAAQsE,QAAQ,4BAEhBtE,EAAA,KAAQsE,QAAQ,WAW5B,MAAO,CACHd,cAAa,EACbH,cAAa,EAACE,aAAY,EAACE,cAAa,EAACE,oBAAmB,EAACD,qBAAoB,M,iCC5EzF,MAAM1C,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS9H,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-01171bf1.32258ff3.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=240002b2&lang=scss&scoped=true\"","import { fetchPost, fetchGet, fetchPostPic } from \"../index\";\nimport axios from \"axios\";\nimport { TypeClassItem } from \"@/views/Approve/SalesRoleApprove/ProgramHome/types\";\n\n// 查询table数据接口\nexport const getQueryList = (params = {}): Promise => {\n return fetchPost(\n \"/claimapi/salesIncentiveClaim/claimApplicationList\",\n params\n );\n};\n// 获取ModelYear列表数据\nexport const getModelYear = (): Promise => {\n return fetchGet(\"/vapi/noAuth/get_property_lov?property=modelYear\");\n};\n/*// 获取checking round列表数据\nexport const getCheckingRoundList = (): Promise => {\n return fetchGet('/claimapi/checking/plan/checking/round/dropList');\n};*/\n// 获取bu下拉框数据\nexport const getBuList = (): Promise => {\n // return fetchGet('/claimapi/doc/dic/getBuList')\n return fetchGet(\"/mdapi/bu\");\n};\n//获取所有一级BU\nexport const getAllParentBu = (): Promise => {\n return fetchGet(\"/usapi/noAuth/bu/parentBu\");\n};\n//获取正确一级Bu\nexport const getCurretParentBu = () : Promise => {\n return fetchGet(\"/usapi/noAuth/bu/currentParentBu\")\n}\n//生成region列表\nexport const getRegionLst = (params = { bu: \"\" }): Promise => {\n return fetchPost(`/claimapi/common/regionQuery?bu=${params.bu}`, params);\n};\n//生成region,subregion列表\nexport const getRegion = (params: any): Promise => {\n return fetchPost(\n `/claimapi/common/regionRelationQuery?buId=${\n params.buId ? params.buId : \"\"\n }®ionId=${params.regionId ? params.regionId : \"\"}`,\n params\n );\n};\nexport const getRegionList = (\n buIdList: number[],\n regionId?: number\n): Promise => {\n return fetchPost(\n \"/claimapi/common/getRegionRelationByBuIdListAndRegionId\",\n {},\n {\n params: {\n buIdList,\n regionId,\n },\n }\n );\n};\nexport const getRegionDealerGroup = (params: any): Promise => {\n return fetchPost(`/rvapi/basic/webApi/report/regions`, params);\n};\n//通过bu获取subregion列表\nexport const getBuSubregion = (params: any): Promise => {\n return fetchPost(\n `/claimapi/common/retrieveSubRegionList?buId=${\n params.buId ? params.buId : \"\"\n }`,\n params\n );\n};\n// 查询Dealer table数据接口\nexport const getDealerList = (params: any): Promise => {\n return fetchPost(\n `/claimapi/dealer/communication/analysis/claim/checking/report/dealer/based/page`,\n params\n );\n};\n// 查询Program table数据接口\nexport const getProgramList = (params: any): Promise => {\n return fetchPost(\n `/claimapi/dealer/communication/analysis/claim/checking/report/program/based/page`,\n params\n );\n};\nexport const getComDealerList = (params: any): Promise => {\n return fetchPost(\n // `/claimapi/dealer/communication/analysis/dealer/based/page`,\n `/rpapi/dealer/communication/analysis/dealer/based/page`,\n params\n );\n};\n// 查询Program table数据接口\nexport const getComProgramList = (params: any): Promise => {\n return fetchPost(\n // `/claimapi/dealer/communication/analysis/program/based/page`,\n `/rpapi/dealer/communication/analysis/program/based/page`,\n params\n );\n};\nexport const getDemoDealerList = (params: any): Promise => {\n return fetchPost(`/rpapi/demo/car/report/dealer/based/page`, params);\n};\n// 查询Program table数据接口\nexport const getDemoProgramList = (params: any): Promise => {\n return fetchPost(`/rpapi/demo/car/report/program/based/page`, params);\n};\nexport const getCesarAnalyst = (params: any): Promise => {\n return fetchGet(\"/rvapi/report/cesar/query/avgAnaly\", { params });\n};\nexport const getCesarBased = (params: any): Promise => {\n return fetchGet(\"/rvapi/report/cesar/query/weekBase\", { params });\n};\n// 查询payout breakdown\nexport const getPayoutBreakdown = (params: any): Promise => {\n return fetchPost(\"/claimapi/payoutBreakdown/search\", params);\n};\nexport const getPayoutBreakdown2 = (params: any): Promise => {\n return fetchPost(\n \"/claimapi/payoutBreakdown/searchClaimCheckingOverview\",\n params\n );\n};\n//根据bu,查checkinground, 11661\nexport const getCheckingRoundList = (params: any): Promise => {\n return fetchGet(\"/claimapi/checking/program/checkingRoundList\", { params });\n};\n//获取TypeClass\nexport const getTypeClass = (): Promise => {\n return fetchGet(\"/vapi/noAuth/get_property_lov?property=typeClass\");\n};\n//获取DealerGroup\nexport const getDealerGroup = (): Promise => {\n return fetchGet(\"/dapi/noAuth/dealer/dealerGroupList\");\n};\n\n// 获取Checking PL&AC列表Checking Round View维度 size=-1获取所有 正常写获取分页\nexport const planActualRoundPage = (params: any): Promise => {\n return fetchPost(\n \"/claimapi/checking/plan/actual/checking/round/page\",\n params\n );\n};\n\n// 导出数据tabName=\nexport const planActualExport = (params: any): Promise => {\n return fetchPost(\n \"/claimapi/checking/plan/actual/claim/checking/report/export\",\n params\n );\n};\n\n// 获取Checking PL&AC列表Checking Round by Program Cagegory\nexport const planActualCategory = (params: any): Promise => {\n return fetchPost(\n \"/claimapi/checking/plan/actual/program/cagegory/page\",\n params\n );\n};\n\n// 1-6 Payment Tracking Report查询表格\nexport const getPaymentTrackingReportTable = (params = {}): Promise => {\n return fetchPost(\n // '/ptapi/paymentTracking/report/paymentTrackingList',\n \"/rpapi/paymentTracking/report/paymentTrackingList\",\n params\n );\n};\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../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!./downloadModal.vue?vue&type=style&index=0&id=f3e95be6&scoped=true&lang=css\"","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-240002b2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"payment-tracking-report\" }\nconst _hoisted_2 = { class: \"payment-tracking-report-content\" }\nconst _hoisted_3 = /*#__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\")\n], -1))\nconst _hoisted_4 = { class: \"search-condition\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"BU\", -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Payout Period (Year)\", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Payout Period (Q/M)\", -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \" \", -1))\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_10 = { style: {\"display\":\"flex\",\"flex-direction\":\"row-reverse\",\"margin-top\":\"5px\"} }\nconst _hoisted_11 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_12 = /*#__PURE__*/_createTextVNode(\"Download\")\nconst _hoisted_13 = { class: \"payment-tracking-report-table\" }\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_tree_select = _resolveComponent(\"a-tree-select\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_DM = _resolveComponent(\"DM\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_Breadcrumb, { dataSource: [] }),\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_a_space, {\n class: \"interval\",\n size: _ctx.spaceSize,\n direction: \"vertical\"\n }, {\n default: _withCtx(() => [\n _hoisted_5,\n _createVNode(_component_a_select, {\n value: _ctx.bu,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.bu) = $event)),\n placeholder: \"Please select\",\n allowClear: false,\n style: {\"width\":\"220px\"},\n onChange: _ctx.handleBuChange\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buList, (bu) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: bu.id,\n value: bu.nameEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(bu.nameEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\", \"onChange\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n class: \"interval\",\n size: _ctx.spaceSize,\n direction: \"vertical\"\n }, {\n default: _withCtx(() => [\n _hoisted_6,\n _createVNode(_component_a_date_picker, {\n style: {\"width\":\"220px\"},\n mode: \"year\",\n valueFormat: \"YYYY\",\n format: \"YYYY\",\n value: _ctx.year,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.year) = $event)),\n placeholder: \"Please select\",\n open: _ctx.openProgramPeriodYear,\n onOpenChange: _ctx.handlerOpenProgramPeriodChange,\n onPanelChange: _ctx.handlerPanelProgramPeriodChange\n }, null, 8, [\"value\", \"open\", \"onOpenChange\", \"onPanelChange\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n class: \"interval\",\n size: _ctx.spaceSize,\n direction: \"vertical\"\n }, {\n default: _withCtx(() => [\n _hoisted_7,\n _createVNode(_component_a_tree_select, {\n disabled: !_ctx.year,\n value: _ctx.quarter,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.quarter) = $event)),\n style: {\"width\":\"220px\"},\n \"tree-data\": _ctx.qmOptions,\n \"allow-clear\": \"\",\n \"show-checked-strategy\": _ctx.SHOW_PARENT,\n placeholder: \"Please select\",\n \"tree-checkable\": \"\",\n maxTagCount: 2\n }, null, 8, [\"disabled\", \"value\", \"tree-data\", \"show-checked-strategy\"])\n ]),\n _: 1\n }, 8, [\"size\"]),\n _createVNode(_component_a_space, {\n class: \"interval\",\n size: _ctx.spaceSize,\n direction: \"vertical\"\n }, {\n default: _withCtx(() => [\n _hoisted_8,\n _createVNode(_component_a_button, { onClick: _ctx.reset }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n }, 8, [\"size\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_a_space, {\n style: {\"margin-right\":\"10px\"},\n class: \"interval\",\n size: 5,\n direction: \"vertical\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, {\n onClick: _ctx.getTableData,\n type: \"primary\"\n }, {\n default: _withCtx(() => [\n _hoisted_11\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n }),\n (_ctx.$btnPermissions('PT0001'))\n ? (_openBlock(), _createBlock(_component_a_space, {\n key: 0,\n style: {\"margin-right\":\"10px\"},\n class: \"interval\",\n size: 5,\n direction: \"vertical\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.download }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createVNode(_component_a_table, {\n pagination: false,\n columns: _ctx.columns1,\n \"data-source\": _ctx.dataSource1,\n bordered: \"\"\n }, null, 8, [\"columns\", \"data-source\"]),\n _createVNode(_component_a_table, {\n style: {\"margin-top\":\"20px\"},\n pagination: false,\n columns: _ctx.columns2,\n \"data-source\": _ctx.dataSource2,\n bordered: \"\"\n }, null, 8, [\"columns\", \"data-source\"]),\n _createVNode(_component_a_table, {\n showHeader: false,\n style: {\"margin-top\":\"20px\"},\n pagination: false,\n columns: _ctx.columns2,\n \"data-source\": _ctx.totalSource,\n bordered: \"\"\n }, null, 8, [\"columns\", \"data-source\"])\n ])\n ])\n ]),\n _createVNode(_component_DM, {\n language: \"EN\",\n onDownloadAction: _ctx.handleOk,\n downloadVisible: _ctx.downloadTypeVisible,\n onCloseAction: _cache[3] || (_cache[3] = ($event: any) => (_ctx.downloadTypeVisible = false)),\n downloadTableData: _ctx.downloadTableData\n }, null, 8, [\"onDownloadAction\", \"downloadVisible\", \"downloadTableData\"])\n ], 64))\n}","\nimport downloadFile from '@/utils/claim/downloadFile';\nimport { getPaymentTrackingReportTable } from '@/API/salesReporting/claimCheckingReport';\nimport moment from 'moment';\nimport { defineComponent, ref, reactive, toRefs, computed, watch } from 'vue';\nimport { useStore } from 'vuex';\nimport { qmOptions } from '@/views/SalesReporting/type';\nimport { message, TreeSelect } from 'ant-design-vue';\nimport DM from '../components/downloadModal.vue';\nconst SHOW_PARENT = TreeSelect.SHOW_PARENT;\n\ninterface SearchDataType {\n bu: string | undefined;\n year: string | undefined;\n quarter: Array;\n}\n\nexport default defineComponent({\n components: {\n DM,\n },\n setup() {\n const spaceSize = 6;\n const tableHeight = (window.innerHeight - 510) / 2;\n const downloadType = ref(2);\n const downloadTypeVisible = ref(false);\n const columns1 = ref([]);\n const columns2 = ref([]);\n\n const dataSource1 = ref([]);\n const dataSource2 = ref([]);\n const totalSource = ref([]);\n\n const searchData = reactive({\n bu: undefined,\n year: undefined,\n quarter: [],\n });\n watch(\n () => searchData.year,\n (newVal) => {\n if (!newVal) {\n searchData.quarter = [];\n }\n }\n );\n //period初始化\n const openProgramPeriodYear = ref(false);\n const handlerOpenProgramPeriodChange = (status: any): void => {\n openProgramPeriodYear.value = status;\n };\n const handlerPanelProgramPeriodChange = (value: string): void => {\n const time = moment(value).format('YYYY');\n searchData.year = time as string;\n openProgramPeriodYear.value = false;\n };\n\n let resetBu = '';\n const store = useStore();\n const buList = computed(() =>\n store.state.user.buList.filter((bu: any) => {\n return bu.parentId === null;\n })\n );\n\n const reset = () => {\n searchData.bu = resetBu;\n searchData.year = moment().format('YYYY');\n searchData.quarter = [`Q${moment().quarter()}`];\n // searchData.quarter = [undefined];\n };\n\n const getParams = (isDownload: boolean) => {\n const params: {\n bu: string | undefined;\n month: string[];\n year: string | undefined;\n } = {\n bu: searchData.bu,\n month: [],\n year: searchData.year,\n };\n\n const monthList: any[] = [];\n const qm = searchData.quarter;\n console.log('searchData.quarter', searchData.quarter);\n qm.forEach((qm: string) => {\n if (qm[0] === 'Q') {\n switch (qm[1]) {\n case '1':\n monthList.push(...['1', '2', '3']);\n break;\n case '2':\n monthList.push(...['4', '5', '6']);\n break;\n case '3':\n monthList.push(...['7', '8', '9']);\n break;\n case '4':\n monthList.push(...['10', '11', '12']);\n break;\n }\n } else {\n monthList.push(qm as string);\n }\n });\n params.month = monthList;\n\n if (isDownload) {\n return Object.assign({ fileNameList: ['2', '3'], ...params });\n }\n\n return params;\n };\n\n const getTableData = () => {\n if (!searchData.year || !searchData.bu) {\n message.error('BU and Year is required condition');\n return;\n }\n\n const params = getParams(false);\n getPaymentTrackingReportTable(params).then((res) => {\n if (params.bu != 'VAN') {\n dataSource1.value = res.noDemoCarList2;\n totalSource.value = [res.demoCarList2.pop()];\n console.log('totalSource.value', totalSource.value);\n dataSource2.value = res.demoCarList2;\n columns1.value = [\n {\n title: '',\n dataIndex: 'title',\n key: 'title',\n width: 100,\n },\n {\n title: 'PBP',\n children: [\n {\n title: ' 不含税',\n dataIndex: 'pbpAmountWOVat',\n key: 'pbpAmountWOVat',\n width: 120,\n },\n {\n title: ' 含税',\n dataIndex: 'pbpAmountWVat',\n key: 'pbpAmountWVat',\n width: 120,\n },\n {\n title: 'Program No.',\n dataIndex: 'pbpProgramNo',\n key: 'pbpProgramNo',\n width: 100,\n },\n {\n title: 'Dealer No.',\n dataIndex: 'pbpDealerNo',\n key: 'pbpDealerNo',\n width: 100,\n },\n {\n title: 'Claim No.',\n dataIndex: 'pbpClaimNo',\n key: 'pbpClaimNo',\n width: 100,\n },\n ],\n },\n {\n title: 'CBU',\n children: [\n {\n title: ' 不含税',\n dataIndex: 'cbuAmountWOVat',\n key: 'cbuAmountWOVat',\n width: 120,\n },\n {\n title: ' 含税',\n dataIndex: 'cbuAmountWVat',\n key: 'cbuAmountWVat',\n width: 120,\n },\n {\n title: 'Program No.',\n dataIndex: 'cbuProgramNo',\n key: 'cbuProgramNo',\n width: 100,\n },\n {\n title: 'Dealer No.',\n dataIndex: 'cbuDealerNo',\n key: 'cbuDealerNo',\n width: 100,\n },\n {\n title: 'Claim No.',\n dataIndex: 'cbuClaimNo',\n key: 'cbuClaimNo',\n width: 100,\n },\n ],\n },\n ];\n columns2.value = [\n {\n title: '',\n dataIndex: 'title',\n key: 'title',\n width: 100,\n },\n {\n title: 'PBP',\n children: [\n {\n title: ' Demo Car-不含税 ',\n dataIndex: 'pbpAmountWOVat',\n key: 'pbpAmountWOVat',\n width: 120,\n },\n {\n title: ' Demo Car-含税 ',\n dataIndex: 'pbpAmountWVat',\n key: 'pbpAmountWVat',\n width: 120,\n },\n {\n title: 'Program No.',\n dataIndex: 'pbpProgramNo',\n key: 'pbpProgramNo',\n width: 100,\n },\n {\n title: 'Dealer No.',\n dataIndex: 'pbpDealerNo',\n key: 'pbpDealerNo',\n width: 100,\n },\n {\n title: 'Claim No.',\n dataIndex: 'pbpClaimNo',\n key: 'pbpClaimNo',\n width: 100,\n },\n ],\n },\n {\n title: 'CBU',\n children: [\n {\n title: ' Demo Car-不含税',\n dataIndex: 'cbuAmountWOVat',\n key: 'cbuAmountWOVat',\n width: 120,\n },\n {\n title: ' Demo Car-含税',\n dataIndex: 'cbuAmountWVat',\n key: 'cbuAmountWVat',\n width: 120,\n },\n {\n title: 'Program No.',\n dataIndex: 'cbuProgramNo',\n key: 'cbuProgramNo',\n width: 100,\n },\n {\n title: 'Dealer No.',\n dataIndex: 'cbuDealerNo',\n key: 'cbuDealerNo',\n width: 100,\n },\n {\n title: 'Claim No.',\n dataIndex: 'cbuClaimNo',\n key: 'cbuClaimNo',\n width: 100,\n },\n ],\n },\n ];\n } else {\n //\n dataSource1.value = res.noDemoCarList1;\n totalSource.value = [res.demoCarList1.pop()];\n dataSource2.value = res.demoCarList1;\n columns1.value = [\n {\n title: '',\n dataIndex: 'title',\n key: 'title',\n width: 100,\n },\n {\n title: 'VAN',\n children: [\n {\n title: ' 不含税',\n dataIndex: 'amountWOVat',\n key: 'amountWOVat',\n width: 120,\n },\n {\n title: ' 含税',\n dataIndex: 'amountWVat',\n key: 'amountWVat',\n width: 120,\n },\n {\n title: 'Program No.',\n dataIndex: 'programNo',\n key: 'programNo',\n width: 100,\n },\n {\n title: 'Dealer No.',\n dataIndex: 'dealerNo',\n key: 'dealerNo',\n width: 100,\n },\n {\n title: 'Claim No.',\n dataIndex: 'claimNo',\n key: 'claimNo',\n width: 100,\n },\n ],\n },\n ];\n columns2.value = [\n {\n title: '',\n dataIndex: 'title',\n key: 'title',\n width: 100,\n },\n {\n title: 'VAN',\n children: [\n {\n title: ' Demo Car-不含税 ',\n dataIndex: 'amountWOVat',\n key: 'amountWOVat',\n width: 120,\n },\n {\n title: ' Demo Car-含税 ',\n dataIndex: 'amountWVat',\n key: 'amountWVat',\n width: 120,\n },\n {\n title: 'Program No.',\n dataIndex: 'programNo',\n key: 'programNo',\n width: 100,\n },\n {\n title: 'Dealer No.',\n dataIndex: 'dealerNo',\n key: 'dealerNo',\n width: 100,\n },\n {\n title: 'Claim No.',\n dataIndex: 'claimNo',\n key: 'claimNo',\n width: 100,\n },\n ],\n },\n ];\n }\n });\n };\n\n const download = () => {\n if (!searchData.year || !searchData.bu) {\n message.error('BU and Year is required condition');\n return;\n }\n downloadTypeVisible.value = true;\n };\n\n const handleOk = (data: Array) => {\n if (data.length > 1) {\n downloadType.value = 4;\n } else {\n downloadType.value = data[0].sign;\n }\n const params = getParams(true);\n const array = [];\n if (downloadType.value == 4) {\n array.push(3);\n array.push(2);\n } else {\n array.push(downloadType.value);\n }\n params.fileNameList = array;\n const downloadParams = {\n url: `/rpapi/paymentTracking/report/downloadPaymentTracking`,\n // url: `/ptapi/paymentTracking/report/downloadPaymentTracking`,\n method: 'post',\n params: params,\n };\n downloadFile(\n downloadParams,\n 'application/vnd-excel; char-set=UTF-8'\n ).then((res: any) => {\n downloadTypeVisible.value = false;\n });\n };\n\n const dogetDefault = () => {\n const mbIndex = buList.value.findIndex((i: any) => {\n return i.nameEn === 'MBPC';\n });\n const initIndex = mbIndex === -1 ? 0 : mbIndex;\n searchData.bu = buList.value[initIndex].nameEn;\n resetBu = buList.value[initIndex].nameEn;\n searchData.year = moment().format('YYYY');\n searchData.quarter = [`Q${moment().quarter()}`];\n getTableData();\n };\n dogetDefault();\n const downloadTableData = [\n {\n file: 'Raw Data',\n sign: 2,\n },\n {\n file: 'Report Data',\n sign: 3,\n },\n ];\n\n return {\n spaceSize,\n tableHeight,\n downloadTableData,\n downloadTypeVisible,\n handleOk,\n dataSource2,\n dataSource1,\n totalSource,\n download,\n getTableData,\n reset,\n SHOW_PARENT,\n qmOptions,\n ...toRefs(searchData),\n buList,\n openProgramPeriodYear,\n handlerOpenProgramPeriodChange,\n handlerPanelProgramPeriodChange,\n columns1,\n columns2,\n downloadType,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=240002b2&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=240002b2&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-240002b2\"]])\n\nexport default __exports__","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAQCAYAAADTasWKAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAA6ADAAQAAAABAAAAEAAAAABTVpExAAAARklEQVQIHWNgWPf+GcO6Dx0MV/+zsTD8Z5BkYPhfznDzIwMTAxz8j0NwgCoQHKAK+nMYGZ4jWcq4iIUBKMLAwLiIQZ2/DgAi2RE9IOkxIAAAAABJRU5ErkJggg==\"","/*\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","/*\n * @Author: zhengda.lv\n * @Date: 2021-10-25 16:27:12\n * @LastEditTime: 2021-10-25 17:36:31\n * @LastEditors: zhengda.lv\n * @Description:\n */\nexport interface TreeDataItem {\n value: string;\n key: string;\n title?: string;\n disabled?: boolean;\n children?: TreeDataItem[];\n}\nexport const qmOptions: TreeDataItem[] = [\n {\n title: 'Q1',\n value: 'Q1',\n key: 'Q1',\n children: [\n {\n title: '01',\n value: '01',\n key: '01',\n },\n {\n title: '02',\n value: '02',\n key: '02',\n },\n {\n title: '03',\n value: '03',\n key: '03',\n },\n ],\n },\n {\n title: 'Q2',\n value: 'Q2',\n key: 'Q2',\n children: [\n {\n title: '04',\n value: '04',\n key: '04',\n },\n {\n title: '05',\n value: '05',\n key: '05',\n },\n {\n title: '06',\n value: '06',\n key: '06',\n },\n ],\n },\n {\n title: 'Q3',\n value: 'Q3',\n key: 'Q3',\n children: [\n {\n title: '07',\n value: '07',\n key: '07',\n },\n {\n title: '08',\n value: '08',\n key: '08',\n },\n {\n title: '09',\n value: '09',\n key: '09',\n },\n ],\n },\n {\n title: 'Q4',\n value: 'Q4',\n key: 'Q4',\n children: [\n {\n title: '10',\n value: '10',\n key: '10',\n },\n {\n title: '11',\n value: '11',\n key: '11',\n },\n {\n title: '12',\n value: '12',\n key: '12',\n },\n ],\n },\n];\n\nexport const qOptions: TreeDataItem[] = [\n {\n title: 'Q1',\n value: 'Q1',\n key: 'Q1',\n },\n {\n title: 'Q2',\n value: 'Q2',\n key: 'Q2',\n },\n {\n title: 'Q3',\n value: 'Q3',\n key: 'Q3',\n },\n {\n title: 'Q4',\n value: 'Q4',\n key: 'Q4',\n },\n];\n\n","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, 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 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(\"div\", null, [\n _createVNode(_component_a_modal, {\n visible: _ctx.downloadVisible,\n title: _ctx.language==='CN'? '下载' : 'Download',\n onCancel: _ctx.closeDownload\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n key: \"back\",\n onClick: _ctx.closeDownload\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.cancelButton), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n key: \"submit\",\n type: \"primary\",\n onClick: _ctx.downloadClick\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.confirmButton), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_a_table, {\n \"row-selection\": _ctx.downloadRowSelection,\n columns: _ctx.downloadColumnsData,\n pagination: false,\n dataSource: _ctx.downloadTableData,\n rowKey: \"fileType\"\n }, null, 8, [\"row-selection\", \"columns\", \"dataSource\"])\n ]),\n _: 1\n }, 8, [\"visible\", \"title\", \"onCancel\"])\n ]))\n}","\nimport { defineComponent, ref ,reactive} from 'vue';\nimport { ColumnProps } from 'ant-design-vue/es/table/interface';\nimport { message } from 'ant-design-vue';\nexport default defineComponent({\n emit: ['downloadAction','closeAction'],\n props: {\n downloadVisible:{\n required: true,\n type:Boolean\n },\n language:{\n required: false,\n type:String,\n default:'CN'\n },\n downloadTableData: {\n type: Array,\n required: true,\n default() {\n return [];\n }\n },\n },\n setup(props,{emit}) {\n type Key = ColumnProps['key'];\n const cancelButton = (props as any).language == 'EN'?'Cancel':'取消'\n const confirmButton = (props as any).language == 'EN'?'Download':'下载'\n\n const downloadColumnsData = ref([])\n\n if ((props as any).language == 'EN'){\n downloadColumnsData.value = [{\n title: 'File',\n dataIndex: 'file',\n key: 'file',\n }]\n } else {\n downloadColumnsData.value = [ {\n title: '文件',\n dataIndex: 'file',\n key: 'file',\n }]\n\n }\n\n const downloadRowSelection = reactive<{\n selectedRowKeys: Key[];\n selectedRowData: any[];\n onChange: Function;\n }>({\n onChange: (selectedRowKeys: Key[], selectedRows: any[]) => {\n downloadRowSelection.selectedRowKeys = selectedRowKeys;\n downloadRowSelection.selectedRowData = selectedRows;\n },\n selectedRowData: [],\n selectedRowKeys: [],\n });\n\n const closeDownload =()=>{\n downloadRowSelection.selectedRowKeys = [];\n downloadRowSelection.selectedRowData = [];\n\n emit('close-action')\n }\n const downloadClick =()=>{\n if (downloadRowSelection.selectedRowData.length == 0 ){\n if ((props as any).language == 'EN'){\n message.warning('Please select data first')\n } else {\n message.warning('请先选择数据')\n }\n \n return\n }\n emit('download-action',downloadRowSelection.selectedRowData)\n downloadRowSelection.selectedRowKeys = [];\n downloadRowSelection.selectedRowData = [];\n \n }\n \n return {\n downloadClick,\n closeDownload,cancelButton,confirmButton,downloadColumnsData,downloadRowSelection\n };\n },\n});\n","import { render } from \"./downloadModal.vue?vue&type=template&id=f3e95be6&scoped=true&ts=true\"\nimport script from \"./downloadModal.vue?vue&type=script&lang=ts\"\nexport * from \"./downloadModal.vue?vue&type=script&lang=ts\"\n\nimport \"./downloadModal.vue?vue&type=style&index=0&id=f3e95be6&scoped=true&lang=css\"\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-f3e95be6\"]])\n\nexport default __exports__"],"sourceRoot":""}