diff --git a/app/common/service/UsedCarService.php b/app/common/service/UsedCarService.php
index 8113ace..ea7fdb9 100644
--- a/app/common/service/UsedCarService.php
+++ b/app/common/service/UsedCarService.php
@@ -159,7 +159,7 @@ class UsedCarService
$result[] = $item;
}
- return ['is_series' => (count($brandSerieses)<2)?1:0, 'data' => $result];
+ return $result[0];
} catch (\Exception $e) {
throw new \Exception($e->getMessage());
}
diff --git a/app/common/utils/pdf/template/stockOrder copy 2.stub b/app/common/utils/pdf/template/stockOrder copy 2.stub
deleted file mode 100644
index 20b10b3..0000000
--- a/app/common/utils/pdf/template/stockOrder copy 2.stub
+++ /dev/null
@@ -1,336 +0,0 @@
-
-
-
-
- 合塑实业-汽车事业部-备货单(客户下定)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 阿里订单号/PI号: |
- 日期: |
- 清关目的国: |
- 客户来源: |
- 客户名称: |
- 客户所在国: |
-
-
-
-
-
-
-
-
- | 编号 |
- 车型 |
- 数量/台 |
- 颜色/外 |
- 颜色/内 |
- 收款价 |
- 总价 |
- 官方指导价/二手挂牌价 |
- 优惠 |
- 利润 |
-
-
-
-
-
- |
-
- |
-
-
- 0): ?>
- ()
-
- |
-
-
- |
- |
- |
- |
- |
-
- 0): ?>
- |
- |
-
- |
- |
-
-
- |
-
-
- | 改装费 |
- FOB运费 |
- 车价 |
- 海运费 |
- 佣金 |
- 挂账 |
- 港杂 |
-
-
- |
- |
- |
- |
- |
- |
- |
-
-
- |
- 备注:
- |
-
-
- |
-
-
-
-
-
- |
- 合同汇率:
- |
-
- 合计到岸价:
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 清关人: |
-
-
- 全款收齐日: |
-
- 预计发运日期: |
-
-
- 出运方式: |
- 国内收货港: |
- 贸易条款/清关目的港: / |
-
-
- 提车日期: |
-
- 最迟到港时间: |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 计划收款信息 |
- 序号 |
- 汇款国 |
- 日期 |
- 币种 |
- 账户 |
- 汇款人 |
- 金额 |
-
-
-
-
-
- |
- |
- |
- |
- |
- |
- |
-
-
-
-
-
-
-
-
-
-
-
-
业务员签字:
-
-
; ?>)
-
-
-
-
-
-
-
备发货负责人签字:
-
-
; ?>)
-
-
-
-
-
-
-
-
-
-
组长签字:
-
-
; ?>)
-
-
-
-
-
-
- 日期:
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/common/utils/pdf/template/stockOrder copy.stub b/app/common/utils/pdf/template/stockOrder copy.stub
deleted file mode 100644
index 43f887f..0000000
--- a/app/common/utils/pdf/template/stockOrder copy.stub
+++ /dev/null
@@ -1,326 +0,0 @@
-
-
-
-
- 合塑实业-汽车事业部-备货单(客户下定)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 阿里订单号/PI号: |
- 日期: |
- 清关目的国: |
- 客户来源: |
- 客户名称: |
- 客户所在国: |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 编号 |
- 车型 |
- 数量/台 |
- 颜色/外 |
- 内饰 |
- 改装 |
- 官方指导价/二手挂牌价 |
- 优惠 |
- 单价 |
- 总价 |
- 报关价 |
- 利润 |
-
-
-
-
-
- |
-
-
- 0): ?>
- ()
-
- |
- |
- |
- |
- |
-
- 0): ?>
- |
- |
-
- |
- |
-
-
- |
- |
- |
- |
-
-
- |
- 备注:
- |
-
-
-
-
- |
- 合同汇率:
- |
-
- 合计到岸价:
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 清关人: |
-
-
- 全款收齐日: |
-
- 预计发运日期: |
-
-
- 出运方式: |
- 国内收货港: |
- 贸易条款/清关目的港: / |
-
-
- 提车日期: |
-
- 最迟到港时间: |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 计划收款信息 |
- 序号 |
- 汇款国 |
- 日期 |
- 币种 |
- 账户 |
- 汇款人 |
- 金额 |
-
-
-
-
-
- |
- |
- |
- |
- |
- |
- |
-
-
-
-
-
-
-
-
-
-
-
-
业务员签字:
-
-
; ?>)
-
-
-
-
-
-
-
备发货负责人签字:
-
-
; ?>)
-
-
-
-
-
-
-
-
-
-
组长签字:
-
-
; ?>)
-
-
-
-
-
-
- 日期:
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/common/utils/pdf/template/usedCar.stub b/app/common/utils/pdf/template/usedCar.stub
new file mode 100644
index 0000000..9846b7a
--- /dev/null
+++ b/app/common/utils/pdf/template/usedCar.stub
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+= htmlspecialchars($car['title']) ?>
+
+
+
+ | 车价 |
+ ¥ = number_format($car['price'], 2) ?> |
+
+
+ | 车源地 |
+ = $car['source_city'] ?> |
+
+
+ | 上牌时间 |
+ = $car['register_date'] ?> |
+
+
+ | 排量 |
+ = $car['displacement'] ?> |
+
+
+ | 里程 |
+ = $car['mileage'] ?> km |
+
+
+ | 马力 |
+ = $car['power'] ?> |
+
+
+ | 车身颜色 |
+ = $car['color'] ?: '-' ?> |
+
+
+ | 创建时间 |
+ = $car['created_at'] ?> |
+
+
+
+产品图
+
+
+
+

+
+
+
+
+车况介绍
+
+ = nl2br(htmlspecialchars($car['description'])) ?>
+
+
+
+