| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | options: fields |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'cusfield', |
| | | label: '自定义', |
| | | initval: item.cusfield || '', |
| | | required: true, |
| | | hidden: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'left', |
| | | label: '距左', |