Bläddra i källkod

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 år sedan
förälder
incheckning
853345c9e9
1 ändrade filer med 12 tillägg och 6 borttagningar
  1. 12 6
      src/xt_pages/outpatientTool/labelPrint.vue

+ 12 - 6
src/xt_pages/outpatientTool/labelPrint.vue Visa fil

105
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
105
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
106
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
106
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
107
                           </div>
107
                           </div>
108
-                          <img style="width:300px;height:80px;margin-left:10px;" id="barcode">
108
+                          <img style="width:300px;height:200px;margin-left:10px;" id="barcode">
109
                       </div>
109
                       </div>
110
                       <div style="margin-bottom:5px;">{{current_number}}</div>
110
                       <div style="margin-bottom:5px;">{{current_number}}</div>
111
                       <div style="display:flex;">
111
                       <div style="display:flex;">
193
         this.current_number = row.number
193
         this.current_number = row.number
194
         this.current_project_name = row.project_name
194
         this.current_project_name = row.project_name
195
         this.current_name = row.patient_name
195
         this.current_name = row.patient_name
196
-
197
         this.$nextTick(() => {
196
         this.$nextTick(() => {
198
-          JsBarcode('#barcode', 'DY2020080400088', {
197
+          JsBarcode('#barcode',row.feedetl_sn, {
199
             format: 'CODE39',
198
             format: 'CODE39',
200
             lineColor: '#000',
199
             lineColor: '#000',
201
             background: '#EBEEF5',
200
             background: '#EBEEF5',
202
-            width: 2,
203
-            height: 100,
204
-            displayValue: false
201
+            width: 3,
202
+            height: 200,
203
+            displayValue: false,
204
+            fontOptions:"bold italic",//使文字加粗体或变斜体
205
+            font:"fantasy",//设置文本的字体
206
+            textAlign:"left",//设置文本的水平对齐方式
207
+            textPosition:"top",//设置文本的垂直位置
208
+            textMargin:5,//设置条形码和文本之间的间距
209
+            fontSize:15,//设置文本的大小
210
+            margin:15//设置条形码周围的空白边距
205
           })
211
           })
206
 
212
 
207
         });
213
         });