Bladeren bron

Merge branch 'develop_yh10' of jianguan-web/jg-ocs-html into pre-release

李磊 2 jaren geleden
bovenliggende
commit
971ef2d048
1 gewijzigde bestanden met toevoegingen van 12 en 10 verwijderingen
  1. 12 10
      src/views/salesManagement/receiptPrint/printModel.vue

+ 12 - 10
src/views/salesManagement/receiptPrint/printModel.vue

@@ -20,16 +20,16 @@
                   <div>
                     <table border="1" style="width: 564pt;border-collapse: collapse;text-align: center;">
                       <tr>
-                        <th style="line-height: 20pt;width: 56pt;background:#f6f6f6;">日期</th>
-                        <th style="line-height: 20pt;width: 62pt;background:#f6f6f6;">客户名称</th>
-                        <th style="line-height: 20pt;width: 62pt;background:#f6f6f6;">营业执照名称</th>
-                        <th style="line-height: 20pt;width: 54pt;background:#f6f6f6;">订单金额</th>
-                        <th style="line-height: 20pt;width: 54pt;background:#f6f6f6;">收款金额</th>
-                        <th style="line-height: 20pt;width: 54pt;background:#f6f6f6;">使用授信</th>
-                        <th style="line-height: 20pt;width: 54pt;background:#f6f6f6;">余款抵扣</th>
-                        <th style="line-height: 20pt;width: 54pt;background:#f6f6f6;">汇入银行</th>
-                        <th style="line-height: 20pt;width: 54pt;background:#f6f6f6;">足额打款</th>
-                        <th style="line-height: 20pt;width: 60pt;background:#f6f6f6;">说明</th>
+                        <th style="width: 56pt;background:#f6f6f6;">日期</th>
+                        <th style="width: 62pt;background:#f6f6f6;">客户名称</th>
+                        <th style="width: 62pt;background:#f6f6f6;">营业执照名称</th>
+                        <th style="width: 54pt;background:#f6f6f6;">订单金额</th>
+                        <th style="width: 54pt;background:#f6f6f6;">收款金额</th>
+                        <th style="width: 54pt;background:#f6f6f6;">使用授信</th>
+                        <th style="width: 54pt;background:#f6f6f6;">余款抵扣</th>
+                        <th style="width: 54pt;background:#f6f6f6;">汇入银行</th>
+                        <th style="width: 54pt;background:#f6f6f6;">足额打款</th>
+                        <th style="width: 60pt;background:#f6f6f6;">说明</th>
                       </tr>
                       <tr v-for="item in fcItem.subList" :key="item.bookDetailSn">
                         <td style="padding:3pt;width: 50pt;">{{ moment(item.receiptDate).format('YYYY/MM/DD') }}</td>
@@ -124,6 +124,8 @@ export default {
       for (let i = 0; i < printCons.length; i++) {
         if (printCons[i].h > 560) {
           htmlStr.push('')
+        }else{
+          printCons[i].t = '<div style="width:564pt;margin:0 auto;height:535px;">' +printCons[i].t+'</div>'
         }
         htmlStr.push(printCons[i].t)
       }