|
|
@@ -140,7 +140,7 @@
|
|
|
:src="list.img"
|
|
|
@click="deleteImgs(list.img)" />
|
|
|
<p style="text-align: center">
|
|
|
- {{ list.ifJzStoreType != 1 ? "门店照" : "家装前台照片" }}
|
|
|
+ {{ list.ifJzStoreType != 1 ? '门店照' : '家装前台照片' }}
|
|
|
</p>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
@@ -150,7 +150,7 @@
|
|
|
:src="list.img"
|
|
|
@click="deleteImgs(list.img)" />
|
|
|
<p style="text-align: center">
|
|
|
- {{ list.storeCategory == "C912" ? "工地铭牌照片" : "公司照片" }}
|
|
|
+ {{ list.storeCategory == 'C912' ? '工地铭牌照片' : '公司照片' }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</van-col>
|
|
|
@@ -162,7 +162,7 @@
|
|
|
:src="list.imgSed"
|
|
|
@click="deleteImgs(list.imgSed)" />
|
|
|
<p style="text-align: center">
|
|
|
- {{ list.ifJzStoreType != 1 ? "陈列照" : "立邦展厅照片" }}
|
|
|
+ {{ list.ifJzStoreType != 1 ? '陈列照' : '立邦展厅照片' }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</van-col>
|
|
|
@@ -368,7 +368,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { ImagePreview } from "vant";
|
|
|
+import { ImagePreview } from 'vant';
|
|
|
import {
|
|
|
getById,
|
|
|
getStoreTypeList,
|
|
|
@@ -386,29 +386,29 @@ import {
|
|
|
getManagementModelList,
|
|
|
getpotentialCustomerTypeList,
|
|
|
streetQuery,
|
|
|
-} from "@/api/index";
|
|
|
-import mapmarker from "@/components/mapMarker";
|
|
|
-import viewUploadImg from "@/components/viewUploadImg";
|
|
|
-import txmapimg1 from "@/assets/txmap1.svg";
|
|
|
-import txmapimg2 from "@/assets/txmap2.svg";
|
|
|
-import txmapimg3 from "@/assets/marker_blue.png";
|
|
|
-import axios from "axios";
|
|
|
-import { updateStoreAddress, valid } from "@/api/visitstore";
|
|
|
-import uploadImg from "@/components/viewaddreddUploadImg.vue";
|
|
|
-import helpPage from "./helpPage.vue";
|
|
|
-import { getPosition, getMapPoi, getkeywordPoi, getTicketFun } from "@/utils/getPosition";
|
|
|
+} from '@/api/index';
|
|
|
+import mapmarker from '@/components/mapMarker';
|
|
|
+import viewUploadImg from '@/components/viewUploadImg';
|
|
|
+import txmapimg1 from '@/assets/txmap1.svg';
|
|
|
+import txmapimg2 from '@/assets/txmap2.svg';
|
|
|
+import txmapimg3 from '@/assets/marker_blue.png';
|
|
|
+import axios from 'axios';
|
|
|
+import { updateStoreAddress, valid } from '@/api/visitstore';
|
|
|
+import uploadImg from '@/components/viewaddreddUploadImg.vue';
|
|
|
+import helpPage from './helpPage.vue';
|
|
|
+import { getPosition, getMapPoi, getkeywordPoi, getTicketFun } from '@/utils/TXApiFun';
|
|
|
export default {
|
|
|
components: { uploadImg, mapmarker, viewUploadImg, helpPage },
|
|
|
data() {
|
|
|
return {
|
|
|
- addresssb: "",
|
|
|
+ addresssb: '',
|
|
|
searchSHow: false,
|
|
|
- uploadid2: "uploadid2",
|
|
|
+ uploadid2: 'uploadid2',
|
|
|
shows: true,
|
|
|
- searchValue: "",
|
|
|
- tabVal: "insidePlan",
|
|
|
+ searchValue: '',
|
|
|
+ tabVal: 'insidePlan',
|
|
|
showDialog: false,
|
|
|
- msgList: "",
|
|
|
+ msgList: '',
|
|
|
list: [],
|
|
|
provinceList: [],
|
|
|
txmapimg1: txmapimg1,
|
|
|
@@ -418,8 +418,8 @@ export default {
|
|
|
districtList: [],
|
|
|
maplist: [],
|
|
|
townList: [],
|
|
|
- storeId: "",
|
|
|
- vaue: "",
|
|
|
+ storeId: '',
|
|
|
+ vaue: '',
|
|
|
show: false,
|
|
|
storeTypeList: [],
|
|
|
ManagementModelList: [],
|
|
|
@@ -430,17 +430,17 @@ export default {
|
|
|
potentialCustomerTypeList: [],
|
|
|
typeABshow: false,
|
|
|
dictTypeFormShow: false,
|
|
|
- detilId: "",
|
|
|
+ detilId: '',
|
|
|
DIYshow: false,
|
|
|
visitListList: [],
|
|
|
TCFXList: [],
|
|
|
QGJZist: [],
|
|
|
SJSList: [],
|
|
|
- storeName: "名称",
|
|
|
- address: "地址",
|
|
|
+ storeName: '名称',
|
|
|
+ address: '地址',
|
|
|
storeTypePOP: false,
|
|
|
GZAttributeFormShow: false,
|
|
|
- type: "",
|
|
|
+ type: '',
|
|
|
towntShow: false,
|
|
|
districtShow: false,
|
|
|
cityShow: false,
|
|
|
@@ -451,19 +451,19 @@ export default {
|
|
|
marker: undefined,
|
|
|
pageShow: false,
|
|
|
mapsearchlist: [],
|
|
|
- map: "",
|
|
|
- img: "",
|
|
|
- lat: "",
|
|
|
- lon: "",
|
|
|
- poiAddress: "",
|
|
|
- myLat: "",
|
|
|
- poiLat: "",
|
|
|
- poiLon: "",
|
|
|
- poiId: "",
|
|
|
- myLon: "",
|
|
|
- pLat: "",
|
|
|
- pLot: "",
|
|
|
- poiName: "",
|
|
|
+ map: '',
|
|
|
+ img: '',
|
|
|
+ lat: '',
|
|
|
+ lon: '',
|
|
|
+ poiAddress: '',
|
|
|
+ myLat: '',
|
|
|
+ poiLat: '',
|
|
|
+ poiLon: '',
|
|
|
+ poiId: '',
|
|
|
+ myLon: '',
|
|
|
+ pLat: '',
|
|
|
+ pLot: '',
|
|
|
+ poiName: '',
|
|
|
helpPageFlag: false, //提交修改 不通过 点击帮助弹出框
|
|
|
};
|
|
|
},
|
|
|
@@ -482,7 +482,7 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
this.showmap = false;
|
|
|
- this.img = "";
|
|
|
+ this.img = '';
|
|
|
this.detilId = this.$route.query.detilId;
|
|
|
this.type = this.$route.query.type;
|
|
|
this.getCustomerInfoList();
|
|
|
@@ -496,15 +496,15 @@ export default {
|
|
|
this.getStoreTypeList();
|
|
|
this.getpotentialCustomerTypeList();
|
|
|
this.visitListList = [];
|
|
|
- this.getStreetQuery("");
|
|
|
+ this.getStreetQuery('');
|
|
|
window.scrollTo(0, 0);
|
|
|
- this.poiAddress = "";
|
|
|
- this.myLat = "";
|
|
|
- this.poiLat = "";
|
|
|
- this.poiLon = "";
|
|
|
- this.poiId = "";
|
|
|
- this.myLon = "";
|
|
|
- this.poiName = "";
|
|
|
+ this.poiAddress = '';
|
|
|
+ this.myLat = '';
|
|
|
+ this.poiLat = '';
|
|
|
+ this.poiLon = '';
|
|
|
+ this.poiId = '';
|
|
|
+ this.myLon = '';
|
|
|
+ this.poiName = '';
|
|
|
},
|
|
|
methods: {
|
|
|
newimgarr1(val) {
|
|
|
@@ -517,8 +517,8 @@ export default {
|
|
|
that.map.setCenter(new TMap.LatLng(val.location.lat, val.location.lng));
|
|
|
that.markers1.updateGeometries([
|
|
|
{
|
|
|
- id: "marker",
|
|
|
- styleId: "marker",
|
|
|
+ id: 'marker',
|
|
|
+ styleId: 'marker',
|
|
|
position: new TMap.LatLng(val.location.lat, val.location.lng),
|
|
|
},
|
|
|
]);
|
|
|
@@ -585,8 +585,8 @@ export default {
|
|
|
if (val > -1) {
|
|
|
this.markers.updateGeometries([
|
|
|
{
|
|
|
- id: "markers1",
|
|
|
- styleId: "abc",
|
|
|
+ id: 'markers1',
|
|
|
+ styleId: 'abc',
|
|
|
position: new TMap.LatLng(
|
|
|
this.maplist[val].location.lat,
|
|
|
this.maplist[val].location.lng
|
|
|
@@ -614,13 +614,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
fns() {
|
|
|
- this.searchValue = "";
|
|
|
+ this.searchValue = '';
|
|
|
getPosition()
|
|
|
.then((res) => {
|
|
|
let { TXisBD, resData } = res;
|
|
|
this.lat = TXisBD.lat;
|
|
|
this.lon = TXisBD.lon;
|
|
|
- if (this.list.lon == "") {
|
|
|
+ if (this.list.lon == '') {
|
|
|
this.list.lon = TXisBD.lon;
|
|
|
this.list.lat = resData.latitude;
|
|
|
}
|
|
|
@@ -633,7 +633,7 @@ export default {
|
|
|
getMapPoi(resData).then((resPoi) => {
|
|
|
this.maplist = resPoi.data;
|
|
|
setTimeout(() => {
|
|
|
- this.addVisits1("1");
|
|
|
+ this.addVisits1('1');
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
@@ -740,12 +740,12 @@ export default {
|
|
|
lat: this.pLat,
|
|
|
lon: this.pLot,
|
|
|
};
|
|
|
- var map = new TMap.Map("allmap1", {
|
|
|
+ var map = new TMap.Map('allmap1', {
|
|
|
zoom: 15,
|
|
|
center: new TMap.LatLng(latlng.lat, latlng.lon),
|
|
|
});
|
|
|
var markers = new TMap.MultiMarker({
|
|
|
- id: "markers",
|
|
|
+ id: 'markers',
|
|
|
map: map,
|
|
|
geometries: [],
|
|
|
styles: {
|
|
|
@@ -753,7 +753,7 @@ export default {
|
|
|
width: 32,
|
|
|
height: 40,
|
|
|
anchor: { x: 16, y: 32 },
|
|
|
- src: "https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker-pink.png",
|
|
|
+ src: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker-pink.png',
|
|
|
}),
|
|
|
},
|
|
|
});
|
|
|
@@ -762,8 +762,8 @@ export default {
|
|
|
map.setCenter(location);
|
|
|
markers.updateGeometries([
|
|
|
{
|
|
|
- id: "marker",
|
|
|
- styleId: "marker",
|
|
|
+ id: 'marker',
|
|
|
+ styleId: 'marker',
|
|
|
position: location,
|
|
|
},
|
|
|
]);
|
|
|
@@ -777,7 +777,7 @@ export default {
|
|
|
x: 17,
|
|
|
y: 21,
|
|
|
},
|
|
|
- src: "https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker_blue.png",
|
|
|
+ src: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker_blue.png',
|
|
|
}),
|
|
|
},
|
|
|
geometries: [],
|
|
|
@@ -792,7 +792,7 @@ export default {
|
|
|
}
|
|
|
var markers1 = new TMap.MultiMarker({
|
|
|
map: map,
|
|
|
- mapgeometries: [{ id: "markers1", position: new TMap.LatLng(0, 0) }],
|
|
|
+ mapgeometries: [{ id: 'markers1', position: new TMap.LatLng(0, 0) }],
|
|
|
styles: {
|
|
|
abc: new TMap.MarkerStyle({
|
|
|
width: 32,
|
|
|
@@ -810,7 +810,7 @@ export default {
|
|
|
map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.SCALE); //移除比例尺控件
|
|
|
map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ROTATION); //移除旋转控件
|
|
|
map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ZOOM); //移除控件缩放
|
|
|
- this.map.on("click", this.clickMap);
|
|
|
+ this.map.on('click', this.clickMap);
|
|
|
},
|
|
|
// 点击事件处理方法
|
|
|
clickMap(evt) {
|
|
|
@@ -820,60 +820,60 @@ export default {
|
|
|
},
|
|
|
initMap(map) {
|
|
|
// 监听地图平移开始
|
|
|
- map.on("pan", () => {
|
|
|
- console.log("监听地图平移开始");
|
|
|
+ map.on('pan', () => {
|
|
|
+ console.log('监听地图平移开始');
|
|
|
});
|
|
|
// 监听地图平移结束
|
|
|
- map.on("panend", () => {
|
|
|
- console.log("监听地图平移结束");
|
|
|
+ map.on('panend', () => {
|
|
|
+ console.log('监听地图平移结束');
|
|
|
});
|
|
|
},
|
|
|
updateStoreAddress() {
|
|
|
- if (this.list.province == "") {
|
|
|
- this.$toast("省(州)不能为空");
|
|
|
+ if (this.list.province == '') {
|
|
|
+ this.$toast('省(州)不能为空');
|
|
|
return;
|
|
|
}
|
|
|
- if (this.list.city == "") {
|
|
|
- this.$toast("城市不能为空");
|
|
|
+ if (this.list.city == '') {
|
|
|
+ this.$toast('城市不能为空');
|
|
|
return;
|
|
|
}
|
|
|
- if (this.list.district == "") {
|
|
|
- this.$toast("县区不能为空");
|
|
|
+ if (this.list.district == '') {
|
|
|
+ this.$toast('县区不能为空');
|
|
|
return;
|
|
|
}
|
|
|
- if (this.list.townName == "") {
|
|
|
- this.$toast("街道不能为空");
|
|
|
+ if (this.list.townName == '') {
|
|
|
+ this.$toast('街道不能为空');
|
|
|
return;
|
|
|
}
|
|
|
- if (this.list.addressLine == "") {
|
|
|
- this.$toast("地址不能为空");
|
|
|
+ if (this.list.addressLine == '') {
|
|
|
+ this.$toast('地址不能为空');
|
|
|
return;
|
|
|
}
|
|
|
if (
|
|
|
- this.lat == "" &&
|
|
|
- (this.list.storeCategory == "35" ||
|
|
|
- this.list.storeCategory == "36" ||
|
|
|
- this.list.storeCategory == "37" ||
|
|
|
- this.list.storeCategory == "38" ||
|
|
|
- this.list.storeCategory == "91")
|
|
|
+ this.lat == '' &&
|
|
|
+ (this.list.storeCategory == '35' ||
|
|
|
+ this.list.storeCategory == '36' ||
|
|
|
+ this.list.storeCategory == '37' ||
|
|
|
+ this.list.storeCategory == '38' ||
|
|
|
+ this.list.storeCategory == '91')
|
|
|
) {
|
|
|
- this.$toast("未定位,请重新定位或地图选择地点");
|
|
|
+ this.$toast('未定位,请重新定位或地图选择地点');
|
|
|
return;
|
|
|
}
|
|
|
if (
|
|
|
- this.img == "" &&
|
|
|
- (this.list.storeCategory == "35" ||
|
|
|
- this.list.storeCategory == "36" ||
|
|
|
- this.list.storeCategory == "37" ||
|
|
|
- this.list.storeCategory == "38" ||
|
|
|
- this.list.storeCategory == "91")
|
|
|
+ this.img == '' &&
|
|
|
+ (this.list.storeCategory == '35' ||
|
|
|
+ this.list.storeCategory == '36' ||
|
|
|
+ this.list.storeCategory == '37' ||
|
|
|
+ this.list.storeCategory == '38' ||
|
|
|
+ this.list.storeCategory == '91')
|
|
|
) {
|
|
|
- this.$toast("店招照片不能为空");
|
|
|
+ this.$toast('店招照片不能为空');
|
|
|
return;
|
|
|
}
|
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
|
- message: "加载中...",
|
|
|
+ message: '加载中...',
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
let params = {
|
|
|
@@ -905,7 +905,7 @@ export default {
|
|
|
this.$dialog
|
|
|
.alert({
|
|
|
message: res.msg,
|
|
|
- messageAlign: "left",
|
|
|
+ messageAlign: 'left',
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.$router.go(-1);
|
|
|
@@ -913,13 +913,13 @@ export default {
|
|
|
} else {
|
|
|
this.$dialog
|
|
|
.alert({
|
|
|
- className: "helpAlert",
|
|
|
- confirmButtonColor: "#0057ba",
|
|
|
+ className: 'helpAlert',
|
|
|
+ confirmButtonColor: '#0057ba',
|
|
|
message: res.msg,
|
|
|
- messageAlign: "left",
|
|
|
+ messageAlign: 'left',
|
|
|
showCancelButton: true,
|
|
|
- cancelButtonText: "帮助",
|
|
|
- cancelButtonColor: "#f79200",
|
|
|
+ cancelButtonText: '帮助',
|
|
|
+ cancelButtonColor: '#f79200',
|
|
|
})
|
|
|
.then(() => {})
|
|
|
.catch(() => {
|
|
|
@@ -930,55 +930,55 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
towntFN() {
|
|
|
- if (this.type == "address") {
|
|
|
+ if (this.type == 'address') {
|
|
|
this.towntShow = true;
|
|
|
}
|
|
|
},
|
|
|
districtFN() {
|
|
|
- if (this.type == "address") {
|
|
|
+ if (this.type == 'address') {
|
|
|
this.districtShow = true;
|
|
|
}
|
|
|
},
|
|
|
cityFN() {
|
|
|
- if (this.type == "address") {
|
|
|
+ if (this.type == 'address') {
|
|
|
this.cityShow = true;
|
|
|
}
|
|
|
},
|
|
|
provinceFN() {
|
|
|
- if (this.type == "address") {
|
|
|
+ if (this.type == 'address') {
|
|
|
this.provinceShow = true;
|
|
|
}
|
|
|
},
|
|
|
onProvinceConfirm(value) {
|
|
|
this.list.provinceName = value.text;
|
|
|
this.list.province = value.provinceCode;
|
|
|
- this.list.cityName = "";
|
|
|
- this.list.city = "";
|
|
|
- this.list.districtName = "";
|
|
|
- this.list.countyCode = "";
|
|
|
- this.list.townName = "";
|
|
|
- this.list.townCode = "";
|
|
|
- this.getStreetQuery("1");
|
|
|
+ this.list.cityName = '';
|
|
|
+ this.list.city = '';
|
|
|
+ this.list.districtName = '';
|
|
|
+ this.list.countyCode = '';
|
|
|
+ this.list.townName = '';
|
|
|
+ this.list.townCode = '';
|
|
|
+ this.getStreetQuery('1');
|
|
|
this.provinceShow = false;
|
|
|
},
|
|
|
onCityConfirm(value) {
|
|
|
this.list.cityName = value.text;
|
|
|
this.list.city = value.cityCode;
|
|
|
- this.list.districtName = "";
|
|
|
- this.list.district = "";
|
|
|
- this.list.townName = "";
|
|
|
- this.list.townCode = "";
|
|
|
+ this.list.districtName = '';
|
|
|
+ this.list.district = '';
|
|
|
+ this.list.townName = '';
|
|
|
+ this.list.townCode = '';
|
|
|
this.cityCode = value.cityCode;
|
|
|
- this.getStreetQuery("2");
|
|
|
+ this.getStreetQuery('2');
|
|
|
this.cityShow = false;
|
|
|
},
|
|
|
onDistrictConfirm(value) {
|
|
|
this.list.districtName = value.text;
|
|
|
this.list.district = value.countyCode;
|
|
|
- this.list.townName = "";
|
|
|
- this.list.townCode = "";
|
|
|
+ this.list.townName = '';
|
|
|
+ this.list.townCode = '';
|
|
|
this.list.cityLevel = value.countyLevel;
|
|
|
- this.getStreetQuery("3");
|
|
|
+ this.getStreetQuery('3');
|
|
|
this.districtShow = false;
|
|
|
},
|
|
|
onTownConfirm(value) {
|
|
|
@@ -990,16 +990,16 @@ export default {
|
|
|
var provinceCode = this.list.province;
|
|
|
var cityCode = this.list.city;
|
|
|
var countyCode = this.list.district;
|
|
|
- if (type == "1") {
|
|
|
- cityCode = "";
|
|
|
- countyCode = "";
|
|
|
- } else if (type == "2") {
|
|
|
- countyCode = "";
|
|
|
- } else if (type == "3") {
|
|
|
+ if (type == '1') {
|
|
|
+ cityCode = '';
|
|
|
+ countyCode = '';
|
|
|
+ } else if (type == '2') {
|
|
|
+ countyCode = '';
|
|
|
+ } else if (type == '3') {
|
|
|
} else {
|
|
|
- provinceCode = "";
|
|
|
- cityCode = "";
|
|
|
- countyCode = "";
|
|
|
+ provinceCode = '';
|
|
|
+ cityCode = '';
|
|
|
+ countyCode = '';
|
|
|
}
|
|
|
streetQuery({
|
|
|
provinceCode: provinceCode,
|
|
|
@@ -1011,7 +1011,7 @@ export default {
|
|
|
var cityList = [];
|
|
|
var districtList = [];
|
|
|
var townList = [];
|
|
|
- if (type == "1") {
|
|
|
+ if (type == '1') {
|
|
|
for (var z1 = 0; z1 < res.data.length; z1++) {
|
|
|
cityList.push({
|
|
|
cityCode: res.data[z1].cityCode,
|
|
|
@@ -1019,7 +1019,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.cityList = cityList;
|
|
|
- } else if (type == "2") {
|
|
|
+ } else if (type == '2') {
|
|
|
for (var z2 = 0; z2 < res.data.length; z2++) {
|
|
|
districtList.push({
|
|
|
countyCode: res.data[z2].countyCode,
|
|
|
@@ -1028,7 +1028,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.districtList = districtList;
|
|
|
- } else if (type == "3") {
|
|
|
+ } else if (type == '3') {
|
|
|
for (var z3 = 0; z3 < res.data.length; z3++) {
|
|
|
townList.push({
|
|
|
townCode: res.data[z3].townCode,
|
|
|
@@ -1046,7 +1046,7 @@ export default {
|
|
|
this.provinceList = provinceList;
|
|
|
}
|
|
|
} else {
|
|
|
- this.$toast.fail("请求超时");
|
|
|
+ this.$toast.fail('请求超时');
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1160,7 +1160,7 @@ export default {
|
|
|
},
|
|
|
visitsFn(row) {
|
|
|
this.$router.push({
|
|
|
- path: "/historicalDetails",
|
|
|
+ path: '/historicalDetails',
|
|
|
query: {
|
|
|
visitId: row.id,
|
|
|
storeCode: row.storeCode,
|
|
|
@@ -1172,13 +1172,13 @@ export default {
|
|
|
var that = this;
|
|
|
this.$dialog
|
|
|
.confirm({
|
|
|
- title: "系统提示",
|
|
|
- message: "是否确认无效关店?",
|
|
|
+ title: '系统提示',
|
|
|
+ message: '是否确认无效关店?',
|
|
|
})
|
|
|
.then(() => {
|
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
|
- message: "加载中...",
|
|
|
+ message: '加载中...',
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
valid({ storeId: that.list.storeId }).then((res) => {
|
|
|
@@ -1196,7 +1196,7 @@ export default {
|
|
|
getStoreTypeList() {
|
|
|
// 先授权
|
|
|
getTicketFun().then(() => {
|
|
|
- if (localStorage.getItem("storeType") == "2") {
|
|
|
+ if (localStorage.getItem('storeType') == '2') {
|
|
|
this.DIYshow = true;
|
|
|
getStoreyslTypeList({}).then((res) => {
|
|
|
this.storeTypeList = res.data;
|
|
|
@@ -1213,19 +1213,19 @@ export default {
|
|
|
},
|
|
|
getDetail() {
|
|
|
this.pageShow = false;
|
|
|
- this.lat = "";
|
|
|
- this.lon = "";
|
|
|
+ this.lat = '';
|
|
|
+ this.lon = '';
|
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
|
- message: "加载中...",
|
|
|
+ message: '加载中...',
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
getById({ storeId: this.$route.query.id }).then((res) => {
|
|
|
loading1.clear();
|
|
|
this.pageShow = true;
|
|
|
- localStorage.setItem("locationRemark", res.data.addressLine);
|
|
|
- localStorage.setItem("orgName", res.data.orgName);
|
|
|
- localStorage.setItem("chainName", res.data.storeName);
|
|
|
+ localStorage.setItem('locationRemark', res.data.addressLine);
|
|
|
+ localStorage.setItem('orgName', res.data.orgName);
|
|
|
+ localStorage.setItem('chainName', res.data.storeName);
|
|
|
if (res.code == 200) {
|
|
|
if (res.data.lat != null) {
|
|
|
this.lat = res.data.lat;
|
|
|
@@ -1235,30 +1235,30 @@ export default {
|
|
|
if (
|
|
|
res.data.province != null &&
|
|
|
res.data.province != undefined &&
|
|
|
- res.data.province != ""
|
|
|
+ res.data.province != ''
|
|
|
) {
|
|
|
- this.getStreetQuery("1");
|
|
|
+ this.getStreetQuery('1');
|
|
|
}
|
|
|
- if (res.data.city != null && res.data.city != undefined && res.data.city != "") {
|
|
|
- this.getStreetQuery("2");
|
|
|
+ if (res.data.city != null && res.data.city != undefined && res.data.city != '') {
|
|
|
+ this.getStreetQuery('2');
|
|
|
}
|
|
|
if (
|
|
|
res.data.district != null &&
|
|
|
res.data.district != undefined &&
|
|
|
- res.data.district != ""
|
|
|
+ res.data.district != ''
|
|
|
) {
|
|
|
- this.getStreetQuery("3");
|
|
|
+ this.getStreetQuery('3');
|
|
|
}
|
|
|
if (this.list.carShopImgList != null) {
|
|
|
} else {
|
|
|
this.list.carShopImgList = [];
|
|
|
}
|
|
|
- if (this.list.storeCategory == "10131" || this.list.storeCategory == "129081") {
|
|
|
+ if (this.list.storeCategory == '10131' || this.list.storeCategory == '129081') {
|
|
|
this.typeABshow = true;
|
|
|
} else {
|
|
|
this.typeABshow = false;
|
|
|
}
|
|
|
- if (this.list.storeCategory == "C917") {
|
|
|
+ if (this.list.storeCategory == 'C917') {
|
|
|
this.GZAttributeFormShow = true;
|
|
|
this.dictTypeSJSFormShow = false;
|
|
|
this.dictTypeQGJZFormShow = false;
|
|
|
@@ -1273,15 +1273,15 @@ export default {
|
|
|
} else {
|
|
|
this.GZAttributeFormShow = false;
|
|
|
}
|
|
|
- if (this.list.storeCategory == "129081") {
|
|
|
+ if (this.list.storeCategory == '129081') {
|
|
|
this.dictTypeFormShow = true;
|
|
|
- if (this.list.attribute3 != "0" && this.list.attribute3 != null) {
|
|
|
+ if (this.list.attribute3 != '0' && this.list.attribute3 != null) {
|
|
|
this.list.tcfxName = this.list.attribute3;
|
|
|
} else {
|
|
|
this.list.tcfxName = this.list.attribute5;
|
|
|
}
|
|
|
}
|
|
|
- if (this.list.storeCategory == "10131") {
|
|
|
+ if (this.list.storeCategory == '10131') {
|
|
|
this.dictTypeFormShow = true;
|
|
|
for (var k = 0; k < this.TCFXList.length; k++) {
|
|
|
if (this.TCFXList[k].dictCode == this.list.tcfxName) {
|
|
|
@@ -1290,7 +1290,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (this.list.storeCategory == "sjs61") {
|
|
|
+ if (this.list.storeCategory == 'sjs61') {
|
|
|
this.dictTypeFormShow = true;
|
|
|
for (var k = 0; k < this.SJSList.length; k++) {
|
|
|
if (this.SJSList[k].dictCode == this.list.tcfxName) {
|
|
|
@@ -1298,7 +1298,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (this.list.storeCategory == "zyjz63") {
|
|
|
+ if (this.list.storeCategory == 'zyjz63') {
|
|
|
this.dictTypeFormShow = true;
|
|
|
for (var k = 0; k < this.QGJZist.length; k++) {
|
|
|
if (this.QGJZist[k].dictCode == this.list.tcfxName) {
|
|
|
@@ -1306,18 +1306,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (this.list.storeCategory == "C912") {
|
|
|
+ if (this.list.storeCategory == 'C912') {
|
|
|
this.storeTypePOP = false;
|
|
|
- this.storeName = "铭牌上项目名称";
|
|
|
- this.address = "地址";
|
|
|
- } else if (this.list.storeCategory == "C917") {
|
|
|
+ this.storeName = '铭牌上项目名称';
|
|
|
+ this.address = '地址';
|
|
|
+ } else if (this.list.storeCategory == 'C917') {
|
|
|
this.storeTypePOP = false;
|
|
|
- this.storeName = "名称";
|
|
|
- this.address = "地址";
|
|
|
+ this.storeName = '名称';
|
|
|
+ this.address = '地址';
|
|
|
} else {
|
|
|
this.storeTypePOP = true;
|
|
|
- this.storeName = "名称";
|
|
|
- this.address = "地址";
|
|
|
+ this.storeName = '名称';
|
|
|
+ this.address = '地址';
|
|
|
}
|
|
|
|
|
|
getPosition()
|
|
|
@@ -1420,16 +1420,16 @@ export default {
|
|
|
positionFn() {
|
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
|
- message: "定位中...",
|
|
|
+ message: '定位中...',
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
let url = window.location.href;
|
|
|
let that = this;
|
|
|
let qiyeData;
|
|
|
const instance = axios.create();
|
|
|
- instance.defaults.headers.common["userId"] = localStorage.getItem("loginName");
|
|
|
+ instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
|
|
|
instance
|
|
|
- .get(process.env.VUE_APP_BASE_API + "mobile/wx/ticket", {
|
|
|
+ .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
|
|
|
params: {
|
|
|
url: url,
|
|
|
},
|
|
|
@@ -1440,13 +1440,13 @@ export default {
|
|
|
var flat = true;
|
|
|
var times = setInterval(() => {
|
|
|
this.cont--;
|
|
|
- if (this.cont == "0") {
|
|
|
+ if (this.cont == '0') {
|
|
|
if (flat) {
|
|
|
loading1.clear();
|
|
|
clearInterval(times);
|
|
|
that.$dialog
|
|
|
.alert({
|
|
|
- message: "定位失败,请开启企微定位权限",
|
|
|
+ message: '定位失败,请开启企微定位权限',
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.$router.go(-1);
|
|
|
@@ -1464,11 +1464,11 @@ export default {
|
|
|
timestamp: qiyeData.timestamp,
|
|
|
nonceStr: qiyeData.nonceStr,
|
|
|
signature: qiyeData.signature,
|
|
|
- jsApiList: ["ready", "getLocation"],
|
|
|
+ jsApiList: ['ready', 'getLocation'],
|
|
|
});
|
|
|
that.wx.ready(function () {
|
|
|
that.wx.getLocation({
|
|
|
- type: "gcj02",
|
|
|
+ type: 'gcj02',
|
|
|
success: function (res) {
|
|
|
flat = false;
|
|
|
loading1.clear();
|
|
|
@@ -1483,28 +1483,28 @@ export default {
|
|
|
fail: function () {
|
|
|
loading1.clear();
|
|
|
that.$dialog.alert({
|
|
|
- title: "系统提示",
|
|
|
- message: "GPS未开启",
|
|
|
+ title: '系统提示',
|
|
|
+ message: 'GPS未开启',
|
|
|
});
|
|
|
},
|
|
|
});
|
|
|
});
|
|
|
that.wx.error(function (res) {
|
|
|
- this.$toast.fail("定位失败");
|
|
|
+ this.$toast.fail('定位失败');
|
|
|
});
|
|
|
} else {
|
|
|
- this.$toast.fail("接口异常");
|
|
|
+ this.$toast.fail('接口异常');
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
editorFn() {
|
|
|
this.$router.push({
|
|
|
- path: "/storeEdit",
|
|
|
+ path: '/storeEdit',
|
|
|
query: { id: this.$route.query.id, validFlag: this.list.validFlag },
|
|
|
});
|
|
|
},
|
|
|
formLink() {
|
|
|
- this.$router.push("/storeVisit/questions");
|
|
|
+ this.$router.push('/storeVisit/questions');
|
|
|
},
|
|
|
onClickLeft() {
|
|
|
this.$router.go(-1);
|
|
|
@@ -1516,7 +1516,7 @@ export default {
|
|
|
var that = this;
|
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
|
- message: "加载中...",
|
|
|
+ message: '加载中...',
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
addStore(this.list).then((res) => {
|
|
|
@@ -1525,47 +1525,47 @@ export default {
|
|
|
if (res.data.serverCode) {
|
|
|
if (
|
|
|
res.data.orderUrl != null &&
|
|
|
- (res.data.orderUrl != "") & (res.data.orderUrl != undefined)
|
|
|
+ (res.data.orderUrl != '') & (res.data.orderUrl != undefined)
|
|
|
) {
|
|
|
window.location.replace(res.data.orderUrl);
|
|
|
} else {
|
|
|
checkVisit({ storeId: res.data.sfaStore.storeId }).then((response) => {
|
|
|
- localStorage.setItem("startTime", new Date());
|
|
|
- localStorage.setItem("ORGName", this.list.deptName);
|
|
|
- localStorage.setItem("chainNameR", this.list.storeName);
|
|
|
+ localStorage.setItem('startTime', new Date());
|
|
|
+ localStorage.setItem('ORGName', this.list.deptName);
|
|
|
+ localStorage.setItem('chainNameR', this.list.storeName);
|
|
|
if (response.code == 200) {
|
|
|
that.$dialog
|
|
|
.confirm({
|
|
|
- title: "系统提示",
|
|
|
- message: "建店成功,是否立即拜访?",
|
|
|
- confirmButtonText: "立即拜访",
|
|
|
- cancelButtonText: "返回上一页",
|
|
|
+ title: '系统提示',
|
|
|
+ message: '建店成功,是否立即拜访?',
|
|
|
+ confirmButtonText: '立即拜访',
|
|
|
+ cancelButtonText: '返回上一页',
|
|
|
})
|
|
|
.then(() => {
|
|
|
- localStorage.setItem("startTime", new Date());
|
|
|
- localStorage.setItem("ORGName", res.data.sfaStore.deptName);
|
|
|
- localStorage.setItem("chainNameR", res.data.sfaStore.storeName);
|
|
|
+ localStorage.setItem('startTime', new Date());
|
|
|
+ localStorage.setItem('ORGName', res.data.sfaStore.deptName);
|
|
|
+ localStorage.setItem('chainNameR', res.data.sfaStore.storeName);
|
|
|
window.location.replace(
|
|
|
window.location.origin +
|
|
|
- "/mobile/suishenbangOutstoreVisit?PointSum=0&visitModel=1&tabVal=1&hisTime=null&pageType=out&visitId=null&rdId=null&storeId=" +
|
|
|
+ '/mobile/suishenbangOutstoreVisit?PointSum=0&visitModel=1&tabVal=1&hisTime=null&pageType=out&visitId=null&rdId=null&storeId=' +
|
|
|
res.data.sfaStore.storeId +
|
|
|
- "&lat=" +
|
|
|
+ '&lat=' +
|
|
|
that.list.lat +
|
|
|
- "&lon=" +
|
|
|
+ '&lon=' +
|
|
|
that.list.lon +
|
|
|
- "&addressLine=" +
|
|
|
+ '&addressLine=' +
|
|
|
that.list.addressLine +
|
|
|
- "&storeCategory=" +
|
|
|
+ '&storeCategory=' +
|
|
|
res.data.sfaStore.storeCategory +
|
|
|
- "&storeName=" +
|
|
|
+ '&storeName=' +
|
|
|
that.list.storeName +
|
|
|
- "&contactName=" +
|
|
|
+ '&contactName=' +
|
|
|
that.list.contactName +
|
|
|
- "&storeCode=" +
|
|
|
+ '&storeCode=' +
|
|
|
res.data.sfaStore.storeCode +
|
|
|
- "&latNew=" +
|
|
|
+ '&latNew=' +
|
|
|
that.list.lat +
|
|
|
- "&lonNew=" +
|
|
|
+ '&lonNew=' +
|
|
|
that.list.lon
|
|
|
);
|
|
|
})
|
|
|
@@ -1575,7 +1575,7 @@ export default {
|
|
|
} else {
|
|
|
that.$dialog
|
|
|
.alert({
|
|
|
- title: "系统提示",
|
|
|
+ title: '系统提示',
|
|
|
message: response.msg,
|
|
|
})
|
|
|
.then((res) => {});
|
|
|
@@ -1586,7 +1586,7 @@ export default {
|
|
|
this.list.storeCode = res.data.sfaStore.storeCode;
|
|
|
this.list.storeId = res.data.sfaStore.storeId;
|
|
|
this.$dialog.alert({
|
|
|
- title: "系统提示",
|
|
|
+ title: '系统提示',
|
|
|
message: res.data.serverMsg,
|
|
|
});
|
|
|
}
|
|
|
@@ -1663,7 +1663,7 @@ export default {
|
|
|
.van-dialog__cancel {
|
|
|
.van-button__text {
|
|
|
&::before {
|
|
|
- content: "?";
|
|
|
+ content: '?';
|
|
|
background: #f79200;
|
|
|
width: 20px;
|
|
|
display: inline-block;
|