|
@@ -0,0 +1,162 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document</title>
|
|
|
+</head>
|
|
|
+<style>
|
|
|
+ * {
|
|
|
+ font-family: "simhei";
|
|
|
+ }
|
|
|
+ table {
|
|
|
+ border-collapse: collapse;
|
|
|
+ border-spacing: 0;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ th,
|
|
|
+ td {
|
|
|
+ padding: 8px;
|
|
|
+ border: 1px solid;
|
|
|
+ }
|
|
|
+ .item {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .item>div {
|
|
|
+ box-sizing: border-box;
|
|
|
+ line-height: 220%;
|
|
|
+ }
|
|
|
+ .view {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .container {
|
|
|
+ width: 100%; /* 或者一个具体的宽度值,确保足够大 */
|
|
|
+ overflow: auto; /* 防止内容溢出 */
|
|
|
+ }
|
|
|
+ .inline-block {
|
|
|
+ display: inline-block;
|
|
|
+ width: 49%; /* 使用49%而不是50%来避免由于间距导致的换行 */
|
|
|
+ box-sizing: border-box; /* 包括padding和border在内计算宽度 */
|
|
|
+ vertical-align: top; /* 确保顶部对齐 */
|
|
|
+ margin-right: 1%; /* 右间距 */
|
|
|
+ /*background-color: #f0f0f0; !* 可选:用于可视化 *!*/
|
|
|
+ line-height: 220%;
|
|
|
+ }
|
|
|
+ .inline-block:last-child {
|
|
|
+ margin-right: 0; /* 最后一个元素不需要右间距 */
|
|
|
+ }
|
|
|
+</style>
|
|
|
+<body>
|
|
|
+<div style="margin:0 auto;width: 1000px;">
|
|
|
+ <div class="view">
|
|
|
+ <div style="width: 100%;">
|
|
|
+ <div style="text-align: center;margin-bottom: 40px;font-size: 24px;">
|
|
|
+ <span style="font-weight:bold;">订单合同</span>
|
|
|
+ </div>
|
|
|
+ <div style="margin-bottom: 20px;"><span style="font-weight:bold;">基本信息</span></div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">合同编号: {{$order['order_number'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">平台类型: {{$order['plat_type_title'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">平台单号: {{$order['plat_order'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">客户名称: {{$order['customer_title'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">联系方式: {{$order['customer_contact'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">签订人: {{! empty($order['employee_one']) ? implode(',',array_column($order['employee_one'], 'title')) : ''}}</div>
|
|
|
+ <div class="inline-block">签订日期: {{! empty($order['sign_time']) ? date("Y-m-d"): ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">负责人: {{! empty($order['employee_two']) ? implode(',',array_column($order['employee_two'], 'title')) : ''}}</div>
|
|
|
+ <div class="inline-block">协同人: {{! empty($order['employee_three']) ? implode(',',array_column($order['employee_three'], 'title')) : ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">安装地点: {{$order['install_position_title'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">备注: {{$order['mark'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="margin-bottom: 20px;margin-top: 20px"><span style="font-weight:bold;">产品信息 </span></div>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <th style="text-align: center">序号</th>
|
|
|
+ <th style="text-align: center">产品名称</th>
|
|
|
+ <th style="text-align: center">规格</th>
|
|
|
+ <th style="text-align: center">单位</th>
|
|
|
+ <th style="text-align: center">数量</th>
|
|
|
+ <th style="text-align: center">单价</th>
|
|
|
+ </tr>
|
|
|
+ @foreach($order['product'] as $key => $value)
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center">{{ $key + 1 }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['title'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['size'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['unit_title'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['number'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['price'] ?? '' }}</td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </table>
|
|
|
+
|
|
|
+ @if(! empty($order['activity_product']))
|
|
|
+ <div style="margin-bottom: 20px;margin-top: 20px"><span style="font-weight:bold;">活动包产品信息 </span></div>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <th style="text-align: center">序号</th>
|
|
|
+ <th style="text-align: center">产品名称</th>
|
|
|
+ <th style="text-align: center">规格</th>
|
|
|
+ <th style="text-align: center">单位</th>
|
|
|
+ <th style="text-align: center">数量</th>
|
|
|
+ <th style="text-align: center">单价</th>
|
|
|
+ </tr>
|
|
|
+ @foreach($order['activity_product'] as $key => $value)
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center">{{ $key + 1 }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['title'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['size'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['unit_title'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['number'] ?? '' }}</td>
|
|
|
+ <td style="text-align: center">{{ $value['price'] ?? '' }}</td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </table>
|
|
|
+ @endif
|
|
|
+
|
|
|
+ <div style="margin-bottom: 20px;margin-top: 20px"><span style="font-weight:bold;">销售信息 </span></div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">产品合计: {{$order['product_total'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">整单折扣率: {{$order['rate'] ? $order['rate'] . "%" : ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">其它费用: {{$order['other_fee'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">优惠金额: {{$order['discount_fee'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">合同金额: {{$order['contract_fee'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-bottom: 20px;margin-top: 20px"><span style="font-weight:bold;">回款信息 </span></div>
|
|
|
+ @foreach($order['payment_receipt_list']['list'] as $value)
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">收付款单编号: {{$value['data_order_no'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">收付款类型: {{$value['type_title'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">金额: {{$value['amount'] ?? ''}}</div>
|
|
|
+ <div class="inline-block">收付款账号: {{$value['account'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">日期: {{! empty($value['payment_receipt_date']) && is_numeric($value['payment_receipt_date']) ? date('Y-m-d',$value['payment_receipt_date']): ''}}</div>
|
|
|
+ <div class="inline-block">归属人: {{$value['belong'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="inline-block">付款方式: {{$value['pay_way'] ?? ''}}</div>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</body>
|
|
|
+</html>
|