|
|
@@ -84,9 +84,12 @@
|
|
|
<div class="print-html-box">
|
|
|
<table border="0" width="730" style="border:solid 1px #fff;border-collapse:collapse">
|
|
|
<tr>
|
|
|
- <td style="width: 260px;">客户:{{orderMsg.customName}}</td>
|
|
|
- <td style="width: 260px;">单号:{{orderMsg.orderSn}}</td>
|
|
|
- <td style="width: 260px;">日期:{{orderMsg.deadline}}</td>
|
|
|
+ <td style="width: 340px;">客户:{{orderData.customName}} {{orderData.customMobile}}</td>
|
|
|
+ <td style="width: 200px;">单号:{{orderData.orderSn}}</td>
|
|
|
+ <td style="width: 220px;">日期:{{orderData.deadline}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="3">地址:{{orderData.fullAddress}}<span v-if="orderData.showAddress!=''">({{orderData.showAddress}})</span></td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<table border="1" width="730" style="border:solid 1px black;border-collapse:collapse">
|
|
|
@@ -99,7 +102,7 @@
|
|
|
<td style="width: 60px;text-align: center;">金额</td>
|
|
|
<td style="width: 100px;text-align: center;">备注</td>
|
|
|
</tr>
|
|
|
- <tr v-for="(res,i) in orderMsg.product">
|
|
|
+ <tr v-for="(res,i) in orderData.product">
|
|
|
<td style="width: 50px;text-align: center;">{{ i+1 }}</td>
|
|
|
<td style="width: 250px;text-align: center;">{{ res.name }}</td>
|
|
|
<td style="width: 80px;text-align: center;">扎/支</td>
|
|
|
@@ -111,19 +114,20 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td style="width: 100px;"></td>
|
|
|
- <td style="width: 100px;" colspan="2">运费:{{orderMsg.sendCost}} 合计:{{orderMsg.actPrice}}</td>
|
|
|
- <td style="width: 100px;" colspan="2">实收:{{orderMsg.debt==0?orderMsg.realPrice:'0.00'}}</td>
|
|
|
- <td style="width: 100px;" colspan="2">欠款:{{orderMsg.debt==1?orderMsg.realPrice:'0.00'}}</td>
|
|
|
+ <td style="width: 100px;font-weight:bold;" colspan="6">
|
|
|
+ <span>合计:{{orderData.actPrice}}<span v-if="orderData.sendCost > 0">(运费:{{orderData.sendCost}} )</span></span>
|
|
|
+ <span style="margin-left:30px;">实收:{{orderData.debt==0?orderData.realPrice:'0.00'}}</span>
|
|
|
+ <span v-if="orderData.debtAmount > 0" style="margin-left:30px;">累计欠款:{{orderData.debtAmount}}</span>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td style="width: 100px;">其他说明:</td>
|
|
|
- <td style="width: 100px;" colspan="6">{{orderMsg.remark}}</td>
|
|
|
+ <td style="width: 100px;" colspan="6">{{orderData.remark}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<table border="0" width="730" style="border:solid 1px #fff;border-collapse:collapse">
|
|
|
<tr >
|
|
|
- <td style="width: 260px;">开单:{{orderMsg.shopAdminName}}</td>
|
|
|
- <td style="width: 260px;">配送:</td>
|
|
|
+ <td style="width: 260px;" colspan="2">开单:{{orderData.shopAdminName}}</td>
|
|
|
<td style="width: 260px;">打印时间:{{todays(1)}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
@@ -173,7 +177,7 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
optionData: {},
|
|
|
- orderMsg:'',
|
|
|
+ orderData:'',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -203,7 +207,7 @@ export default {
|
|
|
},
|
|
|
printOrder(e){
|
|
|
this.$service.order.info({ id: e.id }).then(res => {
|
|
|
- this.orderMsg = res;
|
|
|
+ this.orderData = res;
|
|
|
this.$nextTick(() => {
|
|
|
let LODOP = getLodop();
|
|
|
LODOP.SET_PRINT_STYLE('FontSize', 13);
|