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
3f220f11
authored
Nov 24, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
合同
parent
77b02def
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
93 deletions
app/Exports/ContractPLExport.php
resources/views/export/order_contract_PL.blade.php
app/Exports/ContractPLExport.php
View file @
3f220f11
...
@@ -17,28 +17,30 @@ class ContractPLExport implements FromView, WithColumnWidths, WithDefaultStyles,
...
@@ -17,28 +17,30 @@ class ContractPLExport implements FromView, WithColumnWidths, WithDefaultStyles,
public
function
__construct
(
$data
=
[])
public
function
__construct
(
$data
=
[])
{
{
$this
->
order_info
=
[]
;
$this
->
data
=
$data
;
}
}
public
function
view
()
:
View
public
function
view
()
:
View
{
{
return
view
(
'export.order_contract_PL'
,
$this
->
order_info
);
return
view
(
'export.order_contract_PL'
,
[
"ship"
=>
$this
->
data
[
"ship"
],
"bill"
=>
$this
->
data
[
"bill"
],
"info"
=>
$this
->
data
[
"info"
],
]);
}
}
public
function
columnWidths
()
:
array
public
function
columnWidths
()
:
array
{
{
return
[
return
[
'A'
=>
10
,
'A'
=>
14
,
'B'
=>
23
,
'B'
=>
17
,
'C'
=>
22
,
'C'
=>
14
,
'D'
=>
10
,
'D'
=>
17
,
'E'
=>
23
,
'E'
=>
12
,
'F'
=>
10
,
'F'
=>
12
,
'G'
=>
12
,
'G'
=>
10
,
'H'
=>
12
,
'H'
=>
10
,
'I'
=>
15
,
'I'
=>
10
,
'J'
=>
15
,
'K'
=>
15
,
];
];
}
}
...
...
resources/views/export/order_contract_PL.blade.php
View file @
3f220f11
...
@@ -13,88 +13,76 @@
...
@@ -13,88 +13,76 @@
</tr>
</tr>
</table>
</table>
<table
class=
"no-border
"
>
<table
border=
"1
"
>
<tbody>
<tbody>
<tr>
<tr>
<td>
<td
width=
"8%"
>
Ship to:
</td>
<p>
Ship to:
</p>
<td
width=
"20%"
>
<p>
XXXX(收货人)
</p>
{{@$ship["consignee"]}}
</td>
</td>
<td>
<td
width=
"8%"
>
Bill to:
</td>
<p>
Bill to:
</p>
<td
width=
"20%"
>
{{@$bill["consignee"]}}
</td>
<p>
the United States of America
</p>
<td>
INV No.
</td>
</td>
<td>
Date:
</td>
<td>
<!-- <td>{{@$info["sn"]}}</td>-->
<p>
INV No.
</p>
<!-- <td>Date:</td>-->
<p>
PISEMOUR08062022-0001
</p>
<!-- <td>{{date("Y-m-d")}}</td>-->
</td>
<td>
<p>
Date:
</p>
<p>
2022/6/8
</p>
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"2"
>
<td>
Company Name:
</td>
<p>
Company Name:
</p>
<td>
{{@$ship["company_name"]}}
</td>
<p>
XXXXXXXXXXXXXXXXXXXXXXXX(收货公司)
</p>
<td>
Company Name:
</td>
</td>
<td>
{{@$bill["company_name"]}}
</td>
<td
colspan=
"2"
>
<td>
{{@$info["sn"]}}
</td>
<p>
Company Name:
</p>
<td>
{{date("Y-m-d")}}
</td>
<p>
XXXXXXXXXXXXXXXXXXXXXXXX(收货公司)
</p>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<p>
Address:
</p>
<td
rowspan=
"2"
>
Address:
</td>
<p>
XXXXXXXXXXXXXXXXXX
</p>
<td
rowspan=
"2"
>
{{@$ship["country_name"]}} {{@$ship["province"]}} {{@$ship["city"]}} {{@$ship["detail_address"]}}
</td>
</td>
<td
rowspan=
"2"
>
Address:
</td>
<td>
<td
rowspan=
"2"
style=
"width:100px;word-wrap: break-word"
>
{{@$bill["country_name"]}} {{@$bill["province"]}}
<p>
Address:
</p>
{{@$bill["city"]}} {{@$bill["detail_address"]}}
<p>
XXXXXXXXXXXXXXXXXX
</p>
</td>
</td>
<td>
Payment terms:
</td>
<td>
<td>
Delivery terms:
</td>
<p>
Payment terms:
</p>
<!-- <td>100%advance</td>-->
<p>
100%advance
</p>
<!-- <td>-->
</td>
<!-- <td>Delivery terms:</td>-->
<!-- <td>EXW HK</td>-->
</tr>
</tr>
<tr>
<tr>
<td>
<p>
Tel:
</p>
<td>
100%advance
</td>
<p>
XXXXXXXXXXXXXXXXXX
</p>
<td>
EXW HK
</td>
</td>
</tr>
<td>
<p>
Tel:
</p>
<p>
XXXXXXXXXXXXXXXXXX
</p>
<tr>
</td>
<td>
Tel:
</td>
<td>
<td>
{{@$ship["phone"]}}
</td>
<p>
Buyer:
</p>
<td>
Tel:
</td>
<p>
XXXXXXXXXXXXXXXXXX
</p>
<td>
{{@$bill["phone"]}}
</td>
</td>
<td>
Buyer:
</td>
<td>
<td></td>
<p>
Delivery terms:
</p>
<p>
EXW HK
</p>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Attn:
</td>
<td>
{{@$ship["consignee"]}}
</td>
<td>
Attn:
</td>
<td>
{{@$bill["consignee"]}}
</td>
<td>
<td>
<p>
Attn:
</p>
<p>
XXXXX(即收货人)
</p>
</td>
<td>
<p>
Attn:
</p>
<p>
XXXXX(即收货人)
</p>
</td>
<td
colspan=
"2"
>
<p>
公司名/客户名:
</p>
<p>
XXXXXXXXXXXXXXXXXX
</p>
</td>
</td>
<td></td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table>
<table
border=
"1"
>
<tbody>
<tbody>
<tr>
<tr>
<td>
Slno
</td>
<td
width=
"100"
>
Slno
</td>
<td>
CUSTOMER P/N
</td>
<td>
CUSTOMER P/N
</td>
<td>
Manufacturer
</td>
<td>
Manufacturer
</td>
<td>
Description
</td>
<td>
Description
</td>
...
@@ -104,30 +92,35 @@
...
@@ -104,30 +92,35 @@
<td>
CURRENCY
</td>
<td>
CURRENCY
</td>
<td>
AMOUNT
</td>
<td>
AMOUNT
</td>
</tr>
</tr>
@if(!empty($info["orderList"]["order_items"]))
@foreach($info["orderList"]["order_items"] as $k=>$item)
<tr>
<tr>
<td>
1
</td>
<td>
{{$k+1}}
</td>
<td>
型号
</td>
<td>
{{$item["goods_name"]}}
</td>
<td>
制造商
</td>
<td>
{{$item["brand_name"]}}
</td>
<td>
IC(二级分类)
</td>
<td>
{{$item["class_id2_name"]}}
</td>
<td>
200
</td>
<td>
{{$item["goods_number"]}}
</td>
<td>
pcs
(固定单位)
</td>
<td>
pcs
</td>
<td>
6.00000
</td>
<td>
{{$item["goods_number"]}}
</td>
<td>
USD
(固定币种)
</td>
<td>
USD
</td>
<td>
1200.00
</td>
<td>
{{$item["total_amount"]}}
</td>
</tr>
</tr>
@endforeach
@endif
<tr>
<tr>
<td
colspan=
"8"
>
Bank Charge
</td>
<td
colspan=
"8"
>
Bank Charge
</td>
<td>
$40.00
</td>
<td>
{{$info["orderList"]["payServiceFee_format"] ?? ""}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"8"
>
Freight Cost
</td>
<td
colspan=
"8"
>
Freight Cost
</td>
<td>
$40.00
</td>
<td>
{{$info["orderList"]["carriage_format"] ?? ""}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"2"
>
TOTAL:
</td>
<td
colspan=
"1"
>
TOTAL:
</td>
<td
colspan=
"2"
>
$40.00
</td>
<td
colspan=
"3"
></td>
<td
colspan=
"2"
>
Total Amount
</td>
<td
colspan=
"1"
>
{{$info["orderList"]["total_qty"] ?? ""}}
</td>
<td
colspan=
"3"
>
$40.00
</td>
<td
colspan=
"3"
>
Total Amount
</td>
<td
colspan=
"1"
>
{{$info["orderList"]["total_amount_format"] ?? ""}}
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
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