{"version":3,"sources":["webpack:///./src/API/dealerMaster.ts","webpack:///./src/hooks/useFetchCommon.ts","webpack:///./src/views/DealerMasterData/Dealer/DealerView.vue?4828","webpack:///./src/views/DealerMasterData/Dealer/DealerView.vue","webpack:///./src/views/DealerMasterData/Dealer/DealerView.vue?b8b4","webpack:///./src/views/DealerMasterData/Dealer/DealerView.vue?e427"],"names":["getAllBu","getDealerGroup","getDealerType","newRegion","reqBody","updateRegion","deleteRegion","params","id","getRegion","getRegionDetail","getDealerList","getDealerDetail","dealerId","updateDealerInfo","getDealerHistory","page","size","checkDealer","dealerInfoId","dealerCode","getDealerBlockList","saveBlockRecord","getBlockCodeList","getDealerBlockLink","documentId","type","fileName","deleteBlockRecord","getDealerBlockView","blockCode","updateAuditState","exportDealerInfo","a","post","responseType","useFetchCommon","parameter","pagination","sizi","total","data","initData","refreshFetch","resetPage","_params","isPagination","Object","assign","fetchApi","then","res","resTransform","number","totalElements","value","content","_withScopeId","n","_hoisted_1","style","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","key","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_radio","_component_a_radio_group","_component_a_input","_component_a_checkbox","_component_a_checkbox_group","_component_a_date_picker","_component_a_table","_component_main_wrapper","className","header","dataSource","name","$t","default","tmDealerInfoDto","nameCn","statusName","dealerInfoMapping","item","index","e","i","$event","source","options","_","radioItem","radioIndex","buValue","bu","buRegionValue","regionDto","regionItem","subRegionEn","typeCn","placeholder","format","valueFormat","poccDate","tableData","bordered","scroll","y","tableHeight","x","columns","rowClassName","record","paginationData","onChange","handleTableChange","rowKey","before","beforeNameCn","beforeNameEn","after","afterNameCn","afterNameEn","props","String","setup","dealerGroup","gsCode","gcCode","nameEn","dealerGroupNameCn","dealerGroupNameEn","provinceEn","provinceCn","cityCn","cityEn","legalNameCn","legalNameEn","additionalNameCn","additionalNameEn","addressCn","addressEn","zipCode","contactEmail","fixPhone","mobilePhone","fax","mbafcCode","swtCode","vendorCode","isGovernmentRelated","languageValue","dosCode","tmDealerDealerTypeMappingDto","tmDealerRegionMappingDto","t","title","dataIndex","slots","customRender","getDealerDetailData","_dealerType","_bu","dealerDetailData","length","forEach","result","filter","ele","dealerTypeId","uuid","buId","regionId","push","current","pageSize","pag","__exports__"],"mappings":"kHAAA,+uBAmBaA,EAAW,WACtB,OAAO,eAAS,gBAGLC,EAAiB,WAC5B,OAAO,eAAS,mBAGLC,EAAgB,WAC3B,OAAO,eAAS,kBAGLC,EAAY,SAACC,GACxB,OAAO,eAAU,kBAAmBA,IAGzBC,EAAe,SAACD,GAC3B,OAAO,eAAS,qBAAsBA,IAG3BE,EAAe,SAACC,GAC3B,OAAO,eAAe,sBAAsBA,EAAOC,KAGxCC,EAAY,SAACF,GAGxB,OAAO,eAAS,qBAAsB,CAAEA,OAAM,KAGnCG,EAAkB,SAACH,GAG9B,OAAO,eAAS,gBAAgBA,EAAOC,KAK5BG,EAAgB,SAC3BJ,GAEA,OAAO,eAAS,wBAAyB,CAAEA,OAAM,KAGtCK,EAAkB,SAACL,GAG9B,OAAO,eAAS,oBAAoBA,EAAOM,WAGhCC,EAAmB,SAACV,GAC/B,OAAO,eAAS,mBAAoBA,IAGzBW,EAAmB,SAACR,GAK/B,OAAO,eAAS,uBAAuBA,EAAOM,SAAY,CACxDN,OAAQ,CAAES,KAAMT,EAAOS,KAAMC,KAAMV,EAAOU,SAIjCC,EAAc,SAACX,GAI1B,OAAO,eACL,oBAAoBA,EAAOY,aAAY,IAAIZ,EAAOa,aAKzCC,EAAqB,SAACd,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BAAiB,EAEjB+B,eAAc,EACdT,UAAS,EACTM,QAAO,EAEPK,kBAAiB,M,iCCvTjC,MAAM8D,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS1H,GAAQ,CAAC,YAAY,qBAE1E,gB,yDCTf","file":"js/chunk-d935a846.bf78611a.js","sourcesContent":["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","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0a062820\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { style: {\"position\":\"relative\"} }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"view-edit-div\" }, null, -1))\nconst _hoisted_3 = { class: \"d-f justify-b bg-fff m-t-8 p-16 p-r\" }\nconst _hoisted_4 = { class: \"flex-w-auto align-s-c\" }\nconst _hoisted_5 = { class: \"text-label\" }\nconst _hoisted_6 = { class: \"text-value\" }\nconst _hoisted_7 = { class: \"flex-w-auto align-s-c\" }\nconst _hoisted_8 = { class: \"text-label\" }\nconst _hoisted_9 = { class: \"text-value\" }\nconst _hoisted_10 = { class: \"flex-w-auto align-s-c\" }\nconst _hoisted_11 = { class: \"text-label\" }\nconst _hoisted_12 = { class: \"text-value\" }\nconst _hoisted_13 = { class: \"m-t-30 sales-info-wrapper bg-fff p-16\" }\nconst _hoisted_14 = { class: \"title sign-line-b p-r\" }\nconst _hoisted_15 = { class: \"sales-main\" }\nconst _hoisted_16 = { class: \"text-label\" }\nconst _hoisted_17 = {\n key: 0,\n class: \"text-value flex-w-auto\"\n}\nconst _hoisted_18 = { class: \"m-t-30 base-info-wrapper bg-fff p-16\" }\nconst _hoisted_19 = { class: \"title sign-line-b p-r\" }\nconst _hoisted_20 = { class: \"base-info-main m-t-20\" }\nconst _hoisted_21 = { class: \"d-f\" }\nconst _hoisted_22 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"text-label\",\n style: {\"width\":\"calc( 100% / 3 / 3.4 )\"}\n}, \"Business Unit:\", -1))\nconst _hoisted_23 = {\n style: {\"width\":\"calc( 100% / 3 / 3.2 )\"},\n class: \"text-label\"\n}\nconst _hoisted_24 = { class: \"m-t-30 dealer-type-wrapper bg-fff p-16\" }\nconst _hoisted_25 = { class: \"title sign-line-b p-r\" }\nconst _hoisted_26 = { class: \"d-f flex-wrap\" }\nconst _hoisted_27 = { class: \"text-label\" }\nconst _hoisted_28 = { class: \"m-t-30 dealer-type-wrapper bg-fff p-16\" }\nconst _hoisted_29 = { class: \"title sign-line-b p-r\" }\nconst _hoisted_30 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_31 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Breadcrumb = _resolveComponent(\"Breadcrumb\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_radio = _resolveComponent(\"a-radio\")!\n const _component_a_radio_group = _resolveComponent(\"a-radio-group\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_checkbox = _resolveComponent(\"a-checkbox\")!\n const _component_a_checkbox_group = _resolveComponent(\"a-checkbox-group\")!\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\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, {\n dataSource: [{name: _ctx.$t('dealerData.view')}]\n }, null, 8, [\"dataSource\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"p\", _hoisted_4, [\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.$t('dealerDataEdit.dealerCode')) + \":\", 1),\n _createElementVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.data.tmDealerInfoDto.dealerCode), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_7, [\n _createElementVNode(\"span\", _hoisted_8, _toDisplayString(_ctx.$t('dealerDataEdit.dealerNameCn')) + \":\", 1),\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.data.tmDealerInfoDto.nameCn), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_10, [\n _createElementVNode(\"span\", _hoisted_11, _toDisplayString(_ctx.$t('dealerDataEdit.status')) + \":\", 1),\n _createElementVNode(\"span\", _hoisted_12, _toDisplayString(_ctx.data.tmDealerInfoDto.statusName), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"h2\", _hoisted_14, _toDisplayString(_ctx.$t('dealerDataEdit.baseInfo')), 1),\n _createElementVNode(\"div\", _hoisted_15, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dealerInfoMapping, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"d-f justify-b sales-info-row\",\n key: index\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item, (e, i) => {\n return (_openBlock(), _createElementBlock(\"p\", {\n class: \"flex-w-auto d-f\",\n key: i\n }, [\n _createElementVNode(\"span\", _hoisted_16, _toDisplayString(e.name ? e.name + ':' : ''), 1),\n (e.type === 'text')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_17, _toDisplayString(_ctx.data.tmDealerInfoDto[e.key]), 1))\n : (e.type === 'select')\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 1,\n value: _ctx.data.tmDealerInfoDto[e.key],\n \"onUpdate:value\": ($event: any) => ((_ctx.data.tmDealerInfoDto[e.key]) = $event),\n style: {\"width\":\"180px\"}\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(e.source, (options) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n style: {\"width\":\"180px\"},\n value: options.id,\n \"onUpdate:value\": ($event: any) => ((options.id) = $event),\n key: options.id\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(options.nameCn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\"]))\n : (e.type === 'radio')\n ? (_openBlock(), _createBlock(_component_a_radio_group, {\n key: 2,\n value: _ctx.data.tmDealerInfoDto[e.key],\n \"onUpdate:value\": ($event: any) => ((_ctx.data.tmDealerInfoDto[e.key]) = $event)\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(e.source, (radioItem, radioIndex) => {\n return (_openBlock(), _createBlock(_component_a_radio, {\n value: radioItem.value,\n key: radioIndex\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(radioItem.name), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\"]))\n : (e.type === 'input')\n ? (_openBlock(), _createBlock(_component_a_input, {\n key: 3,\n style: {\"width\":\"180px\"},\n value: _ctx.data.tmDealerInfoDto[e.key],\n \"onUpdate:value\": ($event: any) => ((_ctx.data.tmDealerInfoDto[e.key]) = $event)\n }, null, 8, [\"value\", \"onUpdate:value\"]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n }), 128))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"h2\", _hoisted_19, _toDisplayString(_ctx.$t('dealerDataEdit.salesInfo')), 1),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _hoisted_22,\n _createVNode(_component_a_checkbox_group, {\n value: _ctx.buValue,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.buValue) = $event))\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.bu, (item) => {\n return (_openBlock(), _createBlock(_component_a_checkbox, {\n value: item,\n key: item.id\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.nameCn), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buValue, (item) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n class: \"d-f m-t-20\",\n key: item.id\n }, [\n _createElementVNode(\"span\", _hoisted_23, _toDisplayString(item.nameCn), 1),\n _createVNode(_component_a_radio_group, {\n value: item.buRegionValue,\n \"onUpdate:value\": ($event: any) => ((item.buRegionValue) = $event)\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.regionDto, (regionItem) => {\n return (_openBlock(), _createBlock(_component_a_radio, {\n value: regionItem,\n key: regionItem.id\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(regionItem.subRegionEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\"])\n ]))\n }), 128))\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"h2\", _hoisted_25, _toDisplayString(_ctx.$t('dealerDataEdit.dealerType')), 1),\n _createElementVNode(\"div\", _hoisted_26, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.type, (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"dealer-type-item d-f\",\n key: item.id\n }, [\n _createElementVNode(\"span\", _hoisted_27, _toDisplayString(item.typeCn), 1),\n _createVNode(_component_a_date_picker, {\n \"show-time\": \"\",\n placeholder: \"Select Time\",\n format: \"YYYY-MM-DD\",\n valueFormat: \"YYYY-MM-DD\",\n value: item.poccDate,\n \"onUpdate:value\": ($event: any) => ((item.poccDate) = $event)\n }, null, 8, [\"value\", \"onUpdate:value\"])\n ]))\n }), 128))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"h2\", _hoisted_29, _toDisplayString(_ctx.$t('dealerDataEdit.changeHistory')), 1),\n _createVNode(_component_a_table, {\n class: \"tab-container default-self-table-text m-t-30\",\n dataSource: _ctx.tableData,\n bordered: \"\",\n scroll: { y: _ctx.tableHeight, x: 1000 },\n columns: _ctx.columns,\n rowClassName: (record, index) => index % 2 === 1 ? 'table-striped' : null,\n pagination: _ctx.paginationData,\n onChange: _ctx.handleTableChange,\n rowKey: (item, index) => index\n }, {\n before: _withCtx(({ record }) => [\n _createTextVNode(_toDisplayString(record.beforeNameCn), 1),\n _hoisted_30,\n _createTextVNode(_toDisplayString(record.beforeNameEn), 1)\n ]),\n after: _withCtx(({ record }) => [\n _createTextVNode(_toDisplayString(record.afterNameCn), 1),\n _hoisted_31,\n _createTextVNode(_toDisplayString(record.afterNameEn), 1)\n ]),\n _: 1\n }, 8, [\"dataSource\", \"scroll\", \"columns\", \"rowClassName\", \"pagination\", \"onChange\", \"rowKey\"])\n ])\n ])\n ]),\n _: 1\n }))\n}","\n import { defineComponent, reactive, ref, onMounted, computed } from 'vue';\n import useFetchCommon from \"@/hooks/useFetchCommon\";\n import { getDealerType, getDealerGroup, getDealerDetail, getAllBu, getDealerHistory } from \"@/API/dealerMaster\";\n import { DealerType, DealerGroup, Bu } from \"@/views/DealerMasterData/Region/types\";\n import { DealerDetail, DealerChangeHistoryProps } from './types';\n import { TableState } from 'ant-design-vue/es/table/interface';\n import { useI18n } from 'vue-i18n';\n type Pagination = TableState['pagination'];\n\n export default defineComponent({\n name: \"DealerView\",\n props: {\n dealerId: {\n type: String\n }\n },\n setup(props) {\n const buValue = ref([]);\n\n const { data: dealerGroup } = useFetchCommon({ initData: [], fetchApi: getDealerGroup });\n\n const { data: tableData, pagination, refreshFetch } = useFetchCommon({ params: { dealerId: props.dealerId },initData: [], fetchApi: getDealerHistory });\n\n const initData = {\n tmDealerInfoDto: {\n id: '',\n dealerCode: '',\n gsCode: '',\n gcCode: '',\n statusName: '',\n nameCn: '',\n nameEn: '',\n dealerGroup: '',\n dealerGroupNameCn: '',\n dealerGroupNameEn: '',\n provinceEn: '',\n provinceCn: '',\n cityCn: '',\n cityEn: '',\n legalNameCn: '',\n legalNameEn: '',\n additionalNameCn: '',\n additionalNameEn: '',\n addressCn: '',\n addressEn: '',\n zipCode: '',\n format: '',\n contactEmail: '',\n fixPhone: '',\n mobilePhone: '',\n fax: '',\n mbafcCode: null,\n swtCode: null,\n vendorCode: null,\n isGovernmentRelated: 0,\n languageValue: null,\n dosCode: null\n },\n tmDealerDealerTypeMappingDto: [],\n tmDealerRegionMappingDto: []\n }\n\n const data = reactive(initData);\n\n const type = ref([]);\n\n const bu = ref([]);\n\n const { t } = useI18n()\n\n const columns = [\n {\n title: t('dealerDataEdit.changeDate'),\n dataIndex: 'createdAt',\n key: 'createdAt'\n },\n {\n title: t('dealerDataEdit.changeBefore'),\n dataIndex: 'beforeNameCn',\n key: 'beforeNameCn',\n slots: { customRender: 'before' }\n },\n {\n title: t('dealerDataEdit.changeAfter'),\n dataIndex: 'afterNameCn',\n key: 'afterNameCn',\n slots: { customRender: 'after' }\n },\n {\n title: t('dealerDataEdit.operationUser'),\n dataIndex: 'createdBy',\n key: 'createdBy'\n }\n ];\n\n const dealerInfoMapping = reactive([\n [\n {\n name: t('dealerDataEdit.legalNameCn'),\n key: 'legalNameCn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.legalNameEn'),\n key: 'legalNameEn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.additionalNameCn'),\n key: 'additionalNameCn',\n type: 'text'\n }\n ],\n [\n {\n name: t('dealerDataEdit.additionalNameEn'),\n key: 'additionalNameEn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.provinceCn'),\n key: 'provinceCn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.provinceEn2'),\n key: 'provinceEn',\n type: 'text'\n }\n ],\n [\n {\n name: t('dealerDataEdit.cityCn'),\n key: 'cityCn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.cityEn2'),\n key: 'cityEn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.addressCn'),\n key: 'addressCn',\n type: 'text'\n }\n ],\n [\n {\n name: t('dealerDataEdit.addressEn'),\n key: 'addressEn',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.zipCode'),\n key: 'zipCode',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.format'),\n key: 'format',\n type: 'text'\n }\n ],\n [\n {\n name: t('dealerDataEdit.contactEmail'),\n key: 'contactEmail',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.fixPhone'),\n key: 'fixPhone',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.dealerGroup2'),\n key: 'dealerGroupNameEn',\n type: 'text'\n },\n ],\n [\n {\n name: t('dealerDataEdit.swtCode'),\n key: 'swtCode',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.vendorCode'),\n key: 'vendorCode',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.mbafcCode'),\n key: 'mbafcCode',\n type: 'text'\n },\n ],\n [\n {\n name: t('dealerDataEdit.languageValue'),\n key: 'languageValue',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.dosCode'),\n key: 'dosCode',\n type: 'text'\n },\n {\n name: t('dealerDataEdit.isGovernmentRelated'),\n key: 'isGovernmentRelated',\n type: 'radio',\n source: [\n {\n name: t('dealerDataEdit.yes'),\n value: 1\n },\n {\n name: t('dealerDataEdit.no'),\n value: 0\n }\n ]\n }\n ],\n [\n {\n name: t('dealerDataEdit.dealer400Code'),\n key: 'dealer400Code',\n type: 'text',\n },\n {\n name: '',\n key: '',\n type: 'text',\n },\n {\n name: '',\n key: '',\n type: 'text',\n },\n ],\n [\n {\n name: '',\n key: '',\n type: 'text'\n }\n ]\n ]);\n\n const getDealerDetailData = async () => {\n const _dealerType = await getDealerType();\n const _bu = await getAllBu();\n const dealerDetailData = await getDealerDetail({ dealerId: props.dealerId as string });\n\n if (dealerDetailData.tmDealerDealerTypeMappingDto.length > 0) {\n _dealerType.forEach(item => {\n const result = dealerDetailData.tmDealerDealerTypeMappingDto.filter(ele => ele.dealerTypeId == item.id);\n if (result.length > 0){\n item.poccDate = result[0].poccDate;\n item.uuid = result[0].id;\n } else {\n item.poccDate = '';\n }\n })\n }\n\n if (dealerDetailData.tmDealerRegionMappingDto.length > 0) {\n _bu.forEach(bu => {\n const result = dealerDetailData.tmDealerRegionMappingDto.filter(ele => ele.buId == bu.id);\n if (result.length > 0){\n bu.buRegionValue = (() => bu.regionDto?.filter(item => item.id === result[0].regionId)[0] ?? null)();\n bu.uuid = result[0].id;\n buValue.value.push(bu);\n } else {\n bu.buRegionValue = null;\n bu.uuid = '';\n }\n })\n }\n\n Object.assign(data, dealerDetailData);\n\n type.value = _dealerType.filter(item => item.poccDate);\n bu.value = _bu\n }\n\n const paginationData = computed(() => ({\n total: pagination.total,\n current: pagination.page,\n pageSize: pagination.size,\n }));\n\n const handleTableChange = (pag: Pagination) => {\n pagination.page = pag?.current as number;\n refreshFetch(false);\n }\n\n onMounted(() => {\n getDealerDetailData();\n })\n\n return {\n type,\n data,\n\n dealerGroup,\n bu,\n buValue,\n\n dealerInfoMapping,\n\n paginationData,\n tableData,\n columns,\n\n handleTableChange\n }\n }\n })\n","import { render } from \"./DealerView.vue?vue&type=template&id=0a062820&scoped=true&ts=true\"\nimport script from \"./DealerView.vue?vue&type=script&lang=ts\"\nexport * from \"./DealerView.vue?vue&type=script&lang=ts\"\n\nimport \"./DealerView.vue?vue&type=style&index=0&id=0a062820&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-0a062820\"]])\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!./DealerView.vue?vue&type=style&index=0&id=0a062820&scoped=true&lang=scss\""],"sourceRoot":""}