|
@@ -58,90 +58,88 @@
|
|
|
<th>订单编号</th>
|
|
|
<td colspan='2'>{{m.orderNo}}</td>
|
|
|
<th>结算单号</th>
|
|
|
- <td colspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.settleBillNo}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>交易日期</th>
|
|
|
- <td colspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.payTime}}</td>
|
|
|
<th>交货日期</th>
|
|
|
<td colspan='2'></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>银行流水号</th>
|
|
|
- <td colspan='5'></td>
|
|
|
+ <td colspan='5'>{{m.result}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>商品名称</th>
|
|
|
<th>数量</th>
|
|
|
- <th>重量(KG)</th>
|
|
|
+ <th>重量(KG)</th>
|
|
|
<th>单价(元)</th>
|
|
|
<th>合计(元)</th>
|
|
|
- <th>备注</th>
|
|
|
+ <th>备注</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>木薯淀粉</td>
|
|
|
- <td>24</td>
|
|
|
- <td>3.23</td>
|
|
|
- <td>345.01</td>
|
|
|
- <td>34663.33</td>
|
|
|
- <td>含税价</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>龙虾</td>
|
|
|
- <td>24</td>
|
|
|
- <td>3.23</td>
|
|
|
- <td>345.01</td>
|
|
|
- <td>34663.33</td>
|
|
|
+ <td>{{m.goodsName}}</td>
|
|
|
+ <td>{{m.buyQty}}</td>
|
|
|
+ <td>{{m.netWet}}</td>
|
|
|
+ <td>{{m.singlePrice}}</td>
|
|
|
+ <td>{{m.resalePrice}}</td>
|
|
|
<td>含税价</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>合计</td>
|
|
|
- <td>7.23</td>
|
|
|
- <td>12</td>
|
|
|
- <td>322.01</td>
|
|
|
- <td>344455</td>
|
|
|
+ <td>{{m.buyQty}}</td>
|
|
|
+ <td>{{m.netWet}}</td>
|
|
|
+ <td>{{m.singlePrice}}</td>
|
|
|
+ <td>{{m.resalePrice}}</td>
|
|
|
<td>含税价</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td colspan='6'>合计金额人民币(大写):xxxxxxxxx</td>
|
|
|
+ <td colspan='6'>合计金额人民币(大写):{{m.resalePrice}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan='6' style="font-weight: bold;" >二、卖方信息</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>卖方</th>
|
|
|
- <td colspan='2'></td>
|
|
|
- <th>联系人及方式</th>
|
|
|
- <td colspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.businessName}}</td>
|
|
|
+ <th>联系人</th>
|
|
|
+ <td colspan='2'>{{m.contacts}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>开户行</th>
|
|
|
- <td colspan='2'></td>
|
|
|
- <th rowspan='2'>统一信用代码</th>
|
|
|
- <td colspan='2' rowspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.peopleBankName}}</td>
|
|
|
+ <th>联系方式</th>
|
|
|
+ <td colspan='2'>{{m.phone}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>银行账号</th>
|
|
|
- <td colspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.peopleBankCode}}</td>
|
|
|
+ <th>统一信用代码</th>
|
|
|
+ <td colspan='2'>{{m.peopleDutyParagraph}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan='6' style="font-weight: bold;" >三、买方信息</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>买方</th>
|
|
|
- <td colspan='2'></td>
|
|
|
- <th>联系人及方式</th>
|
|
|
- <td colspan='2'></td>
|
|
|
+ <td colspan='2' v-if="m.purchaserBusinessName">{{m.purchaserBusinessName}}</td>
|
|
|
+ <td colspan='2' v-else>{{m.purchaserName}}</td>
|
|
|
+ <th>联系人</th>
|
|
|
+ <td colspan='2' v-if="m.legalPerson">{{m.legalPerson}}</td>
|
|
|
+ <td colspan='2' v-else>{{m.purchaserName}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>开户行</th>
|
|
|
- <td colspan='2'></td>
|
|
|
- <th rowspan='2'>统一信用代码</th>
|
|
|
- <td colspan='2' rowspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.purchaserBankName}}</td>
|
|
|
+ <th>联系方式</th>
|
|
|
+ <td colspan='2'>{{m.purchaserContact}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>银行账号</th>
|
|
|
- <td colspan='2'></td>
|
|
|
+ <td colspan='2'>{{m.purchaserBankAccount}}</td>
|
|
|
+ <th>统一信用代码</th>
|
|
|
+ <td colspan='2'>{{m.purchaserDutyParagraph}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan='6' style="font-weight: bold;" >四、其它信息</td>
|
|
@@ -172,12 +170,18 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan='3'>
|
|
|
- 卖方:xxxxxxx <br>
|
|
|
- 法定代表人或授权委托人:xxxxxxxxxxx
|
|
|
+ 卖方:{{m.businessName}} <br>
|
|
|
+ 法定代表人或授权委托人:{{m.contacts}}
|
|
|
</td>
|
|
|
<td colspan='3'>
|
|
|
- 买方:xxxxxxx <br>
|
|
|
- 法定代表人或授权委托人:xxxxxxxxxxx
|
|
|
+ <span>
|
|
|
+ <span v-if="m.purchaserBusinessName">买方:{{m.purchaserBusinessName}}<br></span>
|
|
|
+ <span v-else>买方:{{m.purchaserName}}<br></span>
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ <span v-if="m.legalPerson">法定代表人或授权委托人:{{m.legalPerson}}</span>
|
|
|
+ <span v-else>法定代表人或授权委托人:{{m.purchaserName}}</span>
|
|
|
+ </span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -192,7 +196,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
- var app = new Vue({
|
|
|
+ var app = new Vue({
|
|
|
components: {
|
|
|
"sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
|
|
|
},
|
|
@@ -212,11 +216,11 @@
|
|
|
unit: 'px',
|
|
|
format: 'a4'
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
const imgProps = pdf.getImageProperties(imgData);
|
|
|
const pdfWidth = pdf.internal.pageSize.getWidth();
|
|
|
const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width;
|
|
|
-
|
|
|
+
|
|
|
// 添加图片,适应页面大小
|
|
|
pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight);
|
|
|
pdf.save(Date.now()+'.pdf');
|
|
@@ -232,11 +236,11 @@
|
|
|
unit: 'px',
|
|
|
format: 'a4'
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
const imgProps = pdf.getImageProperties(imgData);
|
|
|
const pdfWidth = pdf.internal.pageSize.getWidth();
|
|
|
const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width;
|
|
|
-
|
|
|
+
|
|
|
// 添加图片,适应页面大小
|
|
|
pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight);
|
|
|
// 将 PDF 保存为 Blob 并处理它 这里需要处理跨域问题
|
|
@@ -247,12 +251,12 @@
|
|
|
newWindow.focus();
|
|
|
} else {
|
|
|
alert('请允许弹出窗口或在新标签页中手动查看 PDF。');
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
mounted: function() {
|
|
|
- sa.ajax('/level-two-server/TbOrders/getById?id=' + this.id, function(res) {
|
|
|
+ sa.ajax('/level-two-server/TbOrders/getSubEmail?id=' + this.id, function(res) {
|
|
|
this.m = res.data;
|
|
|
if(res.data == null) {
|
|
|
sa.alert('未能查找到 id=' + this.id + " 详细数据");
|
|
@@ -263,4 +267,4 @@
|
|
|
|
|
|
</script>
|
|
|
</body>
|
|
|
-</html>
|
|
|
+</html>
|