|
|
@@ -8,9 +8,10 @@
|
|
|
<span style="color: #0057ba" @click="chainMaintain">维护经销商</span>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <!-- 金牌店 编辑属性信息 当前门店是否是我覆盖的:myCover -->
|
|
|
+ <!-- 金牌店/公装经销 编辑属性信息 当前门店是否是我覆盖的:myCover -->
|
|
|
<!-- <template> -->
|
|
|
- <template v-if="list.myCover && list.storeCode">
|
|
|
+ <template
|
|
|
+ v-if="list.myCover && (list.ifJpStoreType == '1' || list.storeCategory == 'C108')">
|
|
|
<span style="color: #0057ba" v-if="type != 'address'" @click="attributeEditor">
|
|
|
编辑
|
|
|
</span>
|
|
|
@@ -334,75 +335,23 @@
|
|
|
</van-collapse-item>
|
|
|
</van-collapse>
|
|
|
</van-tab>
|
|
|
- <van-tab title="属性信息" name="outsidePlan">
|
|
|
+ <!-- 公装经销商 -->
|
|
|
+ <van-tab title="客户标签" name="outsidePlan" v-if="list.storeCategory == 'C108'">
|
|
|
+ <GZattributeDetail :storeArchives="list.storeArchives"></GZattributeDetail>
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title="属性信息" name="outsidePlan" v-else>
|
|
|
<!-- 金牌店档案信息 -->
|
|
|
- <template v-if="list.ifJpStoreType == '1' && list.storeArchives">
|
|
|
- <div class="JpStore">
|
|
|
- <van-field readonly v-model="list.storeArchives.ownerMobile" label="主经营者电话" />
|
|
|
- <van-field readonly v-model="list.storeArchives.ownerName" label="主经营者姓名" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.ownerBirthday"
|
|
|
- label="主经营者出生日期" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- autosize
|
|
|
- type="textarea"
|
|
|
- v-model="list.storeArchives.mainProductCategorys"
|
|
|
- label="主营/擅长经营品类" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- autosize
|
|
|
- type="textarea"
|
|
|
- v-model="list.storeArchives.totalSalesAmount"
|
|
|
- label="门店24年总进货额(含所有品牌品类,单位:万元)" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.performanceRatio"
|
|
|
- label="门店立邦业绩占比(单位:%)" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- autosize
|
|
|
- type="textarea"
|
|
|
- v-model="list.storeArchives.mainBrand"
|
|
|
- label="门店主营TOP3品牌" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.constructionResource"
|
|
|
- label="是否有工地资源(支持工地配送,承接工地双包等)" />
|
|
|
- <van-field
|
|
|
- v-if="list.storeArchives.constructionResource == '是'"
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.constructionYearNum"
|
|
|
- label="年工地数量" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.doubleContracting"
|
|
|
- label="是否有双包能力" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.emergencyContactRelation"
|
|
|
- label="紧急联系人身份" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.emergencyContact"
|
|
|
- label="紧急联系人姓名" />
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="list.storeArchives.emergencyContactBirthday"
|
|
|
- label="紧急联系人出生日期" />
|
|
|
+ <JPattributeDetail
|
|
|
+ :storeArchives="list.storeArchives"
|
|
|
+ v-if="list.ifJpStoreType == '1' && list.storeArchives" />
|
|
|
+ <template v-else>
|
|
|
+ <template v-for="(item, index) in TCFXList" v-if="dictTypeFormShow">
|
|
|
<van-field
|
|
|
readonly
|
|
|
- v-model="list.storeArchives.emergencyContactMobile"
|
|
|
- label="紧急联系人电话" />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-for="(item, index) in TCFXList" v-if="dictTypeFormShow" v-else>
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- label="属性"
|
|
|
- v-if="item.dictValue == list.tcfxName"
|
|
|
- v-model="item.text" />
|
|
|
+ label="属性"
|
|
|
+ v-if="item.dictValue == list.tcfxName"
|
|
|
+ v-model="item.text" />
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
@@ -633,8 +582,17 @@ import uploadImg from '@/components/viewaddreddUploadImg.vue';
|
|
|
import helpPage from './helpPage.vue';
|
|
|
import { getPosition, getMapPoi, getkeywordPoi, getTicketFun } from '@/utils/TXApiFun';
|
|
|
import { getOrderUrlByStoreId } from '@/api/inventory';
|
|
|
+import JPattributeDetail from './JPattributeDetail.vue';
|
|
|
+import GZattributeDetail from './GZattributeDetail.vue';
|
|
|
export default {
|
|
|
- components: { uploadImg, mapmarker, viewUploadImg, helpPage },
|
|
|
+ components: {
|
|
|
+ uploadImg,
|
|
|
+ mapmarker,
|
|
|
+ viewUploadImg,
|
|
|
+ helpPage,
|
|
|
+ JPattributeDetail,
|
|
|
+ GZattributeDetail,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
addresssb: '',
|
|
|
@@ -825,7 +783,7 @@ export default {
|
|
|
styleId: 'abc',
|
|
|
position: new TMap.LatLng(
|
|
|
this.maplist[val].location.lat,
|
|
|
- this.maplist[val].location.lng
|
|
|
+ this.maplist[val].location.lng,
|
|
|
),
|
|
|
},
|
|
|
]);
|
|
|
@@ -1373,7 +1331,11 @@ export default {
|
|
|
this.lon = '';
|
|
|
getById({ storeId: this.$route.query.id })
|
|
|
.then((res) => {
|
|
|
- this.tabVal = res.data.ifJpStoreType == '1' ? 'outsidePlan' : 'insidePlan';
|
|
|
+ if (res.data.ifJpStoreType == '1' || res.data.storeCategory == 'C108') {
|
|
|
+ this.tabVal = 'outsidePlan';
|
|
|
+ } else {
|
|
|
+ this.tabVal = 'insidePlan';
|
|
|
+ }
|
|
|
localStorage.setItem('locationRemark', res.data.addressLine);
|
|
|
localStorage.setItem('orgName', res.data.orgName);
|
|
|
localStorage.setItem('chainName', res.data.storeName);
|
|
|
@@ -1697,12 +1659,20 @@ export default {
|
|
|
query: { id: this.$route.query.id },
|
|
|
});
|
|
|
},
|
|
|
- // 金牌店属性编辑
|
|
|
attributeEditor() {
|
|
|
- this.$router.push({
|
|
|
- path: '/JPattributeEditor',
|
|
|
- query: { storeCode: this.list.storeCode },
|
|
|
- });
|
|
|
+ if (this.list.storeCategory == 'C108') {
|
|
|
+ // 公装经销商
|
|
|
+ this.$router.push({
|
|
|
+ path: '/GZattributeEditor',
|
|
|
+ query: { storeCode: this.list.storeCode },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ // 金牌店属性编辑
|
|
|
+ this.$router.push({
|
|
|
+ path: '/JPattributeEditor',
|
|
|
+ query: { storeCode: this.list.storeCode },
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
};
|