瀏覽代碼

新增同城分销店增加去下单提示

zhujindu 10 月之前
父節點
當前提交
a4ca883226

+ 6 - 0
src/views/signApproval/newStoreApprovalDetail.vue

@@ -199,6 +199,9 @@
               </div>
             </van-collapse-item>
           </van-collapse>
+          <div style="font-size: 16px; font-weight: 600; padding: 10px 16px 0 16px">
+            该新建同城分销店首笔订单<span style="color: red">{{ orderPrice }}元</span>
+          </div>
         </van-tab>
         <van-tab title="属性信息" name="outsidePlan">
           <template v-for="(item, index) in TCFXList" v-if="dictTypeFormShow">
@@ -324,6 +327,7 @@ export default {
       rejectReasonShow: false, //退回提交原因
       rejectMessage: '',
       displayImg: [],
+      orderPrice: 0, //订单总金额
     };
   },
   activated() {
@@ -605,6 +609,7 @@ export default {
             }
             // totalPrice:
             let orderListArr = [];
+            this.orderPrice = 0;
             for (let value of orderMap.values()) {
               let productTotalPrice = 0; //当前订单总金额
               for (let i = 0; i < value.productDetail.length; i++) {
@@ -613,6 +618,7 @@ export default {
                 productTotalPrice = productTotalPrice + value.productDetail[i].productTotalPrice;
               }
               value.totalPrice = productTotalPrice;
+              this.orderPrice = this.orderPrice + productTotalPrice;
               orderListArr.push(value);
             }
             this.orderList = orderListArr;

+ 35 - 23
src/views/storeManagement/storeAdd.vue

@@ -935,7 +935,7 @@ export default {
   },
   activated() {
     this.tabVal = 'insidePlan';
-    // this.beforeAddFn();
+    this.beforeAddFn();
     // 授权
     getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
       this.$nextTick(() => {
@@ -1829,20 +1829,32 @@ export default {
           this.$toast('经销商未填写');
           return;
         }
-        // if (
-        //   fromValue.imgSed == '' &&
-        //   fromValue.ifJzStoreType != 1 &&
-        //   this.storeTypePOP &&
-        //   fromValue.storeCategory != 'C917'
-        // ) {
-        //   this.$toast('图片未上传');
-        //   return;
-        // }
       }
       if (this.GZAttributeFormShow && fromValue.potentialCustomerType == '') {
         this.$toast('潜在客户类型未填写');
         return;
       }
+      // 同城分销建店添加去下单提示
+      if (
+        this.verifyStoreType(this.fromValue.storeCategory) &&
+        this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
+      ) {
+        this.$dialog
+          .confirm({
+            title: '系统提示',
+            message: `该门店类型为<span style="color:red">同城分销店</span>,<br/>首笔订单最低金额:<span style="color:red">1000元</span>`,
+            confirmButtonText: '去下单',
+            cancelButtonText: '修改门店信息',
+          })
+          .then(() => {
+            this.addStoreFun();
+          });
+      } else {
+        this.addStoreFun();
+      }
+    },
+    // 添加门店
+    addStoreFun() {
       addStore(this.fromValue).then((res) => {
         loading1.clear();
         if (res.code == 200) {
@@ -1855,7 +1867,7 @@ export default {
             ) {
               window.location.replace(res.data.orderUrl);
             } else {
-              that.$dialog
+              this.$dialog
                 .confirm({
                   title: '系统提示',
                   message: '建店成功,是否立即拜访?',
@@ -1876,42 +1888,42 @@ export default {
                           '/mobile/suishenbangOutstoreVisit?PointSum=0&visitModel=1&tabVal=1&hisTime=null&pageType=out&visitId=null&rdId=null&storeId=' +
                           res.data.sfaStore.storeId +
                           '&lat=' +
-                          that.fromValue.lat +
+                          this.fromValue.lat +
                           '&lon=' +
-                          that.fromValue.lon +
+                          this.fromValue.lon +
                           '&addressLine=' +
-                          that.fromValue.addressLine +
+                          this.fromValue.addressLine +
                           '&storeCategory=' +
                           res.data.sfaStore.storeCategory +
                           '&storeName=' +
-                          that.fromValue.storeName +
+                          this.fromValue.storeName +
                           '&contactName=' +
-                          that.fromValue.contactName +
+                          this.fromValue.contactName +
                           '&storeCode=' +
                           res.data.sfaStore.storeCode +
                           '&latNew=' +
-                          that.fromValue.lat +
+                          this.fromValue.lat +
                           '&lonNew=' +
-                          that.fromValue.lon +
+                          this.fromValue.lon +
                           '&marklat=' +
-                          that.mlan +
+                          this.mlan +
                           '&marklon=' +
-                          that.mlon
+                          this.mlon
                       );
                     } else {
-                      that.$dialog
+                      this.$dialog
                         .alert({
                           title: '系统提示',
                           message: response.msg,
                         })
                         .then((res) => {
-                          that.$router.go(-1);
+                          this.$router.go(-1);
                         });
                     }
                   });
                 })
                 .catch(() => {
-                  that.$router.go(-1);
+                  this.$router.go(-1);
                 });
             }
           } else {

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

@@ -324,8 +324,14 @@
               </p>
               <viewUploadImg :imgs="fromValue.carShopImgList"></viewUploadImg>
             </div>
+            <!-- 同城分销店提示 同城店铺 未结案时 -->
+            <div
+              v-if="fromValue.approvalStatus == 0"
+              style="font-size: 16px; font-weight: 600; padding: 10px 16px 0 16px">
+              该店首批铺货要求<span style="color: red">1000元</span>,请上传陈列照片
+            </div>
             <div v-if="fromValue.storeCategory != 'C917'">
-              <div style="padding: 20px; height: 228px; background-color: #f1f1f1">
+              <div style="padding: 0 20px 20px 20px; height: 228px; background-color: #f1f1f1">
                 <div class="displayImg">
                   <div class="displayImgBox">
                     <div v-if="storeTypePOP">