Forráskód Böngészése

Merge pull request #419 from John-Hong/release-3.2.0

fix(SCRM-5697): 批量更换  劵 --> 券
Tron 1 éve
szülő
commit
58fb706239

+ 1 - 1
src/api/parking/index.js

@@ -172,7 +172,7 @@ export function qrCodes(codeId) {
 }
 
 
-// 1.3 纸质优惠金额接口
+// 1.3 纸质优惠金额接口
 export function paperCoupon(couponCode, vehicleNo) {
   return window.requestms.get(`parking-lots/paper-coupon?couponCode=${couponCode}&vehicleNo=${vehicleNo}`, { loading: true });
 }

+ 1 - 1
src/crmPages/parkingFee.vue

@@ -63,7 +63,7 @@
               <image
                 :src="`./static/images/icon3${colorAry[custTypeId]}.png`"
               />
-              <text>停车兑换</text>
+              <text>停车兑换</text>
             </view>
             <view class="menu_item" @click="doRouter1">
               <image

+ 1 - 1
src/crmPages/parkingFeeCoupon.vue

@@ -21,7 +21,7 @@
                   >{{ item.value }}</text
                 >
               </view>
-              <text style="color: #989898; font-size: 30rpx">停车</text>
+              <text style="color: #989898; font-size: 30rpx">停车</text>
             </view>
           </view>
           <view class="item-content cro_">

+ 6 - 6
src/crmPages/parkingFeeDetail.vue

@@ -93,7 +93,7 @@
         class="warp_index warp_index_da"
         v-if="parkFee.parkInfoEntity.isuseticket === 1"
       >
-        <view>优惠</view>
+        <view>优惠</view>
         <view class="warp_index_color" @click="coupon">
           <view
             style="margin-right: 10rpx"
@@ -111,10 +111,10 @@
         class="warp_index warp_index_da"
         v-if="parkFee.parkInfoEntity.papercoupons === 1 || isShowPapercoupons"
       >
-        <view>纸质优惠</view>
+        <view>纸质优惠</view>
         <view class="warp_index_color" @click="paperCoupon">
           <view style="margin-right: 10rpx" class="text-red"
-            >扫描纸质优惠二维码</view
+            >扫描纸质优惠二维码</view
           >
           <image
             style="width: 26rpx; height: 26rpx"
@@ -446,10 +446,10 @@ export default {
     // 电子券
     couponDesc() {
       if (this.checkedCouponCount > 0) {
-        return `已选择${this.checkedCouponCount}张优惠`;
+        return `已选择${this.checkedCouponCount}张优惠`;
       } else {
         if (this.couponCount > 0) {
-          return `您有${this.couponCount}张可用优惠`;
+          return `您有${this.couponCount}张可用优惠`;
         }
         return `暂无可用优惠券`;
       }
@@ -1052,7 +1052,7 @@ export default {
       });
     },
 
