Просмотр исходного кода

Merge branch 'v5.1.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.1.0dev

From-wh 2 лет назад
Родитель
Сommit
f7ca371ff6

+ 8 - 0
crmeb/app/adminapi/controller/v1/order/StoreOrder.php

@@ -293,6 +293,7 @@ class StoreOrder extends AuthController
 
             ['day_type', 0], //顺丰传 0今天,1明天,2后台
             ['pickup_time', []],//开始时间 9:00,结束时间 10:00  开始时间和结束时间之间不能小于一个小时
+            ['service_type', ''],//快递业务类型
         ]);
         if (!$id) {
             return app('json')->fail(100100);
@@ -325,8 +326,15 @@ class StoreOrder extends AuthController
             ['address', ''],
             ['weight', ''],
             ['service_type', ''],
+            ['cart_ids', []],
         ]);
 
+        foreach ($data['cart_ids'] as $cart) {
+            if (!isset($cart['cart_id']) || !$cart['cart_id'] || !isset($cart['cart_num']) || !$cart['cart_num']) {
+                return app('json')->fail(400159);
+            }
+        }
+
         return app('json')->success($services->express()->getPrice($data));
     }
 

+ 3 - 3
crmeb/crmeb/services/express/storage/Express.php

@@ -170,13 +170,13 @@ class Express extends BaseExpress
      */
     public function getPrice(array $data)
     {
-        if (!empty($data['kuaidicom'])) {
+        if (empty($data['kuaidicom'])) {
             throw new ApiException('快递编码必须填写');
         }
-        if (!empty($data['send_address'])) {
+        if (empty($data['send_address'])) {
             throw new ApiException('寄件地址必须填写');
         }
-        if (!empty($data['address'])) {
+        if (empty($data['address'])) {
             throw new ApiException('收件地址必须填写');
         }
         $param = [

+ 2 - 2
template/uni-app/pages/goods/order_details/index.vue

@@ -176,10 +176,10 @@
 				</button>
 			</div>
 			<!-- #endif -->
-			<view class='wrapper'>
+			<view class='wrapper' v-if="isReturen == 1">
 				<view class='item acea-row row-between'>
 					<view>{{$t(`申请理由`)}}:</view>
-					<view class='conter'>{{(orderInfo.add_time_y || '') +' '+(orderInfo.add_time_h || 0)}}</view>
+					<view class='conter'>{{orderInfo.refund_explain}}</view>
 				</view>
 				<view class='item acea-row row-between'>
 					<view>{{$t(`申请图片`)}}:</view>

+ 1 - 1
template/uni-app/pages/users/user_goods_collection/index.vue

@@ -197,7 +197,7 @@
 					})
 				} else {
 					this.$util.Tips({
-						title: that.$t(`该商品已下架`)
+						title: this.$t(`该商品已下架`)
 					})
 				}
 

+ 1 - 1
template/uni-app/pages/users/user_spread_money/index.vue

@@ -25,7 +25,7 @@
 											<view class="fail-msg" v-if="child.fail_msg">
 												{{$t(`原因`)}}:{{child.fail_msg}}
 											</view>
-											<view class="fail-msg" v-else>
+											<view class="fail-msg" v-else-if="child.extract_type">
 												{{$t(`提现方式`)}}:{{child.extract_type}}
 											</view>
 										</view>