Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
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
0b709d4e
authored
Dec 05, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
合同
parent
45b64a15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
app/Admin/Controllers/Api/OrderApiController.php
resources/views/export/order_contract_PI.blade.php
resources/views/export/order_contract_PL.blade.php
app/Admin/Controllers/Api/OrderApiController.php
View file @
0b709d4e
...
@@ -27,7 +27,7 @@ class OrderApiController extends BaseController
...
@@ -27,7 +27,7 @@ class OrderApiController extends BaseController
$params
=
$request
->
all
();
$params
=
$request
->
all
();
$type
=
arrayGet
(
$params
,
"type"
);
$type
=
arrayGet
(
$params
,
"type"
);
$order_id
=
203
;
$order_id
=
69
;
$orderAddressList
=
OrderService
::
getOrderAddress
(
$order_id
);
$orderAddressList
=
OrderService
::
getOrderAddress
(
$order_id
);
$orderAddressList
=
arrayChangeKeyByField
(
$orderAddressList
,
"order_address_type"
);
$orderAddressList
=
arrayChangeKeyByField
(
$orderAddressList
,
"order_address_type"
);
// dump($orderAddressList);
// dump($orderAddressList);
...
@@ -117,6 +117,8 @@ class OrderApiController extends BaseController
...
@@ -117,6 +117,8 @@ class OrderApiController extends BaseController
$info
[
"orderList"
]
=
OrderService
::
getOrderList
(
$order_id
);
$info
[
"orderList"
]
=
OrderService
::
getOrderList
(
$order_id
);
$info
[
"orderList"
][
"adminUser"
]
=
CmsUser
::
getInfoByUserId
(
$info
[
"orderList"
][
"sale_id"
]);
// dd($info);
// dd($info);
if
(
$type
==
"1"
){
if
(
$type
==
"1"
){
...
...
resources/views/export/order_contract_PI.blade.php
View file @
0b709d4e
...
@@ -79,10 +79,10 @@
...
@@ -79,10 +79,10 @@
<td>
{{@$bill["consignee"]}}
</td>
<td>
{{@$bill["consignee"]}}
</td>
<td>
<td>
@if(!empty($info["orderList"]["scm_user"]))
@if(!empty($info["orderList"]["scm_user"]))
@if($info["orderList"]["scm_user"]["name"])
@if($info["orderList"]["scm_user"]["company_name"])
{{$info["orderList"]["scm_user"]["name"]}}
@else
{{$info["orderList"]["scm_user"]["company_name"]}}
{{$info["orderList"]["scm_user"]["company_name"]}}
@else
{{$info["orderList"]["scm_user"]["name"]}}
@endif
@endif
@endif
@endif
</td>
</td>
...
...
resources/views/export/order_contract_PL.blade.php
View file @
0b709d4e
...
@@ -80,10 +80,10 @@
...
@@ -80,10 +80,10 @@
<td>
{{@$bill["consignee"]}}
</td>
<td>
{{@$bill["consignee"]}}
</td>
<td>
<td>
@if(!empty($info["orderList"]["scm_user"]))
@if(!empty($info["orderList"]["scm_user"]))
@if($info["orderList"]["scm_user"]["name"])
@if($info["orderList"]["scm_user"]["company_name"])
{{$info["orderList"]["scm_user"]["name"]}}
@else
{{$info["orderList"]["scm_user"]["company_name"]}}
{{$info["orderList"]["scm_user"]["company_name"]}}
@else
{{$info["orderList"]["scm_user"]["name"]}}
@endif
@endif
@endif
@endif
</td>
</td>
...
...
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