Sfoglia il codice sorgente

feature_20260513_新建专业五金店

zhujindu 2 settimane fa
parent
commit
378af0f7cb
1 ha cambiato i file con 57 aggiunte e 29 eliminazioni
  1. 57 29
      src/views/storeManagement/storeAdd.vue

+ 57 - 29
src/views/storeManagement/storeAdd.vue

@@ -326,41 +326,42 @@
                 <van-row gutter="20">
                 <van-row gutter="20">
                   <van-col span="12">
                   <van-col span="12">
                     <div v-if="!storeTypePOP">
                     <div v-if="!storeTypePOP">
-                      <uploadImgc
+                      <upload-img
                         :uploadid="uploadid2"
                         :uploadid="uploadid2"
                         :imgArr="fromValue.img"
                         :imgArr="fromValue.img"
                         @newimgarr="newimgarr1"
                         @newimgarr="newimgarr1"
                         :imgText="fromValue.storeCategory == 'C912' ? '工地铭牌照片' : '公司照片'"
                         :imgText="fromValue.storeCategory == 'C912' ? '工地铭牌照片' : '公司照片'"
-                        :type="1"></uploadImgc>
+                        :type="1"></upload-img>
                     </div>
                     </div>
                     <div v-else>
                     <div v-else>
                       <!-- :photoIdentifyType="fromValue.ifJzStoreType != 1 ? '1' : ''" -->
                       <!-- :photoIdentifyType="fromValue.ifJzStoreType != 1 ? '1' : ''" -->
-                      <!-- 新建门店 关闭图像识别,如需开启将上面photoIdentifyType 复制到 uploadImgc  -->
-                      <uploadImgc
+                      <!-- 新建门店 关闭图像识别,如需开启将上面photoIdentifyType 复制到 upload-img  -->
+                      <upload-img
                         :uploadid="uploadid2"
                         :uploadid="uploadid2"
                         :imgArr="fromValue.img"
                         :imgArr="fromValue.img"
                         @newimgarr="newimgarr1"
                         @newimgarr="newimgarr1"
                         :imgText="fromValue.ifJzStoreType != 1 ? '门店照' : '家装前台照片'"
                         :imgText="fromValue.ifJzStoreType != 1 ? '门店照' : '家装前台照片'"
                         :type="1"
                         :type="1"
-                        ref="uploadImgVStore"></uploadImgc>
+                        ref="uploadImgVStore"></upload-img>
                     </div>
                     </div>
                   </van-col>
                   </van-col>
-                  <!-- 新建同城分销店不显示陈列照 -->
                   <template v-if="verifyStoreType(fromValue.storeCategory)">
                   <template v-if="verifyStoreType(fromValue.storeCategory)">
+                    <!-- 新建同城分销店不显示陈列照 -->
                     <template v-if="!verifyStoreType(fromValue.storeCategory).type == 'fxd'">
                     <template v-if="!verifyStoreType(fromValue.storeCategory).type == 'fxd'">
                       <van-col span="12" v-if="fromValue.ifJzStoreType != 1">
                       <van-col span="12" v-if="fromValue.ifJzStoreType != 1">
                         <div v-if="storeTypePOP">
                         <div v-if="storeTypePOP">
-                          <uploadImgc
+                          <upload-img
                             :uploadid="uploadid2"
                             :uploadid="uploadid2"
                             :imgArr="fromValue.imgSed"
                             :imgArr="fromValue.imgSed"
                             @newimgarr="newimgarr1"
                             @newimgarr="newimgarr1"
                             :type="2"
                             :type="2"
                             :imgText="
                             :imgText="
                               fromValue.ifJzStoreType != 1 ? '陈列照' : '立邦展厅照片'
                               fromValue.ifJzStoreType != 1 ? '陈列照' : '立邦展厅照片'
-                            "></uploadImgc>
+                            "></upload-img>
                         </div>
                         </div>
                       </van-col>
                       </van-col>
                     </template>
                     </template>
+                    <!-- 专业五金店 -->
                     <template
                     <template
                       v-else-if="
                       v-else-if="
                         fromValue.storeCategory == '126565' &&
                         fromValue.storeCategory == '126565' &&
@@ -369,14 +370,14 @@
                       ">
                       ">
                       <van-col span="12">
                       <van-col span="12">
                         <div v-if="storeTypePOP">
                         <div v-if="storeTypePOP">
-                          <uploadImgc
+                          <upload-img
                             :uploadid="uploadid2"
                             :uploadid="uploadid2"
                             :imgArr="fromValue.imgSed"
                             :imgArr="fromValue.imgSed"
                             @newimgarr="newimgarr1"
                             @newimgarr="newimgarr1"
                             :type="2"
                             :type="2"
                             displayPhoto="'1'"
                             displayPhoto="'1'"
                             :imgText="'陈列照'">
                             :imgText="'陈列照'">
-                          </uploadImgc>
+                          </upload-img>
                         </div>
                         </div>
                       </van-col>
                       </van-col>
                     </template>
                     </template>
@@ -404,23 +405,41 @@
                     </div>
                     </div>
                   </van-col>
                   </van-col>
                   <!-- 新建同城A、B店不显示陈列照 -->
                   <!-- 新建同城A、B店不显示陈列照 -->
-                  <template
-                    v-if="
-                      verifyStoreType(fromValue.storeCategory) &&
-                      !verifyStoreType(fromValue.storeCategory).type == 'fxd'
-                    ">
-                    <van-col span="12" v-if="fromValue.ifJzStoreType != 1">
-                      <div v-if="storeTypePOP">
-                        <uploadImgView
-                          :uploadid="uploadid2"
-                          :imgArr="fromValue.imgSed"
-                          @newimgarr="newimgarr1"
-                          :type="2"
-                          :imgText="
-                            fromValue.ifJzStoreType != 1 ? '陈列照' : '立邦展厅照片'
-                          "></uploadImgView>
-                      </div>
-                    </van-col>
+                  <template v-if="verifyStoreType(fromValue.storeCategory)">
+                    <template v-if="!verifyStoreType(fromValue.storeCategory).type == 'fxd'">
+                      <van-col span="12" v-if="fromValue.ifJzStoreType != 1">
+                        <div v-if="storeTypePOP">
+                          <uploadImgView
+                            :uploadid="uploadid2"
+                            :imgArr="fromValue.imgSed"
+                            @newimgarr="newimgarr1"
+                            :type="2"
+                            :imgText="
+                              fromValue.ifJzStoreType != 1 ? '陈列照' : '立邦展厅照片'
+                            "></uploadImgView>
+                        </div>
+                      </van-col>
+                    </template>
+                    <!-- 专业五金店 -->
+                    <template
+                      v-else-if="
+                        fromValue.storeCategory == '126565' &&
+                        fromValue.orgName &&
+                        fromValue.orgName.indexOf('BMD') != -1
+                      ">
+                      <van-col span="12">
+                        <div v-if="storeTypePOP">
+                          <uploadImgView
+                            :uploadid="uploadid2"
+                            :imgArr="fromValue.imgSed"
+                            @newimgarr="newimgarr1"
+                            :type="2"
+                            displayPhoto="'1'"
+                            :imgText="'陈列照'">
+                          </uploadImgView>
+                        </div>
+                      </van-col>
+                    </template>
                   </template>
                   </template>
                 </van-row>
                 </van-row>
               </div>
               </div>
@@ -1355,7 +1374,16 @@ export default {
       if (val.type == '1') {
       if (val.type == '1') {
         this.fromValue.img = val.fileUrl;
         this.fromValue.img = val.fileUrl;
       } else if (val.type == '2') {
       } else if (val.type == '2') {
+        //
+        // if (
+        //   this.fromValue.storeCategory == '126565' &&
+        //   this.fromValue.orgName &&
+        //   this.fromValue.orgName.indexOf('BMD') != -1
+        // ) {
+        //   this.displayImg.push(val.fileUrl);
+        // } else {
         this.fromValue.imgSed = val.fileUrl;
         this.fromValue.imgSed = val.fileUrl;
+        // }
       } else {
       } else {
         this.fromValue.carShopImgList.push(val.fileUrl);
         this.fromValue.carShopImgList.push(val.fileUrl);
       }
       }
@@ -1517,8 +1545,8 @@ export default {
             // ***********************************
             // ***********************************
             // ***************************************
             // ***************************************
             // ****************************** */
             // ****************************** */
-            this.addVisits();
-            // this.beforeAddFn();
+            // this.addVisits();
+            this.beforeAddFn();
           })
           })
           .catch((error) => {
           .catch((error) => {
             this.beforeAddFn();
             this.beforeAddFn();