Commit 37f478cc by Joneq

修改app端的数据

parent b904c307
Showing with 3 additions and 0 deletions
...@@ -10,6 +10,7 @@ namespace App\Http\Controllers; ...@@ -10,6 +10,7 @@ namespace App\Http\Controllers;
use App\Http\Model\Logic\PalletLogic; use App\Http\Model\Logic\PalletLogic;
use App\Http\Model\Logic\PickTaskLogic; use App\Http\Model\Logic\PickTaskLogic;
use App\Http\Model\PalletModel;
use App\Http\Model\PickTaskDetailModel; use App\Http\Model\PickTaskDetailModel;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Http\Model\Logic\OutStoreLogic; use App\Http\Model\Logic\OutStoreLogic;
...@@ -98,6 +99,8 @@ class OutstoreController extends Controller ...@@ -98,6 +99,8 @@ class OutstoreController extends Controller
{ {
$data = $request->all(); $data = $request->all();
try{ try{
$palletId = PalletModel::where('pallet_sn',$data['pallet_sn'])->value('pallet_id');
$data['pick_task_detail_id'] = PickTaskDetailModel::getWhereObj([])->where('pallet_id',$palletId)->pluck('pick_task_detail_id')->toArray();
$data['pick_task_detail_id_str'] = implode(',',$data['pick_task_detail_id']); $data['pick_task_detail_id_str'] = implode(',',$data['pick_task_detail_id']);
$data['is_apply_customs_app'] = '1'; $data['is_apply_customs_app'] = '1';
$returnData = (new PalletLogic())->deliverGoods($data); $returnData = (new PalletLogic())->deliverGoods($data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment