更新导出

parent 458ac1b9
...@@ -137,6 +137,14 @@ class HandleController extends Controller ...@@ -137,6 +137,14 @@ class HandleController extends Controller
} }
private function e(){ private function e(){
$input['picking_type'] = 2;
$input['create_uid2'] = 6;
$client = new \Hprose\Http\Client("http://szyunxin.ichunt.com/server/putawayList",false);
$d = $client->putawayListServer(\GuzzleHttp\json_encode($input));
print_r($d);
die;
$input['create_uid2'] = 1; //用户id $input['create_uid2'] = 1; //用户id
$input['status'] = '-10,2'; //状态 $input['status'] = '-10,2'; //状态
$client = new \Hprose\Http\Client("http://yunxin.liexin.com/server/abnormlList",false); $client = new \Hprose\Http\Client("http://yunxin.liexin.com/server/abnormlList",false);
......
...@@ -180,28 +180,21 @@ class ExportModel ...@@ -180,28 +180,21 @@ class ExportModel
$account = (new SupplierAccountModel())->select("appid","key")->where("id",$input['create_uid2'])->first(); $account = (new SupplierAccountModel())->select("appid","key")->where("id",$input['create_uid2'])->first();
if(!$account) return [1001,'不存在此用户id']; if(!$account) return [1001,'不存在此用户id'];
$res = (new ServerFoostoneModel($account->appid,$account->key))->SkuList($input,2); $res = (new ServerPurModel($account->appid,$account->key))->PutawayList($input,2);
if (empty(@$res['data']) || !count($res['data']) ){ if (empty(@$res['data']) || !count($res['data']) ){
return $res; return $res;
} }
$out = []; $out = [];
foreach ($res['data'] as $k=>$v){ foreach ($res['data'] as $k=>$v){
array_push($out,[ array_push($out,[
'encoded'=>$v['encoded'], 'putaway_sn'=>$v['putaway_sn'],
'goods_type_name'=>$v['goods_type_name'], 'picking_sn'=>$v['picking_sn'],
'goods_name'=>$v['goods_name'], 'amount'=>$v['amount'],
'brand_name'=>$v['brand_name'], 'currency'=>$v['currency'],
'packing_name'=>$v['packing_name'], 'pay_type'=>$v['pay_type'],
'encap'=>$v['encap'], 'create_time'=>$v['create_time'],
'mpq'=>$v['mpq'],
'status_name'=>$v['status_name'],
'new_cost'=>$v['new_cost'],
'商家实际库存'=>"",
'LockStock'=>$v['LockStock'],
'stock'=>$v['stock'],
]); ]);
} }
$res['data'] = $out; $res['data'] = $out;
return $res; return $res;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#不与线上环境同步 #不与线上环境同步
return [ return [
"URL_EXPORT" =>"http://export.liexin.com", "URL_EXPORT" =>"http://szexport.ichunt.net",
"URL_ICHUNT" =>"https://www.ichunt.com", "URL_ICHUNT" =>"https://www.ichunt.com",
"URL_YUNXIN" => "http://yunxin.liexin.com", "URL_YUNXIN" => "http://yunxin.liexin.com",
"URL_FINANCE" => "http://finance.liexin.com", "URL_FINANCE" => "http://finance.liexin.com",
......
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