{"version":3,"sources":["webpack:///./src/components/express/site_query.vue?6d95","webpack:///./src/components/express/site_query.vue?814a","webpack:///./src/components/express/site_query.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","key","_hoisted_4","_defineComponent","__name","setup","__props","useI18n","t","showSelect","ref","isDefault","lat","lng","center","value","zoom","Cities","CityName","Warehouses","WarehouseDetails","item","Number","LatSize","LngSize","ElMessageBox","alert","Consignee","Mobile","Address","WarehouseName","dangerouslyUseHTMLString","GetWarehouses","City","Api","city_id","CityId","then","res","onMounted","CountryCode","_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":"gHAAA,W,8ICIMA,EAAa,CAAEC,MAAO,cACtBC,EAAa,CAAC,WACdC,EAAa,CACjBC,IAAK,EACLH,MAAO,gBAEHI,EAAa,CAAC,WAQQC,+BAAiB,CAC3CC,OAAQ,aACRC,MAF2C,SAErCC,GAER,MAAcC,iBAANC,EAAR,EAAQA,EAEFC,EAAaC,kBAAI,GACjBC,EAAYD,iBAAI,CAAEE,IAAK,WAAYC,IAAK,cACxCC,EAASJ,iBAAIC,EAAUI,OACvBC,EAAON,iBAAI,IACXO,EAASP,iBAAI,MACbQ,EAAWR,iBAAI,MACfS,EAAaT,iBAAI,MAEjBU,EAAmB,SAACC,GACxBL,EAAKD,MAAQ,GACbD,EAAOC,MAAQ,CACbH,IAAKU,OAAOD,EAAKE,SACjBV,IAAKS,OAAOD,EAAKG,UAGnBC,OAAaC,MACXlB,EAAE,OACA,KACAa,EAAKM,UACL,OACAnB,EAAE,QACF,KACAa,EAAKO,OACL,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KU,OAAO+C,EAAU9C,SACtBV,IAAKS,OAAO+C,EAAU7C,YAGrB,CACDkC,QAASC,sBAAS,iBAAM,CACtBF,yBAAae,mBAAOW,QAAa,KAAM,CACrCzB,QAASC,sBAAS,iBAAM,CACtBT,gCAAoB,IAAK,KAAM,CAC7BA,gCAAoB,IAAK,KAAMK,6BAAiBd,EAAKe,GAAG,QAAU,KAAOD,6BAAiBc,EAAU1C,WAAY,GAChHuB,gCAAoB,IAAK,KAAMK,6BAAiBd,EAAKe,GAAG,SAAW,KAAOD,6BAAiBc,EAAUzC,QAAS,GAC9GsB,gCAAoB,IAAK,KAAMK,6BAAiBd,EAAKe,GAAG,OAAS,KAAOD,6BAAiBc,EAAUxC,SAAU,SAGjH+B,EAAG,GACF,UAELA,EAAG,GACF,KAAM,CAAC,eACR,UAENA,EAAG,GACF,EAAG,CAAC,UAAW,SAAU,e,iCCtLhC,MAAMwB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD","file":"assets/js/chunk-4b67ae80.c413a221.js","sourcesContent":["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=10d79a0c&scoped=true&lang=scss\"","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-10d79a0c\"),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\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({ lat: 11.5466075, lng: 104.9005807 })\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/', {\r\n CountryCode: 'KH',\r\n }).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=10d79a0c&scoped=true&lang=scss\"\n\nimport exportComponent from \"F:\\\\NewLODAPC\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-10d79a0c\"]])\n\nexport default __exports__"],"sourceRoot":""}