ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<script setup lang="ts">
defineProps(['jsbarcode', 'getCustomRowNameList', 'getMaxRows', 'jnpfUniverRef', 'cellFromDialogValue', 'startColumn', 'startRow', 'dataSetList', 'queryList']);
 
const barcodeFormatOptions = [
  { id: 'code128', fullName: 'code128' },
  { id: 'ean13', fullName: 'ean13' },
  { id: 'ean8', fullName: 'ean8' },
  { id: 'ean5', fullName: 'ean5' },
  { id: 'ean2', fullName: 'ean2' },
  { id: 'code39', fullName: 'code39' },
  { id: 'itf14', fullName: 'itf14' },
  { id: 'msi10', fullName: 'msi10' },
  { id: 'msi11', fullName: 'msi11' },
  { id: 'pharmacode', fullName: 'pharmacode' },
  { id: 'upc', fullName: 'upc' },
  { id: 'codabar', fullName: 'codabar' },
];
</script>
 
<template>
  <a-form-item label="编码格式">
    <jnpf-select v-model:value="jsbarcode.jsbarcodeOption.format" :options="barcodeFormatOptions" />
  </a-form-item>
  <a-form-item label="条码颜色">
    <jnpf-color-picker v-model:value="jsbarcode.jsbarcodeOption.lineColor" size="small" />
  </a-form-item>
  <a-form-item label="宽度">
    <a-input-number v-model:value="jsbarcode.jsbarcodeOption.width" placeholder="最大值100" max="100" min="0" />
  </a-form-item>
  <a-form-item label="固定值">
    <a-input v-model:value="jsbarcode.field" :maxlength="256" allow-clear />
  </a-form-item>
</template>