| | |
| | | { |
| | | text: 'qrcode', |
| | | value: 'qrcode' |
| | | }, |
| | | { |
| | | text: 'datamatrix', |
| | | value: 'datamatrix' |
| | | } |
| | | ] |
| | | |
| | |
| | | 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 |
| | | } |
| | | ] |
| | | } |
| | |
| | | item.align = 'left' |
| | | item.vertialAlign = 'top' |
| | | } else if (type === 'barcode') { |
| | | item.value = '' |
| | | item.url = url |
| | | item.barcodeType = 'code128' |
| | | item.barcodeWidth = Math.floor(width * 0.6) |
| | |
| | | item.barcodeLabel = 'true' |
| | | item.fontSize = Math.floor(12 * (boxwidth / 210)) |
| | | } else if (type === 'qrcode') { |
| | | item.value = '' |
| | | item.url = url |
| | | item.qrcodeType = 'qrcode' |
| | | item.qrcodeWidth = Math.floor(height * 0.6) |
| | |
| | | type: 'title', |
| | | label: '类型', |
| | | initval: '文本', |
| | | class: 'text', |
| | | required: false |
| | | }, |
| | | { |
| | |
| | | initval: item.field || '', |
| | | required: false, |
| | | options: fields |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'cusfield', |
| | | label: '自定义', |
| | | initval: item.cusfield || '', |
| | | required: true, |
| | | hidden: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | 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: '注:边框宽度的计量单位是正常值的十分之一。', |
| | | precision: 1, |
| | | required: true |
| | | }, |
| | |
| | | type: 'title', |
| | | label: '类型', |
| | | initval: '条形码', |
| | | class: 'barcode', |
| | | required: false |
| | | }, |
| | | { |
| | |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'value', |
| | | label: '内容', |
| | | initval: item.value || '', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'field', |
| | | label: '关联字段', |
| | | initval: item.field, |
| | | required: true, |
| | | required: false, |
| | | options: fields |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'cusfield', |
| | | label: '自定义', |
| | | initval: item.cusfield || '', |
| | | required: true, |
| | | hidden: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | 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: '注:边框宽度的计量单位是正常值的十分之一。', |
| | | precision: 1, |
| | | required: true |
| | | }, |
| | |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'narrowWidth', |
| | | label: '单元宽度', |
| | | initval: item.narrowWidth, |
| | | tooltip: '注:RFID条码单元宽度,默认值为2。', |
| | | precision: 0, |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'background', |
| | | label: '背景色', |
| | |
| | | type: 'title', |
| | | label: '类型', |
| | | initval: '二维码', |
| | | class: 'qrcode', |
| | | required: false |
| | | }, |
| | | { |
| | |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'value', |
| | | label: '内容', |
| | | initval: item.value || '', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'field', |
| | | label: '关联字段', |
| | | initval: item.field, |
| | | required: true, |
| | | required: false, |
| | | options: fields |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'cusfield', |
| | | label: '自定义', |
| | | initval: item.cusfield || '', |
| | | required: true, |
| | | hidden: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | 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: '注:边框宽度的计量单位是正常值的十分之一。', |
| | | precision: 1, |
| | | required: true |
| | | }, |
| | |
| | | type: 'title', |
| | | label: '类型', |
| | | initval: '图片', |
| | | class: 'image', |
| | | required: false |
| | | }, |
| | | { |
| | |
| | | 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: '正式地址', |
| | | initval: item.productValue || '', |
| | | tooltip: '正式系统使用的图片,为空时使用图片地址。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'field', |
| | |
| | | initval: item.field, |
| | | required: false, |
| | | options: fields |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'cusfield', |
| | | label: '自定义', |
| | | initval: item.cusfield || '', |
| | | required: true, |
| | | hidden: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | 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: '注:边框宽度的计量单位是正常值的十分之一。', |
| | | precision: 1, |
| | | required: true |
| | | }, |