{"version":3,"sources":["webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/index.vue?805f","webpack:///./node_modules/@ant-design/icons-svg/es/asn/CalculatorOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/CalculatorOutlined.js","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/Calculate.vue?ae42","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/Calculate.vue","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/Calculate.vue?b803","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/index.vue","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/index.vue?71bf","webpack:///./src/views/LocalRegistration/components/BuSelector.vue?7983","webpack:///./src/views/LocalRegistration/components/BuSelector.vue","webpack:///./src/views/LocalRegistration/components/BuSelector.vue?ba41","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/Calculate.vue?cbad","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/index.vue?96e1","webpack:///./src/views/LocalRegistration/components/ApplicableTypeClassSelector2.vue?4e9c","webpack:///./src/views/LocalRegistration/components/ApplicableTypeClassSelector2.vue","webpack:///./src/views/LocalRegistration/components/ApplicableTypeClassSelector2.vue?d45f","webpack:///./src/hooks/useModel.ts","webpack:///./src/views/LocalRegistration/Setup/RateCalculationRuleSet/index.vue?c9df","webpack:///./node_modules/@ant-design/icons-svg/es/asn/FileSearchOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/FileSearchOutlined.js","webpack:///./src/API/localRegistration.ts"],"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","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_bu_selector","_component_a_select_option","_component_a_select","_component_a_input","_component_a_button","_component_CheckCircleOutlined","_component_FileSearchOutlined","_component_CalculatorOutlined","_component_DeleteOutlined","_component_a_checkbox","_component_a_table","_component_calculate","paddingBottom","dataSource","value","bu","$event","default","placeholder","ruleName","onSearch","handleSearch","ruleNameList","item","key","_","ruleCode","$btnPermissions","onClick","reset","type","search","handleAdd","pagination","columns","data","Registration","record","renderRegistration","exemptionCode","jumpToExemption","args","renderExceptionCode","SpecialDeduction","specialDeduction","View","handleView","Calculate","handleToCalculate","Operation","deleteCurrentRow","id","RegionUsage","checked","regionUsage","onChange","saveRegionUsageChange","visible","calculateDrawerVisible","currentRuleCode","_objectSpread","target","i","arguments","length","source","Object","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","forEach","_defineProperty","obj","defineProperty","configurable","writable","props","context","p","attrs","AntdIcon","displayName","inheritAttrs","_hoisted_17","_hoisted_18","_component_type_classes","_component_a_date_picker","_component_a_drawer","title","width","visibleModel","unchangedBu","disabled","modelValue","typeClasses","mode","allowClear","startTime","disabledStartDate","endTime","disabledEndDate","calculatingResult","Process","status","process","cancel","handleCancel","components","BuSelector","TypeClasses","Boolean","String","required","setup","useModel","dataIndex","slots","customRender","align","noEmptyDate","undefined","message","warning","getProcess","then","res","includes","typeClass","params","format","success","current","forbiddenDateFrom","newVisible","immediate","__exports__","CheckCircleOutlined","FileSearchOutlined","CalculatorOutlined","DeleteOutlined","router","ruleNameListAll","debounce","console","log","bulist","map","usage","push","path","query","code","name","description","maps","valueModel","$attrs","buList","optionKey","optionTitle","Number","emits","state","user","buTreeList","nameEn","newBu","emit","get","set","val","getTypclassByBu","keyModelsList","keyModelsCreate","keyModelsDelete","keyModelsEdit","applicableTypeClassList","applicableTypeClassListByBu","getCityListByName","queryRestrictCityByBu","getAllProvince","saveRegRestrictCity","deleteRegRestrictCity","getCityListByProvinceId","getAllCitys","getAllYears","getVersionByYear","getListByVersionAndYear","downloadTemplate","a","responseType","uploadRestrictCity","year","version","config","getValidityList","pulbishDate","exportLicenseMappingCityList","post","getLicenseMappingCityList","getCityInfo","createLicenseMappingCity","editLicenseMappingCity","getLicenseMappingCityDetail","thirdPartyUploadDelete","getDealerApplicableTypeClassList","checkApplicableBlank","getApplicableDspData","updateLatestDetail","saveBaseInfo","getLocalDealerByName","searchDealerByCodeAndName","getLocalDealerByCode","getLocalDealerBySwtCode","getDealerMainData","checkDeleteDealerCauseBlank","searchDealerListByCondition","exportDealerListByCondition","getDealerLogListByCondition","thirdPartyUploadExport","thirdPartyUploadImport","file","options","FormData","thirdPartyUploadFilenameList","beginTime","thirdPartyUploadList","size","thirdPartyUploadTemplate","getCheckingResultData","exportCheckingResultData","getCalLicenceComparisonInfo","exportCalLicenceComparisonInfo","getCalculationRuleSelection","savePublish","getPublishHistoryList","getExemptionList","deleteExemptionApi","downloadExportVinListData","downloadExportBasicData","getDetail","CreateExemptionCode","getCustomizeVinList","deleteCustomizeVin","getExemptionRuleVinList","saveContent","createContent","queryReportDataInfo","getCategoryList","publishDateList","getAreaRuleList","publishDate","dealerApplicableTypeClassMap","getAreaRuleSelectedProvinces","locId","getAreaRuleSelectedCities","provineId","provinceCode","saveAreaRuleInfo","getCalculationRuleList","deleteCalculationRule","createNewRuleCode","saveCalculationRule","updateCalculationRule","calculationExecute","getLocRegCollectResults","exportLocRegCollectResults","userDealerCode","saveValidity","validityPublishDate","getCalculateDateFrom","getProcessList","cancelCalculate","getGroupCalculationRuleSelection","queryBlankDealer","updatePublishType"],"mappings":"qJAEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,gCACtBC,EAAa,CAAED,MAAO,OACtBE,EAAa,CAAEF,MAAO,gBACtBG,EAAa,CAAEH,MAAO,kBACtBI,EAA2BP,GAAa,WAAmB,uCAAoB,QAAS,KAAM,QAAS,MACvGQ,EAAa,CAAEL,MAAO,kBACtBM,EAA2BT,GAAa,WAAmB,uCAAoB,Q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+H,GAAmB,SAAClJ,GAC/B,YAD+B,IAAAA,MAAA,IACxB,eAAU,kDAAmDA,IAGzDmJ,GAAoB,SAACnJ,GAChC,YADgC,IAAAA,MAAA,IACzB,eACL,mDACA,GACA,CAAEA,OAAM,M","file":"js/chunk-7f769f09.410da86e.js","sourcesContent":["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-7f47800c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"local-registration-container\" }\nconst _hoisted_2 = { class: \"nav\" }\nconst _hoisted_3 = { class: \"search-panel\" }\nconst _hoisted_4 = { class: \"condition-item\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" BU \", -1))\nconst _hoisted_6 = { class: \"condition-item\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" Rule Name \", -1))\nconst _hoisted_8 = { class: \"condition-item\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \" Rule Code \", -1))\nconst _hoisted_10 = { class: \"btn-wrapper\" }\nconst _hoisted_11 = /*#__PURE__*/_createTextVNode(\"Reset\")\nconst _hoisted_12 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_13 = { class: \"content-container\" }\nconst _hoisted_14 = { class: \"btn-wrapper\" }\nconst _hoisted_15 = /*#__PURE__*/_createTextVNode(\"Add\")\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"-\")\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_bu_selector = _resolveComponent(\"bu-selector\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_CheckCircleOutlined = _resolveComponent(\"CheckCircleOutlined\")!\n const _component_FileSearchOutlined = _resolveComponent(\"FileSearchOutlined\")!\n const _component_CalculatorOutlined = _resolveComponent(\"CalculatorOutlined\")!\n const _component_DeleteOutlined = _resolveComponent(\"DeleteOutlined\")!\n const _component_a_checkbox = _resolveComponent(\"a-checkbox\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_calculate = _resolveComponent(\"calculate\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_Breadcrumb, {\n class: \"title-bg\",\n paddingBottom: \"28\",\n dataSource: []\n })\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createVNode(_component_bu_selector, {\n value: _ctx.bu,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.bu) = $event)),\n default: true,\n placeholder: \"Please select\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_a_select, {\n \"show-search\": \"\",\n \"default-active-first-option\": false,\n \"filter-option\": false,\n \"not-found-content\": null,\n value: _ctx.ruleName,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.ruleName) = $event)),\n placeholder: \"Please select\",\n \"allow-clear\": \"\",\n class: \"sel-inp-size\",\n onSearch: _ctx.handleSearch\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.ruleNameList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item,\n key: item\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\", \"onSearch\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_component_a_input, {\n value: _ctx.ruleCode,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.ruleCode) = $event)),\n placeholder: \"Please input\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n (_ctx.$btnPermissions('Local Rate Reset'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n onClick: _ctx.reset\n }, {\n default: _withCtx(() => [\n _hoisted_11\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('Local Rate Search'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n type: \"primary\",\n onClick: _ctx.search\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n (_ctx.$btnPermissions('Local Rate Add'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n type: \"primary\",\n onClick: _ctx.handleAdd\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(_component_a_table, {\n class: \"data-table\",\n pagination: false,\n columns: _ctx.columns,\n \"data-source\": _ctx.data\n }, {\n Registration: _withCtx(({record}) => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.renderRegistration(record)), 1)\n ]),\n exemptionCode: _withCtx(({ record }) => [\n (_ctx.$btnPermissions('Local Rate Code'))\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"exemption-code\",\n onClick: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.jumpToExemption && _ctx.jumpToExemption(...args)))\n }, _toDisplayString(_ctx.renderExceptionCode(record.exemptionCode)), 1))\n : _createCommentVNode(\"\", true)\n ]),\n SpecialDeduction: _withCtx(({ record }) => [\n (record.specialDeduction === 'done')\n ? (_openBlock(), _createBlock(_component_CheckCircleOutlined, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _hoisted_16\n ], 64))\n ]),\n View: _withCtx(({ record }) => [\n (_ctx.$btnPermissions('Local Rate View'))\n ? (_openBlock(), _createBlock(_component_FileSearchOutlined, {\n key: 0,\n onClick: ($event: any) => (_ctx.handleView(record))\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n Calculate: _withCtx(({ record }) => [\n (_ctx.$btnPermissions('Local Rate Calculate'))\n ? (_openBlock(), _createBlock(_component_CalculatorOutlined, {\n key: 0,\n onClick: ($event: any) => (_ctx.handleToCalculate(record))\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n Operation: _withCtx(({record}) => [\n (_ctx.$btnPermissions('Local Rate Del'))\n ? (_openBlock(), _createBlock(_component_DeleteOutlined, {\n key: 0,\n onClick: ($event: any) => (_ctx.deleteCurrentRow(record.id))\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n RegionUsage: _withCtx(({ record }) => [\n _createVNode(_component_a_checkbox, {\n checked: record.regionUsage,\n \"onUpdate:checked\": ($event: any) => ((record.regionUsage) = $event),\n onChange: ($event: any) => (_ctx.saveRegionUsageChange(record))\n }, null, 8, [\"checked\", \"onUpdate:checked\", \"onChange\"])\n ]),\n _: 1\n }, 8, [\"columns\", \"data-source\"])\n ])\n ]),\n _createVNode(_component_calculate, {\n visible: _ctx.calculateDrawerVisible,\n \"onUpdate:visible\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.calculateDrawerVisible) = $event)),\n currentRuleCode: _ctx.currentRuleCode,\n bu: _ctx.bu\n }, null, 8, [\"visible\", \"currentRuleCode\", \"bu\"])\n ], 64))\n}","// This icon file is generated automatically.\nvar CalculatorOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z\" } }] }, \"name\": \"calculator\", \"theme\": \"outlined\" };\nexport default CalculatorOutlined;\n","import * as _vue from \"vue\";\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport CalculatorOutlinedSvg from \"@ant-design/icons-svg/es/asn/CalculatorOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar CalculatorOutlined = function CalculatorOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": CalculatorOutlinedSvg\n }), null);\n};\n\nCalculatorOutlined.displayName = 'CalculatorOutlined';\nCalculatorOutlined.inheritAttrs = false;\nexport default CalculatorOutlined;","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-625f3aec\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"local-registration-container calculate-container\" }\nconst _hoisted_2 = { class: \"calculate-search-panel\" }\nconst _hoisted_3 = { class: \"condition-item\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \"BU\", -1))\nconst _hoisted_5 = { class: \"condition-item\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \"Applicable type class\", -1))\nconst _hoisted_7 = { class: \"condition-item\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \"Retail date from\", -1))\nconst _hoisted_9 = { class: \"condition-item\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", null, \"To\", -1))\nconst _hoisted_11 = { class: \"btn-wrapper\" }\nconst _hoisted_12 = /*#__PURE__*/_createTextVNode(\"Calculate\")\nconst _hoisted_13 = { class: \"content-container\" }\nconst _hoisted_14 = {\n key: 0,\n class: \"process\"\n}\nconst _hoisted_15 = {\n key: 1,\n class: \"process\"\n}\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_17 = { class: \"footer\" }\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Cancel\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_bu_selector = _resolveComponent(\"bu-selector\")!\n const _component_type_classes = _resolveComponent(\"type-classes\")!\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n\n return (_openBlock(), _createBlock(_component_a_drawer, {\n title: \"Calculate\",\n width: \"35%\",\n visible: _ctx.visibleModel,\n \"onUpdate:visible\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.visibleModel) = $event))\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createVNode(_component_bu_selector, {\n value: _ctx.unchangedBu,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.unchangedBu) = $event)),\n placeholder: \"Please select\",\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_type_classes, {\n modelValue: _ctx.typeClasses,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.typeClasses) = $event)),\n mode: \"multiple\",\n allowClear: \"\",\n placeholder: \"Please select\",\n bu: _ctx.bu\n }, null, 8, [\"modelValue\", \"bu\"])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createVNode(_component_a_date_picker, {\n value: _ctx.startTime,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.startTime) = $event)),\n placeholder: \"Please select\",\n \"disabled-date\": _ctx.disabledStartDate,\n allowClear: \"\"\n }, null, 8, [\"value\", \"disabled-date\"])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createVNode(_component_a_date_picker, {\n value: _ctx.endTime,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.endTime) = $event)),\n placeholder: \"Please select\",\n \"disabled-date\": _ctx.disabledEndDate,\n allowClear: \"\"\n }, null, 8, [\"value\", \"disabled-date\"])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.calculatingResult\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createVNode(_component_a_table, {\n class: \"data-table\",\n pagination: false,\n columns: _ctx.columns,\n \"data-source\": _ctx.data\n }, {\n Process: _withCtx(({ record }) => [\n (record.status === '2')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_14, \"Canceled\"))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_15, _toDisplayString(record.process) + \"%\", 1))\n ]),\n Operation: _withCtx(({ record }) => [\n (record.status !== '1' && record.status !== '2')\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n type: \"link\",\n class: \"cancel-btn\",\n onClick: ($event: any) => (_ctx.cancel(record))\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 2\n }, 1032, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"columns\", \"data-source\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {\n default: _withCtx(() => [\n _hoisted_18\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]))\n}","\nimport { defineComponent, ref, watch,computed } from 'vue'\nimport moment, {Moment} from 'moment'\nimport type { PropType } from 'vue'\nimport useModel from '@/hooks/useModel'\nimport BuSelector from '@/views/LocalRegistration/components/BuSelector.vue'\nimport TypeClasses from '@/views/LocalRegistration/components/ApplicableTypeClassSelector2.vue'\nimport {calculationExecute, cancelCalculate, getCalculateDateFrom, getProcessList} from '@/API/localRegistration'\nimport { message } from 'ant-design-vue'\n\nexport default defineComponent({\n components: {\n BuSelector,\n TypeClasses\n },\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n bu: {\n type: String as PropType,\n default: '',\n required: true\n },\n currentRuleCode: {\n type: String as PropType,\n default: '',\n required: true\n }\n },\n setup(props) {\n\n const visibleModel = useModel(props, 'visible')\n const typeClasses = ref([])\n const startTime = ref()\n const endTime = ref()\n\n const unchangedBu = computed(()=> props.bu)\n\n\n const columns = [\n {\n title: 'BU',\n dataIndex: 'bu'\n },\n {\n title: 'Rt Date From',\n dataIndex: 'rtStartTime'\n },\n {\n title: 'To',\n dataIndex: 'rtEndTime'\n },\n {\n title: 'Process',\n slots: { customRender: 'Process' }\n },\n {\n title: 'Operation',\n align: 'center',\n slots: { customRender: 'Operation' }\n },\n {\n title: 'OT',\n dataIndex: 'ot'\n }\n ]\n\n const data = ref([])\n\n const handleCancel = () => {\n visibleModel.value = false\n }\n\n const noEmptyDate = () => {\n if (startTime.value === undefined || endTime.value === undefined){\n message.warning('Please select date!')\n return true\n }\n return false\n }\n\n const getProcess = () => {\n getProcessList({ruleCode: props.currentRuleCode}).then((res: any) => {\n if (typeClasses.value.length === 0){\n data.value = res\n } else {\n data.value = res.filter((item: any) => {\n return typeClasses.value.includes(item.typeClass)\n })\n }\n })\n }\n\n const calculatingResult = () => {\n if (noEmptyDate()) return\n const params = {\n \"bulist\": [\n props.bu\n ],\n \"ruleCode\": props.currentRuleCode,\n \"endTime\": endTime.value?.format('yyyy-MM-DD'),\n \"startTime\": startTime.value?.format('yyyy-MM-DD'),\n }\n calculationExecute(params).then((res: any) => {\n //TODO 有变动 只传bu 并且需要过滤 typeclass\n // if (typeClasses.value.length === 0){\n // data.value = res\n // } else {\n // data.value = res.filter((item: any) => {\n // return typeClasses.value.includes(item.typeClass)\n // })\n // }\n getProcess()\n })\n }\n\n const cancel = (record: any) => {\n const params = {\n id: record.id\n }\n cancelCalculate(params).then((res: any) => {\n message.success(\"The task has been marked as canceled, but the calculation process has not been terminated, please recalculate to get new results.\")\n getProcess()\n })\n }\n\n const disabledStartDate = (current: Moment) => {\n if (endTime.value)\n return current && current > endTime.value;\n }\n const disabledEndDate = (current: Moment) => {\n if (startTime.value)\n {\n return current && current < startTime.value;\n\n }\n }\n\n\n const forbiddenDateFrom = ref(false)\n watch(() => props.visible, (newVisible) => {\n if (!newVisible) return\n getCalculateDateFrom({ruleCode : props.currentRuleCode}).then((res: any) => {\n if (res!== ''){\n startTime.value = moment(res)\n forbiddenDateFrom.value = true\n } else {\n startTime.value = undefined\n forbiddenDateFrom.value = false\n }\n })\n getProcess()\n }, {\n immediate:true\n })\n\n\n return {\n visibleModel,\n columns,\n data,\n handleCancel,\n typeClasses,\n startTime,\n endTime,\n calculatingResult,\n cancel,\n disabledStartDate,\n disabledEndDate,\n forbiddenDateFrom,\n unchangedBu\n }\n }\n})\n","import { render } from \"./Calculate.vue?vue&type=template&id=625f3aec&scoped=true&ts=true\"\nimport script from \"./Calculate.vue?vue&type=script&lang=ts\"\nexport * from \"./Calculate.vue?vue&type=script&lang=ts\"\n\nimport \"./Calculate.vue?vue&type=style&index=0&id=625f3aec&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-625f3aec\"]])\n\nexport default __exports__","\nimport { defineComponent, ref, watch } from 'vue';\nimport { useStore } from 'vuex';\nimport { useRouter } from 'vue-router';\nimport BuSelector from '@/views/LocalRegistration/components/BuSelector.vue';\nimport {\n CheckCircleOutlined,\n FileSearchOutlined,\n CalculatorOutlined,\n DeleteOutlined,\n} from '@ant-design/icons-vue';\nimport Calculate from '@/views/LocalRegistration/Setup/RateCalculationRuleSet/Calculate.vue';\nimport {\n getCalculationRuleList,\n deleteCalculationRule,\n updateCalculationRule,\n} from '@/API/localRegistration';\nimport { message } from 'ant-design-vue';\nimport { debounce } from 'lodash-es';\n\ntype UndefinedString = undefined | string;\n\nexport default defineComponent({\n components: {\n BuSelector,\n CheckCircleOutlined,\n FileSearchOutlined,\n CalculatorOutlined,\n DeleteOutlined,\n Calculate,\n },\n setup() {\n const router = useRouter();\n\n const bu = ref();\n const ruleName = ref(undefined);\n const ruleNameList = ref([]);\n const ruleNameListAll = [\n '三方版',\n '行驶证版',\n '三方为主行驶证为辅版',\n '行驶证为主三方为辅版',\n ];\n const handleSearch = debounce((value: any) => {\n console.log('object', value, !value);\n if (!value) {\n ruleNameList.value = [];\n return;\n }\n ruleNameList.value = ruleNameListAll.filter((item: any) => {\n return item.includes(value);\n });\n }, 800);\n\n const ruleCode = ref('');\n // const getCalculationRuleSelectionList = (bu: string) => {\n // getCalculationRuleSelection(bu).then((res: any) => {\n // ruleNameList.value = res;\n // });\n // };\n // watch(\n // bu,\n // (newBu: any) => {\n // if (newBu) {\n // getCalculationRuleSelectionList(newBu);\n // }\n // },\n // {\n // immediate: true,\n // }\n // );\n\n const reset = () => {\n bu.value = undefined;\n ruleName.value = undefined;\n ruleCode.value = '';\n };\n\n const columns = [\n {\n title: 'Rule Code',\n dataIndex: 'ruleCode',\n },\n {\n title: 'Rule Name',\n dataIndex: 'ruleName',\n },\n {\n title: 'Registration data source',\n slots: {\n customRender: 'Registration',\n },\n },\n {\n title: 'Applicable Exemption Case',\n dataIndex: 'exemptionCode',\n slots: { customRender: 'exemptionCode' },\n },\n {\n title: 'Special Deduction',\n align: 'center',\n slots: { customRender: 'SpecialDeduction' },\n },\n {\n title: 'Last Modified By',\n dataIndex: 'updatedBy',\n },\n {\n title: 'Last Modified Date',\n dataIndex: 'updatedAt',\n },\n {\n title: 'View',\n align: 'center',\n slots: { customRender: 'View' },\n },\n {\n title: 'Calculate',\n align: 'center',\n slots: { customRender: 'Calculate' },\n },\n {\n title: 'Operation',\n align: 'center',\n slots: { customRender: 'Operation' },\n },\n {\n title: 'Region Usage',\n align: 'center',\n slots: { customRender: 'RegionUsage' },\n },\n ];\n\n const data = ref([\n // {\n // licensePlate: 'R20210721012',\n // ruleName: '行驶证版',\n // registrationDateSource: '行驶证',\n // applicableExemptionCase: 'E2021073101 XXXXXXXXXX',\n // specialDeduction: '',\n // lastModifiedBy: 'Dave Liu',\n // lastModifiedDate: '2021-09-13',\n // regionUsage: false,\n // },\n ]);\n\n const search = () => {\n const params = {\n bulist: [bu.value],\n ruleName: ruleName.value ?? '',\n ruleCode: ruleCode.value,\n };\n getCalculationRuleList(params).then((res: any) => {\n data.value = res.map((item: any) => {\n if (item.usage === 'Y') {\n return { ...item, regionUsage: true };\n } else {\n return { ...item, regionUsage: false };\n }\n });\n });\n };\n\n const saveRegionUsageChange = (record: any) => {\n if (record.regionUsage) {\n record.usage = 'Y';\n } else {\n record.usage = 'N';\n }\n updateCalculationRule(record);\n };\n\n const deleteCurrentRow = (id: string) => {\n deleteCalculationRule({ id }).then((res: any) => {\n message.success('Delete Success!');\n search();\n });\n };\n\n const handleAdd = () => {\n router.push({\n path: '/localRegistration/setup/rateCalculationRuleSet/add',\n query: {\n bu: bu.value,\n },\n });\n };\n\n const handleView = (record: any) => {\n router.push({\n path: `/localRegistration/setup/rateCalculationRuleSet/edit`,\n query: {\n bu: record.value,\n id: record.id,\n code: record.ruleCode,\n name: record.ruleName,\n exemptionCode: record.exemptionCode,\n dataSource: record.dataSource,\n description: record.description,\n },\n });\n };\n\n const calculateDrawerVisible = ref(false);\n\n const currentRuleCode = ref('');\n const handleToCalculate = (record: any) => {\n currentRuleCode.value = record.ruleCode;\n calculateDrawerVisible.value = true;\n };\n\n const renderExceptionCode = (code: string) => {\n if (code === '') {\n return code;\n } else {\n return `${code}...`;\n }\n };\n\n const jumpToExemption = () => {\n router.push({\n name: 'Local Registration Data Upload Exemption',\n });\n };\n\n const renderRegistration = (record: any) => {\n const maps = {\n '1': '三方',\n '2': '行驶证',\n '3': '三方,行驶证',\n '4': '行驶证,三方',\n };\n return maps[record.dataSource];\n };\n\n return {\n columns,\n data,\n handleAdd,\n handleView,\n calculateDrawerVisible,\n handleToCalculate,\n bu,\n ruleName,\n ruleNameList,\n ruleCode,\n reset,\n search,\n deleteCurrentRow,\n saveRegionUsageChange,\n handleSearch,\n currentRuleCode,\n renderExceptionCode,\n renderRegistration,\n jumpToExemption,\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=7f47800c&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=7f47800c&lang=scss&scoped=true\"\nimport \"./index.vue?vue&type=style&index=1&id=7f47800c&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-7f47800c\"]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, mergeProps as _mergeProps } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n\n return (_openBlock(), _createBlock(_component_a_select, _mergeProps({\n value: _ctx.valueModel,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.valueModel) = $event))\n }, _ctx.$attrs), {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buList, (bu) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: bu[_ctx.optionKey],\n value: bu[_ctx.optionKey]\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(bu[_ctx.optionTitle]), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 16, [\"value\"]))\n}","\nimport { defineComponent, ref } from 'vue';\nimport type { PropType } from 'vue';\nimport { useStore } from 'vuex';\nimport useModel from '@/hooks/useModel';\nexport default defineComponent({\n name: 'BuSelector',\n props: {\n optionTitle: {\n type: String as PropType,\n default: 'nameEn',\n },\n optionKey: {\n type: String as PropType,\n default: 'nameEn',\n },\n value: {\n type: [String, Number] as PropType,\n },\n default: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['update:value'],\n setup(props) {\n const valueModel = useModel(props, 'value');\n const { state } = useStore();\n const buList = ref(\n state.user.buTreeList.filter((item: { nameEn: string }) =>\n ['MBPC', 'AMG', 'VAN', 'G', 'Maybach'].includes(item.nameEn)\n )\n );\n if (props.default && buList.value.length) {\n valueModel.value = buList.value[0][props.optionKey];\n }\n\n return {\n valueModel,\n buList,\n };\n },\n});\n","import { render } from \"./BuSelector.vue?vue&type=template&id=381c2498&ts=true\"\nimport script from \"./BuSelector.vue?vue&type=script&lang=ts\"\nexport * from \"./BuSelector.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__","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!./Calculate.vue?vue&type=style&index=0&id=625f3aec&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=7f47800c&lang=scss\"","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n\n return (_openBlock(), _createBlock(_component_a_select, _normalizeProps(_guardReactiveProps(_ctx.$attrs)), {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.typeClasses, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: item,\n title: item\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1032, [\"title\"]))\n }), 128))\n ]),\n _: 1\n }, 16))\n}","\nimport { defineComponent, ref,watch } from 'vue'\nimport type { PropType } from 'vue'\nimport {applicableTypeClassListByBu} from '@/API/localRegistration'\nexport default defineComponent({\n name: 'ApplicableTypeClassSelector',\n props: {\n key: {\n type: String as PropType,\n default: 'code'\n },\n bu: {\n type: String as PropType,\n default: '',\n required: true\n }\n },\n setup(props) {\n const typeClasses = ref([])\n watch(()=> props.bu, (newBu: any) => {\n if (newBu!==''){\n applicableTypeClassListByBu({bu: newBu}).then((res: any) => {\n typeClasses.value = res\n })\n }\n }, {immediate: true})\n\n return {\n typeClasses\n }\n }\n})\n","import { render } from \"./ApplicableTypeClassSelector2.vue?vue&type=template&id=8137e6be&ts=true\"\nimport script from \"./ApplicableTypeClassSelector2.vue?vue&type=script&lang=ts\"\nexport * from \"./ApplicableTypeClassSelector2.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__","import { computed, getCurrentInstance } from \"vue\";\n\nconst useModel = (props: any, name: string) => {\n const emit = getCurrentInstance()?.emit;\n return computed({\n get() {\n return props[name]\n },\n set(val) {\n if (emit) {\n emit(`update:${name}`, val)\n }\n },\n });\n};\nexport default useModel;\n","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=0&id=7f47800c&lang=scss&scoped=true\"","// This icon file is generated automatically.\nvar FileSearchOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z\" } }] }, \"name\": \"file-search\", \"theme\": \"outlined\" };\nexport default FileSearchOutlined;\n","import * as _vue from \"vue\";\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport FileSearchOutlinedSvg from \"@ant-design/icons-svg/es/asn/FileSearchOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar FileSearchOutlined = function FileSearchOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": FileSearchOutlinedSvg\n }), null);\n};\n\nFileSearchOutlined.displayName = 'FileSearchOutlined';\nFileSearchOutlined.inheritAttrs = false;\nexport default FileSearchOutlined;","import { fetchGet, fetchPost, fetchPostPic, fetchGetMess } from \"./index\";\nimport axios from \"axios\";\nimport type { AxiosResponse } from \"axios\";\nimport type {\n ThirdPartyUploadSearchParams,\n ThirdPartyDataError,\n ThirdPartyDataFilename,\n ThirdPartyDataUploadData,\n DataListResponse,\n AreaRuleCategory,\n AreaRule,\n AreaRuleProvince,\n AreaRuleCity,\n AreaRuleParams,\n} from \"@/views/LocalRegistration/type\";\n/** Key models set OASIS-16524 */\n/**\n * 根据Bu查typeclass\n * @returns\n */\nexport const getTypclassByBu = () => {\n return fetchPost(\"rvapi/lr/bussinessConfig/dealerApplicableTypeClassMap\");\n};\n/**\n * 列表\n * @returns\n */\nexport const keyModelsList = () => {\n return fetchPost(\"rvapi/lr/keyModel/list\");\n};\n/**\n * 新增\n * @returns\n */\nexport const keyModelsCreate = (data = {}) => {\n return fetchPost(\n \"rvapi/lr/keyModel/create\",\n {},\n {\n params: data,\n }\n );\n};\n/**\n * 删除\n * @returns\n */\nexport const keyModelsDelete = (id = \"\") => {\n return fetchPost(\n \"rvapi/lr/keyModel/delete\",\n {},\n {\n params: {\n id: id,\n },\n }\n );\n};\n/**\n * 修改\n * @returns\n */\nexport const keyModelsEdit = (data = {}) => {\n return fetchPost(\n \"rvapi/lr/keyModel/edit\",\n {},\n {\n params: data,\n }\n );\n};\n\n/** restricted city import OASIS-16522 */\n/**\n * typeClass List\n * @returns\n */\nexport const applicableTypeClassList = () => {\n return fetchGet(\"rvapi/lr/bussinessConfig/allApplicableTypeClassList\");\n};\n/** restricted city import OASIS-16522 */\n/**\n * typeClass List\n * @returns\n */\nexport const applicableTypeClassListByBu = (\n params = {}\n): Promise => {\n return fetchGet(\"rvapi/lr/bussinessConfig/applicableTypeClassListByBu\", {\n params,\n });\n};\n/**\n * typeClass List\n * @returns\n */\nexport const getCityListByName = (params = {}) => {\n return fetchGet(\"rvapi/lr/foundationArea/cityListByName\", { params });\n};\n/**\n * 列表\n * @returns\n */\nexport const queryRestrictCityByBu = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegRestrictCity/queryRestrictCityByBu\", {\n params,\n });\n};\n\n/**\n * 获取省的列表\n * @returns\n */\nexport const getAllProvince = () => {\n return fetchGet(\"rvapi/lr/foundationArea/allProvince\");\n};\n\n/**\n * 保存city\n * @returns\n */\nexport const saveRegRestrictCity = (params = {}) => {\n return fetchPost(\"rvapi/lr/locRegRestrictCity/saveRegRestrictCity\", params);\n};\n\n/**\n * 删除city\n * @param id\n * @returns\n */\nexport const deleteRegRestrictCity = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegRestrictCity/deleteRegRestrictCity\", {\n params,\n });\n};\n\n/**\n * 获取市的列表\n * @param provinceId\n * @returns\n */\nexport const getCityListByProvinceId = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/foundationArea/cityListByProvinceId\", {\n params,\n });\n};\n\n/**\n * 获取所有城市的列表\n * @returns\n */\nexport const getAllCitys = () => {\n return fetchGet(\"rvapi/lr/foundationArea/allCity\");\n};\n\n/** Third party registration data import OASIS-16523 */\n/**\n * 获取年options\n * @returns\n */\nexport const getAllYears = () => {\n return fetchGet(\"rvapi/lr/locRegRestrictUpload/findAllYears\");\n};\n/**\n * 根据年获取version options\n * @param year\n * @returns\n */\nexport const getVersionByYear = (params = {}) => {\n return fetchGet(\"rvapi/lr/locRegRestrictUpload/findAllVersionByYear\", {\n params,\n });\n};\n/**\n * 获取列表\n * @param year\n * @param version\n * @returns\n */\nexport const getListByVersionAndYear = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegRestrictUpload/findByYearAndVersion\", {\n params,\n });\n};\n/**\n * 下载模板\n * @returns\n */\nexport const downloadTemplate = () => {\n return axios.get(`rvapi/lr/locRegRestrictUpload/template`, {\n responseType: \"blob\",\n });\n};\n/**\n * 上传\n * @returns\n */\nexport const uploadRestrictCity = (\n params = {},\n year: string,\n version: string,\n config = {}\n): Promise => {\n return fetchPost(\n `rvapi/lr/locRegRestrictUpload/import/${year}/${version}`,\n params,\n {\n ...config,\n }\n );\n};\n\n/** import OASIS-16525 */\n/**\n * 获取列表\n * @returns\n */\nexport const getValidityList = (pulbishDate: string) => {\n return fetchGet(`rvapi/lr/validity/detail?publishDate=${pulbishDate}`);\n};\n\n/** import OASIS-16526 */\n/**\n * 导出列表\n * @returns\n */\nexport const exportLicenseMappingCityList = (params = {}) => {\n return axios.post(`rvapi/lr/licenseMappingCity/export`, params, {\n responseType: \"blob\",\n });\n};\n/**\n * 获取列表\n * @returns\n */\nexport const getLicenseMappingCityList = (data = {}, params = {}) => {\n return fetchPost(\"rvapi/lr/licenseMappingCity/page/list\", data, {\n params: params,\n });\n};\n/**\n * 获取城市信息\n * @returns\n */\nexport const getCityInfo = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/foundationArea/getCityInfo\", { params });\n};\n/**\n * create\n * @returns\n */\nexport const createLicenseMappingCity = (data = {}) => {\n return fetchPost(\"rvapi/lr/licenseMappingCity/create\", data);\n};\n/**\n * edit\n * @returns\n */\nexport const editLicenseMappingCity = (data = {}) => {\n return fetchPost(\"rvapi/lr/licenseMappingCity/edit\", data);\n};\n/**\n * edit\n * @returns\n */\nexport const getLicenseMappingCityDetail = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/licenseMappingCity/detail\", { params });\n};\n\n/** Third party registration data import OASIS-16534 OASIS-16536 */\n/**\n * 删除\n * @param id\n * @returns\n */\nexport const thirdPartyUploadDelete = (id: number) => {\n return fetchPost(\n \"rvapi/lr/thirdPartyUpload/delete\",\n {},\n {\n params: {\n id,\n },\n }\n );\n};\n\n/** Third party registration data import OASIS-16528 */\n/**\n * add dealer 模糊查询dealerName\n * @param dealerName\n * @returns\n */\nexport const getDealerByName = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegDealerBasicInfo/queryDealerByName\", {\n params,\n });\n};\n/**\n * typeClass List\n * @param dealerBuList\n * @returns\n */\nexport const getDealerApplicableTypeClassList = (data = []) => {\n return fetchPost(\n \"rvapi/lr/bussinessConfig/dealerApplicableTypeClassList\",\n data\n );\n};\n/**\n * add dealer 勾选typeclass判断blank city\n * @param applicableTypeClass\n * @param province\n * @param city\n * @returns\n */\nexport const checkApplicableBlank = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegDealerApplicable/checkApplicableBlank\", {\n params,\n });\n};\n/**\n * add dealer 勾选typeclass生成数据\n * @param applicableTypeClass\n * @param region\n * @param province\n * @param city\n * @returns\n */\nexport const getApplicableDspData = (params = {}) => {\n return fetchGetMess(\n \"rvapi/lr/locRegDealerApplicable/queryApplicableDspData\",\n { params }\n );\n};\n/**\n * add dealer save\n * @param applicableTypeClass\n * @param effectiveTime\n * @param status\n * @returns\n */\nexport const updateLatestDetail = (params: any) => {\n return fetchPost(\n `rvapi/lr/locRegDealerApplicableDetail/updateLatestDetail`,\n params\n );\n};\n\n/**\n * add dealer save\n * @param operationType\n * @param specialAreas\n * @param basicInfo\n * @param checkList\n * @param applicables\n * @returns\n */\nexport const saveBaseInfo = (params = {}) => {\n return fetchPost(\"rvapi/lr/locRegDealerBasicInfo/saveBaseInfo\", params);\n};\n\n/** Third party registration data import OASIS-16529 */\n/**\n * delete dealer 模糊查询dealerName\n * @param dealerName\n * @returns\n */\nexport const getLocalDealerByName = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegDealerBasicInfo/queryLocalDealerByName\", {\n params,\n });\n};\n/**\n * delete dealer 模糊查询dealerName\n * @param dealerName\n * @returns\n */\nexport const searchDealerByCodeAndName = (params = {}) => {\n return fetchGetMess(\"dapi/dealerInfo/searchDealerByCodeAndName\", { params });\n};\n/**\n * delete dealer 模糊查询dealerCode\n * @param dealerName\n * @returns\n */\nexport const getLocalDealerByCode = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegDealerBasicInfo/queryLocalDealerByCode\", {\n params,\n });\n};\n/**\n * 模糊查询swtCode\n * @param dealerName\n * @returns\n */\nexport const getLocalDealerBySwtCode = (params = {}) => {\n return fetchGetMess(\n \"rvapi/lr/locRegDealerBasicInfo/queryLocalDealerBySwtCode\",\n { params }\n );\n};\n\n/**\n * delete dealer 根据dealerId查详情\n * @param dealerName\n * @returns\n */\nexport const getDealerMainData = (params = {}) => {\n return fetchGetMess(\"rvapi/lr/locRegDealerBasicInfo/queryDealerMainData\", {\n params,\n });\n};\n/**\n * delete dealer 取消勾选时查询blankcity\n * @param dealerName\n * @returns\n */\nexport const checkDeleteDealerCauseBlank = (params = {}) => {\n return fetchGetMess(\n \"rvapi/lr/locRegDealerApplicable/checkDeleteDealerCauseBlank\",\n { params }\n );\n};\n/**\n * Query focus area list 16530 查询列表\n * @param dealerName\n * @returns\n */\nexport const searchDealerListByCondition = (params = {}) => {\n return fetchPost(\n \"rvapi/lr/locRegDealerBasicInfo/queryDealerListByCondition\",\n params\n );\n};\n/** Query focus area list 16530 查询列表\n * @param dealerName\n * @returns\n */\nexport const exportDealerListByCondition = (params = {}) => {\n return axios.get(\"rvapi/lr/locRegDealerBasicInfo/exportInfo\", {\n responseType: \"blob\",\n params,\n });\n};\n/**\n * Query focus area list 16531 查询列表\n * @param dealerName\n * @returns\n */\nexport const getDealerLogListByCondition = (params = {}) => {\n return fetchGetMess(\n \"rvapi/lr/locRegDealerLog/queryDealerLogListByCondition\",\n { params }\n );\n};\n\n/**\n * 导出\n * @param filenames\n * @param bu\n * @param beginTime\n * @param endTime\n * @returns\n */\nexport const thirdPartyUploadExport = (\n params: ThirdPartyUploadSearchParams\n): Promise> => {\n return axios.post(\"rvapi/lr/thirdPartyUpload/export\", params, {\n responseType: \"blob\",\n });\n};\n/**\n * 上传\n * @param bu\n * @param file\n * @returns\n */\nexport const thirdPartyUploadImport = (\n bu: string,\n file: Blob,\n options: Record\n): Promise => {\n const params = new FormData();\n params.set(\"file\", file);\n return fetchPost(`rvapi/lr/thirdPartyUpload/import/${bu}`, params, options);\n};\n/**\n * filename筛选条件列表\n * @param bu\n * @param beginTime\n * @param endTime\n * @returns\n */\nexport const thirdPartyUploadFilenameList = (\n beginTime: string,\n endTime: string\n): Promise => {\n return fetchGet(\"rvapi/lr/thirdPartyUpload/listByCreatedAtIn\", {\n params: {\n beginTime,\n endTime,\n },\n });\n};\n/**\n * 列表查询\n * @param params\n * @param current\n * @param size\n * @returns\n */\nexport const thirdPartyUploadList = (\n params: ThirdPartyUploadSearchParams,\n current: number,\n size: number\n): Promise> => {\n return fetchPost(\"rvapi/lr/thirdPartyUpload/page/list\", params, {\n params: {\n current,\n size,\n },\n });\n};\n/**\n * 下载模板\n * @returns\n */\nexport const thirdPartyUploadTemplate = (): Promise> => {\n return axios.post(\n \"rvapi/lr/thirdPartyUpload/template\",\n {},\n {\n responseType: \"blob\",\n }\n );\n};\n\n/*** Key models set OASIS-16541 */\nexport const getCheckingResultData = (params = {}, query: any) => {\n return fetchPost(\n `/rvapi/lr/regCalculationLicensing/getCalLicenCheckResutInfo?current=${query.current}&size=${query.size}`,\n params\n );\n};\n\nexport const exportCheckingResultData = (\n params = {}\n): Promise> => {\n return axios.post(\n \"/rvapi/lr/regCalculationLicensing/exportCalLicenCheckResutInfo\",\n params,\n {\n responseType: \"blob\",\n }\n );\n};\n\n/*** Key models set OASIS-16543 */\nexport const getCalLicenceComparisonInfo = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/regCalculationLicensing/getCalLicenceComparisonInfo\",\n params\n );\n};\n\nexport const exportCalLicenceComparisonInfo = (\n params = {}\n): Promise> => {\n return axios.post(\n \"/rvapi/lr/regCalculationLicensing/exportCalLicenceComparisonInfo\",\n params,\n {\n responseType: \"blob\",\n }\n );\n};\n\n/*** Key models set OASIS-16543 获取查询选项*/\nexport const getCalculationRuleSelection = (\n bu: string\n): Promise<{ id: number; name: string }[]> => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getCalculationRuleSelection?bulist=\" + bu\n );\n};\n\n/*** Key models set OASIS-16541 publish*/\nexport const savePublish = (params = {}) => {\n return fetchPost(\"/rvapi/lr/regCalculationPublish/savePublish\", params);\n};\n\n/*** Key models set OASIS-16541 PublishHistoryList*/\nexport const getPublishHistoryList = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/regCalculationPublish/getPublishHistoryList\",\n {},\n { params }\n );\n};\n\n/*** Key models set OASIS-16537 查询列表*/\nexport const getExemptionList = (params = {}) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleBasic/page/list\", params);\n};\n/*** Key models set OASIS-16537 删除表格数据*/\nexport const deleteExemptionApi = (id: string) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleBasic/delete?id=\" + id);\n};\n/*** Key models set OASIS-16537 下载vinList*/\nexport const downloadExportVinListData = (\n params = {}\n): Promise> => {\n return axios.post(\"rvapi/lr/exemptionRuleBasic/exportVinListData\", params, {\n responseType: \"blob\",\n });\n};\n/*** Key models set OASIS-16537 下载BasicData*/\nexport const downloadExportBasicData = (\n params = {}\n): Promise> => {\n return axios.post(\"rvapi/lr/exemptionRuleBasic/exportBasicData\", params, {\n responseType: \"blob\",\n });\n};\n\n/*** Key models set OASIS-16538 view获取信息*/\nexport const getDetail = (params = {}) => {\n return fetchGet(\"rvapi/lr/exemptionRuleBasic/detail\", { params });\n};\n/*** Key models set OASIS-16538 view获取信息*/\nexport const CreateExemptionCode = () => {\n return fetchGet(\"rvapi/lr/exemptionRuleBasic/createExemptionCode\");\n};\n\n// get customize vin list\nexport const getCustomizeVinList = (params = {}) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleVinDetail/customizeVinList\", params);\n};\n// delete exemption vin detail\nexport const deleteCustomizeVin = (params = {}) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleVinDetail/delete\", {}, { params });\n};\n// get exemption rule vin list\nexport const getExemptionRuleVinList = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/exemptionRuleVinDetail/exemptionRuleVinList\",\n {},\n { params }\n );\n};\n// save exemption rule\nexport const saveContent = (params = {}) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleBasic/saveExemptionRule\", params);\n};\n// save exemption rule\nexport const createContent = (params = {}) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleBasic/createExemptionRule\", params);\n};\n// import excel for exemption rule\n// export const importExemptionRuleExcel = (params = {}) => {\n// return fetchPost('/rvapi/lr/exemptionRuleVinDetail/import/{basicId}', params)\n// }\n\n/**\n * [CR]车辆上牌情况 Query report data info\n * @returns\n */\nexport const queryReportDataInfo = (params = {}) => {\n return fetchPost(\"/rvapi/lr/regLicenseInfo/queryReportDataInfo\", params);\n};\n\n/** Local registration_Focus area rule set OASIS-16533 */\n\nexport const getCategoryList = (): Promise => {\n return fetchGet(\"/rvapi/lr/locRegAreaRule/getCategoryList\");\n};\n\nexport const publishDateList = (): Promise => {\n return fetchGet(\"/rvapi/lr/locRegAreaRule/publish/date/list\");\n};\n\nexport const getAreaRuleList = (publishDate: string): Promise => {\n return fetchGet(`/rvapi/lr/locRegAreaRule/list/${publishDate}`);\n};\n\nexport const dealerApplicableTypeClassMap = (): Promise<\n Record\n> => {\n return fetchPost(\"/rvapi/lr/bussinessConfig/dealerApplicableTypeClassMap\");\n};\n\nexport const getAreaRuleSelectedProvinces = (\n locId: number\n): Promise => {\n return fetchGet(`/rvapi/lr/locRegAreaRuleBlack/province/list/${locId}`);\n};\n\nexport const getAreaRuleSelectedCities = (\n locId: number,\n provineId: number,\n provinceCode: string\n): Promise => {\n return fetchGet(\n `/rvapi/lr/locRegAreaRuleBlack/city/list/${locId}/${provineId}/${provinceCode}`\n );\n};\n\nexport const saveAreaRuleInfo = (params: AreaRuleParams) => {\n return fetchPost(\"/rvapi/lr/locRegAreaRule/saveAreaRuleInfo\", params);\n};\n\n// 16539 16540 接口\n// bu ruleName ruleCode 查询表格数据\nexport const getCalculationRuleList = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getCalculationRuleList\",\n {},\n { params }\n );\n};\n// 根据id 删除一行数据\nexport const deleteCalculationRule = (params = {}) => {\n return fetchPost(\"/rvapi/lr/regCalculationRule/delete\", {}, { params });\n};\n//TODO 对应什么需求?\nexport const getDefaultRule = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getDefaultRule\",\n {},\n { params }\n );\n};\n//TODO 对应什么需求?\nexport const getRegisSelection = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getRegisSelection\",\n {},\n { params }\n );\n};\n// Add 的时候添加新的 rulecode\nexport const createNewRuleCode = () => {\n return fetchPost(\"/rvapi/lr/regCalculationRule/getRuleCode\");\n};\n//TODO 对应什么需求?\nexport const getRuleNameVague = (params = {}) => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getRuleNameVague\",\n {},\n { params }\n );\n};\n// 新建 lr rule\nexport const getExemptionCodeList = (params = {}) => {\n return fetchPost(\"/rvapi/lr/exemptionRuleBasic/exemptionCodeList\", params);\n};\n// 新建 lr rule\nexport const saveCalculationRule = (params = {}) => {\n return fetchPost(\"/rvapi/lr/regCalculationRule/saveCalculationRule\", params);\n};\n// 更新 lr rule\nexport const updateCalculationRule = (params = {}) => {\n return fetchPost(\"/rvapi/lr/regCalculationRule/update\", params);\n};\n\n// calculation 抽屉接口\nexport const calculationExecute = (params = {}) => {\n return fetchPost(\"/rvapi/lr/regCalculationLicensing/execute\", params);\n};\n\n/** Dealer Checking Result Page OASIS-16545 */\nexport const getLocRegCollectResults = (\n params = {},\n query = { current: 1, size: 20 }\n): Promise => {\n return fetchPost(\n `/rvapi/lr/regCalculationLicensing/getLocRegCollectResults?current=${query.current}&size=${query.size}`,\n params\n );\n};\n\nexport const exportLocRegCollectResults = (\n bu: string,\n startTime: string,\n endTime: string,\n userDealerCode: string\n): Promise> => {\n return axios.post(\n \"/rvapi/lr/regCalculationLicensing/exportLocRegCollectResults\",\n {\n bu,\n startTime,\n endTime,\n userDealerCode,\n },\n {\n responseType: \"blob\",\n }\n );\n};\n\n/** Local registration_Registration validity set OASIS-16525 */\nexport const saveValidity = (params = {}): Promise => {\n return fetchPost(\"/rvapi/lr/validity/save\", params);\n};\n\nexport const validityPublishDate = (): Promise => {\n return fetchGet(\"/rvapi/lr/validity/publishDate\");\n};\nexport const getCalculateDateFrom = (params = {}): Promise => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/calculateDateFrom\",\n {},\n { params }\n );\n};\nexport const getProcessList = (params = {}): Promise => {\n return fetchGet(\"/rvapi/lr/regCalculationLicensing/processList\", { params });\n};\nexport const cancelCalculate = (params = {}): Promise => {\n return fetchPost(\"/rvapi/lr/regCalculationLicensing/cancelCalculate\", {}, { params });\n};\n\nexport const getRegionCalculationRuleSelection = (\n params = {}\n): Promise => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getRegionCalculationRuleSelection\",\n {},\n { params }\n );\n};\n\nexport const getGroupCalculationRuleSelection = (\n bulist: string[],\n usage?: \"Y\"\n): Promise => {\n return fetchPost(\n \"/rvapi/lr/regCalculationRule/getGroupCalculationRuleSelection\",\n {},\n {\n params: {\n bulist,\n usage,\n },\n }\n );\n};\n\nexport const queryBlankDealer = (params = {}) => {\n return fetchPost(\"rvapi/lr/locRegDealerBasicInfo/queryBlankDealer\", params);\n};\n\nexport const updatePublishType = (params = {}) => {\n return fetchPost(\n \"rvapi/lr/regCalculationPublish/updatePublishType\",\n {},\n { params }\n );\n};\n"],"sourceRoot":""}