{"version":3,"sources":["webpack:///./src/components/Pagination.vue?1871","webpack:///./src/components/Pagination.vue","webpack:///./src/components/Pagination.vue?abc7","webpack:///./src/API/checking/claimDelayRuleSetup.ts","webpack:///./src/API/dealerMaster.ts","webpack:///./src/hooks/useFetchCommon.ts","webpack:///./src/components/Pagination.vue?8fea","webpack:///./src/views/DealerMasterData/Dealer/Dealer.vue?c666","webpack:///./src/views/DealerMasterData/Dealer/Dealer.vue?757f","webpack:///./src/views/DealerMasterData/Dealer/Dealer.vue","webpack:///./src/views/DealerMasterData/Dealer/Dealer.vue?d314"],"names":["_hoisted_1","class","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_pagination","total","current","defaultPageSize","pageSize","pageSizeOptions","onChange","handlerChange","onShowSizeChange","handlerShowSizeChange","name","props","type","Number","default","required","Array","hideOnSinglePage","Boolean","showQuickJumper","showSizeChanger","emits","setup","content","pageNumber","emit","__exports__","getSetupInformationReview","params","addSetupLst","editSetupLst","deleteSetupLst","id","setupLstView","getBuListNew","getAreasDate","getRegionLst","bu","getAllBu","getDealerGroup","getDealerType","newRegion","reqBody","updateRegion","deleteRegion","getRegion","getRegionDetail","getDealerList","getDealerDetail","dealerId","updateDealerInfo","getDealerHistory","page","size","checkDealer","dealerInfoId","dealerCode","getDealerBlockList","saveBlockRecord","getBlockCodeList","getDealerBlockLink","documentId","fileName","deleteBlockRecord","getDealerBlockView","blockCode","updateAuditState","exportDealerInfo","a","post","responseType","useFetchCommon","parameter","pagination","sizi","data","initData","refreshFetch","resetPage","_params","isPagination","Object","assign","fetchApi","then","res","resTransform","number","totalElements","value","_withScopeId","n","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","key","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_component_Breadcrumb","_component_a_input","_component_a_select_option","_component_a_select","_component_a_button","_component_router_link","_component_a_table","_component_Pagination","_component_main_wrapper","className","header","dataSource","$t","$event","dealerNameEn","dealerNameCn","allowClear","placeholder","dealerGroupNameCnList","mode","dealerGroupList","item","entityCode","entityName","_","provinceEnList","provinceList","provinceEn","cityEnList","cityList","cityEn","status","statusList","label","onClick","handleExport","$btnPermissions","handlerSearch","handlerReset","bordered","scroll","y","tableHeight","x","columns","rowClassName","record","index","rowKey","operation","to","handlerPaginationChange","components","Pagination","t","locale","isEn","title","dataIndex","width","slots","customRender","useTableHeight","dealerListQueryParams","undefined","getProvinceList","provinces","reduce","cities","pro"],"mappings":"uJAGMA,EAAa,CAAEC,MAAO,sCAErB,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA0B,8BAAkB,gBAElD,OAAQ,yBAAc,gCAAoB,MAAOT,EAAY,CAC3D,yBAAaS,EAAyB,CACpCC,MAAOP,EAAKO,MACZ,oBAAqB,GACrB,oBAAqB,GACrBC,QAASR,EAAKQ,QACdC,gBAAiBT,EAAKS,gBACtBC,SAAUV,EAAKU,SACfC,gBAAiBX,EAAKW,gBACtB,aAAc,SAAAJ,GAAS,eAASA,EAAK,UACrCK,SAAUZ,EAAKa,cACfC,iBAAkBd,EAAKe,uBACtB,KAAM,EAAG,CAAC,QAAS,UAAW,kBAAmB,WAAY,kBAAmB,aAAc,WAAY,uBCjB9F,mCAAgB,CAC3BC,KAAM,aACNC,MAAO,CACHV,MAAO,CACHW,KAAMC,OACNC,QAAS,EACTC,UAAU,GAEdV,gBAAiB,CACbO,KAAMI,OAEVZ,SAAU,CACNQ,KAAMC,OACNC,QAAS,IAEbX,gBAAiB,CACbS,KAAMC,OACNC,QAAS,IAEbZ,QAAS,CACLU,KAAMC,OACNC,QAAS,EACTC,UAAU,GAEdE,iBAAkB,CACdL,KAAMM,QACNJ,SAAS,GAEbK,gBAAiB,CACbP,KAAMM,QACNJ,SAAS,GAEbM,gBAAiB,CACbR,KAAMM,QACNJ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iC,IAEVvG,EAAWrB,KAAO,EAClByB,KAGIwE,EAAgB,WACpB5E,EAAWrB,KAAO,EAClByB,KAIIsF,EAA0B,SAAC/G,GAC/BqB,EAAWrB,KAAOA,EAClByB,GAAa,IAGTpE,EAAwB,SAACP,EAAiBE,GAC9CqE,EAAWpB,KAAOjD,EAClB6E,OAAOC,OAAOT,EAAY,CAAErB,KAAMlD,EAASmD,KAAMjD,IACjDyE,GAAa,IAGTsE,EAAe,6D,qEAKN,SAAM,eAAiB4B,I,cAA9BpG,EAAO,SACb,eAAmBA,G,YAGrB,OAAO,+BACL+E,YAAW,EACXE,QAAO,EACPjF,KAAI,EACJF,WAAU,EACVI,aAAY,GACT,oBAAOkG,IAAsB,CAEhCzB,aAAY,EACZD,cAAa,EACbc,wBAAuB,EACvB1J,sBAAqB,EAErB+J,KAAI,EACJpC,gBAAe,EACfM,aAAY,EACZG,SAAQ,EACRG,WAAU,EACVG,aAAY,O,iCClMlB,MAAMzH,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASjC,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-1b849f9f.dc7cd1ba.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-cee45ef6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"pagination-container d-f justify-e\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_a_pagination, {\n total: _ctx.total,\n \"show-size-changer\": \"\",\n \"show-quick-jumper\": \"\",\n current: _ctx.current,\n defaultPageSize: _ctx.defaultPageSize,\n pageSize: _ctx.pageSize,\n pageSizeOptions: _ctx.pageSizeOptions,\n \"show-total\": total => `Total ${total} items`,\n onChange: _ctx.handlerChange,\n onShowSizeChange: _ctx.handlerShowSizeChange\n }, null, 8, [\"total\", \"current\", \"defaultPageSize\", \"pageSize\", \"pageSizeOptions\", \"show-total\", \"onChange\", \"onShowSizeChange\"])\n ]))\n}","\n import { defineComponent } from 'vue';\n\n export default defineComponent({\n name: \"Pagination\",\n props: {\n total: {\n type: Number,\n default: 0,\n required: true\n },\n pageSizeOptions: {\n type: Array,\n },\n pageSize: {\n type: Number,\n default: 10\n },\n defaultPageSize: {\n type: Number,\n default: 10\n },\n current: {\n type: Number,\n default: 1,\n required: true\n },\n hideOnSinglePage: {\n type: Boolean,\n default: false\n },\n showQuickJumper: {\n type: Boolean,\n default: true\n },\n showSizeChanger: {\n type: Boolean,\n default: true\n }\n },\n emits: ['change', 'show-size-change'],\n setup(props, content) {\n const handlerChange = (pageNumber: number) => {\n content.emit('change', pageNumber);\n }\n\n const handlerShowSizeChange = (current: number, pageSize: number) => {\n content.emit('show-size-change', current, pageSize);\n }\n\n return {\n handlerChange,\n handlerShowSizeChange\n }\n }\n })\n","import { render } from \"./Pagination.vue?vue&type=template&id=cee45ef6&scoped=true&ts=true\"\nimport script from \"./Pagination.vue?vue&type=script&lang=ts\"\nexport * from \"./Pagination.vue?vue&type=script&lang=ts\"\n\nimport \"./Pagination.vue?vue&type=style&index=0&id=cee45ef6&scoped=true&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-cee45ef6\"]])\n\nexport default __exports__","import { fetchGet, fetchPost, fetchPostPic, fetchDeletePic } from '../index';\n\n//生成setup information review列表\nexport const getSetupInformationReview = (params = {}): Promise => {\n return fetchGet('/claimapi/delay/rule/list', params);\n};\n//Add\nexport const addSetupLst = (params = {}): Promise => {\n return fetchPostPic('/claimapi/delay/rule/add', params);\n};\n//Edit\nexport const editSetupLst = (params = {}): Promise => {\n return fetchPostPic('/claimapi/delay/rule/edit', params);\n};\n//删除\nexport const deleteSetupLst = (params = { id: '' }): Promise => {\n return fetchDeletePic(`/claimapi/delay/rule/${params.id}`, params);\n};\n//view\nexport const setupLstView = (params = { id: '' }): Promise => {\n return fetchGet(`/claimapi/delay/rule/${params.id}`, params);\n};\n// 获取bu下拉框数据\nexport const getBuList = (): Promise => {\n // return fetchGet('/claimapi/doc/dic/getBuList')\n return fetchGet('/mdapi/bu');\n};\nexport const getBuListNew = (): Promise => {\n return fetchGet('/usapi/noAuth/bu/list');\n};\n// 获取省份城市 限牌城市\nexport const getAreasDate = () => {\n return fetchGet('/dapi/noAuth/dealer/provinceCity');\n // return fetchGet('/mdapi/areas');\n};\n//生成region列表\nexport const getRegionLst = (params = { bu: '' }): Promise => {\n return fetchPost(`/claimapi/common/regionQuery?bu=${params.bu}`, params);\n};\n","import {fetchDelete, fetchDeletePic, fetchGet, fetchPost, fetchPut} from \"./index\";\nimport {\n DealerListQueryParams,\n DealerDetail,\n DealerListProps,\n DealerChangeHistoryProps,\n} from \"@/views/DealerMasterData/Dealer/types\";\nimport {\n Bu,\n DealerGroup,\n DealerType,\n} from \"@/views/DealerMasterData/Region/types\";\nimport {\n NewRegionProps,\n RegionListProps,\n UpdateRegionProps,\n} from \"@/views/DealerMasterData/Region/types\";\nimport axios from \"axios\";\n\nexport const getAllBu = (): Promise => {\n return fetchGet(\"/dapi/allBu\");\n};\n\nexport const getDealerGroup = (): Promise => {\n return fetchGet(\"/dapi/allGroup\");\n};\n\nexport const getDealerType = (): Promise => {\n return fetchGet(\"/dapi/allType\");\n};\n\nexport const newRegion = (reqBody: NewRegionProps): Promise => {\n return fetchPost(\"/dapi/newRegion\", reqBody);\n};\n\nexport const updateRegion = (reqBody: UpdateRegionProps): Promise => {\n return fetchPut(\"/dapi/updateRegion\", reqBody);\n};\n\nexport const deleteRegion = (params: { id: string }): Promise => {\n return fetchDeletePic(`/dapi/deleteRegion/${params.id}`);\n};\n\nexport const getRegion = (params: {\n buId: number;\n}): Promise => {\n return fetchGet(\"/dapi/dealerRegion\", { params });\n};\n\nexport const getRegionDetail = (params: {\n id: number;\n}): Promise => {\n return fetchGet(`/dapi/region/${params.id}`);\n};\n\n//dealer\n\nexport const getDealerList = (\n params: DealerListQueryParams\n): Promise => {\n return fetchGet(\"/dapi/dealerInfo/list\", { params });\n};\n\nexport const getDealerDetail = (params: {\n dealerId: string;\n}): Promise => {\n return fetchGet(`/dapi/dealerInfo/${params.dealerId}`);\n};\n\nexport const updateDealerInfo = (reqBody: DealerDetail): Promise => {\n return fetchPut(\"/dapi/dealerInfo\", reqBody);\n};\n\nexport const getDealerHistory = (params: {\n dealerId: string;\n page: number;\n size: number;\n}): Promise => {\n return fetchGet(`/dapi/dealerHistory/${params.dealerId}`, {\n params: { page: params.page, size: params.size },\n });\n};\n\nexport const checkDealer = (params: {\n dealerInfoId: string;\n dealerCode: string;\n}): Promise => {\n return fetchGet(\n `/dapi/dealerInfo/${params.dealerInfoId}/${params.dealerCode}`\n );\n};\n\n// dealer block\nexport const getDealerBlockList = (params = {}): Promise => {\n return fetchGet(\"/dapi/dealerBlock/list\", { params });\n};\n\n// 上传后保存\nexport const saveBlockRecord = (params = {}): Promise => {\n return fetchPost(\"/dapi/dealerBlock/blockRecord\", params);\n};\n\n// 获取dealerblockcode\nexport const getBlockCodeList = () => {\n return fetchGet(\"/dapi/dealerBlock/allDealerBlockCode\");\n};\n\n// 获取下载文件历史链接\nexport const getDealerBlockLink = (\n documentId: string,\n type: string,\n fileName: string\n) => {\n return fetchGet(\n `/dapi/dealerBlock/download/${documentId}/${type}/${fileName}/link`\n );\n};\n\n// 删除block数据\nexport const deleteBlockRecord = (id: string) => {\n return fetchDelete(`/dapi/dealerBlock/blockRecord/${id}`);\n};\n\n// view的table数据\nexport const getDealerBlockView = (blockCode: string) => {\n return fetchGet(`/dapi/dealerBlock/blockRecord/${blockCode}`);\n};\n\n// 更改状态\nexport const updateAuditState = (params = {}) => {\n return fetchPost(`/dapi/dealerBlock/blockRecord/audit`, {}, { params });\n};\n\nexport const exportDealerInfo = (params: any) => {\n return axios.post(\n \"/dapi/dealerInfo/export\",\n {},\n { params, responseType: \"blob\" }\n );\n};\n","import { onMounted, reactive, ref } from \"vue\";\n\ninterface Pagination {\n size: number; //每页多少条\n page: number; //当前页数\n total: number; //总条数\n}\n\ninterface Params {\n [key: string]: any;\n}\n\n/**\n * 所有的返回的分页都是这个数据格式\n * @param parameter\n * @param parameter params ajax 查询参数\n * @param parameter initData 初始化数据\n * @param parameter fetchApi ajax请求api\n * @param parameter resTransform response 处理函数\n * @param parameter isPagination 是否带分页查询\n *\n */\nfunction useFetchCommon(parameter: { params?: Params; initData: T; fetchApi: Function; resTransform?: Function; isPagination?: boolean }) {\n const pagination = reactive({\n size: parameter.params?.sizi ?? 10,\n page: 1,\n total: 0,\n })\n\n const data = ref(parameter.initData);\n\n /**\n *\n * @param resetPage 是否重置分页page 1\n */\n const refreshFetch = (resetPage = true): void => {\n let _params: Params = {};\n if (parameter.isPagination) {\n _params = resetPage ? Object.assign({}, parameter.params, pagination, { page: 1 }) : Object.assign({}, parameter.params, pagination);\n 'total' in _params && delete _params.total;\n } else {\n _params = parameter.params ?? {};\n }\n parameter.fetchApi(_params).then((res: any) => {\n parameter.resTransform && parameter.resTransform(res);\n if ('number' in res && 'size' in res && 'totalElements' in res) {\n Object.assign(pagination, { size: res.size, page: res.number + 1, total: res.totalElements });\n }\n //处理返回的res.content 和 res.data\n if ('content' in res) {\n data.value = res.content;\n } else if ('data' in res) {\n data.value = res.data;\n } else {\n data.value = res;\n }\n })\n }\n\n onMounted(refreshFetch);\n\n return {\n pagination,\n data,\n refreshFetch\n };\n}\n\nexport default useFetchCommon;\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!./Pagination.vue?vue&type=style&index=0&id=cee45ef6&scoped=true&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!./Dealer.vue?vue&type=style&index=0&id=414b3b1b&scoped=true&lang=scss\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, 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-414b3b1b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"p-r d-f bg-fff m-t-8 search-main\" }\nconst _hoisted_2 = { class: \"flex-w-auto m-l-16\" }\nconst _hoisted_3 = { class: \"label-text-12\" }\nconst _hoisted_4 = { class: \"flex-w-auto m-l-16\" }\nconst _hoisted_5 = { class: \"label-text-12\" }\nconst _hoisted_6 = { class: \"flex-w-auto m-l-16\" }\nconst _hoisted_7 = { class: \"label-text-12\" }\nconst _hoisted_8 = {\n key: 0,\n class: \"flex-w-auto m-l-16\"\n}\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Dealer Group\", -1))\nconst _hoisted_10 = {\n key: 1,\n class: \"flex-w-auto m-l-16\"\n}\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Province\", -1))\nconst _hoisted_12 = {\n key: 2,\n class: \"flex-w-auto m-l-16\"\n}\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"City\", -1))\nconst _hoisted_14 = {\n key: 3,\n class: \"flex-w-auto m-l-16\"\n}\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"Status\", -1))\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-w-auto m-l-16\" }, null, -1))\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-w-auto m-l-16\" }, null, -1))\nconst _hoisted_18 = { class: \"d-f search-btns\" }\nconst _hoisted_19 = /*#__PURE__*/_createTextVNode(\"Export\")\nconst _hoisted_20 = { class: \"p-16 bg-fff m-t-8 flex-w-auto\" }\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_input = _resolveComponent(\"a-input\")!\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_router_link = _resolveComponent(\"router-link\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_Pagination = _resolveComponent(\"Pagination\")!\n const _component_main_wrapper = _resolveComponent(\"main-wrapper\")!\n\n return (_openBlock(), _createBlock(_component_main_wrapper, { className: \"p-l-r-10\" }, {\n header: _withCtx(() => [\n _createVNode(_component_Breadcrumb, { dataSource: [] })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.$t(\"dealerData.dealerCode\")), 1),\n _createVNode(_component_a_input, {\n value: _ctx.dealerCode,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.dealerCode) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.$t(\"dealerData.dealerNameEn\")), 1),\n _createVNode(_component_a_input, {\n value: _ctx.dealerNameEn,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.dealerNameEn) = $event))\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"span\", _hoisted_7, _toDisplayString(_ctx.$t(\"dealerData.dealerNameCn\")), 1),\n _createVNode(_component_a_input, {\n value: _ctx.dealerNameCn,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.dealerNameCn) = $event))\n }, null, 8, [\"value\"])\n ]),\n (_ctx.isEn)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_component_a_select, {\n allowClear: \"\",\n placeholder: \"Please select\",\n class: \"sel-inp-size\",\n value: _ctx.dealerGroupNameCnList,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.dealerGroupNameCnList) = $event)),\n mode: \"multiple\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dealerGroupList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: item.entityCode,\n value: item.entityName\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.entityName), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isEn)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _hoisted_11,\n _createVNode(_component_a_select, {\n allowClear: \"\",\n placeholder: \"Please select\",\n class: \"sel-inp-size\",\n value: _ctx.provinceEnList,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.provinceEnList) = $event)),\n mode: \"multiple\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.provinceList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: item.provinceEn,\n value: item.provinceEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.provinceEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isEn)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_a_select, {\n allowClear: \"\",\n placeholder: \"Please select\",\n class: \"sel-inp-size\",\n value: _ctx.cityEnList,\n \"onUpdate:value\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.cityEnList) = $event)),\n mode: \"multiple\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cityList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: item.cityEn,\n value: item.cityEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.cityEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isEn)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _hoisted_15,\n _createVNode(_component_a_select, {\n allowClear: \"\",\n placeholder: \"Please select\",\n class: \"sel-inp-size\",\n value: _ctx.status,\n \"onUpdate:value\": _cache[6] || (_cache[6] = ($event: any) => ((_ctx.status) = $event))\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.statusList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: item.value,\n value: item.value\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.label), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_16,\n _hoisted_17,\n _createElementVNode(\"div\", _hoisted_18, [\n _createVNode(_component_a_button, {\n class: \"m-l-16\",\n type: \"primary\",\n onClick: _ctx.handleExport\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n (_ctx.$btnPermissions('SEARCH'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"m-l-16\",\n type: \"primary\",\n onClick: _ctx.handlerSearch\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"dealerData.search\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('RESET'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n class: \"m-l-16\",\n onClick: _ctx.handlerReset\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"dealerData.reset\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createVNode(_component_a_table, {\n class: \"tab-container default-self-table-text\",\n dataSource: _ctx.data,\n bordered: \"\",\n scroll: { y: _ctx.tableHeight, x: 1000 },\n columns: _ctx.columns,\n pagination: false,\n rowClassName: \n (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n ,\n rowKey: (item, index) => index\n }, {\n operation: _withCtx(({ record }) => [\n (_ctx.$btnPermissions('EDIT'))\n ? (_openBlock(), _createBlock(_component_router_link, {\n key: 0,\n to: `/dealerMasterData/${record.id}/edit`\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"dealerData.edit\")), 1)\n ]),\n _: 2\n }, 1032, [\"to\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('VIEW'))\n ? (_openBlock(), _createBlock(_component_router_link, {\n key: 1,\n class: \"m-l-16\",\n to: `/dealerMasterData/${record.id}/view`\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"dealerData.view\")), 1)\n ]),\n _: 2\n }, 1032, [\"to\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"dataSource\", \"scroll\", \"columns\", \"rowClassName\", \"rowKey\"]),\n _createVNode(_component_Pagination, {\n onChange: _ctx.handlerPaginationChange,\n current: _ctx.pagination.page,\n onShowSizeChange: _ctx.handlerShowSizeChange,\n pageSize: _ctx.pagination.size,\n total: _ctx.pagination.total\n }, null, 8, [\"onChange\", \"current\", \"onShowSizeChange\", \"pageSize\", \"total\"])\n ])\n ]),\n _: 1\n }))\n}","\nimport { ref, computed, defineComponent, reactive, toRefs, watch } from \"vue\";\nimport useTableHeight from \"@/hooks/useTableHeight\";\nimport useFetchCommon from \"@/hooks/useFetchCommon\";\nimport { getDealerList, exportDealerInfo } from \"@/API/dealerMaster\";\nimport Pagination from \"@/components/Pagination.vue\";\nimport { DealerListProps, DealerListQueryParams } from \"./types\";\nimport { useI18n } from \"vue-i18n\";\nimport { findEntityByids } from \"@/API/approve\";\nimport { getAreasDate } from \"@/API/checking/claimDelayRuleSetup\";\nimport { downloadFromStream } from \"@/utils/payment/downloadFile\";\n\nexport default defineComponent({\n name: \"Dealer\",\n components: {\n Pagination,\n },\n setup() {\n const { t, locale } = useI18n();\n\n const isEn = computed(() => {\n return locale.value === \"en\";\n });\n\n const columns = [\n {\n title: t(\"dealerData.status\"),\n dataIndex: \"statusName\",\n key: \"statusName\",\n width: 100,\n },\n {\n title: t(\"dealerData.gsCode\"),\n dataIndex: \"gsCode\",\n key: \"gsCode\",\n width: 160,\n },\n {\n title: t(\"dealerData.dealerCode\"),\n dataIndex: \"dealerCode\",\n key: \"dealerCode\",\n width: 160,\n },\n {\n title: t(\"dealerData.dealerNameCn\"),\n dataIndex: \"nameCn\",\n key: \"nameCn\",\n width: 260,\n },\n {\n title: t(\"dealerData.dealerNameEn\"),\n dataIndex: \"nameEn\",\n key: \"nameEn\",\n width: 260,\n },\n {\n title: t(\"dealerData.dealerGroup\"),\n dataIndex: \"dealerGroupNameCn\",\n key: \"dealerGroupNameCn\",\n width: 150,\n },\n {\n title: t(\"dealerData.provinceEn\"),\n dataIndex: \"provinceEn\",\n key: \"provinceEn\",\n width: 150,\n },\n {\n title: t(\"dealerData.cityEn\"),\n dataIndex: \"cityEn\",\n key: \"cityEn\",\n width: 150,\n },\n {\n title: t(\"dealerData.operation\"),\n dataIndex: \"operation\",\n key: \"operation\",\n slots: { customRender: \"operation\" },\n width: 150,\n },\n ];\n const { tableHeight } = useTableHeight();\n\n const dealerListQueryParams = reactive({\n dealerCode: \"\",\n dealerNameEn: \"\",\n dealerNameCn: \"\",\n dealerGroupNameCnList: [],\n provinceEnList: [],\n cityEnList: [],\n status: undefined,\n });\n\n const dealerGroupList = ref([]);\n findEntityByids(10008).then((res) => {\n dealerGroupList.value = res;\n });\n\n const provinceList = ref([]);\n const cityList = ref([]);\n\n // const disabledCity = computed(() => {\n // if (dealerListQueryParams.provinceEn) return false;\n // return true;\n // });\n // watch(disabledCity, (newVal) => {\n // if (newVal) {\n // dealerListQueryParams.cityEn = undefined;\n // }\n // });\n const getProvinceList = () => {\n getAreasDate().then((res: any) => {\n const provinces = res;\n provinceList.value = provinces;\n cityList.value = res.reduce((cities: any, pro: any) => {\n return [...cities, ...pro.cityList];\n }, []);\n });\n };\n getProvinceList();\n // const changeProvince = () => {\n // if (dealerListQueryParams.provinceEn) {\n // cityList.value = provinceCityMap[dealerListQueryParams.provinceEn];\n // } else {\n // cityList.value = [];\n // }\n // };\n\n const statusList = [\n { label: \"New\", value: 1 },\n { label: \"Active\", value: 2 },\n { label: \"InActive\", value: 3 },\n ];\n\n const { data, pagination, refreshFetch } = useFetchCommon<\n DealerListProps[]\n >({\n params: dealerListQueryParams,\n initData: [],\n fetchApi: getDealerList,\n isPagination: true,\n });\n\n const handlerReset = () => {\n Object.assign(dealerListQueryParams, {\n dealerCode: \"\",\n dealerNameEn: \"\",\n dealerNameCn: \"\",\n dealerGroupNameCnList: [],\n provinceEnList: [],\n cityEnList: [],\n status: undefined,\n });\n pagination.page = 1;\n refreshFetch();\n };\n\n const handlerSearch = () => {\n pagination.page = 1;\n refreshFetch();\n };\n\n //分页事件处理\n const handlerPaginationChange = (page: number): void => {\n pagination.page = page;\n refreshFetch(false);\n };\n\n const handlerShowSizeChange = (current: number, pageSize: number): void => {\n pagination.size = pageSize;\n Object.assign(pagination, { page: current, size: pageSize });\n refreshFetch(false);\n };\n\n const handleExport = async () => {\n // 导出\n // exportDealerInfo(dealerListQueryParams).then((res: any) => {\n // console.log(res);\n // });\n const data = await exportDealerInfo(dealerListQueryParams);\n downloadFromStream(data);\n };\n\n return {\n tableHeight,\n columns,\n data,\n pagination,\n refreshFetch,\n ...toRefs(dealerListQueryParams),\n\n handlerReset,\n handlerSearch,\n handlerPaginationChange,\n handlerShowSizeChange,\n\n isEn,\n dealerGroupList,\n provinceList,\n cityList,\n statusList,\n handleExport,\n };\n },\n});\n","import { render } from \"./Dealer.vue?vue&type=template&id=414b3b1b&scoped=true&ts=true\"\nimport script from \"./Dealer.vue?vue&type=script&lang=ts\"\nexport * from \"./Dealer.vue?vue&type=script&lang=ts\"\n\nimport \"./Dealer.vue?vue&type=style&index=0&id=414b3b1b&scoped=true&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-414b3b1b\"]])\n\nexport default __exports__"],"sourceRoot":""}