-    // 电子优惠
+    // 电子优惠
     coupon() {
       if (!this.couponCount) {
         return uni.showToast({

+ 4 - 4
src/crmPages/parkingFeePaperCoupon.vue

@@ -3,7 +3,7 @@
     <wx-points-commit ref="wxPointsCommit"></wx-points-commit>
 
     <view class="worp">
-      <view style="font-size: 32rpx">纸质优惠减免说明</view>
+      <view style="font-size: 32rpx">纸质优惠减免说明</view>
       <view style="font-size: 28rpx; color: #808080; padding-top: 12rpx">{{
         parkPaperCouponRemark
       }}</view>
@@ -15,7 +15,7 @@
         :key="item.discountCode"
       >
         <view class="worp_index1_index">
-          <view class="content">码 {{ item.discountCode }}</view>
+          <view class="content">码 {{ item.discountCode }}</view>
           <view @click="deleteCoupon(index)"
             ><image
               src="static/images/delete.png"
@@ -29,7 +29,7 @@
             margin-top: 20rpx;
             font-size: 28rpx;
           "
-          >优惠金额 :<text style="color: #ed1c24">{{
+          >优惠金额 :<text style="color: #ed1c24">{{
             item.discountValueMoney | currency
           }}</text></view
         >
@@ -48,7 +48,7 @@
         src="static/images/sweep.png"
         style="width: 35rpx; height: 35rpx; margin-right: 20rpx"
       />
-      <view>扫码用</view>
+      <view>扫码用</view>
     </view>
     <view class="flewx">
       <view class="flewx-content"

+ 1 - 1
src/pages/parkingFee/components/base/parkingFee.vue

@@ -62,7 +62,7 @@
             </div>
             <div class="menu_item" @click="doRouter3">
               <img :src="`${require(`../../static/images/icon3${colorAry[custTypeId]}.png`)}`" />
-              <span>停车兑换</span>
+              <span>停车兑换</span>
             </div>
             <div class="menu_item" @click="doRouter1">
               <img :src="`${require(`../../static/images/icon4${colorAry[custTypeId]}.png`)}`" />

+ 1 - 1
src/pages/parkingFee/components/base/parkingFeeCoupon.vue

@@ -13,7 +13,7 @@
                 <span style="font-weight: bold; color: #ed1c24">¥</span>
                 <span style="font-weight: bold; color: #ed1c24; font-size: 50px">{{ item.discountFee }}</span>
               </div>
-              <span style="color: #989898; font-size: 30px">停车</span>
+              <span style="color: #989898; font-size: 30px">停车</span>
             </div>
           </div>
           <div class="item-content cro_">

+ 3 - 3
src/pages/parkingFee/components/base/parkingFeeDetail.vue

@@ -65,7 +65,7 @@
         <!-- v-if="enableCoupon" -->
         <!-- 用户登录时展示 -->
         <div class="warp_index warp_index_da" v-if="orderDetail && orderDetail.discountInfo">
-          <div>优惠</div>
+          <div>优惠</div>
           <div class="warp_index_color" @click="coupon">
             <!-- maxOneDayCoupons > 0 && -->
             <div style="margin-right: 10px" :class="coupons.length > 0 ? 'text-red' : 'text-disable'">
@@ -76,9 +76,9 @@
         </div>
         <!-- 纸质券 -->
         <div class="warp_index warp_index_da" v-if="enablePaperCoupons">
-          <div>纸质优惠</div>
+          <div>纸质优惠</div>
           <div class="warp_index_color" @click="paperCoupon">
-            <div style="margin-right: 10px" class="text-red">扫描纸质优惠二维码</div>
+            <div style="margin-right: 10px" class="text-red">扫描纸质优惠二维码</div>
             <img style="width: 26px; height: 26px" :src="`${require('../../static/images/arrows.png')}`" />
           </div>
         </div>

+ 4 - 4
src/pages/parkingFee/components/base/parkingFeePaperCoupon.vue

@@ -4,7 +4,7 @@
       <wx-points-commit ref="wxPointsCommit"></wx-points-commit>
 
       <div class="worp">
-        <div style="font-size: 32px">纸质优惠减免说明</div>
+        <div style="font-size: 32px">纸质优惠减免说明</div>
         <div style="font-size: 28px; color: #808080; padding-top: 12px">{{
             parkPaperCouponRemark
           }}</div>
@@ -16,7 +16,7 @@
           :key="item.discountCode"
         >
           <div class="worp_index1_index">
-            <div class="content">码 {{ item.discountCode }}</div>
+            <div class="content">码 {{ item.discountCode }}</div>
             <div @click="deleteCoupon(index)"
             ><img
               :src="require('../../static/images/delete.png')"
@@ -30,7 +30,7 @@
                 margin-top: 20px;
                 font-size: 28px;
               "
-          >优惠金额 :<span style="color: #ed1c24">{{
+          >优惠金额 :<span style="color: #ed1c24">{{
               item.discountValueMoney | currency
             }}</span></div
           >
@@ -49,7 +49,7 @@
           :src="require('../../static/images/sweep.png')"
           style="width: 35px; height: 35px; margin-right: 20px"
         />
-        <div>扫码用</div>
+        <div>扫码用</div>
       </div>
       <div class="flewx">
         <div class="flewx-content"

+ 1 - 1
src/pages/parkingFee/components/officeBlue/parkingFeeCoupon.vue

@@ -13,7 +13,7 @@
                     <span style="font-weight: bold; color: var(--k-color-primary)">¥</span>
                     <span class="itemValue">{{ item.discountFee }}</span>
                   </div>
-                  <span style="color: var(--k-color-primary); font-size: 30px">停车</span>
+                  <span style="color: var(--k-color-primary); font-size: 30px">停车</span>
                 </div>
               </div>
               <div class="item-content cro_">

+ 3 - 3
src/pages/parkingFee/components/officeBlue/parkingFeeDetail.vue

@@ -71,7 +71,7 @@
             class="warp_index warp_index_da"
             v-if="orderDetail && orderDetail.discountInfo"
           >
-            <div>优惠</div>
+            <div>优惠</div>
             <div class="warp_index_color" @click="coupon">
               <div
                 style="margin-right: 10px"
@@ -88,10 +88,10 @@
             class="warp_index warp_index_da"
             v-if="enablePaperCoupons"
           >
-            <div>纸质优惠</div>
+            <div>纸质优惠</div>
             <div class="warp_index_color" @click="paperCoupon">
               <div style="margin-right: 10px" class="text-red">
-                扫描纸质优惠二维码
+                扫描纸质优惠二维码
               </div>
               <!-- <img style="width: 26px; height: 26px" src="static/images/arrows.png" /> -->
             </div>

+ 4 - 4
src/pages/parkingFee/components/officeBlue/parkingFeePaperCoupon.vue

@@ -1,7 +1,7 @@
 <template>
   <scroll-view scroll-y="true" class="scroll-Y">
     <div class="worp">
-      <div class="title">纸质优惠减免说明</div>
+      <div class="title">纸质优惠减免说明</div>
       <div style="font-size: 28px; color: #808080; padding-top: 12px">
         {{ parkPaperCouponRemark }}
       </div>
@@ -13,7 +13,7 @@
         :key="item.discountCode"
       >
         <div class="worp_index1_index">
-          <div class="content">码 {{ item.discountCode }}</div>
+          <div class="content">码 {{ item.discountCode }}</div>
           <div @click="deleteCoupon(index)"><van-icon name="delete-o" /></div>
         </div>
         <div
@@ -24,7 +24,7 @@
             font-size: 28px;
           "
         >
-          优惠金额 :<span style="color: #064c8a">{{
+          优惠金额 :<span style="color: #064c8a">{{
             item.discountValueMoney | currency
           }}</span>
         </div>
@@ -42,7 +42,7 @@
         :src="require('../../static/images/sweep.png')"
         style="width: 35px; height: 35px; margin-right: 20px"
       />
-      <div>扫码用</div>
+      <div>扫码用</div>
     </div>
     <div class="flewx">
       <!-- <div class="flewx-content">应付<span style="color: red;font-size: 32px;padding-left: 20px;">{{actualFee |

+ 1 - 1
src/pages/parkingFee/components/purple/parkingFee.vue

@@ -17,7 +17,7 @@
           </div>
           <div class="menu_item" @click="doRouter3" v-if="source === 'CRM'">
             <img :src="`${require(`../../static/images/icon-coupon.png`)}`" />
-            <span>停车兑换</span>
+            <span>停车兑换</span>
           </div>
           <div class="menu_item" @click="doRouter1">
             <img :src="`${require(`../../static/images/icon-ticket.png`)}`" />

+ 3 - 3
src/pages/parkingFee/components/purple/parkingFeeDetail.vue

@@ -42,14 +42,14 @@
           </div>
         </div>
         <div class="info-item-box" v-if="orderDetail && orderDetail.discountInfo">
-          <div class="label">优惠</div>
+          <div class="label">优惠</div>
           <div :class="['value', coupons.length > 0 ? 'text-red' : 'text-disable']" @click="coupon">{{ couponDesc }}
             <van-icon name="arrow"/>
           </div>
         </div>
         <div class="info-item-box" v-if="enablePaperCoupons">
-          <div class="label">纸质优惠</div>
-          <div :class="['value', 'text-red']">扫描纸质优惠二维码
+          <div class="label">纸质优惠</div>
+          <div :class="['value', 'text-red']">扫描纸质优惠二维码
             <van-icon name="arrow"/>
           </div>
         </div>

+ 1 - 1
src/pages/parkingFee/mixins/parkingFeePaperCoupon.js

@@ -209,7 +209,7 @@ export default {
         // this.$store.commit('order/setPaperDiscountTime',this.paperDiscountTime + discountTime)
       } else {
         return Toast({
-          message: '优惠已添加,请勿重复扫码',
+          message: '优惠已添加,请勿重复扫码',
         });
       }
     },

+ 1 - 1
src/pages/parkingFee/parkingFeeCoupon.vue

@@ -27,7 +27,7 @@
                   <span>¥</span>
                   <span class="itemValue">{{ item.discountFee }}</span>
                 </div>
-                <span style=" font-size: 30px">停车</span>
+                <span style=" font-size: 30px">停车</span>
               </div>
               <div class="item-content">
                 <div class="content">

+ 3 - 3
src/pages/parkingFee/parkingFeeDetail.vue

@@ -45,15 +45,15 @@
           </div>
         </div>
         <div class="info-item-box" v-if="enableCoupon">
-          <div class="label">优惠</div>
+          <div class="label">优惠</div>
           <div :class="['value',]" @click="coupon">
             <span :class="[ coupons.length > 0 ? 'text-red':  'text-disable']">{{ couponDesc }}</span>
             <van-icon name="arrow"/>
           </div>
         </div>
         <div class="info-item-box" v-if="enablePaperCoupons">
-          <div class="label">纸质优惠</div>
-          <div :class="['value', 'text-red']" @click="paperCoupon">扫描纸质优惠二维码
+          <div class="label">纸质优惠</div>
+          <div :class="['value', 'text-red']" @click="paperCoupon">扫描纸质优惠二维码
             <van-icon name="arrow"/>
           </div>
         </div>

+ 4 - 4
src/pages/parkingFee/parkingFeePaperCoupon.vue

@@ -2,7 +2,7 @@
   <div :class="['scroll-Y', theme]">
     <div>
       <div class="worp">
-        <div class="title">纸质优惠减免说明</div>
+        <div class="title">纸质优惠减免说明</div>
         <div style="font-size: 28px; color: #808080; padding-top: 12px">
           <!-- {{ (orderDetail && orderDetail.parkingRule && orderDetail.discountInfo.paperCoupons[0].description) || '' }} -->
           {{ paperCouponsDesc }}
@@ -11,11 +11,11 @@
       <div v-if="paperCouponList.length">
         <div class="worp_index1" v-for="(item, index) in paperCouponList" :key="item.code">
           <div class="worp_index1_index">
-            <div class="content">码 {{ item.discountCode }}</div>
+            <div class="content">码 {{ item.discountCode }}</div>
             <div @click="deleteCoupon(item)"><van-icon name="delete-o" /></div>
           </div>
           <div style="padding-bottom: 25px; margin-left: 20px; margin-top: 20px; font-size: 28px">
-            优惠金额 :<span style="color: #064c8a">{{ item.discountFee | currency }}</span>
+            优惠金额 :<span style="color: #064c8a">{{ item.discountFee | currency }}</span>
           </div>
         </div>
       </div>
@@ -26,7 +26,7 @@
         @click="scanCode"
       >
         <img :src="require('./static/images/sweep.png')" style="width: 35px; height: 35px; margin-right: 20px" />
-        <div>扫码用</div>
+        <div>扫码用</div>
       </div>
       <div style="height: 220px;"></div>
     </div>

+ 1 - 1
src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

@@ -230,7 +230,7 @@ export default {
         // this.$store.commit('order/setPaperDiscountTime',this.paperDiscountTime + discountTime)
       } else {
         return Toast({
-          message: '优惠已添加,请勿重复扫码',
+          message: '优惠已添加,请勿重复扫码',
         });
       }
     },

+ 1 - 1
src/pages/parkingFeeV2/parkingFeeCoupon.vue

@@ -27,7 +27,7 @@
                   <span>¥</span>
                   <span class="itemValue">{{ item.discountFee }}</span>
                 </div>
-                <span style=" font-size: 30px">停车</span>
+                <span style=" font-size: 30px">停车</span>
               </div>
               <div class="item-content">
                 <div class="content">

+ 3 - 3
src/pages/parkingFeeV2/parkingFeeDetail.vue

@@ -45,15 +45,15 @@
           </div>
         </div>
         <div class="info-item-box" v-if="enableCoupon">
-          <div class="label">优惠</div>
+          <div class="label">优惠</div>
           <div :class="['value',]" @click="coupon">
             <span :class="[ coupons.length > 0 ? 'text-red':  'text-disable']">{{ couponDesc }}</span>
             <van-icon name="arrow"/>
           </div>
         </div>
         <div class="info-item-box" v-if="enablePaperCoupons">
-          <div class="label">纸质优惠</div>
-          <div :class="['value', 'text-red']" @click="paperCoupon">扫描纸质优惠二维码
+          <div class="label">纸质优惠</div>
+          <div :class="['value', 'text-red']" @click="paperCoupon">扫描纸质优惠二维码
             <van-icon name="arrow"/>
           </div>
         </div>

+ 4 - 4
src/pages/parkingFeeV2/parkingFeePaperCoupon.vue

@@ -2,7 +2,7 @@
   <div :class="['scroll-Y', theme]">
     <div>
       <div class="worp">
-        <div class="title">纸质优惠减免说明</div>
+        <div class="title">纸质优惠减免说明</div>
         <div style="font-size: 28px; color: #808080; padding-top: 12px">
           <!-- {{ (orderDetail && orderDetail.parkingRule && orderDetail.discountInfo.paperCoupons[0].description) || '' }} -->
           {{ paperCouponsDesc }}
@@ -11,11 +11,11 @@
       <div v-if="paperCouponList.length">
         <div class="worp_index1" v-for="(item, index) in paperCouponList" :key="item.code">
           <div class="worp_index1_index">
-            <div class="content">码 {{ item.discountCode }}</div>
+            <div class="content">码 {{ item.discountCode }}</div>
             <div @click="deleteCoupon(item)"><van-icon name="delete-o" /></div>
           </div>
           <div style="padding-bottom: 25px; margin-left: 20px; margin-top: 20px; font-size: 28px">
-            优惠金额 :<span style="color: #064c8a">{{ item.discountFee | currency }}</span>
+            优惠金额 :<span style="color: #064c8a">{{ item.discountFee | currency }}</span>
           </div>
         </div>
       </div>
@@ -26,7 +26,7 @@
         @click="scanCode"
       >
         <img :src="require('@/pages/parkingFee/static/images/sweep.png')" style="width: 35px; height: 35px; margin-right: 20px" />
-        <div>扫码用</div>
+        <div>扫码用</div>
       </div>
       <div style="height: 220px;"></div>
     </div>

+ 2 - 2
src/store/order/coupon.js

@@ -38,10 +38,10 @@ export default {
         commit('setCouponCount',couponCount);
 
         if ( couponCount > 0 ) {
-          return commit('setCouponDesc',`已选择${ couponCount }张优惠`);
+          return commit('setCouponDesc',`已选择${ couponCount }张优惠`);
         }
         if ( checkOutResponse.discountInfo.coupons.length ) {
-          return commit('setCouponDesc',`您有${ checkOutResponse.discountInfo.coupons.length }张可用优惠`);
+          return commit('setCouponDesc',`您有${ checkOutResponse.discountInfo.coupons.length }张可用优惠`);
         }
       }
       commit('setCouponDesc',`暂无可用优惠券`);