Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d1a795a1
authored
May 18, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新导出
parent
5a809dba
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
21 deletions
app/Http/Controllers/HandleController.php
app/Model/ExportModel.php
resources/views/pc/Login.blade.php
app/Http/Controllers/HandleController.php
View file @
d1a795a1
...
...
@@ -137,6 +137,43 @@ class HandleController extends Controller
}
private
function
e
(){
// $d = (new ExportModel())->GoodsComListExport([ "goods_status"=>"1",
// "_url"=>"/api/ApiGoodsComListExport",
// "supplier_com_code"=>"L0000135",
// "is_scroll"=> 1]);
// print_r($d);
// die();
$data
=
[
"type"
=>
2
,
# 类型 1:模板调用 2: api回调
"source_items_id"
=>
5
,
#来源明细id,必填
"file_name"
=>
"联营列表导出"
,
"excel_suf"
=>
"csv"
,
#导出文件格式 csv,xls
"header"
=>
[
#导出头部
"商品ID"
,
"SKU型号"
,
"商品类别"
,
"供应商"
,
"制造商"
,
"渠道标签"
,
"内部编号"
,
"库存"
,
"状态"
,
"是否过期"
,
"更新时间"
],
"query_param"
=>
[
"goods_status"
=>
"1"
,
"_url"
=>
"/api/ApiGoodsComListExport"
,
"supplier_com_code"
=>
"L0000135"
,
"is_scroll"
=>
1
],
#查询参数
"callbackurl"
=>
"http://yunxin.liexin.com/server/goodsComList"
,
#rpc回调网址
"callbackfuc"
=>
"goodsComListServer"
,
#rpc回调函数
"create_uid"
=>
0
,
#创建人id
"create_uid2"
=>
1
,
#前台创建人id
"create_name"
=>
111
];
$client
=
new
\Hprose\Http\Client
(
"http://yunxin.liexin.com/server/goodsComList"
,
false
);
$d
=
$client
->
goodsComListServer
(
\GuzzleHttp\json_encode
([
"goods_status"
=>
"1"
,
"_url"
=>
"/api/ApiGoodsComListExport"
,
"supplier_com_code"
=>
"L0000135"
,
"is_scroll"
=>
1
]));
print_r
(
$d
);
die
();
$input
[
'picking_type'
]
=
2
;
$input
[
'create_uid2'
]
=
6
;
$client
=
new
\Hprose\Http\Client
(
"http://szyunxin.ichunt.com/server/putawayList"
,
false
);
...
...
@@ -166,26 +203,7 @@ class HandleController extends Controller
// $s = ExportModel::ApiAbnormalListExport($input);
// print_r($s);
// die();
$data
=
[
"type"
=>
2
,
# 类型 1:模板调用 2: api回调
"source_items_id"
=>
5
,
#来源明细id,必填
"file_name"
=>
"联营列表导出"
,
"excel_suf"
=>
"csv"
,
#导出文件格式 csv,xls
"header"
=>
[
#导出头部
"商品ID"
,
"SKU型号"
,
"商品类别"
,
"供应商"
,
"制造商"
,
"渠道标签"
,
"内部编号"
,
"库存"
,
"状态"
,
"是否过期"
,
"更新时间"
],
"query_param"
=>
$input
,
#查询参数
"callbackurl"
=>
"http://yunxin.liexin.com/server/goodsComList"
,
#rpc回调网址
"callbackfuc"
=>
"goodsComListServer"
,
#rpc回调函数
"create_uid"
=>
0
,
#创建人id
"create_uid2"
=>
1
,
#前台创建人id
"create_name"
=>
111
];
$client
=
new
\Hprose\Http\Client
(
"http://yunxin.liexin.com/server/goodsComList"
,
false
);
$d
=
$client
->
goodsComListServer
(
\GuzzleHttp\json_encode
(
$input
));
print_r
(
$d
);
die
();
#导出异常列表
// $input['is_consign'] = 1; //供应商代发
$input
[
'create_uid2'
]
=
1
;
//用户id
...
...
app/Model/ExportModel.php
View file @
d1a795a1
...
...
@@ -59,7 +59,7 @@ class ExportModel
$ServerMicModel
=
new
ServerMicModel
();
$s
=
[
'is_scroll'
=>
$query
[
'is_scroll'
],
//游标
'offset'
=>
$query
[
'limit'
]
,
'offset'
=>
@
$query
[
'limit'
]
?
$query
[
'limit'
]
:
100
,
'supplier_id'
=>
17
,
'canal/condition'
=>
$query
[
'supplier_com_code'
],
];
...
...
resources/views/pc/Login.blade.php
View file @
d1a795a1
...
...
@@ -119,7 +119,8 @@
</p>
<p>
<span>
©2019 深圳市猎芯科技有限公司 ALL RIGHTS RESERVED
</span>
<span>
粤ICP备17064931号
</span>
<a
rel=
"nofollow"
target=
"_blank"
href=
"http://www.beian.miit.gov.cn"
><span>
粤ICP备17064931号
</span></a>
<span>
增值电信业务经营许可证:粤B2-20160350
</span>
</p>
<ul
class=
"clr"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment