Browse Source

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

zhujindu 11 months ago
parent
commit
a8c0a256c2

+ 2 - 1
src/views/storeManagement/storeAdd.vue

@@ -64,7 +64,8 @@
                         <span class="van-f-red">*</span>
                       </template>
                       <template #input>
-                        <template v-if="sfaStoreChainsContactList.length">
+                        <template
+                          v-if="sfaStoreChainsContactList && sfaStoreChainsContactList.length">
                           <div
                             class="sfaStoreChainsContactList"
                             v-for="(item, index) in sfaStoreChainsContactList"

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

@@ -126,7 +126,7 @@
               ">
               <van-field label="经销商" readonly class="TCFXList">
                 <template #input>
-                  <template v-if="list.sfaStoreChainsContactList">
+                  <template v-if="list.sfaStoreChainsContactList && list.sfaStoreChainsContactList">
                     <div
                       class="sfaStoreChainsContactList"
                       v-for="(item, index) in list.sfaStoreChainsContactList"

+ 2 - 1
src/views/storeManagement/storeEdit.vue

@@ -64,7 +64,8 @@
                         <span class="van-f-red">*</span>
                       </template>
                       <template #input>
-                        <template v-if="sfaStoreChainsContactList.length">
+                        <template
+                          v-if="sfaStoreChainsContactList && sfaStoreChainsContactList.length">
                           <div
                             class="sfaStoreChainsContactList"
                             v-for="(item, index) in sfaStoreChainsContactList"