目前还差物联网分配问题
This commit is contained in:
65
pc-cattle-transportation/public/WORD_TEMPLATE_GUIDE.md
Normal file
65
pc-cattle-transportation/public/WORD_TEMPLATE_GUIDE.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# 牛只发车验收单Word模板创建指南
|
||||
|
||||
## 模板文件位置
|
||||
将Word模板文件保存为:`pc-cattle-transportation/public/cattle-delivery-template.docx`
|
||||
|
||||
## 模板设计要求
|
||||
|
||||
### 1. 文档标题
|
||||
- 标题:**牛只发车验收单**
|
||||
- 订单编号:留空(根据要求4)
|
||||
|
||||
### 2. 基本信息表格(4行2列)
|
||||
| 字段 | 占位符 | 说明 |
|
||||
|------|--------|------|
|
||||
| 供货单位 | {supplierName} | 供货商姓名 |
|
||||
| 收货单位 | {buyerName} | 采购商姓名 |
|
||||
| 发车地点 | {startLocation} | 起始地 |
|
||||
| 发车时间 | {createTime} | 创建时间 |
|
||||
| 到达地点 | {endLocation} | 目的地 |
|
||||
| 动物检疫合格证明编号 | 留空 | 根据要求5 |
|
||||
| 司机姓名及联系方式 | {driverName} {driverMobile} | 司机姓名和手机号 |
|
||||
| 装车车牌号 | {licensePlate} | 车牌号 |
|
||||
|
||||
### 3. 牛只详情表格(8列)
|
||||
| 列名 | 占位符 | 说明 |
|
||||
|------|--------|------|
|
||||
| 序号 | 留空 | 根据要求8 |
|
||||
| 活牛品种 | 留空 | 根据要求8 |
|
||||
| 单只体重范围 (斤) | 留空 | 根据要求8 |
|
||||
| 下车总数量 (头) | {ratedQuantity} | 装车数量 |
|
||||
| 下车总重量 (斤) | {totalWeight} | 计算:(落地装车磅数-空车磅重)/2 |
|
||||
| 单价 (元/斤) | {unitPrice} | 计算:约定价格/2 |
|
||||
| 总金额 (元) | {totalAmount} | 计算:下车总重量*单价 |
|
||||
| 备注 | 留空 | 根据要求8 |
|
||||
|
||||
### 4. 支付和验收信息表格(5行2列)
|
||||
| 字段 | 占位符 | 说明 |
|
||||
|------|--------|------|
|
||||
| 已支付货款时间 | 留空 | 根据要求 |
|
||||
| 已支付货款金额 | 留空 | 根据要求 |
|
||||
| 应支付尾款时间 | 留空 | 根据要求 |
|
||||
| 应支付尾款金额 | 留空 | 根据要求 |
|
||||
| 验收结论 | 留空 | 根据要求 |
|
||||
| 验收时间 | 留空 | 根据要求 |
|
||||
| 供货单位指定验收人签字及联系方式 | 留空 | 根据要求 |
|
||||
| 收货单位指定验收人签字及联系方式 | 留空 | 根据要求 |
|
||||
| 供货单位盖章 | 留空 | 根据要求 |
|
||||
| 收货单位盖章 | 留空 | 根据要求 |
|
||||
|
||||
## 计算公式
|
||||
1. **下车总重量** = (落地装车磅数 - 空车磅重) / 2
|
||||
2. **单价** = 约定价格 / 2
|
||||
3. **总金额** = 下车总重量 × 单价
|
||||
|
||||
## 注意事项
|
||||
- 所有计算结果保留2位小数
|
||||
- 空字段保持空白,不要填入默认值
|
||||
- 模板布局应严格按照图片中的格式
|
||||
- 使用表格结构确保对齐和格式一致
|
||||
|
||||
## 测试步骤
|
||||
1. 创建Word模板文件并保存到指定位置
|
||||
2. 确保模板中包含所有占位符
|
||||
3. 测试文档生成功能
|
||||
4. 验证字段映射和计算逻辑
|
||||
@@ -0,0 +1,27 @@
|
||||
# Word Template Placeholder
|
||||
|
||||
This file serves as a placeholder for the Word template file.
|
||||
|
||||
To create the actual Word template:
|
||||
|
||||
1. Create a new Word document
|
||||
2. Design the layout according to the image provided
|
||||
3. Use the following placeholders in the document:
|
||||
|
||||
- {supplierName} - 供货单位(供货商姓名)
|
||||
- {buyerName} - 收货单位(采购商姓名)
|
||||
- {startLocation} - 发车地点(起始地)
|
||||
- {createTime} - 发车时间(创建时间)
|
||||
- {endLocation} - 到达地点(目的地)
|
||||
- {driverName} - 司机姓名
|
||||
- {driverMobile} - 司机联系方式
|
||||
- {licensePlate} - 装车车牌号
|
||||
- {ratedQuantity} - 下车总数量(头)
|
||||
- {totalWeight} - 下车总重量(斤)
|
||||
- {unitPrice} - 单价(元/斤)
|
||||
- {totalAmount} - 总金额(元)
|
||||
|
||||
4. Save the document as "cattle-delivery-template.docx" in this directory
|
||||
5. Delete this placeholder file
|
||||
|
||||
The template should match the layout shown in the provided image.
|
||||
112
pc-cattle-transportation/public/cattle-delivery-template.html
Normal file
112
pc-cattle-transportation/public/cattle-delivery-template.html
Normal file
@@ -0,0 +1,112 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>牛只发车验收单模板</title>
|
||||
<style>
|
||||
body { font-family: "Microsoft YaHei", Arial, sans-serif; margin: 20px; }
|
||||
.header { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 20px; }
|
||||
.order-number { text-align: right; margin-bottom: 20px; }
|
||||
.info-grid { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
|
||||
.info-grid td { border: 1px solid #000; padding: 8px; }
|
||||
.info-grid .label { background-color: #f0f0f0; font-weight: bold; width: 20%; }
|
||||
.cattle-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
|
||||
.cattle-table th, .cattle-table td { border: 1px solid #000; padding: 8px; text-align: center; }
|
||||
.cattle-table th { background-color: #f0f0f0; font-weight: bold; }
|
||||
.signature-section { width: 100%; border-collapse: collapse; margin-top: 20px; }
|
||||
.signature-section td { border: 1px solid #000; padding: 8px; }
|
||||
.signature-section .label { background-color: #f0f0f0; font-weight: bold; width: 25%; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">牛只发车验收单</div>
|
||||
<div class="order-number">订单编号: </div>
|
||||
|
||||
<table class="info-grid">
|
||||
<tr>
|
||||
<td class="label">供货单位</td>
|
||||
<td>{supplierName}</td>
|
||||
<td class="label">收货单位</td>
|
||||
<td>{buyerName}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">发车地点</td>
|
||||
<td>{startLocation}</td>
|
||||
<td class="label">发车时间</td>
|
||||
<td>{createTime}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">到达地点</td>
|
||||
<td>{endLocation}</td>
|
||||
<td class="label">动物检疫合格证明编号</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">司机姓名及联系方式</td>
|
||||
<td>{driverName} {driverMobile}</td>
|
||||
<td class="label">装车车牌号</td>
|
||||
<td>{licensePlate}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="cattle-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>活牛品种</th>
|
||||
<th>单只体重范围 (斤)</th>
|
||||
<th>下车总数量 (头)</th>
|
||||
<th>下车总重量 (斤)</th>
|
||||
<th>单价 (元/斤)</th>
|
||||
<th>总金额 (元)</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{ratedQuantity}</td>
|
||||
<td>{totalWeight}</td>
|
||||
<td>{unitPrice}</td>
|
||||
<td>{totalAmount}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="signature-section">
|
||||
<tr>
|
||||
<td class="label">已支付货款时间</td>
|
||||
<td></td>
|
||||
<td class="label">已支付货款金额</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">应支付尾款时间</td>
|
||||
<td></td>
|
||||
<td class="label">应支付尾款金额</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">验收结论</td>
|
||||
<td></td>
|
||||
<td class="label">验收时间</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">供货单位指定验收人签字及联系方式</td>
|
||||
<td></td>
|
||||
<td class="label">收货单位指定验收人签字及联系方式</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">供货单位盖章</td>
|
||||
<td></td>
|
||||
<td class="label">收货单位盖章</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
26
pc-cattle-transportation/public/cattle-delivery-template.txt
Normal file
26
pc-cattle-transportation/public/cattle-delivery-template.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
牛只发车验收单
|
||||
|
||||
订单编号:
|
||||
|
||||
供货单位: {supplierName}
|
||||
收货单位: {buyerName}
|
||||
发车地点: {startLocation}
|
||||
发车时间: {createTime}
|
||||
到达地点: {endLocation}
|
||||
动物检疫合格证明编号:
|
||||
司机姓名及联系方式: {driverName} {driverMobile}
|
||||
装车车牌号: {licensePlate}
|
||||
|
||||
序号 活牛品种 单只体重范围 (斤) 下车总数量 (头) 下车总重量 (斤) 单价 (元/斤) 总金额 (元) 备注
|
||||
{ratedQuantity} {totalWeight} {unitPrice} {totalAmount}
|
||||
|
||||
已支付货款时间:
|
||||
已支付货款金额:
|
||||
应支付尾款时间:
|
||||
应支付尾款金额:
|
||||
验收结论:
|
||||
验收时间:
|
||||
供货单位指定验收人签字及联系方式:
|
||||
收货单位指定验收人签字及联系方式:
|
||||
供货单位盖章:
|
||||
收货单位盖章:
|
||||
Reference in New Issue
Block a user