{"version":3,"sources":["webpack:///./src/views/LocalRegistration/RegistrationResult/Comparison.vue?a9ce","webpack:///./src/views/LocalRegistration/RegistrationResult/Comparison.vue?f26d","webpack:///./src/views/LocalRegistration/RegistrationResult/Comparison.vue?702c","webpack:///./src/views/LocalRegistration/RegistrationResult/Comparison.vue","webpack:///./src/views/LocalRegistration/RegistrationResult/Comparison.vue?b854"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_date_picker","_component_bu_selector","_component_applicable_type_class_selector","_component_calculation_rule_selector","_component_a_button","_component_a_table","valueFormat","format","value","startTime","$event","placeholder","allowClear","endTime","bu","typeClass","calRuleCode1","calRuleCode2","$btnPermissions","key","onClick","resetSearchData","default","_","searchData","type","disabled","handleExport","dataSource","scroll","x","pagination","columns","components","BuSelector","ApplicableTypeClassSelector","CalculationRuleSelector","setup","props","searchParams","nameEn","title","dataIndex","width","children","getParams","param","Object","assign","then","res","console","log","__exports__"],"mappings":"kHAAA,W,yDCAA,W,yDCEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,gBACtBC,EAAa,CAAED,MAAO,kBACtBE,EAA2BL,GAAa,WAAmB,uCAAoB,QAAS,KAAM,sBAAuB,MACrHM,EAAa,CAAEH,MAAO,kBACtBI,EAA2BP,GAAa,WAAmB,uCAAoB,QAAS,KAAM,QAAS,MACvGQ,EAAa,CAAEL,MAAO,kBACtBM,EAA2BT,GAAa,WAAmB,uCAAoB,QAAS,KAAM,QAAS,MACvGU,EAAa,CAAEP,MAAO,kBACtBQ,EAA2BX,GA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BZ,aAAY,O,2CClKlB,MAAM0B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS5D,GAAQ,CAAC,YAAY,qBAE1E,gB","file":"js/chunk-8eae50ac.f0100e47.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!./Comparison.vue?vue&type=style&index=1&id=55a89655&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!./Comparison.vue?vue&type=style&index=0&id=55a89655&lang=scss&scoped=true\"","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-55a89655\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"search-panel\" }\nconst _hoisted_2 = { class: \"condition-item\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" Retail date from \", -1))\nconst _hoisted_4 = { class: \"condition-item\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" to \", -1))\nconst _hoisted_6 = { class: \"condition-item\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" BU \", -1))\nconst _hoisted_8 = { class: \"condition-item\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" Applicable type class \", -1))\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"condition-item\" }, null, -1))\nconst _hoisted_11 = { class: \"condition-item\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" Calculation rule 1 \", -1))\nconst _hoisted_13 = { class: \"rule-selector-wrapper\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"VS\", -1))\nconst _hoisted_15 = { class: \"condition-item\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" Calculation rule 2 \", -1))\nconst _hoisted_17 = { class: \"btn-wrapper\" }\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_19 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_20 = { class: \"content-container\" }\nconst _hoisted_21 = { class: \"btn-wrapper\" }\nconst _hoisted_22 = /*#__PURE__*/_createTextVNode(\"Export\")\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 const _component_bu_selector = _resolveComponent(\"bu-selector\")!\n const _component_applicable_type_class_selector = _resolveComponent(\"applicable-type-class-selector\")!\n const _component_calculation_rule_selector = _resolveComponent(\"calculation-rule-selector\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createVNode(_component_a_date_picker, {\n valueFormat: \"YYYY-MM-DD\",\n format: \"YYYY/MM/DD\",\n value: _ctx.startTime,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.startTime) = $event)),\n placeholder: \"Please select\",\n allowClear: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createVNode(_component_a_date_picker, {\n valueFormat: \"YYYY-MM-DD\",\n format: \"YYYY/MM/DD\",\n value: _ctx.endTime,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.endTime) = $event)),\n placeholder: \"Please select\",\n allowClear: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_bu_selector, {\n value: _ctx.bu,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.bu) = $event)),\n placeholder: \"Please select\",\n allowClear: true\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_component_applicable_type_class_selector, {\n bu: _ctx.bu,\n value: _ctx.typeClass,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.typeClass) = $event)),\n placeholder: \"Please select\"\n }, null, 8, [\"bu\", \"value\"])\n ]),\n _hoisted_10,\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"div\", _hoisted_13, [\n _createVNode(_component_calculation_rule_selector, {\n bu: _ctx.bu,\n value: _ctx.calRuleCode1,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.calRuleCode1) = $event)),\n placeholder: \"Please select\",\n allowClear: \"\"\n }, null, 8, [\"bu\", \"value\"]),\n _hoisted_14\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createVNode(_component_calculation_rule_selector, {\n bu: _ctx.bu,\n value: _ctx.calRuleCode2,\n \"onUpdate:value\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.calRuleCode2) = $event)),\n placeholder: \"Please select\",\n allowClear: \"\"\n }, null, 8, [\"bu\", \"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n (_ctx.$btnPermissions('Local Comparison Reset', '/localRegistration/registrationgResult/checkingResult'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n onClick: _ctx.resetSearchData\n }, {\n default: _withCtx(() => [\n _hoisted_18\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('Local Comparison Search', '/localRegistration/registrationgResult/checkingResult'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n onClick: _ctx.searchData,\n type: \"primary\",\n disabled: !_ctx.calRuleCode1 || !_ctx.calRuleCode2\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n (_ctx.$btnPermissions('Local Comparison Export', '/localRegistration/registrationgResult/checkingResult'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n type: \"primary\",\n onClick: _ctx.handleExport,\n disabled: !_ctx.calRuleCode1 || !_ctx.calRuleCode2\n }, {\n default: _withCtx(() => [\n _hoisted_22\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(_component_a_table, {\n class: \"data-table\",\n dataSource: _ctx.dataSource,\n scroll: {x:2000},\n pagination: false,\n columns: _ctx.columns\n }, null, 8, [\"dataSource\", \"columns\"])\n ])\n ], 64))\n}","\nimport { defineComponent ,reactive , ref, toRefs} from 'vue'\nimport BuSelector from '@/views/LocalRegistration/components/BuSelector.vue'\nimport ApplicableTypeClassSelector from '@/views/LocalRegistration/components/ApplicableTypeClassSelector.vue'\nimport CalculationRuleSelector from '@/views/LocalRegistration/components/CalculationRuleSelector.vue'\nimport {getCalLicenceComparisonInfo, exportCalLicenceComparisonInfo} from '@/API/localRegistration'\nimport { downloadFromStream } from '@/utils/payment/downloadFile'\nimport { getFirstLevelBU } from '@/utils'\ninterface SearchType{\n bu: string|null;\n calRuleCode1: string|null;\n calRuleCode2: string|null;\n endTime: string|null;\n startTime: string|null;\n typeClass: string|null;\n}\n\ninterface CRType{\n id: string;\n name: string;\n}\n\nexport default defineComponent({\n components: {\n BuSelector,\n ApplicableTypeClassSelector,\n CalculationRuleSelector\n },\n setup(props) {\n const searchParams = reactive({\n bu: getFirstLevelBU()?.nameEn ?? null,\n calRuleCode1: null,\n calRuleCode2: null,\n endTime: null,\n startTime: null,\n typeClass: null,\n })\n const dataSource = ref([]);\n const columns = [\n {\n title: 'RT Date',\n dataIndex: 'rtDate',\n key: 'rtDate',\n width:200\n },\n {\n title: 'VIN',\n dataIndex: 'vin',\n key: 'vin',\n width:200\n },\n {\n title: 'Dealer Code',\n dataIndex: 'dealerCode',\n key: 'dealerCode',\n width:200\n },\n {\n title: 'Dealer Name',\n dataIndex: 'dealerName',\n key: 'dealerName',\n width:200\n },\n {\n title: 'Applicable Type Class',\n dataIndex: 'typeClass',\n key: 'typeClass',\n width:200\n },\n {\n title: 'Calculation rule 1',\n children: [\n {\n title: 'REG Date',\n dataIndex: 'regDate1',\n key: 'regDate1',\n width:200\n },\n {\n title: 'Reg_City',\n dataIndex: 'regCity1',\n key: 'regCity1',\n width:200\n },\n {\n title: 'Local Reg Vol',\n dataIndex: 'localRegVol1',\n key: 'localRegVol1',\n width:200\n },\n {\n title: '未判定为本地上牌原因',\n dataIndex: 'reason1',\n key: 'reason1',\n width:500\n }\n ]\n },\n {\n title: 'Calculation rule 2',\n children: [\n {\n title: 'REG Date',\n dataIndex: 'regDate2',\n key: 'regDate2',\n width:200\n },\n {\n title: 'Reg_City',\n dataIndex: 'regCity2',\n key: 'regCity2',\n width:200\n },\n {\n title: 'Local Reg Vol',\n dataIndex: 'localRegVol2',\n key: 'localRegVol2',\n width:200\n },\n {\n title: '未判定为本地上牌原因',\n dataIndex: 'reason2',\n key: 'reason2',\n width:500\n }\n ]\n }\n ]\n\n const getParams = ()=>{\n const param = {\n bu: searchParams.bu || \"\",\n endTime: searchParams.endTime || \"\",\n startTime: searchParams.startTime || \"\",\n calRuleCode1: searchParams.calRuleCode1 || \"\",\n calRuleCode2: searchParams.calRuleCode2 || \"\",\n typeClass:searchParams.typeClass || \"\",\n }\n\n return param;\n }\n\n const resetSearchData = ()=>{\n Object.assign(searchParams,{\n bu: getFirstLevelBU()?.nameEn ?? null,\n endTime: null,\n startTime: null,\n calRuleCode1: null,\n calRuleCode2: null,\n typeClass: null,\n })\n }\n\n const searchData = ()=>{\n \n getCalLicenceComparisonInfo(getParams()).then((res: any) => {\n console.log(res)\n dataSource.value = res;\n })\n }\n\n const handleExport = async () => {\n const res = await exportCalLicenceComparisonInfo(getParams())\n downloadFromStream(res)\n }\n\n return {\n dataSource,resetSearchData,\n searchData,\n columns,...toRefs(searchParams),\n handleExport\n }\n }\n})\n","import { render } from \"./Comparison.vue?vue&type=template&id=55a89655&scoped=true&ts=true\"\nimport script from \"./Comparison.vue?vue&type=script&lang=ts\"\nexport * from \"./Comparison.vue?vue&type=script&lang=ts\"\n\nimport \"./Comparison.vue?vue&type=style&index=0&id=55a89655&lang=scss&scoped=true\"\nimport \"./Comparison.vue?vue&type=style&index=1&id=55a89655&lang=scss\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-55a89655\"]])\n\nexport default __exports__"],"sourceRoot":""}