{"version":3,"sources":["webpack:///./src/components/express/site_query.vue?814a","webpack:///./src/components/express/site_query.vue","webpack:///./src/components/express/site_query.vue?cebc"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","key","_hoisted_4","_defineComponent","__name","setup","__props","t","useI18n","showSelect","ref","isDefault","SiteSet","DefaultMapcenter","center","value","zoom","Cities","CityName","Warehouses","WarehouseDetails","item","lat","Number","LatSize","lng","LngSize","ElMessageBox","alert","Consignee","Mobile","Address","WarehouseName","dangerouslyUseHTMLString","GetWarehouses","City","Api","city_id","CityId","then","res","onMounted","_ctx","_cache","_component_Search","_resolveComponent","_component_el_icon","_component_Shop","_component_ArrowRightBold","_openBlock","_createElementBlock","_createElementVNode","onMouseleave","$event","onMouseenter","_createTextVNode","_toDisplayString","$t","_createVNode","default","_withCtx","_","_Transition","name","_withDirectives","_Fragment","_renderList","Citie","onClick","_vShow","Warehouse","WarehouseId","_createCommentVNode","_unref","GoogleMap","$mapKey","style","minZoom","clickableIcons","language","_createBlock","Marker","options","position","InfoWindow","__exports__"],"mappings":"8NAGA,MACMA,EAAa,CAAEC,MAAO,cACtBC,EAAa,CAAC,WACdC,EAAa,CACjBC,IAAK,EACLH,MAAO,gBAEHI,EAAa,CAAC,WASQC,mCAAiB,CAC3CC,OAAQ,aACRC,MAAMC,GAER,MAAM,EAAEC,GAAMC,iBAERC,EAAaC,kBAAI,GACjBC,EAAYD,iBAAIE,iBAAUC,kBAC1BC,EAASJ,iBAAIC,EAAUI,OACvBC,EAAON,iBAAI,IACXO,EAASP,iBAAI,MACbQ,EAAWR,iBAAI,MACfS,EAAaT,iBAAI,MAEjBU,EAAoBC,IACxBL,EAAKD,MAAQ,GACbD,EAAOC,MAAQ,CACbO,IAAKC,OAAOF,EAAKG,SACjBC,IAAKF,OAAOF,EAAKK,UAGnBC,OAAaC,MACXrB,EAAE,OACA,KACAc,EAAKQ,UACL,OACAtB,EAAE,QACF,KACAc,EAAKS,OACL,OACAvB,EAAE,MACF,KACAc,EA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QAASC,qBAAS,IAAM,CACtBT,gCAAoB,IAAK,KAAM,CAC7BA,gCAAoB,IAAK,KAAMK,6BAAiBd,EAAKe,GAAG,QAAU,KAAOD,6BAAiBc,EAAUzC,WAAY,GAChHsB,gCAAoB,IAAK,KAAMK,6BAAiBd,EAAKe,GAAG,SAAW,KAAOD,6BAAiBc,EAAUxC,QAAS,GAC9GqB,gCAAoB,IAAK,KAAMK,6BAAiBd,EAAKe,GAAG,OAAS,KAAOD,6BAAiBc,EAAUvC,SAAU,OAGjH8B,EAAG,GACF,QAELA,EAAG,GACF,KAAM,CAAC,cACR,QAENA,EAAG,GACF,EAAG,CAAC,UAAW,SAAU,e,iCCrLhC,MAAMwB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB,kCCRf","file":"assets/js/chunk-99d7f6de.306df955.js","sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, vShow as _vShow, withDirectives as _withDirectives, Transition as _Transition, createCommentVNode as _createCommentVNode, unref as _unref, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0d358d6e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"site_query\" }\nconst _hoisted_2 = [\"onClick\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"isWarehouses\"\n}\nconst _hoisted_4 = [\"onClick\"]\n\nimport { watch, ref, onMounted } from 'vue'\r\nimport { GoogleMap, InfoWindow, Marker } from 'vue3-google-map'\r\nimport { ElMessageBox } from 'element-plus'\r\nimport { useI18n } from 'vue-i18n'\r\nimport * as Api from '@/utils/api'\r\nimport { SiteSet } from '@/utils/siteConfig'\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'site_query',\n setup(__props) {\n\r\nconst { t } = useI18n()\r\n\r\nconst showSelect = ref(false)\r\nconst isDefault = ref(SiteSet().DefaultMapcenter)\r\nconst center = ref(isDefault.value)\r\nconst zoom = ref(12)\r\nconst Cities = ref(null)\r\nconst CityName = ref(null)\r\nconst Warehouses = ref(null)\r\n\r\nconst WarehouseDetails = (item) => {\r\n zoom.value = 18\r\n center.value = {\r\n lat: Number(item.LatSize),\r\n lng: Number(item.LngSize),\r\n }\r\n\r\n ElMessageBox.alert(\r\n t('联系人') +\r\n ': ' +\r\n item.Consignee +\r\n '
' +\r\n t('联系电话') +\r\n ': ' +\r\n item.Mobile +\r\n '
' +\r\n t('地址') +\r\n ': ' +\r\n item.Address +\r\n '
',\r\n item.WarehouseName,\r\n {\r\n dangerouslyUseHTMLString: true,\r\n }\r\n )\r\n}\r\n\r\nconst GetWarehouses = (City) => {\r\n showSelect.value = false\r\n Warehouses.value = null\r\n CityName.value = City.CityName\r\n Api.Get('basic/api/GetSignWarehouse', {\r\n city_id: City.CityId,\r\n }).then((res) => {\r\n Warehouses.value = res.Warehouses\r\n center.value = {\r\n lat: Number(res.Warehouses[0].LatSize),\r\n lng: Number(res.Warehouses[0].LngSize),\r\n }\r\n })\r\n}\r\n\r\nonMounted(() => {\r\n Api.Get('basic/api/GetCitiesByCountryCode/', {}).then((res) => {\r\n Cities.value = res.Cities\r\n })\r\n})\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Search = _resolveComponent(\"Search\")!\n const _component_el_icon = _resolveComponent(\"el-icon\")!\n const _component_Shop = _resolveComponent(\"Shop\")!\n const _component_ArrowRightBold = _resolveComponent(\"ArrowRightBold\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"MapSelect\",\n onMouseleave: _cache[1] || (_cache[1] = ($event: any) => (showSelect.value = false))\n }, [\n _createElementVNode(\"span\", {\n onMouseenter: _cache[0] || (_cache[0] = ($event: any) => (showSelect.value = true))\n }, [\n _createTextVNode(_toDisplayString(CityName.value ? CityName.value : _ctx.$t('按城市查询')) + \" \", 1),\n _createVNode(_component_el_icon, null, {\n default: _withCtx(() => [\n _createVNode(_component_Search)\n ]),\n _: 1\n })\n ], 32),\n _createVNode(_Transition, { name: \"el-fade-in\" }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(Cities.value, (Citie) => {\n return (_openBlock(), _createElementBlock(\"label\", {\n key: Citie.CityId,\n onClick: ($event: any) => (GetWarehouses(Citie))\n }, _toDisplayString(Citie.CityName), 9, _hoisted_2))\n }), 128))\n ], 512), [\n [_vShow, showSelect.value]\n ])\n ]),\n _: 1\n })\n ], 32),\n _createVNode(_Transition, { name: \"el-fade-in\" }, {\n default: _withCtx(() => [\n (Warehouses.value)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(Warehouses.value, (Warehouse) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: Warehouse.WarehouseId,\n onClick: ($event: any) => (WarehouseDetails(Warehouse))\n }, [\n _createVNode(_component_el_icon, null, {\n default: _withCtx(() => [\n _createVNode(_component_Shop)\n ]),\n _: 1\n }),\n _createTextVNode(\" \" + _toDisplayString(Warehouse.WarehouseName) + \" \", 1),\n _createVNode(_component_el_icon, null, {\n default: _withCtx(() => [\n _createVNode(_component_ArrowRightBold)\n ]),\n _: 1\n })\n ], 8, _hoisted_4))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }),\n _createVNode(_unref(GoogleMap), {\n ref: \"mapRef\",\n \"api-key\": _ctx.$mapKey,\n style: {\"width\":\"100%\",\"height\":\"600px\"},\n center: center.value,\n zoom: zoom.value,\n minZoom: 11,\n clickableIcons: false,\n \"disable-default-ui\": true,\n language: \"en\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(Warehouses.value, (Warehouse) => {\n return (_openBlock(), _createBlock(_unref(Marker), {\n key: Warehouse.WarehouseId,\n options: {\r\n position: {\r\n lat: Number(Warehouse.LatSize),\r\n lng: Number(Warehouse.LngSize),\r\n },\r\n }\n }, {\n default: _withCtx(() => [\n _createVNode(_unref(InfoWindow), null, {\n default: _withCtx(() => [\n _createElementVNode(\"b\", null, [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t('联系人')) + \": \" + _toDisplayString(Warehouse.Consignee), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t('联系电话')) + \": \" + _toDisplayString(Warehouse.Mobile), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t('地址')) + \": \" + _toDisplayString(Warehouse.Address), 1)\n ])\n ]),\n _: 2\n }, 1024)\n ]),\n _: 2\n }, 1032, [\"options\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"api-key\", \"center\", \"zoom\"])\n ]))\n}\n}\n\n})","import script from \"./site_query.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./site_query.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./site_query.vue?vue&type=style&index=0&id=0d358d6e&scoped=true&lang=scss\"\n\nimport exportComponent from \"F:\\\\store\\\\NewLODAPC\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0d358d6e\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../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-loader-v16/dist/index.js??ref--1-1!./site_query.vue?vue&type=style&index=0&id=0d358d6e&scoped=true&lang=scss\""],"sourceRoot":""}