Преглед на файлове

【修改】打印模板加字段

howie преди 2 години
родител
ревизия
f4af1ec7ff
променени са 2 файла, в които са добавени 33 реда и са изтрити 3 реда
  1. 2 0
      src/mixin/print.js
  2. 31 3
      src/utils/panel.js

+ 2 - 0
src/mixin/print.js

@@ -319,6 +319,8 @@ export default {
           printNum: printNum + 1,
           salesId: salesOrderId,
           invoiceId: invoiceId,
+          refUseUnit:data.refUseUnit||'',
+          refEnginRecordNo:data.refEnginRecordNo||'',
           type: data.type,
           tiTui: data.type === 2 ? `退货人` : `提货人`,
           takerPhone: data.takerPhone || "",

+ 31 - 3
src/utils/panel.js

@@ -8,7 +8,7 @@ export default {
     "printElements": [{
       "options": {
         "left": 0,
-        "top": 25,
+        "top": 15,
         "height": 27,
         "width": 656,
         "field": "company",
@@ -118,11 +118,39 @@ export default {
         "textAlign": "left"
       }, "printElementType": { "title": "", "type": "text" }
     },
-    {
+    , {
       "options": {
         "left": 40,
         "top": 110,
         "height": 13,
+        "width": 328,
+        "fontSize": 12.5,
+        "title": "工程登录编号",
+        "fontFamily": '黑体,宋体,微软雅黑',
+        "field": "refEnginRecordNo",
+        "color": "#000",
+        "textAlign": "left"
+      }, "printElementType": { "title": "", "type": "text" }
+    },
+    {
+      "options": {
+        "left": 348,
+        "top": 110,
+        "height": 13,
+        "width": 328,
+        "fontSize": 12.5,
+        "title": "使用单位",
+        "fontFamily": '黑体,宋体,微软雅黑',
+        "field": "refUseUnit",
+        "color": "#000",
+        "textAlign": "left"
+      }, "printElementType": { "title": "", "type": "text" }
+    },
+    {
+      "options": {
+        "left": 40,
+        "top": 130,
+        "height": 13,
         "width": 633,
         "fontSize": 12.5,
         "title": "备注",
@@ -136,7 +164,7 @@ export default {
     {
       "options": {
         "left": 23,
-        "top": 125,
+        "top": 145,
         "height": 410,
         "width": 633,
         "fontSize": 12.5,