|
@@ -1,37 +1,33 @@
|
|
|
const List = [
|
|
|
{
|
|
|
jsonData: {
|
|
|
- list: [
|
|
|
+ "list": [
|
|
|
{
|
|
|
- "type": "input",
|
|
|
- "label": "计划名称",
|
|
|
+ "type": "text",
|
|
|
+ "label": "主制任务",
|
|
|
"options": {
|
|
|
- "type": "text",
|
|
|
- "width": "100%",
|
|
|
- "defaultValue": "",
|
|
|
- "placeholder": "请输入计划名称",
|
|
|
- "clearable": false,
|
|
|
- "maxLength": null,
|
|
|
- "addonBefore": "",
|
|
|
- "addonAfter": "",
|
|
|
- "showLabel": true,
|
|
|
+ "textAlign": "center",
|
|
|
"hidden": false,
|
|
|
- "disabled": false
|
|
|
+ "showRequiredMark": false,
|
|
|
+ "noFormItem": true,
|
|
|
+ "color": "#1e497b",
|
|
|
+ "fontFamily": "FangSong",
|
|
|
+ "fontSize": "26pt"
|
|
|
},
|
|
|
- "model": "name",
|
|
|
- "key": "input_1703556025735",
|
|
|
- "help": "",
|
|
|
- "rules": [
|
|
|
- {
|
|
|
- "required": false,
|
|
|
- "message": "必填项"
|
|
|
- }
|
|
|
- ],
|
|
|
- "tableName": "plan"
|
|
|
+ "key": "text_1704780481164"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "divider",
|
|
|
+ "label": "",
|
|
|
+ "options": {
|
|
|
+ "orientation": "",
|
|
|
+ "noFormItem": true
|
|
|
+ },
|
|
|
+ "key": "divider_1704780533061"
|
|
|
},
|
|
|
{
|
|
|
"type": "select",
|
|
|
- "label": "货品",
|
|
|
+ "label": "选择流程",
|
|
|
"options": {
|
|
|
"width": "100%",
|
|
|
"multiple": false,
|
|
@@ -39,8 +35,8 @@ const List = [
|
|
|
"clearable": false,
|
|
|
"showLabel": true,
|
|
|
"hidden": false,
|
|
|
- "placeholder": "请选择货品",
|
|
|
- "dynamicKey": "SP",
|
|
|
+ "placeholder": "请选择",
|
|
|
+ "dynamicKey": "aa",
|
|
|
"dynamic": true,
|
|
|
"options": [
|
|
|
{
|
|
@@ -54,43 +50,285 @@ const List = [
|
|
|
],
|
|
|
"showSearch": false,
|
|
|
"sqlData": {
|
|
|
- "dynamicName": "SP",
|
|
|
+ "dynamicName": "aa",
|
|
|
"sqls": [
|
|
|
- "SELECT goods.goodsname AS `label`,goods.id AS `value`,goods.* FROM goods AS goods "
|
|
|
+ "SELECT bpm_process.process_name AS `label`,bpm_process.process_key AS `value`,bpm_process.* FROM {DBNAME}.bpm_process AS bpm_process WHERE bpm_process.del_flag = 0 AND bpm_process.process_version = 0 AND bpm_process.process_type = 0"
|
|
|
],
|
|
|
"echoDatas": [
|
|
|
- "{\"formData\":{\"dynamicName\":\"SP\",\"tableName\":\"goods\",\"optLabelData\":\"goodsname\",\"optValueData\":\"id\"},\"filterTableData\":[]}"
|
|
|
+ "{\"formData\":{\"dynamicName\":\"aa\",\"tableName\":\"bpm_process\",\"optLabelData\":\"process_name\",\"optValueData\":\"process_key\"},\"filterTableData\":[{\"fieldName\":\"del_flag\",\"flagValue\":\"\",\"fieldOptions\":[],\"flagFormData\":{\"flagType\":0,\"tableField\":{\"tableName\":\"\",\"fieldName\":\"\"},\"flagValue\":\"0\"}},{\"fieldName\":\"process_version\",\"flagValue\":\"\",\"fieldOptions\":[],\"flagFormData\":{\"flagType\":0,\"tableField\":{\"tableName\":\"\",\"fieldName\":\"\"},\"flagValue\":\"0\"}},{\"fieldName\":\"process_type\",\"flagValue\":\"\",\"fieldOptions\":[],\"flagFormData\":{\"flagType\":0,\"tableField\":{\"tableName\":\"\",\"fieldName\":\"\"},\"flagValue\":\"0\"}}]}"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "model": "good_id",
|
|
|
- "key": "select_1703556044150",
|
|
|
+ "model": "process_key",
|
|
|
+ "key": "select_1704780630524",
|
|
|
"help": "",
|
|
|
"rules": [
|
|
|
{
|
|
|
- "required": false,
|
|
|
+ "required": true,
|
|
|
"message": "必填项"
|
|
|
}
|
|
|
],
|
|
|
- "tableName": "plan"
|
|
|
+ "tableName": "master_task"
|
|
|
},
|
|
|
{
|
|
|
- "type": "number",
|
|
|
- "label": "计划产量",
|
|
|
+ "type": "divider",
|
|
|
+ "label": "",
|
|
|
"options": {
|
|
|
- "width": "100%",
|
|
|
- "defaultValue": null,
|
|
|
- "min": null,
|
|
|
- "max": null,
|
|
|
- "precision": null,
|
|
|
- "step": 1,
|
|
|
- "showLabel": true,
|
|
|
+ "orientation": "left",
|
|
|
+ "noFormItem": true
|
|
|
+ },
|
|
|
+ "key": "divider_1704780618241"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "grid",
|
|
|
+ "label": "栅格布局",
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "span": 12,
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "type": "input",
|
|
|
+ "label": "任务号",
|
|
|
+ "icon": "icon-write",
|
|
|
+ "options": {
|
|
|
+ "type": "text",
|
|
|
+ "width": "100%",
|
|
|
+ "defaultValue": "",
|
|
|
+ "placeholder": "请输入",
|
|
|
+ "clearable": false,
|
|
|
+ "maxLength": null,
|
|
|
+ "addonBefore": "",
|
|
|
+ "addonAfter": "",
|
|
|
+ "showLabel": true,
|
|
|
+ "hidden": false,
|
|
|
+ "disabled": false
|
|
|
+ },
|
|
|
+ "model": "task_no",
|
|
|
+ "key": "input_1704780688105",
|
|
|
+ "help": "",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "required": false,
|
|
|
+ "message": "必填项"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "tableName": "master_task"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "span": 12,
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "type": "input",
|
|
|
+ "label": "图号",
|
|
|
+ "icon": "icon-write",
|
|
|
+ "options": {
|
|
|
+ "type": "text",
|
|
|
+ "width": "100%",
|
|
|
+ "defaultValue": "",
|
|
|
+ "placeholder": "请输入",
|
|
|
+ "clearable": false,
|
|
|
+ "maxLength": null,
|
|
|
+ "addonBefore": "",
|
|
|
+ "addonAfter": "",
|
|
|
+ "showLabel": true,
|
|
|
+ "hidden": false,
|
|
|
+ "disabled": false
|
|
|
+ },
|
|
|
+ "model": "map_number",
|
|
|
+ "key": "input_1704780715270",
|
|
|
+ "help": "",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "required": false,
|
|
|
+ "message": "必填项"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "tableName": "master_task"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "options": {
|
|
|
+ "noFormItem": true,
|
|
|
+ "gutter": 0
|
|
|
+ },
|
|
|
+ "key": "grid_1704780671155"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "grid",
|
|
|
+ "label": "栅格布局",
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "span": 12,
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "type": "input",
|
|
|
+ "label": "图号名称",
|
|
|
+ "icon": "icon-write",
|
|
|
+ "options": {
|
|
|
+ "type": "text",
|
|
|
+ "width": "100%",
|
|
|
+ "defaultValue": "",
|
|
|
+ "placeholder": "请输入",
|
|
|
+ "clearable": false,
|
|
|
+ "maxLength": null,
|
|
|
+ "addonBefore": "",
|
|
|
+ "addonAfter": "",
|
|
|
+ "showLabel": true,
|
|
|
+ "hidden": false,
|
|
|
+ "disabled": false
|
|
|
+ },
|
|
|
+ "model": "map_name",
|
|
|
+ "key": "input_1704780754718",
|
|
|
+ "help": "",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "required": true,
|
|
|
+ "message": "必填项"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "tableName": "master_task"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "span": 12,
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "type": "number",
|
|
|
+ "label": "任务数量",
|
|
|
+ "icon": "icon-number",
|
|
|
+ "options": {
|
|
|
+ "width": "100%",
|
|
|
+ "defaultValue": null,
|
|
|
+ "min": null,
|
|
|
+ "max": null,
|
|
|
+ "precision": null,
|
|
|
+ "step": 1,
|
|
|
+ "showLabel": true,
|
|
|
+ "hidden": false,
|
|
|
+ "disabled": false,
|
|
|
+ "placeholder": "请输入"
|
|
|
+ },
|
|
|
+ "model": "task_number",
|
|
|
+ "key": "number_1704780762217",
|
|
|
+ "help": "",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "required": false,
|
|
|
+ "message": "必填项"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "tableName": "master_task"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "options": {
|
|
|
+ "noFormItem": true,
|
|
|
+ "gutter": 0
|
|
|
+ },
|
|
|
+ "key": "grid_1704781049305"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "grid",
|
|
|
+ "label": "栅格布局",
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "span": 12,
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "type": "input",
|
|
|
+ "label": "工艺路线",
|
|
|
+ "icon": "icon-write",
|
|
|
+ "options": {
|
|
|
+ "type": "text",
|
|
|
+ "width": "100%",
|
|
|
+ "defaultValue": "",
|
|
|
+ "placeholder": "请输入",
|
|
|
+ "clearable": false,
|
|
|
+ "maxLength": null,
|
|
|
+ "addonBefore": "",
|
|
|
+ "addonAfter": "",
|
|
|
+ "showLabel": true,
|
|
|
+ "hidden": false,
|
|
|
+ "disabled": false
|
|
|
+ },
|
|
|
+ "model": "craft_route",
|
|
|
+ "key": "input_1704780817399",
|
|
|
+ "help": "",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "required": false,
|
|
|
+ "message": "必填项"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "tableName": "master_task"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "span": 12,
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "type": "date",
|
|
|
+ "label": "日期选择框",
|
|
|
+ "icon": "icon-calendar",
|
|
|
+ "options": {
|
|
|
+ "width": "100%",
|
|
|
+ "defaultValue": "",
|
|
|
+ "rangeDefaultValue": [],
|
|
|
+ "range": false,
|
|
|
+ "showTime": false,
|
|
|
+ "disabled": false,
|
|
|
+ "showLabel": true,
|
|
|
+ "hidden": false,
|
|
|
+ "clearable": false,
|
|
|
+ "placeholder": "请选择",
|
|
|
+ "rangePlaceholder": [
|
|
|
+ "开始时间",
|
|
|
+ "结束时间"
|
|
|
+ ],
|
|
|
+ "format": "YYYY-MM-DD"
|
|
|
+ },
|
|
|
+ "model": "accomplish_time",
|
|
|
+ "key": "date_1704781175232",
|
|
|
+ "help": "",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "required": true,
|
|
|
+ "message": "必填项"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "tableName": "master_task"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "options": {
|
|
|
+ "noFormItem": true,
|
|
|
+ "gutter": 0
|
|
|
+ },
|
|
|
+ "key": "grid_1704781060272"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "editor",
|
|
|
+ "label": "备注",
|
|
|
+ "list": [],
|
|
|
+ "options": {
|
|
|
+ "height": 300,
|
|
|
+ "placeholder": "请输入",
|
|
|
+ "defaultValue": "",
|
|
|
+ "chinesization": true,
|
|
|
"hidden": false,
|
|
|
"disabled": false,
|
|
|
- "placeholder": "请输入计划产量"
|
|
|
+ "showLabel": false,
|
|
|
+ "width": "100%"
|
|
|
},
|
|
|
- "model": "plan_weight",
|
|
|
- "key": "number_1703556096465",
|
|
|
+ "model": "remark",
|
|
|
+ "key": "editor_1704780859897",
|
|
|
"help": "",
|
|
|
"rules": [
|
|
|
{
|
|
@@ -98,44 +336,25 @@ const List = [
|
|
|
"message": "必填项"
|
|
|
}
|
|
|
],
|
|
|
- "tableName": "plan"
|
|
|
+ "tableName": "master_task"
|
|
|
},
|
|
|
{
|
|
|
- "type": "select",
|
|
|
- "label": "发起流程",
|
|
|
+ "type": "textarea",
|
|
|
+ "label": "状态",
|
|
|
"options": {
|
|
|
"width": "100%",
|
|
|
- "multiple": false,
|
|
|
- "disabled": false,
|
|
|
+ "minRows": 4,
|
|
|
+ "maxRows": 6,
|
|
|
+ "maxLength": null,
|
|
|
+ "defaultValue": "0",
|
|
|
"clearable": false,
|
|
|
"showLabel": true,
|
|
|
- "hidden": false,
|
|
|
- "placeholder": "请选择",
|
|
|
- "dynamicKey": "FQLC",
|
|
|
- "dynamic": true,
|
|
|
- "options": [
|
|
|
- {
|
|
|
- "value": "1",
|
|
|
- "label": "下拉框1"
|
|
|
- },
|
|
|
- {
|
|
|
- "value": "2",
|
|
|
- "label": "下拉框2"
|
|
|
- }
|
|
|
- ],
|
|
|
- "showSearch": false,
|
|
|
- "sqlData": {
|
|
|
- "dynamicName": "FQLC",
|
|
|
- "sqls": [
|
|
|
- "SELECT bpm_process.process_name AS `label`,bpm_process.process_key AS `value`,bpm_process.* FROM bpm_process AS bpm_process WHERE bpm_process.del_flag = 0"
|
|
|
- ],
|
|
|
- "echoDatas": [
|
|
|
- "{\"formData\":{\"dynamicName\":\"FQLC\",\"tableName\":\"bpm_process\",\"optLabelData\":\"process_name\",\"optValueData\":\"process_key\"},\"filterTableData\":[{\"fieldName\":\"del_flag\",\"flagValue\":\"\",\"fieldOptions\":[],\"flagFormData\":{\"flagType\":0,\"tableField\":{\"tableName\":\"\",\"fieldName\":\"\"},\"flagValue\":\"0\"}}]}"
|
|
|
- ]
|
|
|
- }
|
|
|
+ "hidden": true,
|
|
|
+ "disabled": false,
|
|
|
+ "placeholder": "请输入"
|
|
|
},
|
|
|
- "model": "process_key",
|
|
|
- "key": "select_1703556257092",
|
|
|
+ "model": "status",
|
|
|
+ "key": "textarea_1705473717123",
|
|
|
"help": "",
|
|
|
"rules": [
|
|
|
{
|
|
@@ -143,10 +362,10 @@ const List = [
|
|
|
"message": "必填项"
|
|
|
}
|
|
|
],
|
|
|
- "tableName": "plan"
|
|
|
+ "tableName": "master_task"
|
|
|
}
|
|
|
],
|
|
|
- config: {
|
|
|
+ "config": {
|
|
|
"layout": "horizontal",
|
|
|
"labelCol": {
|
|
|
"xs": 4,
|
|
@@ -168,10 +387,11 @@ const List = [
|
|
|
},
|
|
|
"hideRequiredMark": false,
|
|
|
"customStyle": "",
|
|
|
- "formName": "计划表单",
|
|
|
- "nickFormName": "JHBD",
|
|
|
- "mainTableName": "plan",
|
|
|
- "tdId": 3
|
|
|
+ "formName": "主制任务表单",
|
|
|
+ "nickFormName": "ZZRWBD",
|
|
|
+ "mainTableName": "master_task",
|
|
|
+ "tdId": 1,
|
|
|
+ "formDescription": "主制任务表单"
|
|
|
}
|
|
|
},
|
|
|
dynamicData: {},
|