From 2d704fb62459923206071b319f8423c3381145f8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 11 六月 2025 00:18:20 +0800
Subject: [PATCH] 2025-06-11

---
 src/views/printTemplate/option.js |  120 ++++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 81 insertions(+), 39 deletions(-)

diff --git a/src/views/printTemplate/option.js b/src/views/printTemplate/option.js
index 7f57041..f634781 100644
--- a/src/views/printTemplate/option.js
+++ b/src/views/printTemplate/option.js
@@ -134,6 +134,10 @@
   {
     text: 'qrcode',
     value: 'qrcode'
+  },
+  {
+    text: 'datamatrix',
+    value: 'datamatrix'
   }
 ]
 
@@ -256,6 +260,23 @@
       initval: config.height,
       min: 1,
       required: true
+    },
+    {
+      type: 'select',
+      key: 'rotate',
+      label: '鏃嬭浆瑙掑害',
+      initval: config.rotate || 0,
+      required: false,
+      options: Rotate
+    },
+    {
+      type: 'number',
+      key: 'gap',
+      label: '闂撮殭',
+      initval: config.gap || '',
+      tooltip: 'RFID鏍囩闂撮殭銆�',
+      min: 0,
+      required: false
     }
   ]
 }
@@ -412,19 +433,20 @@
       required: false,
       options: Fontfamily
     },
-    {
-      type: 'select',
-      key: 'rotate',
-      label: '鏃嬭浆瑙掑害',
-      initval: item.rotate,
-      required: false,
-      options: Rotate
-    },
+    // {
+    //   type: 'select',
+    //   key: 'rotate',
+    //   label: '鏃嬭浆瑙掑害',
+    //   initval: item.rotate,
+    //   required: false,
+    //   options: Rotate
+    // },
     {
       type: 'number',
       key: 'borderSize',
       label: '杈规瀹藉害',
       initval: item.borderSize,
+      tooltip: '娉細杈规瀹藉害鐨勮閲忓崟浣嶆槸姝e父鍊肩殑鍗佸垎涔嬩竴銆�',
       precision: 1,
       required: true
     },
@@ -542,19 +564,20 @@
       precision: 0,
       required: true
     },
-    {
-      type: 'select',
-      key: 'rotate',
-      label: '鏃嬭浆瑙掑害',
-      initval: item.rotate,
-      required: false,
-      options: Rotate
-    },
+    // {
+    //   type: 'select',
+    //   key: 'rotate',
+    //   label: '鏃嬭浆瑙掑害',
+    //   initval: item.rotate,
+    //   required: false,
+    //   options: Rotate
+    // },
     {
       type: 'number',
       key: 'borderSize',
       label: '杈规瀹藉害',
       initval: item.borderSize,
+      tooltip: '娉細杈规瀹藉害鐨勮閲忓崟浣嶆槸姝e父鍊肩殑鍗佸垎涔嬩竴銆�',
       precision: 1,
       required: true
     },
@@ -621,6 +644,15 @@
       initval: item.fontSize,
       precision: 0,
       required: true
+    },
+    {
+      type: 'number',
+      key: 'narrowWidth',
+      label: '鍗曞厓瀹藉害',
+      initval: item.narrowWidth,
+      tooltip: '娉細RFID鏉$爜鍗曞厓瀹藉害锛岄粯璁ゅ�间负2銆�',
+      precision: 0,
+      required: false
     },
     {
       type: 'select',
@@ -704,19 +736,20 @@
       precision: 0,
       required: true
     },
-    {
-      type: 'select',
-      key: 'rotate',
-      label: '鏃嬭浆瑙掑害',
-      initval: item.rotate,
-      required: false,
-      options: Rotate
-    },
+    // {
+    //   type: 'select',
+    //   key: 'rotate',
+    //   label: '鏃嬭浆瑙掑害',
+    //   initval: item.rotate,
+    //   required: false,
+    //   options: Rotate
+    // },
     {
       type: 'number',
       key: 'borderSize',
       label: '杈规瀹藉害',
       initval: item.borderSize,
+      tooltip: '娉細杈规瀹藉害鐨勮閲忓崟浣嶆槸姝e父鍊肩殑鍗佸垎涔嬩竴銆�',
       precision: 1,
       required: true
     },
@@ -787,13 +820,21 @@
       initval: item.name,
       required: false
     },
-    // {
-    //   type: 'text',
-    //   key: 'value',
-    //   label: '鍥剧墖鍦板潃',
-    //   initval: item.value,
-    //   required: false
-    // },
+    {
+      type: 'fileupload',
+      key: 'value',
+      label: '鍥剧墖鍦板潃',
+      initval: item.value,
+      required: false
+    },
+    {
+      type: 'textarea',
+      key: 'productValue',
+      label: '姝e紡鍦板潃',
+      initval: item.productValue || '',
+      tooltip: '姝e紡绯荤粺浣跨敤鐨勫浘鐗囷紝涓虹┖鏃朵娇鐢ㄥ浘鐗囧湴鍧�銆�',
+      required: false
+    },
     {
       type: 'select',
       key: 'field',
@@ -842,19 +883,20 @@
       precision: 0,
       required: true
     },
-    {
-      type: 'select',
-      key: 'rotate',
-      label: '鏃嬭浆瑙掑害',
-      initval: item.rotate,
-      required: false,
-      options: Rotate
-    },
+    // {
+    //   type: 'select',
+    //   key: 'rotate',
+    //   label: '鏃嬭浆瑙掑害',
+    //   initval: item.rotate,
+    //   required: false,
+    //   options: Rotate
+    // },
     {
       type: 'number',
       key: 'borderSize',
       label: '杈规瀹藉害',
       initval: item.borderSize,
+      tooltip: '娉細杈规瀹藉害鐨勮閲忓崟浣嶆槸姝e父鍊肩殑鍗佸垎涔嬩竴銆�',
       precision: 1,
       required: true
     },

--
Gitblit v1.8.0