cz 1 年之前
父节点
当前提交
e49330bcb0
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/components/PDF/jxstContractPDF.vue

+ 7 - 1
src/components/PDF/jxstContractPDF.vue

@@ -120,7 +120,9 @@
               </div>
               <div style="display: flex; margin-top: 10px">
                 <div>电 话:</div>
-                <div style="border-bottom: 1px solid #000; flex: 1"></div>
+                <div style="border-bottom: 1px solid #000; flex: 1">
+                  {{ pdfData.contactPhoneNo }}
+                </div>
               </div>
               <div style="display: flex; margin-top: 10px">
                 <div>手 机:</div>
@@ -240,9 +242,13 @@ const handlePrintPdf = (row) => {
       if (data.contactJson) {
         data.contactJson = JSON.parse(data.contactJson);
         const current = data.contactJson.find((x) => x.type == "mobile");
+        const currentPhone = data.contactJson.find((x) => x.type == "phone");
         if (current && current.contactNo) {
           res.contactNo = current.contactNo;
         }
+        if (currentPhone && currentPhone.contactNo) {
+          res.contactPhoneNo = currentPhone.contactNo;
+        }
       }
     }
     pdfData.value = res;