lilei 2 éve
szülő
commit
18499265eb

+ 1 - 1
src/libs/JGPrint.js

@@ -126,7 +126,7 @@ export const jGPrint = function (data, type, callback, printLogParams,printPageS
       LODOP.ADD_PRINT_HTM(0,0,'100%','99%',data);
       LODOP.SET_PRINT_PAGESIZE(3,'210mm',100,"")
     }else{
-      LODOP.ADD_PRINT_HTM(0,0,'100%','99%',data);
+      LODOP.ADD_PRINT_HTM('1cm',0,'100%','99%',data);
       LODOP.SET_SHOW_MODE("BKIMG_PRINT",0);
     }
     if (type == 'preview') { //  预览

+ 22 - 22
src/views/salesManagement/receiptPrint/printModel.vue

@@ -3,12 +3,12 @@
   <div>
     <a-spin :spinning="spinning" tip="Loading..." style="height: 60vh;overflow: auto;width: 100%;padding:20px 40px;">
       <div id="sendGood-print" v-if="detail" >
-        <table ref="printBox" cellspacing="0" cellpadding="0" style="border-collapse: collapse;width: 562pt;margin:0 auto;">
+        <table ref="printBox" cellspacing="0" cellpadding="0" style="border-collapse: collapse;width: 562pt;margin:0 auto;font-size:14px;">
           <tr>
             <td>
-              <div class="print-box" style="width: 562pt;font-size: 10pt;margin:0 auto;">
-                <h1 style="text-align:center;margin:0.5cm 0">销 售 收 款 凭 证</h1>
-                <div style="display:flex;align-item:center;justify-content: space-between;flex-wrap: wrap;line-height: 20pt;">
+              <div class="print-box" style="width: 562pt;margin:0 auto;">
+                <h1 style="text-align:center;margin:0.2cm 0">销 售 收 款 凭 证</h1>
+                <div style="display:flex;align-item:center;justify-content: space-between;flex-wrap: wrap;line-height: 18pt;">
                   <div style="width: 50%;">客户名称:{{ detail.settleClientName||'--' }}</div>
                   <div style="width: 50%;">支付方式:{{ detail.settleStyleDictValue||'--' }}</div>
                   <div style="width: 50%;">收货客户名称:{{ detail.receiverName||'--' }}</div>
@@ -24,23 +24,23 @@
                   <div>
                     <table border="1" style="width: 562pt;border-collapse: collapse;text-align: center;">
                       <tr>
-                        <th style="line-height: 24pt;width: 50pt;background:#f6f6f6;">序号</th>
-                        <th style="line-height: 24pt;width: 60pt;background:#f6f6f6;">日期</th>
-                        <th style="line-height: 24pt;width: 100pt;background:#f6f6f6;">客户信息</th>
-                        <th style="line-height: 24pt;width: 100pt;background:#f6f6f6;">收款信息</th>
-                        <th style="line-height: 24pt;width: 97pt;background:#f6f6f6;">汇入银行</th>
-                        <th style="line-height: 24pt;width: 60pt;background:#f6f6f6;">足额打款</th>
-                        <th style="line-height: 24pt;width: 95pt;background:#f6f6f6;">备注</th>
+                        <th style="line-height: 20pt;width: 30pt;background:#f6f6f6;">序号</th>
+                        <th style="line-height: 20pt;width: 50pt;background:#f6f6f6;">日期</th>
+                        <th style="line-height: 20pt;width: 120pt;background:#f6f6f6;">客户信息</th>
+                        <th style="line-height: 20pt;width: 152pt;background:#f6f6f6;">收款信息</th>
+                        <th style="line-height: 20pt;width: 60pt;background:#f6f6f6;">汇入银行</th>
+                        <th style="line-height: 20pt;width: 60pt;background:#f6f6f6;">足额打款</th>
+                        <th style="line-height: 20pt;width: 90pt;background:#f6f6f6;">备注</th>
                       </tr>
                       <tr v-for="(item,dindex) in fcItem.financeBookDetailList" :key="item.bookDetailSn">
-                        <td style="padding:3pt;width: 44pt;">{{ dindex+1 }}</td>
-                        <td style="padding:3pt;width: 54pt;">{{ moment(item.receiptDate).format('M月D日') }}</td>
-                        <td style="padding:3pt;width: 94pt;">
+                        <td style="padding:3pt;width: 24pt;">{{ dindex+1 }}</td>
+                        <td style="padding:3pt;width: 44pt;">{{ moment(item.receiptDate).format('M月D日') }}</td>
+                        <td style="padding:3pt;width: 114pt;text-align:left;">
                           {{ item.dealerEntity.dealerName }}<br>
                           {{ item.dealerEntity.kdMidCustomerFnumber }}<br>
                           {{ item.dealerEntity.licenseName }}
                         </td>
-                        <td style="padding:3pt;width: 94pt;">
+                        <td style="padding:3pt;width: 146pt;text-align:left;">
                           订单金额:{{ item.orderAmount?item.orderAmount.toFixed(2):'0.00' }}<br>
                           收款金额:{{ item.receiptAmount?item.receiptAmount.toFixed(2):'0.00' }}<br>
                           使用授信:{{ getTotal(item.detailItemUseList||[]) }}<br>
@@ -48,22 +48,22 @@
                           余款抵扣:{{ item.balanceAmount?item.balanceAmount.toFixed(2):'0.00' }}<br>
                           跨月打款:{{ item.nextMonthAmount?item.nextMonthAmount.toFixed(2):'0.00' }}
                         </td>
-                        <td style="padding:3pt;width: 91pt;">
+                        <td style="padding:3pt;width: 54pt;">
                           {{ item.bankAccount }}<br>
                           {{ item.bankName }}<br>
                         </td>
                         <td style="padding:3pt;width: 54pt;">{{ item.fullPaymentFlagDictValue }}</td>
-                        <td style="padding:3pt;width: 89pt;word-break:break-all;">{{ item.remarks }}</td>
+                        <td style="padding:3pt;width: 84pt;word-break:break-all;">{{ item.remarks }}</td>
                       </tr>
                     </table>
                     <div style="line-height: 30pt;">附:钉钉审批明细</div>
                     <table border="1" style="width: 562pt;border-collapse: collapse;text-align: center;">
                       <tr>
-                        <th style="line-height: 24pt;width: 110pt;background:#f6f6f6;">人员姓名</th>
-                        <th style="line-height: 24pt;width: 110pt;background:#f6f6f6;">人员类型</th>
-                        <th style="line-height: 24pt;width: 110pt;background:#f6f6f6;">状态</th>
-                        <th style="line-height: 24pt;width: 117pt;background:#f6f6f6;">审批意见</th>
-                        <th style="line-height: 24pt;width: 115pt;background:#f6f6f6;">操作时间</th>
+                        <th style="line-height: 20pt;width: 110pt;background:#f6f6f6;">人员姓名</th>
+                        <th style="line-height: 20pt;width: 110pt;background:#f6f6f6;">人员类型</th>
+                        <th style="line-height: 20pt;width: 110pt;background:#f6f6f6;">状态</th>
+                        <th style="line-height: 20pt;width: 117pt;background:#f6f6f6;">审批意见</th>
+                        <th style="line-height: 20pt;width: 115pt;background:#f6f6f6;">操作时间</th>
                       </tr>
                       <tr v-for="(item,six) in fcItem.processInstanceTaskList" :key="six+'-processInstanceTask'">
                         <td style="padding:3pt;width: 104pt;">{{ item.userName||'--' }}</td>