Commit 27290efd by 孙龙

订单

parent 7a833ad9
<?php
namespace App\Exceptions;
use App\Http\ApiHelper\Response;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
/*
*无效请求异常
*/
class InvalidRequestException extends \Exception
{
public function __construct($message = "", $code = 200)
{
parent::__construct($message, $code);
}
public function render(Request $request)
{
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
$path_info = parse_url($request_uri);
$err_info = [
'domain' => isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '',
'interface' => isset($path_info) ? $path_info['path'] : '',
'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
'ip' => request()->getClientIp(),
'time' => time(),
'other' => '',
'request_params' => $_REQUEST,
'msg' => $this->getMessage(),
"code" => $this->getCode(),
];
Log::error(json_encode($err_info, JSON_UNESCAPED_UNICODE));
return response()->json(json_decode(Response::setError($this->message), true));
}
}
<?php
namespace App\Admin\Service;
use App\Models\Cms\CmsUser;
use App\Models\Order;
use Dcat\Admin\Grid;
class OrderService
{
public static function getOrderList($orderId=0){
}
}
我是Pi文件
<table>
<thead>
<tr height="12">
<td rowspan="2" colspan="4" style="font-size: 16px;"><b>深貿電子有限公司</b></td>
<td colspan="4">香港九龙观塘成业街27号日昇中心12楼1210室</td>
</tr>
<tr height="12">
<td colspan="4">Flat Rm1210, 10/F Sunbeam Centre #27, Shing Yip Street, Kwun </td>
</tr>
<tr height="12">
<td colspan="4" style="font-size: 12px;"><b>SEMOUR ELECTRONICS CO., LIMITED</b></td>
<td colspan="4">Tong, Kowloon Hong Kong</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="8" style="text-align: center; font-size: 16px;"><b>PROFORMA INVOICE</b></td>
</tr>
<tr>
<td colspan="4">
Bill To: xxxxxxxxxxxx
</td>
<td colspan="4">
Invoice No.: xxxxxxxxxxxx
</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="4">Date: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Ship To: xxxxxxxxxxxx</td>
<td colspan="4">Payment Term: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="4">Delivery terms: EXW HK </td>
</tr>
<tr>
<td colspan="4">Add:</td>
<td colspan="4">SELLER /CONTACT: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Tel: </td>
<td colspan="4">Email: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Attn:</td>
<td colspan="4">Mob: xxxxxxxxxxxx</td>
</tr>
<tr>
<th style="text-align: center; border: 1px solid #ccc;"><b>C/N No.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Description / Part No.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Mfr.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Quantity</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Unit Price</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Date code</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Lead Time</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>AMOUNT</b></th>
</tr>
<tr height="25">
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc;"> xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;"> xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
</tr>
<tr>
<td style="text-align: center; border: 1px solid #ccc;"><b>Total:</b></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;">xxxxxxxxxxxx</td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;">xxxxxxxxxxxx</td>
</tr>
<tr height="25">
<td colspan="8" style="word-wrap: break-word; word-break: break-all;">
Remark:  1.Once received the goods, please sign on the invoice and packing list and send back the scan copy for record, if we didn't receive any feedback with in 3 days we will not entertain any claim regarding this shipment.
</td>
</tr>
<tr>
<td colspan="8">
2.All bank fees are the responsibility of the customer.
</td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #ccc;">Bank Information</td>
<td colspan="7"></td>
</tr>
<tr>
<td>Bank Name</td>
<td colspan="7">HSBC Hong Kong</td>
</tr>
<tr>
<td>Bank address</td>
<td colspan="7">1 Queen's Road Central, Hong Kong</td>
</tr>
<tr>
<td>Swift Code</td>
<td colspan="7">HSBCHKHHHKH</td>
</tr>
<tr>
<td>Company Name</td>
<td colspan="7">SEMOUR ELECTRONICS CO., LIMITED</td>
</tr>
<tr>
<td>Account No</td>
<td colspan="7">819-847187-838</td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #ccc;">Terms &#38; Conditions</td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="8">
1.Your order is NCNR.
</td>
</tr>
<tr>
<td colspan="8">
2.All Claims of shortage or shipment errors or shipment damage must be made within 7 days of after delivery.
</td>
</tr>
<tr>
<td colspan="8">
3.Our liability shall be limited to the invoiced value of the materials or its replacement.
</td>
</tr>
<tr height="25">
<td colspan="8" style="word-wrap: break-word; word-break: break-all;">
4.Parts are warranty one month form, fit, and function guarantee. All returns must be authorized by our sales department within one month of receipts of shipment.
</td>
</tr>
<tr>
<td colspan="8">
5.VAT and Bank transfer charger is excluded in the invoice amount. Buyer will be responsible for TAX and Bank Charges if there is any.
</td>
</tr>
</tbody>
</table>
\ No newline at end of file
我是Pi文件
<table>
<thead>
<tr height="12">
<td rowspan="2" colspan="4" style="font-size: 16px;"><b>深貿電子有限公司</b></td>
<td colspan="4">香港九龙观塘成业街27号日昇中心12楼1210室</td>
</tr>
<tr height="12">
<td colspan="4">Flat Rm1210, 10/F Sunbeam Centre #27, Shing Yip Street, Kwun </td>
</tr>
<tr height="12">
<td colspan="4" style="font-size: 12px;"><b>SEMOUR ELECTRONICS CO., LIMITED</b></td>
<td colspan="4">Tong, Kowloon Hong Kong</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="8" style="text-align: center; font-size: 16px;"><b>PROFORMA INVOICE</b></td>
</tr>
<tr>
<td colspan="4">
Bill To: xxxxxxxxxxxx
</td>
<td colspan="4">
Invoice No.: xxxxxxxxxxxx
</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="4">Date: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Ship To: xxxxxxxxxxxx</td>
<td colspan="4">Payment Term: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="4">Delivery terms: EXW HK </td>
</tr>
<tr>
<td colspan="4">Add:</td>
<td colspan="4">SELLER /CONTACT: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Tel: </td>
<td colspan="4">Email: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Attn:</td>
<td colspan="4">Mob: xxxxxxxxxxxx</td>
</tr>
<tr>
<th style="text-align: center; border: 1px solid #ccc;"><b>C/N No.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Description / Part No.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Mfr.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Quantity</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Unit Price</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Date code</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Lead Time</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>AMOUNT</b></th>
</tr>
<tr height="25">
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc;"> xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;"> xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
</tr>
<tr>
<td style="text-align: center; border: 1px solid #ccc;"><b>Total:</b></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;">xxxxxxxxxxxx</td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;">xxxxxxxxxxxx</td>
</tr>
<tr height="25">
<td colspan="8" style="word-wrap: break-word; word-break: break-all;">
Remark:  1.Once received the goods, please sign on the invoice and packing list and send back the scan copy for record, if we didn't receive any feedback with in 3 days we will not entertain any claim regarding this shipment.
</td>
</tr>
<tr>
<td colspan="8">
2.All bank fees are the responsibility of the customer.
</td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #ccc;">Bank Information</td>
<td colspan="7"></td>
</tr>
<tr>
<td>Bank Name</td>
<td colspan="7">HSBC Hong Kong</td>
</tr>
<tr>
<td>Bank address</td>
<td colspan="7">1 Queen's Road Central, Hong Kong</td>
</tr>
<tr>
<td>Swift Code</td>
<td colspan="7">HSBCHKHHHKH</td>
</tr>
<tr>
<td>Company Name</td>
<td colspan="7">SEMOUR ELECTRONICS CO., LIMITED</td>
</tr>
<tr>
<td>Account No</td>
<td colspan="7">819-847187-838</td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #ccc;">Terms &#38; Conditions</td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="8">
1.Your order is NCNR.
</td>
</tr>
<tr>
<td colspan="8">
2.All Claims of shortage or shipment errors or shipment damage must be made within 7 days of after delivery.
</td>
</tr>
<tr>
<td colspan="8">
3.Our liability shall be limited to the invoiced value of the materials or its replacement.
</td>
</tr>
<tr height="25">
<td colspan="8" style="word-wrap: break-word; word-break: break-all;">
4.Parts are warranty one month form, fit, and function guarantee. All returns must be authorized by our sales department within one month of receipts of shipment.
</td>
</tr>
<tr>
<td colspan="8">
5.VAT and Bank transfer charger is excluded in the invoice amount. Buyer will be responsible for TAX and Bank Charges if there is any.
</td>
</tr>
</tbody>
</table>
\ No newline at end of file
我是Pi文件
<table>
<thead>
<tr height="12">
<td rowspan="2" colspan="4" style="font-size: 16px;"><b>深貿電子有限公司</b></td>
<td colspan="4">香港九龙观塘成业街27号日昇中心12楼1210室</td>
</tr>
<tr height="12">
<td colspan="4">Flat Rm1210, 10/F Sunbeam Centre #27, Shing Yip Street, Kwun </td>
</tr>
<tr height="12">
<td colspan="4" style="font-size: 12px;"><b>SEMOUR ELECTRONICS CO., LIMITED</b></td>
<td colspan="4">Tong, Kowloon Hong Kong</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="8" style="text-align: center; font-size: 16px;"><b>PROFORMA INVOICE</b></td>
</tr>
<tr>
<td colspan="4">
Bill To: xxxxxxxxxxxx
</td>
<td colspan="4">
Invoice No.: xxxxxxxxxxxx
</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="4">Date: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Ship To: xxxxxxxxxxxx</td>
<td colspan="4">Payment Term: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4"></td>
<td colspan="4">Delivery terms: EXW HK </td>
</tr>
<tr>
<td colspan="4">Add:</td>
<td colspan="4">SELLER /CONTACT: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Tel: </td>
<td colspan="4">Email: xxxxxxxxxxxx</td>
</tr>
<tr>
<td colspan="4">Attn:</td>
<td colspan="4">Mob: xxxxxxxxxxxx</td>
</tr>
<tr>
<th style="text-align: center; border: 1px solid #ccc;"><b>C/N No.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Description / Part No.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Mfr.</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Quantity</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Unit Price</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Date code</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>Lead Time</b></th>
<th style="text-align: center; border: 1px solid #ccc;"><b>AMOUNT</b></th>
</tr>
<tr height="25">
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc;"> xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;"> xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
<td style="text-align: center; vertical-align: top; border: 1px solid #ccc; word-wrap: break-word; word-break: break-all;">xxxxxxxxxxxx</td>
</tr>
<tr>
<td style="text-align: center; border: 1px solid #ccc;"><b>Total:</b></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;">xxxxxxxxxxxx</td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;"></td>
<td style="text-align: center; border: 1px solid #ccc;">xxxxxxxxxxxx</td>
</tr>
<tr height="25">
<td colspan="8" style="word-wrap: break-word; word-break: break-all;">
Remark:  1.Once received the goods, please sign on the invoice and packing list and send back the scan copy for record, if we didn't receive any feedback with in 3 days we will not entertain any claim regarding this shipment.
</td>
</tr>
<tr>
<td colspan="8">
2.All bank fees are the responsibility of the customer.
</td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #ccc;">Bank Information</td>
<td colspan="7"></td>
</tr>
<tr>
<td>Bank Name</td>
<td colspan="7">HSBC Hong Kong</td>
</tr>
<tr>
<td>Bank address</td>
<td colspan="7">1 Queen's Road Central, Hong Kong</td>
</tr>
<tr>
<td>Swift Code</td>
<td colspan="7">HSBCHKHHHKH</td>
</tr>
<tr>
<td>Company Name</td>
<td colspan="7">SEMOUR ELECTRONICS CO., LIMITED</td>
</tr>
<tr>
<td>Account No</td>
<td colspan="7">819-847187-838</td>
</tr>
<tr>
<td colspan="8"></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #ccc;">Terms &#38; Conditions</td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="8">
1.Your order is NCNR.
</td>
</tr>
<tr>
<td colspan="8">
2.All Claims of shortage or shipment errors or shipment damage must be made within 7 days of after delivery.
</td>
</tr>
<tr>
<td colspan="8">
3.Our liability shall be limited to the invoiced value of the materials or its replacement.
</td>
</tr>
<tr height="25">
<td colspan="8" style="word-wrap: break-word; word-break: break-all;">
4.Parts are warranty one month form, fit, and function guarantee. All returns must be authorized by our sales department within one month of receipts of shipment.
</td>
</tr>
<tr>
<td colspan="8">
5.VAT and Bank transfer charger is excluded in the invoice amount. Buyer will be responsible for TAX and Bank Charges if there is any.
</td>
</tr>
</tbody>
</table>
\ No newline at end of file
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