Pārlūkot izejas kodu

同城分销店拆分、分销店对应多个经销商

zhujindu 11 mēneši atpakaļ
vecāks
revīzija
41a154ddb5

+ 1 - 1
src/views/storeManagement/index.vue

@@ -277,7 +277,7 @@
                 <div class="info" v-if="addShow1">
                   经销商:
                   <template v-for="(item, index) in item.sfaStoreChainsContactList">
-                    <span :key="index">{{ item.chainName }},</span>
+                    <span :key="index"><span v-if="index > 0">,</span>{{ item.chainName }}</span>
                   </template>
                 </div>
               </template>

+ 6 - 5
src/views/storeManagement/storeAdd.vue

@@ -8,7 +8,8 @@
         left-arrow
         @click-left="onClickLeft"
         :right-text="
-          verifyStoreType(fromValue.storeCategory) && verifyStoreType(fromValue.storeCategory).tcfx
+          verifyStoreType(fromValue.storeCategory) &&
+          verifyStoreType(fromValue.storeCategory).type == 'fxd'
             ? '去下单'
             : '保存'
         "
@@ -334,7 +335,7 @@
                   <template
                     v-if="
                       verifyStoreType(fromValue.storeCategory) &&
-                      !verifyStoreType(fromValue.storeCategory).tcfx
+                      !verifyStoreType(fromValue.storeCategory).type == 'fxd'
                     ">
                     <van-col span="12" v-if="fromValue.ifJzStoreType != 1">
                       <div v-if="storeTypePOP">
@@ -375,7 +376,7 @@
                   <template
                     v-if="
                       verifyStoreType(fromValue.storeCategory) &&
-                      !verifyStoreType(fromValue.storeCategory).tcfx
+                      !verifyStoreType(fromValue.storeCategory).type == 'fxd'
                     ">
                     <van-col span="12" v-if="fromValue.ifJzStoreType != 1">
                       <div v-if="storeTypePOP">
@@ -1579,7 +1580,7 @@ export default {
       this.fromValue.storeCategory = value.dictValue;
       if (
         this.verifyStoreType(this.fromValue.storeCategory) &&
-        this.verifyStoreType(this.fromValue.storeCategory).tcfx
+        this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
       ) {
         this.getbrands();
         // 是否车铺开店
@@ -1790,7 +1791,7 @@ export default {
       // 同城分销类型门店
       if (
         this.verifyStoreType(this.fromValue.storeCategory) &&
-        this.verifyStoreType(this.fromValue.storeCategory).tcfx
+        this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
       ) {
         // 同城分销多经销商
         this.fromValue.sfaStoreChainsContactList = this.sfaStoreChainsContactList;

+ 4 - 4
src/views/storeManagement/storeDetail.vue

@@ -1254,7 +1254,7 @@ export default {
           }
           if (
             this.verifyStoreType(this.list.storeCategory) &&
-            this.verifyStoreType(this.list.storeCategory).tcfx
+            this.verifyStoreType(this.list.storeCategory).type == 'fxd'
           ) {
             this.cityABStore = true;
           } else {
@@ -1283,7 +1283,7 @@ export default {
           }
           if (
             this.verifyStoreType(this.list.storeCategory) &&
-            this.verifyStoreType(this.list.storeCategory).tcfx
+            this.verifyStoreType(this.list.storeCategory).type == 'fxd'
           ) {
             this.typeABshow = true;
           } else {
@@ -1314,7 +1314,7 @@ export default {
           // }
           if (
             this.verifyStoreType(this.list.storeCategory) &&
-            this.verifyStoreType(this.list.storeCategory).tcfx
+            this.verifyStoreType(this.list.storeCategory).type == 'fxd'
           ) {
             this.dictTypeFormShow = true;
             for (var k = 0; k < this.TCFXList.length; k++) {
@@ -1572,7 +1572,7 @@ export default {
     submitApprovalFun() {
       if (
         this.verifyStoreType(this.list.storeCategory) &&
-        !this.verifyStoreType(this.list.storeCategory).tcfx
+        !this.verifyStoreType(this.list.storeCategory).type == 'fxd'
       ) {
         this.$dialog
           .confirm({

+ 6 - 4
src/views/storeManagement/storeEdit.vue

@@ -373,6 +373,7 @@
             </div> -->
           </van-tab>
           <van-tab title="属性信息" name="Planpic">
+            <!-- 同城分销店-属性信息 -->
             <div v-if="dictTypeFormShow" style="background-color: #ffffff; padding: 10px">
               <p style="color: #666"><span class="van-f-red">*</span>属性</p>
               <div style="padding: 4px">
@@ -382,7 +383,8 @@
                       span="12"
                       v-for="(item, index) in TCFXList"
                       :key="index"
-                      style="margin-bottom: 10px">
+                      style="margin-bottom: 10px"
+                      v-if="item.remark == fromValue.storeCategory">
                       <van-radio shape="square" :name="item.dictCode + ''">{{
                         item.text
                       }}</van-radio>
@@ -1298,7 +1300,7 @@ export default {
           this.getChainsByDeptCode(null, res.data.ifJzStoreType);
           if (
             this.verifyStoreType(this.fromValue.storeCategory) &&
-            this.verifyStoreType(this.fromValue.storeCategory).tcfx
+            this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
           ) {
             this.typeABshow = true;
             this.dictTypeFormShow = true;
@@ -1567,7 +1569,7 @@ export default {
       this.fromValue.storeCategory = value.dictValue;
       if (
         this.verifyStoreType(this.fromValue.storeCategory) &&
-        this.verifyStoreType(this.fromValue.storeCategory).tcfx
+        this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
       ) {
         this.typeABshow = true;
         this.dictTypeFormShow = true;
@@ -1772,7 +1774,7 @@ export default {
       // 同城分销类型门店
       if (
         this.verifyStoreType(this.fromValue.storeCategory) &&
-        this.verifyStoreType(this.fromValue.storeCategory).tcfx
+        this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
       ) {
         // 同城分销多经销商
         this.fromValue.sfaStoreChainsContactList = this.sfaStoreChainsContactList;