106 次浏览【转载需注明来源】
请复制下面的代码,然后加载到报表设计器中
{
"version": "1.0.0",
"formName": "表单示例",
"Author": "快码编程UI设计器",
"formId": "formPreviewForm",
"generateId": 6,
"data": [
{
"id": "textBox_1",
"index": 0,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": 100,
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": "280",
"top": 6,
"zIndex": 1,
"TextValue": "采购单",
"TextSize": "24",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
},
{
"id": "textBox_2",
"index": 1,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "165",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 482.375,
"top": 20,
"zIndex": 2,
"TextValue": "日期: 年 月 日",
"TextSize": "12",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "",
"ColorValue": "#000",
"grid": false
},
{
"id": "reportFormsTable_3",
"index": 2,
"tag": "reportFormsTable",
"tagIcon": "layui-icon layui-icon-picture",
"title": "打印表格",
"width": "630.75",
"height": 276,
"margin": "",
"padding": "",
"left": 20,
"top": 47,
"zIndex": "10",
"reportFormsSqlType": "普通数据模式",
"reportFormsDataType": "不跟随数据库变动",
"reportFormsTableType": false,
"reportFormsTableRowsSize": "小尺寸",
"reportFormsTableLine": "普通风格",
"reportFormsTableHead": "[{\"数据\":[{\"内容\":\"序号\",\"宽度\":80,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"品名\",\"宽度\":250,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"规格\",\"宽度\":80,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"数量\",\"宽度\":80,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"用途\",\"宽度\":200,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"备注\",\"宽度\":150,\"水平对齐-居中\":\"居中对齐\"}]}]",
"reportFormsTableHeadToolJson": {
"宽度": 100,
"高度": 100,
"内容": "",
"字体": "微软雅黑",
"字体尺寸": 14,
"背景色": "#FFFFFF",
"文本色": "#000000",
"元素ID": "",
"允许输入": true,
"合并行": 0,
"合并列": 0,
"垂直对齐-居中": "居中对齐",
"垂直对齐-顶部": "顶部对齐",
"垂直对齐-底部": "底部对齐",
"水平对齐-居中": "居中对齐",
"水平对齐-左侧": "左侧对齐",
"水平对齐-右侧": "右侧对齐",
"字体类型-加粗": "粗体",
"字体类型-正常": "正常",
"自定义CSS": ""
},
"reportFormsTableData": "[{\"数据\":[{\"内容\":\"1\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"2\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"3\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"4\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"5\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"6\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"7\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"8\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"9\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"10\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]}]",
"reportFormsTableDataToolJson": {
"宽度": 100,
"高度": 100,
"内容": "",
"字体": "微软雅黑",
"字体尺寸": 14,
"背景色": "#FFFFFF",
"文本色": "#000000",
"元素ID": "",
"允许输入": true,
"合并行": 0,
"合并列": 0,
"垂直对齐-居中": "居中对齐",
"垂直对齐-顶部": "顶部对齐",
"垂直对齐-底部": "底部对齐",
"水平对齐-居中": "居中对齐",
"水平对齐-左侧": "左侧对齐",
"水平对齐-右侧": "右侧对齐",
"字体类型-加粗": "粗体",
"字体类型-正常": "正常",
"自定义CSS": ""
},
"reportFormsSqlCode_NoBut": "",
"reportFormsSqlDataName": "[]",
"reportFormsCode_NoBut": "",
"grid": false
},
{
"id": "textBox_4",
"index": 3,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "100",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 3,
"top": "325",
"zIndex": 4,
"TextValue": "审批人:",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
},
{
"id": "textBox_5",
"index": 4,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "100",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 315.375,
"top": "325",
"zIndex": 5,
"TextValue": "申请人:",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
},
{
"id": "textBox_6",
"index": 5,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": 165,
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 443.375,
"top": -2,
"zIndex": "1",
"TextValue": "000000",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "rgba(204, 0, 0, 1)",
"grid": false
}
],
"optionsArray": [
{
"id": "textBox_1",
"index": 0,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": 100,
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": "280",
"top": 6,
"zIndex": 1,
"TextValue": "采购单",
"TextSize": "24",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
},
{
"id": "textBox_2",
"index": 1,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "165",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 482.375,
"top": 20,
"zIndex": 2,
"TextValue": "日期: 年 月 日",
"TextSize": "12",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "",
"ColorValue": "#000",
"grid": false
},
{
"id": "reportFormsTable_3",
"index": 2,
"tag": "reportFormsTable",
"tagIcon": "layui-icon layui-icon-picture",
"title": "打印表格",
"width": "630.75",
"height": 276,
"margin": "",
"padding": "",
"left": 20,
"top": 47,
"zIndex": "10",
"reportFormsSqlType": "普通数据模式",
"reportFormsDataType": "不跟随数据库变动",
"reportFormsTableType": false,
"reportFormsTableRowsSize": "小尺寸",
"reportFormsTableLine": "普通风格",
"reportFormsTableHead": "[{\"数据\":[{\"内容\":\"序号\",\"宽度\":80,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"品名\",\"宽度\":250,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"规格\",\"宽度\":80,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"数量\",\"宽度\":80,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"用途\",\"宽度\":200,\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\"备注\",\"宽度\":150,\"水平对齐-居中\":\"居中对齐\"}]}]",
"reportFormsTableHeadToolJson": {
"宽度": 100,
"高度": 100,
"内容": "",
"字体": "微软雅黑",
"字体尺寸": 14,
"背景色": "#FFFFFF",
"文本色": "#000000",
"元素ID": "",
"允许输入": true,
"合并行": 0,
"合并列": 0,
"垂直对齐-居中": "居中对齐",
"垂直对齐-顶部": "顶部对齐",
"垂直对齐-底部": "底部对齐",
"水平对齐-居中": "居中对齐",
"水平对齐-左侧": "左侧对齐",
"水平对齐-右侧": "右侧对齐",
"字体类型-加粗": "粗体",
"字体类型-正常": "正常",
"自定义CSS": ""
},
"reportFormsTableData": "[{\"数据\":[{\"内容\":\"1\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"2\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"3\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"4\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"5\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"6\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"7\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"8\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"9\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]},{\"数据\":[{\"内容\":\"10\",\"水平对齐-居中\":\"居中对齐\"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"},{\"内容\":\" \"}]}]",
"reportFormsTableDataToolJson": {
"宽度": 100,
"高度": 100,
"内容": "",
"字体": "微软雅黑",
"字体尺寸": 14,
"背景色": "#FFFFFF",
"文本色": "#000000",
"元素ID": "",
"允许输入": true,
"合并行": 0,
"合并列": 0,
"垂直对齐-居中": "居中对齐",
"垂直对齐-顶部": "顶部对齐",
"垂直对齐-底部": "底部对齐",
"水平对齐-居中": "居中对齐",
"水平对齐-左侧": "左侧对齐",
"水平对齐-右侧": "右侧对齐",
"字体类型-加粗": "粗体",
"字体类型-正常": "正常",
"自定义CSS": ""
},
"reportFormsSqlCode_NoBut": "",
"reportFormsSqlDataName": "[]",
"reportFormsCode_NoBut": "",
"grid": false
},
{
"id": "textBox_4",
"index": 3,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "100",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 3,
"top": "325",
"zIndex": 4,
"TextValue": "审批人:",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
},
{
"id": "textBox_5",
"index": 4,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "100",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 315.375,
"top": "325",
"zIndex": 5,
"TextValue": "申请人:",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
},
{
"id": "textBox_6",
"index": 5,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": 165,
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 443.375,
"top": -2,
"zIndex": "1",
"TextValue": "000000",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "rgba(204, 0, 0, 1)",
"grid": false
}
],
"dataSource": {},
"formData": {},
"globalDisable": false,
"viewOrDesign": true,
"formDefaultButton": true,
"formProperty": {},
"selectItems": [],
"model": "自定义",
"page": {
"id": ""
},
"elem": {
"0": {
"sizzle1704960334263": {
"undefined": {
"parentNode": [
48,
19,
false
]
}
},
"sizzle1704960334288": {
"undefined": {
"parentNode": [
24175,
40,
true
]
}
}
},
"length": 1
},
"id": "formdesigner",
"size": [
"17.8cm",
"9.5cm"
],
"selectItem": {
"id": "textBox_5",
"index": 4,
"tag": "textBox",
"tagIcon": "layui-icon layui-icon-picture",
"title": "文本框",
"width": "100",
"height": 30,
"margin": "",
"padding": "",
"transformRotate": "0",
"writingMode": "",
"left": 315.375,
"top": "325",
"zIndex": 5,
"TextValue": "申请人:",
"TextSize": "14",
"fontFamily": "微软雅黑",
"textBoxDataType": "普通文本框",
"HorizontalAlignment": "center",
"VerticalAlignment": "center",
"BorderLineStyle": "",
"BorderLineSize": "1",
"BorderLineColor": "#000000",
"BackgroundValue": "#ffffff",
"ColorValue": "#000",
"grid": false
}
}
也可以直接下载文件手动复制代码到布局导入中:采购单.zip
测试账号
快码FOF编程 Time: 2024-01-13 19:48:54
评论ID
源码来了哦