Commit 3f220f11 by 孙龙

合同

parent 77b02def
......@@ -17,28 +17,30 @@ class ContractPLExport implements FromView, WithColumnWidths, WithDefaultStyles,
public function __construct($data=[])
{
$this->order_info=[];
$this->data=$data;
}
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
{
return [
'A' => 10,
'B' => 23,
'C' => 22,
'D' => 10,
'E' => 23,
'F' => 10,
'G' => 12,
'H' => 12,
'I' => 15,
'J' => 15,
'K' => 15,
'A' => 14,
'B' => 17,
'C' => 14,
'D' => 17,
'E' => 12,
'F' => 12,
'G' => 10,
'H' => 10,
'I' => 10,
];
}
......
......@@ -13,88 +13,76 @@
</tr>
</table>
<table class="no-border">
<table border="1">
<tbody>
<tr>
<td>
<p>Ship to:</p>
<p>XXXX(收货人)</p>
</td>
<td>
<p>Bill to:</p>
<p>the United States of America</p>
</td>
<td>
<p>INV No.</p>
<p>PISEMOUR08062022-0001</p>
</td>
<td>
<p>Date:</p>
<p>2022/6/8</p>
</td>
<td width="8%">Ship to:</td>
<td width="20%">
{{@$ship["consignee"]}}
</td>
<td width="8%">Bill to:</td>
<td width="20%">{{@$bill["consignee"]}}</td>
<td>INV No.</td>
<td>Date:</td>
<!-- <td>{{@$info["sn"]}}</td>-->
<!-- <td>Date:</td>-->
<!-- <td>{{date("Y-m-d")}}</td>-->
</tr>
<tr>
<td colspan="2">
<p>Company Name:</p>
<p>XXXXXXXXXXXXXXXXXXXXXXXX(收货公司)</p>
</td>
<td colspan="2">
<p>Company Name:</p>
<p>XXXXXXXXXXXXXXXXXXXXXXXX(收货公司)</p>
</td>
<td>Company Name:</td>
<td>{{@$ship["company_name"]}}</td>
<td>Company Name:</td>
<td>{{@$bill["company_name"]}}</td>
<td>{{@$info["sn"]}}</td>
<td>{{date("Y-m-d")}}</td>
</tr>
<tr>
<td>
<p>Address:</p>
<p>XXXXXXXXXXXXXXXXXX</p>
</td>
<td>
<p>Address:</p>
<p>XXXXXXXXXXXXXXXXXX</p>
</td>
<td>
<p>Payment terms:</p>
<p>100%advance</p>
</td>
<td rowspan="2">Address:</td>
<td rowspan="2">{{@$ship["country_name"]}} {{@$ship["province"]}} {{@$ship["city"]}} {{@$ship["detail_address"]}}</td>
<td rowspan="2">Address:</td>
<td rowspan="2" style="width:100px;word-wrap: break-word">{{@$bill["country_name"]}} {{@$bill["province"]}}
{{@$bill["city"]}} {{@$bill["detail_address"]}}
</td>
<td>Payment terms:</td>
<td>Delivery terms:</td>
<!-- <td>100%advance</td>-->
<!-- <td>-->
<!-- <td>Delivery terms:</td>-->
<!-- <td>EXW HK</td>-->
</tr>
<tr>
<td>
<p>Tel:</p>
<p>XXXXXXXXXXXXXXXXXX</p>
</td>
<td>
<p>Tel:</p>
<p>XXXXXXXXXXXXXXXXXX</p>
</td>
<td>
<p>Buyer:</p>
<p>XXXXXXXXXXXXXXXXXX</p>
</td>
<td>
<p>Delivery terms:</p>
<p>EXW HK</p>
</td>
<td>100%advance</td>
<td>EXW HK</td>
</tr>
<tr>
<td>Tel:</td>
<td>{{@$ship["phone"]}}</td>
<td>Tel:</td>
<td>{{@$bill["phone"]}}</td>
<td>Buyer:</td>
<td></td>
</tr>
<tr>
<td>Attn:</td>
<td>{{@$ship["consignee"]}}</td>
<td>Attn:</td>
<td>{{@$bill["consignee"]}}</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>
</tr>
</tbody>
</table>
<table>
<table border="1">
<tbody>
<tr>
<td>Slno</td>
<td width="100">Slno</td>
<td>CUSTOMER P/N</td>
<td>Manufacturer</td>
<td>Description</td>
......@@ -104,30 +92,35 @@
<td>CURRENCY</td>
<td>AMOUNT</td>
</tr>
@if(!empty($info["orderList"]["order_items"]))
@foreach($info["orderList"]["order_items"] as $k=>$item)
<tr>
<td>1</td>
<td>型号</td>
<td>制造商</td>
<td>IC(二级分类)</td>
<td>200</td>
<td>pcs(固定单位)</td>
<td>6.00000</td>
<td>USD(固定币种)</td>
<td>1200.00</td>
<td>{{$k+1}}</td>
<td>{{$item["goods_name"]}}</td>
<td>{{$item["brand_name"]}}</td>
<td>{{$item["class_id2_name"]}}</td>
<td>{{$item["goods_number"]}}</td>
<td>pcs</td>
<td>{{$item["goods_number"]}}</td>
<td>USD</td>
<td>{{$item["total_amount"]}}</td>
</tr>
@endforeach
@endif
<tr>
<td colspan="8">Bank Charge</td>
<td>$40.00</td>
<td>{{$info["orderList"]["payServiceFee_format"] ?? ""}}</td>
</tr>
<tr>
<td colspan="8">Freight Cost</td>
<td>$40.00</td>
<td>{{$info["orderList"]["carriage_format"] ?? ""}}</td>
</tr>
<tr>
<td colspan="2">TOTAL:</td>
<td colspan="2">$40.00</td>
<td colspan="2">Total Amount</td>
<td colspan="3">$40.00</td>
<td colspan="1">TOTAL:</td>
<td colspan="3"></td>
<td colspan="1">{{$info["orderList"]["total_qty"] ?? ""}}</td>
<td colspan="3">Total Amount</td>
<td colspan="1">{{$info["orderList"]["total_amount_format"] ?? ""}}</td>
</tr>
</tbody>
</table>
......
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