ソースを参照

商户后台-订单列表-增加手动确认收货关单功能

sunxbiao 1 年間 前
コミット
b79f42179a
共有2 個のファイルを変更した16 個の追加0 個の削除を含む
  1. 15 0
      app/controller/merchant/store/order/Order.php
  2. 1 0
      route/merchant.php

+ 15 - 0
app/controller/merchant/store/order/Order.php

@@ -263,6 +263,21 @@ class Order extends BaseController
263 263
     }
264 264
 
265 265
     /**
266
+     * 手动操作订单为 已自提 关单
267
+     * @param $id
268
+     * @return mixed
269
+     * @throws \think\db\exception\DataNotFoundException
270
+     * @throws \think\db\exception\DbException
271
+     * @throws \think\db\exception\ModelNotFoundException
272
+     */
273
+    public function take()
274
+    {
275
+        $order_id= input('order_id');
276
+        $this->repository->takeOrder($order_id);
277
+        return app('json')->success('确认收货成功');
278
+    }
279
+
280
+    /**
266 281
      * @param $id
267 282
      * @return mixed
268 283
      * @author Qinii

+ 1 - 0
route/merchant.php

@@ -476,6 +476,7 @@ Route::group(config('admin.api_merchant_prefix') . '/', function () {
476 476
             Route::get('order_red_list', 'Order/order_red_list')->name('orderRedList');// 养老金打款凭证 列表
477 477
             Route::get('reward_list', 'Order/reward_list')->name('orderRedList');// 奖励统计
478 478
             Route::get('reward_excel', 'Order/reward_excel')->name('reward_excel');// 奖励统计-导出
479
+            Route::post('take', 'Order/take')->name('take');// 奖励统计-导出
479 480
         })->prefix('merchant.store.order.');
480 481
 
481 482
         //退款订单