{"version":3,"sources":["webpack:///./src/assets/images/date-icon.svg","webpack:///./src/views/LocalRegistration/Setup/UploadCurveSelection.vue?a5ba","webpack:///./src/views/LocalRegistration/Setup/UploadCurveSelection.vue?5fb4","webpack:///./src/views/LocalRegistration/Setup/UploadCurveSelection.vue","webpack:///./src/views/LocalRegistration/Setup/UploadCurveSelection.vue?f38d","webpack:///./src/views/Payment/components/YearPicker.vue?b314","webpack:///./src/views/Payment/components/YearPicker.vue","webpack:///./src/views/Payment/components/YearPicker.vue?5fcf","webpack:///./src/utils/closing/isExcel.ts"],"names":["module","exports","_withScopeId","n","_hoisted_1","id","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_button","_component_a_table","_component_year_picker","_component_upload","dataSource","name","value","year","$event","onChange","handlerYearChange","placeholder","default","yearList","key","_","version","disabled","versionList","$btnPermissions","onClick","handleReset","handleSearch","showUploadDrawer","columns","data","rowKey","bordered","pagination","rowClassName","record","index","title","visible","onUpload","handleUpload","uploadYear","allowClear","type","handleDownloadTemplate","args","components","Upload","YearPicker","setup","router","store","undefined","dataIndex","file","resolve","reject","options","_formData","FormData","fileName","split","append","isExcel","fileIsExcel","message","error","onUploadProgress","progressEvent","lengthComputable","percent","loaded","total","length","success","commit","push","then","res","params","init","__exports__","src","alt","_component_a_date_picker","format","mode","yearValue","open","isOpen","onOpenChange","handleOpenChange","onPanelChange","handlePanelChange","$attrs","suffixIcon","props","Object","emits","context","get","set","emit","status","blobToString","blob","Promise","reader","FileReader","readAsBinaryString","onload","ret","result","map","v","charCodeAt","toString","toUpperCase","padStart","join","len","slice","flag"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,8B,6D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ATA,GACd,CAAP,GAAO,GAII,GAAM8F,EAAclD,EAAamE,MAAM,EAAG,K,OAEzD,OAFMT,EAAS,SACTU,EAAmB,qBAAXV,GAA8C,qBAAXA,GAA8C,qBAAXA,EAC7E,CAAP,EAAOU,WAEM","file":"js/chunk-f97509c4.144ef7de.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/date-icon.b14f3d24.svg\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./UploadCurveSelection.vue?vue&type=style&index=0&id=1b1c0bac&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, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1b1c0bac\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { id: \"upload-curve\" }\nconst _hoisted_2 = { class: \"header\" }\nconst _hoisted_3 = { class: \"search\" }\nconst _hoisted_4 = { class: \"year flex-center\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Year\", -1))\nconst _hoisted_6 = { class: \"version flex-center\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Version\", -1))\nconst _hoisted_8 = { class: \"handler\" }\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_10 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_11 = { class: \"main\" }\nconst _hoisted_12 = { class: \"handler\" }\nconst _hoisted_13 = /*#__PURE__*/_createTextVNode(\"Upload\")\nconst _hoisted_14 = /*#__PURE__*/_createTextVNode(\"Export\")\nconst _hoisted_15 = { class: \"table\" }\nconst _hoisted_16 = { class: \"download-button-wrapper\" }\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"font_family icon-xiazai\" }, null, -1))\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Download Template \")\nconst _hoisted_19 = [\n _hoisted_17,\n _hoisted_18\n]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Breadcrumb = _resolveComponent(\"Breadcrumb\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_year_picker = _resolveComponent(\"year-picker\")!\n const _component_upload = _resolveComponent(\"upload\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_Breadcrumb, { dataSource: [\n {\n name:\n 'Upload Curve Selection Of Restricted Cities Overview',\n },\n ] }),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createVNode(_component_a_select, {\n value: _ctx.year,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.year) = $event)),\n onChange: _ctx.handlerYearChange,\n placeholder: \"Please select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.yearList, (year) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: year,\n key: year\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(year), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\", \"onChange\"])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_a_select, {\n value: _ctx.version,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.version) = $event)),\n disabled: !_ctx.year,\n placeholder: \"Please select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.versionList, (version) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: version,\n key: version\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(version), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\", \"disabled\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n (_ctx.$btnPermissions('Local Curve Reset'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"reset-btn\",\n onClick: _ctx.handleReset\n }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('Local Curve Search'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n class: \"search-btn\",\n onClick: _ctx.handleSearch\n }, {\n default: _withCtx(() => [\n _hoisted_10\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n (_ctx.$btnPermissions('Local Curve Upload'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"btn upload-btn\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showUploadDrawer = true))\n }, {\n default: _withCtx(() => [\n _hoisted_13\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_a_button, { class: \"btn export-btn\" }, {\n default: _withCtx(() => [\n _hoisted_14\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_a_table, {\n columns: _ctx.columns,\n dataSource: _ctx.data,\n rowKey: \"id\",\n bordered: \"\",\n pagination: false,\n rowClassName: \n (record, index) =>\n index % 2 === 1 ? 'table-striped' : null\n \n }, null, 8, [\"columns\", \"dataSource\", \"rowClassName\"])\n ])\n ])\n ]),\n _createVNode(_component_upload, {\n title: \"Of Restricted Cities\",\n visible: _ctx.showUploadDrawer,\n \"onUpdate:visible\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.showUploadDrawer) = $event)),\n onUpload: _ctx.handleUpload\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_16, [\n _createVNode(_component_year_picker, {\n value: _ctx.uploadYear,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.uploadYear) = $event)),\n allowClear: false\n }, null, 8, [\"value\"]),\n (_ctx.$btnPermissions('Local Curve Download'))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"downBtn\",\n type: \"primary\",\n onClick: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.handleDownloadTemplate && _ctx.handleDownloadTemplate(...args)))\n }, _hoisted_19))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onUpload\"])\n ], 64))\n}","\nimport { defineComponent, onMounted, ref } from 'vue';\nimport {\n getAllYears,\n getVersionByYear,\n getListByVersionAndYear,\n downloadTemplate,\n uploadRestrictCity,\n} from '@/API/localRegistration';\nimport { useRouter } from 'vue-router';\nimport { useStore } from 'vuex';\nimport { downloadFromStream } from '@/utils/payment/downloadFile';\nimport Upload from '@/views/LocalRegistration/components/Upload.vue';\nimport isExcel from '@/utils/closing/isExcel';\nimport { message } from 'ant-design-vue';\nimport YearPicker from '@/views/Payment/components/YearPicker.vue';\nexport default defineComponent({\n components: {\n Upload,\n YearPicker,\n },\n setup() {\n const router = useRouter();\n const store = useStore();\n const showUploadDrawer = ref(false);\n const yearList = ref([]);\n const year = ref(undefined);\n const versionList = ref([]);\n const version = ref(undefined);\n\n const uploadYear = ref('2022');\n const columns = [\n {\n title: 'Dealer Code',\n dataIndex: 'dealerCode',\n key: 'dealerCode',\n },\n {\n title: 'Dealer Name',\n dataIndex: 'dealerName',\n key: 'dealerName',\n },\n {\n title: '限牌城市曲线选择',\n dataIndex: 'restrictedCity',\n key: 'restrictedCity',\n },\n {\n title: 'Year',\n dataIndex: 'year',\n key: 'year',\n },\n {\n title: '上传时间',\n dataIndex: 'updatedAt',\n key: 'updatedAt',\n },\n {\n title: '上传文件名称',\n dataIndex: 'version',\n key: 'version',\n },\n ];\n const data = ref([]);\n\n const handleUpload = async (\n file: File,\n resolve: (value: unknown) => void,\n reject: (reason?: unknown) => void,\n options: any\n ) => {\n const _formData = new FormData();\n const fileName: string = file.name?.split('.')[0];\n _formData.append('file', file);\n try {\n const fileIsExcel = await isExcel(file);\n if (!fileIsExcel) {\n message.error('file type error');\n throw 'file type error';\n }\n const data = await uploadRestrictCity(\n _formData,\n uploadYear.value,\n fileName,\n {\n onUploadProgress: (progressEvent: any) => {\n if (progressEvent.lengthComputable) {\n const percent =\n ((progressEvent.loaded /\n progressEvent.total) *\n 100) |\n 0;\n options.percent.value = percent;\n }\n },\n }\n );\n if (data.length === 0) {\n return message.success('Upload Success.');\n } else {\n store.commit(\n 'localRegistration/updateCurveSelectionUploadError',\n data\n );\n router.push({\n name: 'Curve Selection Upload Failed Reason',\n });\n }\n // if (response.data.type === 'application/json') {\n // const result = JSON.parse(await response.data.text());\n // if (result.code !== '0') {\n // throw result.message;\n // }\n // resolve(null);\n // } else {\n // downloadFromStream(response);\n // throw 'Upload File Error';\n // }\n } catch (error) {\n reject(error);\n }\n };\n const handleDownloadTemplate = async () => {\n const data = await downloadTemplate();\n downloadFromStream(data);\n };\n\n const handlerYearChange = (value: any) => {\n getVersionByYear({ year: value }).then((res: any) => {\n versionList.value = res;\n });\n };\n\n const handleReset = () => {\n year.value = undefined;\n version.value = undefined;\n };\n const handleSearch = () => {\n const params = {\n year: year.value,\n version: version.value,\n };\n getListByVersionAndYear(params).then((res: any) => {\n data.value = res.data;\n });\n };\n\n const init = () => {\n getAllYears().then((res: any) => {\n yearList.value = res;\n });\n };\n\n onMounted(() => {\n init();\n });\n\n return {\n uploadYear,\n yearList,\n year,\n versionList,\n version,\n columns,\n data,\n showUploadDrawer,\n handleReset,\n handleSearch,\n handlerYearChange,\n handleUpload,\n handleDownloadTemplate,\n };\n },\n});\n","import { render } from \"./UploadCurveSelection.vue?vue&type=template&id=1b1c0bac&scoped=true&ts=true\"\nimport script from \"./UploadCurveSelection.vue?vue&type=script&lang=ts\"\nexport * from \"./UploadCurveSelection.vue?vue&type=script&lang=ts\"\n\nimport \"./UploadCurveSelection.vue?vue&type=style&index=0&id=1b1c0bac&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-1b1c0bac\"]])\n\nexport default __exports__","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\nimport _imports_0 from '@/assets/images/date-icon.svg'\n\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n alt: \"\"\n}, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n\n return (_openBlock(), _createBlock(_component_a_date_picker, _mergeProps({\n format: \"YYYY\",\n mode: \"year\",\n value: _ctx.yearValue,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.yearValue) = $event)),\n open: _ctx.isOpen,\n onOpenChange: _ctx.handleOpenChange,\n onPanelChange: _ctx.handlePanelChange\n }, _ctx.$attrs), {\n suffixIcon: _withCtx(() => [\n _hoisted_1\n ]),\n _: 1\n }, 16, [\"value\", \"open\", \"onOpenChange\", \"onPanelChange\"]))\n}","\nimport { computed, defineComponent, ref } from 'vue'\nimport type { PropType } from 'vue'\nimport type { Moment } from 'moment' \n\nexport default defineComponent({\n props: {\n value: {\n type: Object as PropType,\n }\n },\n emits: [\n 'update:value',\n 'open-change',\n 'panel-change'\n ],\n setup(props, context) {\n const isOpen = ref(false)\n\n const yearValue = computed({\n get() {\n return props.value\n },\n set(value) {\n context.emit('update:value', value)\n }\n })\n\n const handleOpenChange = (status: boolean) => {\n isOpen.value = status ? true : false\n context.emit('open-change', status)\n }\n\n const handlePanelChange = (value: unknown, mode: string) => {\n yearValue.value = value\n isOpen.value = false\n context.emit('panel-change', value, mode)\n }\n\n return {\n isOpen,\n yearValue,\n handleOpenChange,\n handlePanelChange\n }\n }\n})\n","import { render } from \"./YearPicker.vue?vue&type=template&id=1bb4274d&ts=true\"\nimport script from \"./YearPicker.vue?vue&type=script&lang=ts\"\nexport * from \"./YearPicker.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","const blobToString = async (blob: File) => {\n return new Promise(resolve => {\n const reader = new FileReader()\n reader.readAsBinaryString(blob)\n reader.onload = function () {\n const ret = (reader.result as string).split('')\n .map((v: string) => v.charCodeAt(0))\n .map((v: number) => v.toString(16).toUpperCase())\n .map((v: string) => v.padStart(2, '0'))\n .join('')\n resolve(ret)\n }\n })\n}\nconst isExcel = async (file: File) => {\n \n if (file) {\n const len = file.name.split('.').length\n const name = file.name.split('.')[len - 1]\n if (name !== 'xlsx' && name !== 'xls') {\n return false\n }\n }\n // 16进制的转换\n const result = await blobToString((file as any).slice(0, 8))\n const flag = (result === 'D0CF11E0A1B11AE1') || (result === '504B030414000600') || (result === '504B030414000808')\n return flag\n}\nexport default isExcel\n"],"sourceRoot":""}