diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java index 1095a79b7d382d907d89fc5e68870d921fde184d..153058a2fc208a2d2f8bcf79b89372de6089065a 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java @@ -1,5 +1,6 @@ package com.inspur.edp.web.formmetadata.service; +import com.alibaba.fastjson.JSON; import com.fasterxml.jackson.databind.JsonNode; import com.inspur.edp.lcm.metadata.api.entity.GspMetadata; import com.inspur.edp.lcm.metadata.api.entity.MetadataHeader; @@ -175,7 +176,10 @@ public class SmartFormServiceImpl implements SmartFormService { properties.put("multiSelect", getBooleanValue(component,"/editor/multiSelect")); properties.put("helpId", getStringValue(component,"/editor/helpId")); properties.put("precision", getNumberValue(component,"/editor/precision")); - + String mapFieldsString = getStringValue(component,"/editor/mappingFields"); + if(StringUtils.isNotBlank(mapFieldsString)){ + properties.put("mappingFields", JSON.parseObject(mapFieldsString, Map.class)); + } String dataSourceType = getStringValue(component, "/editor/dataSourceType"); if(!"dynamic".equals(dataSourceType)){ properties.put("enumData", getObjectValue(component, "/editor/data")); @@ -190,7 +194,10 @@ public class SmartFormServiceImpl implements SmartFormService { properties.put("multiSelect", getBooleanValue(extractedComponent,"/multiSelect")); properties.put("helpId", getStringValue(extractedComponent,"/helpId")); properties.put("precision", getNumberValue(extractedComponent,"/precision")); - + String mapFieldsString = getStringValue(extractedComponent,"/mapFields"); + if(StringUtils.isNotBlank(mapFieldsString)){ + properties.put("mappingFields", JSON.parseObject(mapFieldsString, Map.class)); + } String dataSourceType = getStringValue(extractedComponent, "/dataSourceType"); if(!"dynamic".equals(dataSourceType)){ properties.put("enumData", getObjectValue(extractedComponent, "/enumData")); @@ -290,6 +297,14 @@ public class SmartFormServiceImpl implements SmartFormService { } } smartFormField.getProperties().put("defaultValue", getStringValue(fieldNode, "/defaultValue")); + + Object precision = smartFormField.getProperties().get("precision"); + if(precision == null){ + Integer defaultPrecision = getNumberValue(fieldNode, "/type/precision"); + if(defaultPrecision != null){ + smartFormField.getProperties().put("precision", defaultPrecision); + } + } } private String getStringValue(JsonNode node, String key){ diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json index c80db8a788589469a153d4f10a594a19ea3a15eb..ea610671c16449dba350caae6f4a029aaf553c41 100644 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json @@ -462,7 +462,7 @@ "editor": { "$type": "TextBox" }, - "defaultValue": "2", + "defaultValue": "", "path": "ID", "type": { "$type": "StringType", @@ -1519,7 +1519,7 @@ "valueField": "id", "textField": "name", "displayType": "NavTreeList", - "mapFields": "", + "mapFields": "{'id':'version','code':'numberField1,name'}", "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799" }, "name": "编号", @@ -1574,6 +1574,36 @@ "valueChanged": "", "updateOn": "change", "fieldSchema": {} + }, + { + "type": "Form", + "id": "2bd38907-b2b6-4ff2-bcc4-5c4d5534d02c", + "fieldName": "treeField_ParentElement", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "CheckGroup" + } + } + }, + { + "type": "Form", + "id": "9d012316-1497-4526-86f9-290aab400e0b", + "fieldName": "attachmentFile_FileName", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "RadioGroup" + } + } } ], "serviceRefs": [], @@ -1595,15 +1625,16 @@ "id": "childattachment1egs8AddFileRows-id", "code": "childattachment1egs8AddFileRows", "name": "批量添加文件数据", - "handlerName": "addFileRows", - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", "params": [ { "name": "fileInfoFieldPath", "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" + "value": "/childAttachment1s/attachment", + "defaultValue": null } ], + "handlerName": "addFileRows", + "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", "shortcut": {}, "extensions": [], "isInvalid": false @@ -1612,15 +1643,16 @@ "id": "childattachment1egs8RemoveFileRows-id", "code": "childattachment1egs8RemoveFileRows", "name": "批量删除文件数据", - "handlerName": "removeFileRows", - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", "params": [ { "name": "fileInfoFieldPath", "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" + "value": "/childAttachment1s/attachment", + "defaultValue": null } ], + "handlerName": "childattachment1egs8RemoveFileRows", + "cmpId": "983da771-6610-4ebe-9517-8e9ac6e938f8", "shortcut": {}, "extensions": [], "isInvalid": false @@ -1634,16 +1666,16 @@ "allowEmpty": true }, { - "id": "runtimeitem1-vgy0-component-viewmodel", - "code": "runtimeitem1-vgy0-component-viewmodel", - "name": "{{'test' }}", + "id": "runtimeitem1-stae-component-viewmodel", + "code": "runtimeitem1-stae-component-viewmodel", + "name": "运行时明细1", "bindTo": "/runtimeItem1s", "parent": "root-viewmodel", "fields": [ { "type": "Form", - "id": "3df94820-efa6-48a6-8d47-112ac47e3302", - "fieldName": "id", + "id": "11bdf429-f332-475b-983b-ae82fba00e8f", + "fieldName": "noteField", "groupId": null, "groupName": null, "updateOn": "blur", @@ -1651,11 +1683,11 @@ }, { "type": "Form", - "id": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "fieldName": "parentID", + "id": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "fieldName": "booleanField", "groupId": null, "groupName": null, - "updateOn": "blur", + "updateOn": "change", "fieldSchema": {} }, { @@ -1665,9 +1697,7 @@ "groupId": null, "groupName": null, "updateOn": "blur", - "fieldSchema": { - "require": true - } + "fieldSchema": {} }, { "type": "Form", @@ -1677,28 +1707,12 @@ "groupName": null, "updateOn": "blur", "fieldSchema": {} - }, - { - "type": "Form", - "id": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "fieldName": "booleanField", - "groupId": null, - "groupName": null, - "updateOn": "change", - "fieldSchema": { - "editor": { - "$type": "CheckBox" - }, - "name": "布尔", - "require": false, - "readonly": false - } } ], "commands": [ { - "id": "3a2f8aee-605b-4789-a971-43ba31c60b61", - "code": "runtimeitem1vgy0AddItem1", + "id": "d7d5d33a-0b1b-4477-9c9f-bfdcc3a9b9d7", + "code": "runtimeitem1staeAddItem1", "name": "增加一条子表数据1", "params": [], "handlerName": "AddItem", @@ -1708,14 +1722,14 @@ "isInvalid": false }, { - "id": "5a844e51-0196-44e6-ac4c-e9c4d235a894", - "code": "runtimeitem1vgy0RemoveItem1", + "id": "1ec4653e-3b87-45aa-8a8e-e1a689b0ca9d", + "code": "runtimeitem1staeRemoveItem1", "name": "删除一条子表数据1", "params": [ { "name": "id", "shownName": "待删除子表数据的标识", - "value": "{DATA~/#{runtimeitem1-vgy0-component}/runtimeItem1s/id}" + "value": "{DATA~/#{runtimeitem1-stae-component}/runtimeItem1s/id}" } ], "handlerName": "RemoveItem", @@ -1729,8 +1743,7 @@ "enableValidation": true, "pagination": { "enable": false - }, - "allowEmpty": true + } } ], "components": [ @@ -1915,7 +1928,7 @@ "visible": true }, { - "id": "container_8036", + "id": "container_6845", "type": "ContentContainer", "appearance": { "class": "f-struct-wrapper" @@ -1923,7 +1936,7 @@ "visible": true, "contents": [ { - "id": "section_8036", + "id": "section_6845", "type": "Section", "appearance": { "class": "f-section-in-mainsubcard" @@ -1950,9 +1963,9 @@ "extendedAreaTemplate": "", "contents": [ { - "id": "runtimeitem1-vgy0-component-ref", + "id": "runtimeitem1-stae-component-ref", "type": "ComponentRef", - "component": "runtimeitem1-vgy0-component", + "component": "runtimeitem1-stae-component", "visible": true } ], @@ -1962,7 +1975,7 @@ "position": "inHead", "contents": [ { - "id": "runtimeitem1-vgy0-component-button-add", + "id": "runtimeitem1-stae-component-button-add", "type": "SectionToolbarItem", "title": "新增", "disable": "!viewModel.stateMachine['canAddDetail']", @@ -1970,14 +1983,14 @@ "class": "btn btn-secondary f-btn-ml" }, "visible": true, - "click": "root-viewModel.runtimeitem1-vgy0-component-viewmodel.runtimeitem1vgy0AddItem1", + "click": "root-viewModel.runtimeitem1-stae-component-viewmodel.runtimeitem1staeAddItem1", "items": [], "split": false, "visibleControlledByRules": true, "disableControlledByRules": true }, { - "id": "runtimeitem1-vgy0-component-button-remove", + "id": "runtimeitem1-stae-component-button-remove", "type": "SectionToolbarItem", "title": "删除", "disable": "!viewModel.stateMachine['canRemoveDetail']", @@ -1985,7 +1998,7 @@ "class": "btn btn-secondary f-btn-ml" }, "visible": true, - "click": "root-viewModel.runtimeitem1-vgy0-component-viewmodel.runtimeitem1vgy0RemoveItem1", + "click": "root-viewModel.runtimeitem1-stae-component-viewmodel.runtimeitem1staeRemoveItem1", "items": [], "split": false, "visibleControlledByRules": true, @@ -2178,7 +2191,9 @@ "hourStep": 1, "minuteStep": 1, "secondStep": 1, - "firstDayOfWeek": "mo" + "firstDayOfWeek": "mo", + "labelAutoOverflow": false, + "updateOn": "blur" }, { "id": "billStatus_BillState_a54c2230_pl5h", @@ -2309,7 +2324,9 @@ "message": "" }, "autoHeight": false, - "maxHeight": 500 + "maxHeight": 500, + "labelAutoOverflow": false, + "updateOn": "blur" }, { "id": "code_b86fa068_y9fz", @@ -2350,7 +2367,7 @@ "showCloseButton": null, "resizable": null, "buttonAlign": null, - "mapFields": "", + "mapFields": "{'id':'version','code':'numberField1,name'}", "lookupStyle": "popup", "holdPlace": false, "isTextArea": true, @@ -2553,6 +2570,54 @@ "fieldValueChanging": "", "fieldValueChanged": "" }, + { + "id": "treeField_ParentElement_2bd38907_g3u4", + "type": "CheckGroup", + "titleSourceType": "static", + "title": "父节点字段", + "controlSource": "Farris", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "checked": false, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "binding": { + "type": "Form", + "path": "treeField_ParentElement", + "field": "2bd38907-b2b6-4ff2-bcc4-5c4d5534d02c", + "fullPath": "treeField.ParentElement" + }, + "visible": true, + "size": null, + "holdPlace": false, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "setCheckboxData": "", + "items": null, + "isHorizontal": true, + "splitter": null, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "dataSourceType": "static", + "textField": "name", + "valueField": "value", + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "changeValue": null, + "path": "treeField.parentElement", + "visibleControlledByRules": false, + "readonlyControlledByRules": false, + "requireControlledByRules": false, + "labelAutoOverflow": false, + "updateOn": "blur", + "fieldValueChanging": "", + "fieldValueChanged": "" + }, { "id": "numberField1_a53ae211_gle2", "type": "NumericBox", @@ -2610,6 +2675,45 @@ "labelAutoOverflow": false, "updateOn": "blur" }, + { + "id": "attachmentFile_FileName_9d012316_epmk", + "type": "RadioGroup", + "titleSourceType": "static", + "title": "附件名称", + "binding": { + "type": "Form", + "path": "attachmentFile_FileName", + "field": "9d012316-1497-4526-86f9-290aab400e0b", + "fullPath": "AttachmentFile.FileName" + }, + "placeHolder": "", + "enumData": null, + "isHorizontal": true, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "holdPlace": false, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "dataSourceType": "static", + "textField": "name", + "valueField": "value", + "path": "attachmentFile.fileName", + "visibleControlledByRules": false, + "readonlyControlledByRules": false, + "requireControlledByRules": false, + "labelAutoOverflow": false, + "updateOn": "blur" + }, { "id": "floatField_173f0950_91tt", "type": "NumericBox", @@ -2665,7 +2769,9 @@ "readonlyControlledByRules": true, "requireControlledByRules": true, "labelAutoOverflow": false, - "updateOn": "blur" + "updateOn": "blur", + "fieldValueChanging": "", + "fieldValueChanged": "" } ], "controlsInline": true, @@ -2825,9 +2931,9 @@ ] }, { - "id": "runtimeitem1-vgy0-component", + "id": "runtimeitem1-stae-component", "type": "Component", - "viewModel": "runtimeitem1-vgy0-component-viewmodel", + "viewModel": "runtimeitem1-stae-component-viewmodel", "componentType": "dataGrid", "appearance": { "class": "f-struct-is-subgrid" @@ -2837,7 +2943,7 @@ "afterViewInit": null, "contents": [ { - "id": "runtimeitem1-vgy0-component-layout", + "id": "runtimeitem1-stae-component-layout", "type": "ContentContainer", "appearance": { "class": "f-grid-is-sub f-utils-flex-column" @@ -2845,7 +2951,7 @@ "visible": true, "contents": [ { - "id": "runtimeitem1-vgy0-dataGrid", + "id": "runtimeitem1-stae-dataGrid", "type": "DataGrid", "controlSource": "Farris", "appearance": { @@ -2855,71 +2961,67 @@ "dataSource": "runtimeItem1s", "fields": [ { - "id": "id_3df94820_clzf", + "id": "noteField_11bdf429_uj96", "type": "GridField", "controlSource": "Farris", - "caption": "主键", + "caption": "备注", "binding": { "type": "Form", - "path": "id", - "field": "3df94820-efa6-48a6-8d47-112ac47e3302", - "fullPath": "ID" + "path": "noteField", + "field": "11bdf429-f332-475b-983b-ae82fba00e8f", + "fullPath": "noteField" }, "appearance": null, "size": { "width": 120 }, "readonly": false, - "dataField": "id", + "dataField": "noteField", "dataType": "string", "displayTemplate": null, "captionTemplate": null, "editor": { - "id": "id_3df94820_67wq", - "type": "TextBox", + "id": "noteField_11bdf429_h4yb", + "type": "MultiTextBox", "titleSourceType": "static", - "title": "主键", + "title": "备注", "appearance": { "class": "" }, "size": null, "binding": { "type": "Form", - "path": "id", - "field": "3df94820-efa6-48a6-8d47-112ac47e3302", - "fullPath": "ID" + "path": "noteField", + "field": "11bdf429-f332-475b-983b-ae82fba00e8f", + "fullPath": "noteField" }, - "require": true, + "require": false, "disable": false, "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, + "maxLength": 0, + "holdPlace": false, "linkedLabelEnabled": false, "linkedLabelClick": null, "visible": true, - "holdPlace": false, "isTextArea": true, - "isPassword": false, "tabindex": -1, "hasDefaultFocus": false, "focusState": null, "titleWidth": null, - "enableTips": true, - "path": "id", + "editType": "default", + "dialogWidth": 500, + "dialogHeight": 400, + "autoHeight": false, + "maxHeight": 500, + "enableWordCount": false, + "countType": "surplus", + "onlyShowInDialog": false, "enableAppend": false, "inputAppendType": "button", "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "requireControlledByRules": false, - "updateOn": "blur" + "useComments": false, + "path": "noteField", + "requireControlledByRules": true }, "draggable": false, "frozen": "none", @@ -2960,75 +3062,60 @@ "captionTipContent": "", "captionTipStyler": "", "enableBatchEdit": false, - "localizationType": "Date", - "visibleControlledByRules": false, - "readonlyControlledByRules": false + "visibleControlledByRules": true, + "readonlyControlledByRules": true, + "localizationType": "Date" }, { - "id": "parentID_ee23f329_uzdm", + "id": "booleanField_e4f457e3_zoer", "type": "GridField", "controlSource": "Farris", - "caption": "上级对象主键", + "caption": "布尔", "binding": { "type": "Form", - "path": "parentID", - "field": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "fullPath": "ParentID" + "path": "booleanField", + "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "fullPath": "booleanField" }, "appearance": null, "size": { "width": 120 }, "readonly": false, - "dataField": "parentID", - "dataType": "string", + "dataField": "booleanField", + "dataType": "boolean", "displayTemplate": null, "captionTemplate": null, "editor": { - "id": "parentID_ee23f329_p92l", - "type": "TextBox", + "id": "booleanField_e4f457e3_jxyk", + "type": "CheckBox", "titleSourceType": "static", - "title": "上级对象主键", + "title": "布尔", + "require": false, + "disable": false, + "binding": { + "type": "Form", + "path": "booleanField", + "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "fullPath": "booleanField" + }, + "visible": true, "appearance": { "class": "" }, "size": null, - "binding": { - "type": "Form", - "path": "parentID", - "field": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "fullPath": "ParentID" - }, - "require": true, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, + "holdPlace": false, "linkedLabelEnabled": false, "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, "tabindex": -1, "hasDefaultFocus": false, "focusState": null, "titleWidth": null, - "enableTips": true, - "path": "parentID", "enableAppend": false, "inputAppendType": "button", "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "requireControlledByRules": false + "path": "booleanField", + "requireControlledByRules": true }, "draggable": false, "frozen": "none", @@ -3054,7 +3141,9 @@ "hAlign": "left", "vAlign": "middle", "formatter": { - "type": "none" + "type": "boolean", + "trueText": "是", + "falseText": "否" }, "showTips": false, "tipContent": null, @@ -3069,12 +3158,11 @@ "captionTipContent": "", "captionTipStyler": "", "enableBatchEdit": false, - "localizationType": "Date", - "visibleControlledByRules": false, - "readonlyControlledByRules": false + "visibleControlledByRules": true, + "readonlyControlledByRules": true }, { - "id": "code_c864358f_pvwg", + "id": "code_c864358f_52i4", "type": "GridField", "controlSource": "Farris", "caption": "编号", @@ -3094,7 +3182,7 @@ "displayTemplate": null, "captionTemplate": null, "editor": { - "id": "code_c864358f_btp2", + "id": "code_c864358f_wnzz", "type": "TextBox", "titleSourceType": "static", "title": "编号", @@ -3108,7 +3196,7 @@ "field": "c864358f-cb3c-4b2b-960e-423754e28ea8", "fullPath": "code" }, - "require": true, + "require": false, "disable": false, "placeHolder": "", "format": null, @@ -3137,8 +3225,7 @@ }, "autoHeight": false, "maxHeight": 500, - "requireControlledByRules": true, - "updateOn": "blur" + "requireControlledByRules": true }, "draggable": false, "frozen": "none", @@ -3184,7 +3271,7 @@ "readonlyControlledByRules": true }, { - "id": "name_a6c40426_ywb9", + "id": "name_a6c40426_wcj7", "type": "GridField", "controlSource": "Farris", "caption": "名称", @@ -3204,7 +3291,7 @@ "displayTemplate": null, "captionTemplate": null, "editor": { - "id": "name_a6c40426_fds8", + "id": "name_a6c40426_aly0", "type": "TextBox", "titleSourceType": "static", "title": "名称", @@ -3291,108 +3378,11 @@ "localizationType": "Date", "visibleControlledByRules": true, "readonlyControlledByRules": true - }, - { - "id": "booleanField_e4f457e3_2q97", - "type": "GridField", - "controlSource": "Farris", - "caption": "布尔", - "binding": { - "type": "Form", - "path": "booleanField", - "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "fullPath": "booleanField" - }, - "appearance": null, - "size": { - "width": 120 - }, - "readonly": false, - "dataField": "booleanField", - "dataType": "boolean", - "displayTemplate": null, - "captionTemplate": null, - "editor": { - "id": "booleanField_e4f457e3_nzmm", - "type": "CheckBox", - "titleSourceType": "static", - "title": "布尔", - "require": false, - "disable": false, - "binding": { - "type": "Form", - "path": "booleanField", - "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "fullPath": "booleanField" - }, - "visible": true, - "appearance": { - "class": "" - }, - "size": null, - "holdPlace": false, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "path": "booleanField", - "requireControlledByRules": true, - "isRTControl": false, - "updateOn": "change" - }, - "draggable": false, - "frozen": "none", - "sortable": true, - "enumData": null, - "idField": "value", - "textField": "name", - "aggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "groupAggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "textAlign": "left", - "hAlign": "left", - "vAlign": "middle", - "formatter": { - "type": "boolean", - "trueText": "是", - "falseText": "否" - }, - "showTips": false, - "tipContent": null, - "multiLanguage": false, - "visible": true, - "enableFilter": false, - "headerStyler": "", - "styler": "", - "localization": false, - "allowGrouping": true, - "tipMode": "auto", - "captionTipContent": "", - "captionTipStyler": "", - "enableBatchEdit": true, - "visibleControlledByRules": true, - "readonlyControlledByRules": true } ], "focusedItem": null, "focusedIndex": null, - "pagination": false, + "pagination": true, "lockPagination": "viewModel.stateMachine&&viewModel.stateMachine['editable']", "showPageSize": false, "identifyField": null, @@ -3472,7 +3462,7 @@ "showScrollArrow": false, "footerPosition": "bottom", "footerStyler": null, - "selectOnEditing": true, + "selectOnEditing": false, "selectionMode": "custom", "enableContextMenu": false, "disableGroupOnEditing": true, @@ -3501,8 +3491,7 @@ "filterChanged": null, "enableEditStateFilterSorting": false, "showConfirmWhenSchemeChanged": false, - "enableSetMultiHeaders": false, - "allowEmpty": true + "enableSetMultiHeaders": false } ], "isScrollspyContainer": false, @@ -3558,11 +3547,11 @@ "handler": "ChangeItem" }, { - "host": "3a2f8aee-605b-4789-a971-43ba31c60b61", + "host": "d7d5d33a-0b1b-4477-9c9f-bfdcc3a9b9d7", "handler": "AddItem" }, { - "host": "5a844e51-0196-44e6-ac4c-e9c4d235a894", + "host": "1ec4653e-3b87-45aa-8a8e-e1a689b0ca9d", "handler": "RemoveItem" } ], @@ -3594,14 +3583,23 @@ { "host": "childattachment1egs8AddFileRows-id", "handler": "addFileRows" - }, - { - "host": "childattachment1egs8RemoveFileRows-id", - "handler": "removeFileRows" } ], "code": "FileController", "nameSpace": "Inspur.GS.Gsp.Web.AttachmentCmp" + }, + { + "id": "983da771-6610-4ebe-9517-8e9ac6e938f8", + "path": "MyDev/AngularTest/RuntimeTest/bo-runtimetest-front/metadata/components", + "name": "PC卡片测试_frm_Controller", + "refedHandlers": [ + { + "host": "childattachment1egs8RemoveFileRows-id", + "handler": "childattachment1egs8RemoveFileRows" + } + ], + "code": "PCCardFormTest_frm_Controller", + "nameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front" } ], "serviceRefs": [], @@ -3893,8 +3891,8 @@ }, { "sourceComponent": { - "id": "runtimeitem1-vgy0-component-button-add", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel", + "id": "runtimeitem1-stae-component-button-add", + "viewModelId": "runtimeitem1-stae-component-viewmodel", "map": [ { "event": { @@ -3902,12 +3900,12 @@ "name": "点击事件" }, "targetComponent": { - "id": "runtimeitem1-vgy0-component", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel" + "id": "runtimeitem1-stae-component", + "viewModelId": "runtimeitem1-stae-component-viewmodel" }, "command": { - "id": "3a2f8aee-605b-4789-a971-43ba31c60b61", - "label": "runtimeitem1vgy0AddItem1", + "id": "d7d5d33a-0b1b-4477-9c9f-bfdcc3a9b9d7", + "label": "runtimeitem1staeAddItem1", "name": "增加一条子表数据1", "handlerName": "AddItem", "params": [], @@ -3926,8 +3924,8 @@ }, { "sourceComponent": { - "id": "runtimeitem1-vgy0-component-button-remove", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel", + "id": "runtimeitem1-stae-component-button-remove", + "viewModelId": "runtimeitem1-stae-component-viewmodel", "map": [ { "event": { @@ -3935,19 +3933,19 @@ "name": "点击事件" }, "targetComponent": { - "id": "runtimeitem1-vgy0-component", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel" + "id": "runtimeitem1-stae-component", + "viewModelId": "runtimeitem1-stae-component-viewmodel" }, "command": { - "id": "5a844e51-0196-44e6-ac4c-e9c4d235a894", - "label": "runtimeitem1vgy0RemoveItem1", + "id": "1ec4653e-3b87-45aa-8a8e-e1a689b0ca9d", + "label": "runtimeitem1staeRemoveItem1", "name": "删除一条子表数据1", "handlerName": "RemoveItem", "params": [ { "name": "id", "shownName": "待删除子表数据的标识", - "value": "{DATA~/#{runtimeitem1-vgy0-component}/runtimeItem1s/id}" + "value": "{DATA~/#{runtimeitem1-stae-component}/runtimeItem1s/id}" } ], "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", @@ -4026,7 +4024,8 @@ { "name": "fileInfoFieldPath", "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" + "value": "/childAttachment1s/attachment", + "defaultValue": null } ], "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", @@ -4052,22 +4051,23 @@ "id": "childattachment1egs8RemoveFileRows-id", "label": "childattachment1egs8RemoveFileRows", "name": "批量删除文件数据", - "handlerName": "removeFileRows", + "handlerName": "childattachment1egs8RemoveFileRows", "params": [ { "name": "fileInfoFieldPath", "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" + "value": "/childAttachment1s/attachment", + "defaultValue": null } ], - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "cmpId": "983da771-6610-4ebe-9517-8e9ac6e938f8", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "label": "FileController", - "name": "文件控制器" + "id": "983da771-6610-4ebe-9517-8e9ac6e938f8", + "label": "PCCardFormTest_frm_Controller", + "name": "PC卡片测试_frm_Controller" } } ] diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json index b2c6a9abfa65d9da9b3a246ea7561439fd107d7f..d4ca348c09d7139dc96925650c6bbb4cb8751cf1 100644 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json @@ -1,24 +1,26 @@ { "module": { - "id": "58c44201-64df-436c-a57c-a36f94a2414b", - "code": "PCFormTest", - "name": "PC表单测试", + "id": "ec4d57b1-4f66-459e-970c-2c1896f726f6", + "code": "ResponsiveCard", + "name": "响应式卡片", "type": "Module", "creator": "lijiangkun", - "creationDate": "2025-04-12T07:59:57.479Z", + "creationDate": "2025-12-03T00:48:05.678Z", "templateId": "card-template", "templateRule": "card-template", "entity": [ { - "eapiId": "bebb83f9-499d-4fda-8466-1b6a6f721353", - "eapiCode": "PCFormTest_frm", - "eapiName": "PC表单测试_frm", - "eapiNameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", - "voPath": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", - "voNameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", - "name": "PC表单测试_frm", - "id": "4801eb04-71d2-4420-813c-496ed48c65c0", + "eapiId": "b428a490-f1dd-4479-acb3-e5fb80fabfbf", + "eapiCode": "ResponsiveCard_frm", + "eapiName": "响应式卡片_frm", + "eapiNameSpace": "Inspur.GS.MyDev.FarrisVueTest.DesignTest.DesignTest.Front", + "voPath": "MyDev/FarrisVueTest/DesignTest/bo-designtest-front/metadata/components", + "voNameSpace": "Inspur.GS.MyDev.FarrisVueTest.DesignTest.DesignTest.Front", + "extendProperties": { + "enableStdTimeFormat": true + }, "sourceType": "vo", + "id": "a93e510f-0393-4f96-853a-b121828c82f0", "variables": [ { "$type": "SimpleField", @@ -26,11 +28,11 @@ "editor": { "$type": "TextBox" }, + "readonly": false, "require": false, "multiLanguage": false, - "readonly": false, "name": "表单流程配置", - "id": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", + "id": "c9826d69-88fd-4197-80cd-1261463a5310", "type": { "$type": "StringType", "length": 36, @@ -38,97 +40,92 @@ "displayName": "字符串" }, "path": "bffSysFormConfigId", - "originalId": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", + "originalId": "c9826d69-88fd-4197-80cd-1261463a5310", + "code": "bffSysFormConfigId", "label": "bffSysFormConfigId", - "bindingField": "bffSysFormConfigId", "bindingPath": "bffSysFormConfigId", - "code": "bffSysFormConfigId" + "bindingField": "bffSysFormConfigId" } ], + "code": "ResponsiveCard_frm", "entities": [ { - "name": "Vue测试", - "id": "75e5f57b-3a02-4177-9846-1a5d0ba2c885", + "label": "saleOrders", "type": { "$type": "EntityType", + "primary": "id", "fields": [ { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "TextBox" }, - "require": true, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "主键", - "id": "52fc4c0e-f155-4c01-9fe6-54fd08795ae0", + "multiLanguage": false, + "require": true, + "label": "id", + "originalId": "44938752-5fc9-4137-a0d0-391f7f0461c0", + "path": "ID", "type": { "$type": "StringType", + "displayName": "字符串", "length": 36, - "name": "String", - "displayName": "字符串" + "name": "String" }, - "path": "ID", - "originalId": "52fc4c0e-f155-4c01-9fe6-54fd08795ae0", - "label": "id", - "bindingField": "id", + "id": "44938752-5fc9-4137-a0d0-391f7f0461c0", + "code": "ID", "bindingPath": "id", - "code": "ID" + "bindingField": "id", + "name": "主键" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "DateBox", "format": "'yyyy-MM-dd'" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "版本", - "id": "10b522a5-9dd3-437e-bd29-bf57a58b3fb3", + "multiLanguage": false, + "require": false, + "label": "version", + "originalId": "fabd3a03-e121-406b-86ea-96f0e975fca5", + "path": "Version", "type": { "$type": "DateTimeType", - "name": "DateTime", - "displayName": "日期时间" + "displayName": "日期时间", + "name": "DateTime" }, - "path": "Version", - "originalId": "10b522a5-9dd3-437e-bd29-bf57a58b3fb3", - "label": "version", - "bindingField": "version", + "id": "fabd3a03-e121-406b-86ea-96f0e975fca5", + "code": "Version", "bindingPath": "version", - "code": "Version" + "bindingField": "version", + "name": "版本" }, { "$type": "ComplexField", - "name": "状态", - "id": "e7c488df-8456-48d8-be1c-2cc6cc1cba8b", + "label": "billStatus", + "originalId": "8ca89120-8222-4f05-8e16-6576128b7c07", + "path": "BillStatus", "type": { "$type": "ObjectType", - "name": "BillStateE7c4", "fields": [ { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "EnumField" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "状态", - "id": "e7c488df-0101-468f-ae3f-40c76c0f06b0", + "multiLanguage": false, + "require": false, + "label": "billState", + "originalId": "a0b19650-0101-468f-ae3f-40c76c0f06b0", + "path": "BillStatus.BillState", "type": { "$type": "EnumType", - "name": "Enum", "displayName": "枚举", - "valueType": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, "enumValues": [ { "disabled": false, @@ -150,208 +147,224 @@ "name": "审批不通过", "value": "ApprovalNotPassed" } - ] + ], + "valueType": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "name": "Enum" }, - "path": "BillStatus.BillState", - "originalId": "a0b19650-0101-468f-ae3f-40c76c0f06b0", - "label": "billState", - "bindingField": "billStatus_BillState", + "id": "8ca89120-0101-468f-ae3f-40c76c0f06b0", + "code": "BillState", "bindingPath": "billStatus.billState", - "code": "BillState" + "bindingField": "billStatus_BillState", + "name": "状态" } ], + "name": "BillState8ca8", "displayName": "状态" }, - "path": "BillStatus", - "originalId": "e7c488df-8456-48d8-be1c-2cc6cc1cba8b", - "label": "billStatus", - "bindingField": "billStatus", + "id": "8ca89120-8222-4f05-8e16-6576128b7c07", + "code": "BillStatus", "bindingPath": "billStatus", - "code": "BillStatus" + "bindingField": "billStatus", + "name": "状态" }, { "$type": "ComplexField", - "name": "流程实例", - "id": "5d3fd927-71bc-4687-9be1-55d94033dd47", + "label": "processInstance", + "originalId": "3eb2f7c4-d42b-4f29-b9a5-ca6a7eedba08", + "path": "ProcessInstance", "type": { "$type": "ObjectType", - "name": "ProcessInstance5d3f", "fields": [ { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "TextBox" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "流程实例", - "id": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", + "multiLanguage": false, + "require": false, + "label": "processInstance", + "originalId": "2e1beb7d-ad8f-4da3-a430-c8a7f2162135", + "path": "ProcessInstance.ProcessInstance", "type": { "$type": "StringType", + "displayName": "字符串", "length": 36, - "name": "String", - "displayName": "字符串" + "name": "String" }, - "path": "ProcessInstance.ProcessInstance", - "originalId": "2e1beb7d-ad8f-4da3-a430-c8a7f2162135", - "label": "processInstance", - "bindingField": "processInstance_ProcessInstance", + "id": "3eb2f7c4-ad8f-4da3-a430-c8a7f2162135", + "code": "ProcessInstance", "bindingPath": "processInstance.processInstance", - "code": "ProcessInstance" + "bindingField": "processInstance_ProcessInstance", + "name": "流程实例" } ], + "name": "ProcessInstance3eb2", "displayName": "流程实例" }, - "path": "ProcessInstance", - "originalId": "5d3fd927-71bc-4687-9be1-55d94033dd47", - "label": "processInstance", - "bindingField": "processInstance", + "id": "3eb2f7c4-d42b-4f29-b9a5-ca6a7eedba08", + "code": "ProcessInstance", "bindingPath": "processInstance", - "code": "ProcessInstance" + "bindingField": "processInstance", + "name": "流程实例" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "TextBox" }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "编号", - "id": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "code", - "originalId": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "label": "code", - "bindingField": "code", - "bindingPath": "code", - "code": "code" - }, - { - "$type": "SimpleField", "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, "readonly": false, - "name": "名称", - "id": "3410f627-358c-4a1a-99b4-800e9d0211e0", + "multiLanguage": false, + "require": false, + "label": "orderCode", + "originalId": "320286b8-119a-43a9-ac4b-d627f64ee414", + "path": "OrderCode", "type": { "$type": "StringType", + "displayName": "字符串", "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "name", - "originalId": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "label": "name", - "bindingField": "name", - "bindingPath": "name", - "code": "name" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "CheckBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "布尔字段", - "id": "c419df06-d982-44ca-8e48-b366b778049a", - "type": { - "$type": "BooleanType", - "name": "Boolean", - "displayName": "布尔" + "name": "String" }, - "path": "booleanField", - "originalId": "c419df06-d982-44ca-8e48-b366b778049a", - "label": "booleanField", - "bindingField": "booleanField", - "bindingPath": "booleanField", - "code": "booleanField" + "id": "320286b8-119a-43a9-ac4b-d627f64ee414", + "code": "OrderCode", + "bindingPath": "orderCode", + "bindingField": "orderCode", + "name": "订单编号" }, { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "NumericBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "数值字段", - "id": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", + "$type": "ComplexField", + "label": "merchant", + "originalId": "2190dbc3-6a5b-4122-85b0-d9eea8d7a9cb", + "path": "Merchant", "type": { - "$type": "NumericType", - "length": 0, - "name": "Number", - "displayName": "数字", - "precision": 0 + "$type": "EntityType", + "primary": "merchant", + "fields": [ + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "merchant", + "originalId": "a3569dcd-ff8e-40ea-aaf7-3c81b417fcbc", + "path": "Merchant.Merchant", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "a3569dcd-ff8e-40ea-aaf7-3c81b417fcbc", + "code": "Merchant", + "bindingPath": "merchant.merchant", + "bindingField": "merchant", + "name": "商户" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "merchant_name", + "originalId": "ed091667-67f8-4aa2-8698-6f3d8dcf220f", + "path": "Merchant.Merchant_name", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 100, + "name": "String" + }, + "id": "ed091667-67f8-4aa2-8698-6f3d8dcf220f", + "code": "name", + "bindingPath": "merchant.merchant_name", + "bindingField": "merchant_Merchant_name", + "name": "名称" + } + ], + "entities": [], + "displayName": "系统组织", + "name": "SysOrgA356" }, - "path": "numberField", - "originalId": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "label": "numberField", - "bindingField": "numberField", - "bindingPath": "numberField", - "code": "numberField" + "id": "2190dbc3-6a5b-4122-85b0-d9eea8d7a9cb", + "code": "Merchant", + "bindingPath": "merchant", + "bindingField": "merchant", + "name": "商户" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "DateBox", "format": "'yyyy-MM-dd'" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "日期字段", - "id": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", + "multiLanguage": false, + "require": false, + "label": "orderTime", + "originalId": "619bf31e-346b-4675-abb7-5ccca90b2903", + "path": "OrderTime", "type": { - "$type": "DateType", - "name": "Date", - "displayName": "日期" + "$type": "DateTimeType", + "displayName": "日期时间", + "name": "DateTime" }, - "path": "dateField", - "originalId": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "label": "dateField", - "bindingField": "dateField", - "bindingPath": "dateField", - "code": "dateField" + "id": "619bf31e-346b-4675-abb7-5ccca90b2903", + "code": "OrderTime", + "bindingPath": "orderTime", + "bindingField": "orderTime", + "name": "下单时间" }, { "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", "editor": { "$type": "EnumField" }, + "defaultValue": "", "readonly": false, - "originalId": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "name": "eumu1", - "id": "2092e529-c1cd-444d-98f5-6e11db8be5b7", + "multiLanguage": false, + "require": false, + "label": "payMethod", + "originalId": "2cd7971c-a652-43b4-bfd8-c34eda8fd9a8", + "path": "PayMethod", "type": { "$type": "EnumType", "displayName": "枚举", - "name": "Enum", "enumValues": [ { "disabled": false, - "name": "testname", - "value": "test1" + "name": "现金", + "value": "Cash" + }, + { + "disabled": false, + "name": "银联", + "value": "Upay" + }, + { + "disabled": false, + "name": "微信", + "value": "WeChat" + }, + { + "disabled": false, + "name": "支付宝", + "value": "AiPay" } ], "valueType": { @@ -359,379 +372,923 @@ "displayName": "字符串", "length": 36, "name": "String" - } + }, + "name": "Enum" }, - "path": "eumu1", - "code": "eumu1", - "label": "eumu1", - "bindingField": "eumu1", - "bindingPath": "eumu1" + "id": "2cd7971c-a652-43b4-bfd8-c34eda8fd9a8", + "code": "PayMethod", + "bindingPath": "payMethod", + "bindingField": "payMethod", + "name": "支付方式" }, { "$type": "ComplexField", - "originalId": "9652a7a9-5e65-41a8-a3c0-6d0da6a7504e", - "name": "ass1", - "id": "9652a7a9-5e65-41a8-a3c0-6d0da6a7504e", + "label": "orderPerson", + "originalId": "a85de375-443e-4b63-bdfc-fc3864d31a08", + "path": "OrderPerson", "type": { "$type": "EntityType", + "primary": "orderPerson", "fields": [ { "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", "editor": { "$type": "TextBox" }, + "defaultValue": "", "readonly": false, - "originalId": "8760c74c-9141-46ea-a9fb-408db9a41e61", - "name": "ass1", - "id": "8760c74c-9141-46ea-a9fb-408db9a41e61", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "path": "ass1.ass1", - "code": "ass1", - "label": "ass1", - "bindingField": "ass1", - "bindingPath": "ass1.ass1" - }, - { - "$type": "SimpleField", "multiLanguage": false, "require": false, - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "readonly": false, - "originalId": "3c45b0e6-2695-4085-a861-e451ad139e0e", - "name": "编号", - "id": "3c45b0e6-2695-4085-a861-e451ad139e0e", + "label": "orderPerson", + "originalId": "e4ecb7fa-65d4-4a06-9056-eedff8d6d554", + "path": "OrderPerson.OrderPerson", "type": { "$type": "StringType", "displayName": "字符串", "length": 36, "name": "String" }, - "path": "ass1.ass1_Code", - "code": "Code", - "label": "ass1_Code", - "bindingField": "ass1_ass1_Code", - "bindingPath": "ass1.ass1_Code" + "id": "e4ecb7fa-65d4-4a06-9056-eedff8d6d554", + "code": "OrderPerson", + "bindingPath": "orderPerson.orderPerson", + "bindingField": "orderPerson", + "name": "下单人" }, { "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", "editor": { "$type": "TextBox" }, + "defaultValue": "", "readonly": false, - "originalId": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "name": "名称", - "id": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", + "multiLanguage": false, + "require": false, + "label": "orderPerson_Name", + "originalId": "301100df-cc10-4859-b645-db88538b3403", + "path": "OrderPerson.OrderPerson_Name", "type": { "$type": "StringType", "displayName": "字符串", "length": 36, "name": "String" }, - "path": "ass1.ass1_Name", + "id": "301100df-cc10-4859-b645-db88538b3403", "code": "Name", - "label": "ass1_Name", - "bindingField": "ass1_ass1_Name", - "bindingPath": "ass1.ass1_Name" + "bindingPath": "orderPerson.orderPerson_Name", + "bindingField": "orderPerson_OrderPerson_Name", + "name": "名称" } ], - "primary": "ass1", "entities": [], "displayName": "用户", - "name": "GspUser8760" + "name": "GspUserE4Ec" }, - "path": "ass1", - "code": "ass1", - "label": "ass1", - "bindingField": "ass1", - "bindingPath": "ass1" + "id": "a85de375-443e-4b63-bdfc-fc3864d31a08", + "code": "OrderPerson", + "bindingPath": "orderPerson", + "bindingField": "orderPerson", + "name": "下单人" }, { - "$type": "ComplexField", - "originalId": "46b400d4-0f47-42f2-9f6e-df6a95c21235", - "name": "dy1", - "id": "46b400d4-0f47-42f2-9f6e-df6a95c21235", + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "telephone", + "originalId": "67d14df7-b8d0-4679-b184-ee942a0d87c0", + "path": "Telephone", "type": { - "$type": "DynamicObjectType", - "name": "DynamicEntity", - "displayName": null + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" }, - "path": "dy1", - "code": "dy1", - "label": "dy1", - "bindingField": "dy1", - "bindingPath": "dy1" - } - ], - "primary": "id", - "entities": [ + "id": "67d14df7-b8d0-4679-b184-ee942a0d87c0", + "code": "Telephone", + "bindingPath": "telephone", + "bindingField": "telephone", + "name": "联系电话" + }, { - "name": "子表1", - "id": "9b108121-4e38-42d7-bd2c-9c7647dd8d77", + "$type": "SimpleField", + "editor": { + "$type": "EnumField" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "sendState", + "originalId": "3cd8435a-e667-495f-b08f-44f10b14a52d", + "path": "SendState", "type": { - "$type": "EntityType", - "fields": [ + "$type": "EnumType", + "displayName": "枚举", + "enumValues": [ { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": true, - "multiLanguage": false, - "readonly": false, - "name": "主键", - "id": "466e5a86-120a-44a1-8ca6-80e1bdfdc3eb", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ID", - "originalId": "466e5a86-120a-44a1-8ca6-80e1bdfdc3eb", - "label": "id", - "bindingField": "id", - "bindingPath": "id", - "code": "ID" + "disabled": false, + "name": "未发货", + "value": "Unshipped" }, + { + "disabled": false, + "name": "已发货", + "value": "Shipped" + } + ], + "valueType": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "name": "Enum" + }, + "id": "3cd8435a-e667-495f-b08f-44f10b14a52d", + "code": "SendState", + "bindingPath": "sendState", + "bindingField": "sendState", + "name": "发货状态" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "MultiTextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "remark", + "originalId": "76f154be-7ded-43c6-8102-c523586acc6c", + "path": "Remark", + "type": { + "$type": "TextType", + "displayName": "文本", + "length": 100, + "name": "Text" + }, + "id": "76f154be-7ded-43c6-8102-c523586acc6c", + "code": "Remark", + "bindingPath": "remark", + "bindingField": "remark", + "name": "备注" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "totalPrice", + "originalId": "83491c18-d22f-4ded-b7a0-a730d863a8f9", + "path": "TotalPrice", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "83491c18-d22f-4ded-b7a0-a730d863a8f9", + "code": "TotalPrice", + "bindingPath": "totalPrice", + "bindingField": "totalPrice", + "name": "订单金额" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "totalDiscount", + "originalId": "6006c098-1d4b-41f6-8176-452bd2874885", + "path": "TotalDiscount", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "6006c098-1d4b-41f6-8176-452bd2874885", + "code": "TotalDiscount", + "bindingPath": "totalDiscount", + "bindingField": "totalDiscount", + "name": "折扣优惠" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "actualPay", + "originalId": "4b5b5386-65e3-4aec-8531-716991baca3f", + "path": "ActualPay", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "4b5b5386-65e3-4aec-8531-716991baca3f", + "code": "ActualPay", + "bindingPath": "actualPay", + "bindingField": "actualPay", + "name": "合计实付" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "orderSour", + "originalId": "61752adc-c793-46ad-8eab-af57fb89adf2", + "path": "OrderSour", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "61752adc-c793-46ad-8eab-af57fb89adf2", + "code": "OrderSour", + "bindingPath": "orderSour", + "bindingField": "orderSour", + "name": "订单来源" + }, + { + "$type": "SimpleField", + "multiLanguage": true, + "require": false, + "editor": { + "$type": "LanguageTextBox" + }, + "defaultValue": "", + "readonly": false, + "path": "name", + "id": "6fda293c-ea86-4af3-9e2f-4d7ca6d95180", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "originalId": "6fda293c-ea86-4af3-9e2f-4d7ca6d95180", + "code": "name", + "label": "name", + "bindingPath": "name", + "bindingField": "name", + "name": "名称" + } + ], + "entities": [ + { + "label": "orderItems", + "type": { + "$type": "EntityType", + "primary": "id", + "fields": [ { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "TextBox" }, - "require": true, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "上级对象主键", - "id": "bec1003e-8a76-4ce2-b6cb-cebf0b426e6a", + "multiLanguage": false, + "require": true, + "label": "id", + "originalId": "cf59f388-3622-4703-a027-f878cc208f11", + "path": "ID", "type": { "$type": "StringType", + "displayName": "字符串", "length": 36, - "name": "String", - "displayName": "字符串" + "name": "String" }, - "path": "ParentID", - "originalId": "bec1003e-8a76-4ce2-b6cb-cebf0b426e6a", - "label": "parentID", - "bindingField": "parentID", - "bindingPath": "parentID", - "code": "ParentID" + "id": "cf59f388-3622-4703-a027-f878cc208f11", + "code": "ID", + "bindingPath": "id", + "bindingField": "id", + "name": "主键" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "TextBox" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "编号", - "id": "e5a6411a-c30e-4259-8682-53685c53e62a", + "multiLanguage": false, + "require": true, + "label": "parentID", + "originalId": "7810a313-0cf5-4e9e-bfba-4f14ecde70e3", + "path": "ParentID", "type": { "$type": "StringType", + "displayName": "字符串", "length": 36, - "name": "String", - "displayName": "字符串" + "name": "String" + }, + "id": "7810a313-0cf5-4e9e-bfba-4f14ecde70e3", + "code": "ParentID", + "bindingPath": "parentID", + "bindingField": "parentID", + "name": "上级对象主键" + }, + { + "$type": "ComplexField", + "label": "goods", + "originalId": "2faa2e50-b428-492e-8559-386688badcee", + "path": "Goods", + "type": { + "$type": "EntityType", + "primary": "goods", + "fields": [ + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "goods", + "originalId": "22eb42b9-0ed0-435b-9e3c-6cbe4de73d39", + "path": "Goods.Goods", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "22eb42b9-0ed0-435b-9e3c-6cbe4de73d39", + "code": "Goods", + "bindingPath": "goods.goods", + "bindingField": "goods", + "name": "商品" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "goods_GoodsName", + "originalId": "248c9dd6-58a5-4962-b07d-2942c18f0e34", + "path": "Goods.Goods_GoodsName", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "248c9dd6-58a5-4962-b07d-2942c18f0e34", + "code": "GoodsName", + "bindingPath": "goods.goods_GoodsName", + "bindingField": "goods_Goods_GoodsName", + "name": "商品名称" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "goods_Specification", + "originalId": "af2d7a80-bff4-4b05-ae8e-0d754a833e64", + "path": "Goods.Goods_Specification", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "af2d7a80-bff4-4b05-ae8e-0d754a833e64", + "code": "Specification", + "bindingPath": "goods.goods_Specification", + "bindingField": "goods_Goods_Specification", + "name": "规格型号" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "goods_Price", + "originalId": "e1a742ef-343b-479e-aa03-7a196d734ecf", + "path": "Goods.Goods_Price", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "e1a742ef-343b-479e-aa03-7a196d734ecf", + "code": "Price", + "bindingPath": "goods.goods_Price", + "bindingField": "goods_Goods_Price", + "name": "单价" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "goods_GoodsCode", + "originalId": "0a9983dd-c14d-4b6b-8fc0-07d64f11eaba", + "path": "Goods.Goods_GoodsCode", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "0a9983dd-c14d-4b6b-8fc0-07d64f11eaba", + "code": "GoodsCode", + "bindingPath": "goods.goods_GoodsCode", + "bindingField": "goods_Goods_GoodsCode", + "name": "商品编号" + } + ], + "entities": [], + "displayName": "商品", + "name": "Goods22eb" }, - "path": "code", - "originalId": "e5a6411a-c30e-4259-8682-53685c53e62a", - "label": "code", - "bindingField": "code", - "bindingPath": "code", - "code": "code" + "id": "2faa2e50-b428-492e-8559-386688badcee", + "code": "Goods", + "bindingPath": "goods", + "bindingField": "goods", + "name": "商品" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { "$type": "TextBox" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "名称", - "id": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", + "multiLanguage": false, + "require": false, + "label": "specification", + "originalId": "280090bf-5688-4809-92d7-81c54f1663df", + "path": "Specification", "type": { "$type": "StringType", + "displayName": "字符串", "length": 36, - "name": "String", - "displayName": "字符串" + "name": "String" }, - "path": "name", - "originalId": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "label": "name", - "bindingField": "name", - "bindingPath": "name", - "code": "name" - } - ], - "primary": "id", - "entities": [], - "name": "Child1", - "displayName": "子表1" - }, - "label": "child1s", - "code": "Child1" - }, - { - "name": "子表2", - "id": "06d00b52-4477-4c7b-a63d-01654e195364", - "type": { - "$type": "EntityType", - "fields": [ + "id": "280090bf-5688-4809-92d7-81c54f1663df", + "code": "Specification", + "bindingPath": "specification", + "bindingField": "specification", + "name": "规格型号" + }, { "$type": "SimpleField", - "defaultValue": "", "editor": { - "$type": "TextBox" + "$type": "NumericBox" }, - "require": true, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "主键", - "id": "80fa5266-0fa2-4418-b225-61efcf2309ed", + "multiLanguage": false, + "require": false, + "label": "quality", + "originalId": "1a3b1585-e749-418c-91c5-8ccb7ab30f71", + "path": "Quality", "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" + "$type": "NumericType", + "displayName": "数字", + "precision": 0, + "length": 0, + "name": "Number" }, - "path": "ID", - "originalId": "80fa5266-0fa2-4418-b225-61efcf2309ed", - "label": "id", - "bindingField": "id", - "bindingPath": "id", - "code": "ID" + "id": "1a3b1585-e749-418c-91c5-8ccb7ab30f71", + "code": "Quality", + "bindingPath": "quality", + "bindingField": "quality", + "name": "数量" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { - "$type": "TextBox" + "$type": "NumericBox" }, - "require": true, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "上级对象主键", - "id": "2292dc09-74d7-44fb-9a47-73d48c1e5831", + "multiLanguage": false, + "require": false, + "label": "price", + "originalId": "e36f2428-1373-4025-a4bd-2a2e8ec60cc5", + "path": "Price", "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" }, - "path": "ParentID", - "originalId": "2292dc09-74d7-44fb-9a47-73d48c1e5831", - "label": "parentID", - "bindingField": "parentID", - "bindingPath": "parentID", - "code": "ParentID" + "id": "e36f2428-1373-4025-a4bd-2a2e8ec60cc5", + "code": "Price", + "bindingPath": "price", + "bindingField": "price", + "name": "标价" }, { "$type": "SimpleField", - "defaultValue": "", "editor": { - "$type": "TextBox" + "$type": "NumericBox" }, - "require": false, - "multiLanguage": false, + "defaultValue": "", "readonly": false, - "name": "编号", - "id": "0fd1145f-2a5f-4080-aa65-b87d252515a5", + "multiLanguage": false, + "require": false, + "label": "amount", + "originalId": "e5a83e52-4e6d-4a11-9178-33f87ad54868", + "path": "Amount", "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" }, - "path": "code", - "originalId": "0fd1145f-2a5f-4080-aa65-b87d252515a5", - "label": "code", - "bindingField": "code", - "bindingPath": "code", - "code": "code" + "id": "e5a83e52-4e6d-4a11-9178-33f87ad54868", + "code": "Amount", + "bindingPath": "amount", + "bindingField": "amount", + "name": "金额" }, { "$type": "SimpleField", + "editor": { + "$type": "EnumField" + }, "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "discountType", + "originalId": "370df240-d24d-43d1-bb7a-a30a0ea86a84", + "path": "DiscountType", + "type": { + "$type": "EnumType", + "displayName": "枚举", + "enumValues": [ + { + "disabled": false, + "name": "折扣", + "value": "Dis" + }, + { + "disabled": false, + "name": "无折扣", + "value": "NoDis" + } + ], + "valueType": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "name": "Enum" + }, + "id": "370df240-d24d-43d1-bb7a-a30a0ea86a84", + "code": "DiscountType", + "bindingPath": "discountType", + "bindingField": "discountType", + "name": "折扣类型" + }, + { + "$type": "SimpleField", "editor": { - "$type": "TextBox" + "$type": "NumericBox" }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, "require": false, + "label": "discountAmount", + "originalId": "8a7ac89a-83d4-4fcd-8cd1-aef0c9283111", + "path": "DiscountAmount", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "8a7ac89a-83d4-4fcd-8cd1-aef0c9283111", + "code": "DiscountAmount", + "bindingPath": "discountAmount", + "bindingField": "discountAmount", + "name": "折扣金额" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "readonly": false, "multiLanguage": false, + "require": false, + "label": "actualAmount", + "originalId": "f3941d8f-9795-43f7-a50b-dd4c0a3c6bc7", + "path": "ActualAmount", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "f3941d8f-9795-43f7-a50b-dd4c0a3c6bc7", + "code": "ActualAmount", + "bindingPath": "actualAmount", + "bindingField": "actualAmount", + "name": "实际结算金额" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "MultiTextBox" + }, + "defaultValue": "", "readonly": false, - "name": "名称", - "id": "52eb3ac2-decc-49f3-83b3-1549aec4b4d0", + "multiLanguage": false, + "require": false, + "label": "remark", + "originalId": "ada0c721-0da0-4eb9-8daa-86d6c070efbe", + "path": "Remark", "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" + "$type": "TextType", + "displayName": "文本", + "length": 100, + "name": "Text" }, - "path": "name", - "originalId": "52eb3ac2-decc-49f3-83b3-1549aec4b4d0", - "label": "name", - "bindingField": "name", - "bindingPath": "name", - "code": "name" + "id": "ada0c721-0da0-4eb9-8daa-86d6c070efbe", + "code": "Remark", + "bindingPath": "remark", + "bindingField": "remark", + "name": "备注" } ], - "primary": "id", "entities": [], - "name": "Child2", - "displayName": "子表2" + "displayName": "订单明细", + "name": "OrderItem" }, - "label": "child2s", - "code": "Child2" - } + "id": "5b9cd5c4-9da9-464e-8be4-754a9378a032", + "code": "OrderItem", + "name": "订单明细" + }, + { + "label": "orderFiles", + "type": { + "$type": "EntityType", + "primary": "id", + "fields": [ + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": true, + "label": "id", + "originalId": "ba2b75d9-1564-4e68-9c11-5f004674ab92", + "path": "ID", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "ba2b75d9-1564-4e68-9c11-5f004674ab92", + "code": "ID", + "bindingPath": "id", + "bindingField": "id", + "name": "主键" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": true, + "label": "parentID", + "originalId": "6eae1692-146d-4de6-bb98-dd342f7a30c1", + "path": "ParentID", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "6eae1692-146d-4de6-bb98-dd342f7a30c1", + "code": "ParentID", + "bindingPath": "parentID", + "bindingField": "parentID", + "name": "上级对象主键" + }, + { + "$type": "ComplexField", + "label": "fileInfo", + "originalId": "1b94179e-7fa2-462f-94a8-13f34e2ad826", + "path": "FileInfo", + "type": { + "$type": "ObjectType", + "fields": [ + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "attachmentId", + "originalId": "ff73a947-4fd6-49ff-a18a-f466a068f905", + "path": "FileInfo.AttachmentId", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "1b94179e-4fd6-49ff-a18a-f466a068f905", + "code": "AttachmentId", + "bindingPath": "fileInfo.attachmentId", + "bindingField": "fileInfo_AttachmentId", + "name": "附件Id" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "fileName", + "originalId": "026b07a9-1497-4526-86f9-290aab400e0b", + "path": "FileInfo.FileName", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 512, + "name": "String" + }, + "id": "1b94179e-1497-4526-86f9-290aab400e0b", + "code": "FileName", + "bindingPath": "fileInfo.fileName", + "bindingField": "fileInfo_FileName", + "name": "附件名称" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "fileSize", + "originalId": "6369fb66-dd56-4cab-a54b-577a65f9eb6e", + "path": "FileInfo.FileSize", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 8, + "length": 128, + "name": "Number" + }, + "id": "1b94179e-dd56-4cab-a54b-577a65f9eb6e", + "code": "FileSize", + "bindingPath": "fileInfo.fileSize", + "bindingField": "fileInfo_FileSize", + "name": "附件大小" + }, + { + "$type": "SimpleField", + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "defaultValue": "", + "readonly": false, + "multiLanguage": false, + "require": false, + "label": "fileCreateTime", + "originalId": "ff677864-a1f5-4f6c-9c82-ddb10864c652", + "path": "FileInfo.FileCreateTime", + "type": { + "$type": "DateTimeType", + "displayName": "日期时间", + "name": "DateTime" + }, + "id": "1b94179e-a1f5-4f6c-9c82-ddb10864c652", + "code": "FileCreateTime", + "bindingPath": "fileInfo.fileCreateTime", + "bindingField": "fileInfo_FileCreateTime", + "name": "附件上传时间" + } + ], + "name": "AttachmentInfo1b94", + "displayName": "附件信息" + }, + "id": "1b94179e-7fa2-462f-94a8-13f34e2ad826", + "code": "FileInfo", + "bindingPath": "fileInfo", + "bindingField": "fileInfo", + "name": "附件信息" + } + ], + "entities": [], + "displayName": "附件", + "name": "OrderFile" + }, + "id": "6073e3e2-5852-444a-a8b6-521de4394ea6", + "code": "OrderFile", + "name": "附件" + } ], - "name": "VueTest", - "displayName": "Vue测试" + "displayName": "销售订单", + "name": "SaleOrder" }, - "label": "vueTests", - "code": "VueTest" + "id": "2d5008ea-b109-43b2-beb6-a84076b033e2", + "code": "SaleOrder", + "name": "销售订单" } ], - "extendProperties": { - "enableStdTimeFormat": true - }, - "code": "PCFormTest_frm", - "sourceUri": "api/mydev/farrisvuetest/v1.0/PCFormTest_frm" + "sourceUri": "api/mydev/farrisvuetest/v1.0/ResponsiveCard_frm", + "name": "响应式卡片_frm" } ], "states": [], "stateMachines": [ { - "id": "PCFormTest_state_machine", - "name": "PC表单测试", - "uri": "ef535e87-96b6-4024-a762-41ca0ae45d6a", - "code": "PCFormTest_frm", - "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front" + "id": "ResponsiveCard_state_machine", + "name": "响应式卡片", + "uri": "e125566f-dae3-4613-a9ba-0da9dd7ded3e", + "code": "ResponsiveCard_frm", + "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.DesignTest.DesignTest.Front" } ], "viewmodels": [ { "id": "root-viewmodel", "code": "root-viewmodel", - "name": "Vue测试", + "name": "销售订单", "fields": [], - "stateMachine": "PCFormTest_state_machine", + "stateMachine": "ResponsiveCard_state_machine", "commands": [ { "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", @@ -741,14 +1298,11 @@ { "name": "action", "shownName": "初始方法", - "value": "{UISTATE~/#{root-component}/action}", - "defaultValue": null + "value": "{UISTATE~/#{root-component}/action}" } ], "handlerName": "Load", "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], "isInvalid": false, "isNewGenerated": false, "targetComponent": "root-component" @@ -875,7 +1429,7 @@ { "name": "transitionAction", "shownName": "状态机动作", - "value": "Cancel", + "value": "Save", "defaultValue": null }, { @@ -910,24 +1464,163 @@ "isInvalid": false }, { - "id": "20dbc06c-6e46-46f0-b8f2-a7fd951d722e", - "code": "rootTest1", - "name": "test1", + "id": "efd106a7-bcf7-4525-958c-0a3fecac005b", + "code": "CheckAndGoBack1", + "name": "检查并返回", + "params": [], + "handlerName": "checkAndGoBack", + "cmpId": "65f0ba3f-8b72-49c4-8c0e-489bbf049d01", + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "195a477d-9773-4167-b631-383d272cb324", + "code": "rootSubmitWithBizDefKey1", + "name": "提交审批1", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "3ba1eba3-bfea-4d04-9034-8bba5e5348f6", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "handlerName": "submitWithBizDefKey", + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "363874c5-8b52-4c79-a12b-e3ed8d04423f", + "code": "rootCancelSubmitWithDataId1", + "name": "取消提交1", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "3ba1eba3-bfea-4d04-9034-8bba5e5348f6", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "handlerName": "cancelSubmitWithDataId", + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "c551e046-100a-4729-883b-fb68b7126fce", + "code": "rootGetLocation1", + "name": "获取定位1", + "params": [], + "handlerName": "getLocation", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "1bb9922c-5cf7-4535-bf13-5369266186e3", + "code": "rootTakePhoto1", + "name": "拍照1", + "params": [], + "handlerName": "takePhoto", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "00b95b0c-0855-4b01-869a-a265119da570", + "code": "rootCloseWindow1", + "name": "关闭窗口1", + "params": [], + "handlerName": "closeWindow", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "27f01205-e2cf-4383-9a8a-171d80a463bd", + "code": "rootSendSMS1", + "name": "发短信1", + "params": [], + "handlerName": "sendSMS", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "3f381db0-73d8-437c-b49f-da848049cafa", + "code": "rootTelephone1", + "name": "打电话1", + "params": [], + "handlerName": "telephone", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "5680a40d-474b-439e-8028-da9bbd1714a3", + "code": "rootSelectPicture1", + "name": "选择照片1", "params": [], - "handlerName": "test", - "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "handlerName": "selectPicture", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "shortcut": {}, "extensions": [], "isInvalid": false, - "isNewGenerated": false + "isNewGenerated": false, + "targetComponent": "root-component" }, { - "id": "45e98f07-494f-4171-9129-817552fb91a8", - "code": "rootTest2", - "name": "test2", + "id": "9417d30c-c253-4f12-81e7-2bb47b893495", + "code": "rootDownloadFile1", + "name": "下载文件1", "params": [], - "handlerName": "test", - "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "handlerName": "downloadFile", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "shortcut": {}, "extensions": [], "isInvalid": false, @@ -935,12 +1628,12 @@ "targetComponent": "root-component" }, { - "id": "01760ad7-e092-4d91-88d8-89f9e13566fa", - "code": "rootTest3", - "name": "测试3", + "id": "3adc0e47-9629-4271-afdd-07d217949adb", + "code": "rootSelectFile1", + "name": "选择文件1", "params": [], - "handlerName": "test", - "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "handlerName": "selectFile", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "shortcut": {}, "extensions": [], "isInvalid": false, @@ -948,12 +1641,12 @@ "targetComponent": "root-component" }, { - "id": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", - "code": "rootTest4", - "name": "测试4", + "id": "d0149d3b-31f0-48bc-b223-0a9ae85c9301", + "code": "rootTakeVideo1", + "name": "拍摄视频1", "params": [], - "handlerName": "test", - "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "handlerName": "takeVideo", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "shortcut": {}, "extensions": [], "isInvalid": false, @@ -963,7 +1656,7 @@ ], "states": [ { - "id": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", + "id": "c9826d69-88fd-4197-80cd-1261463a5310", "code": "bffSysFormConfigId", "name": "表单流程配置", "type": "String", @@ -971,97 +1664,138 @@ } ], "bindTo": "/", - "enableValidation": false, + "enableValidation": true, "enableUnifiedSession": false }, { "id": "basic-form-viewmodel", "code": "basic-form-viewmodel", - "name": "Vue测试", + "name": "销售订单", "fields": [ { "type": "Form", - "id": "e7c488df-0101-468f-ae3f-40c76c0f06b0", + "id": "76f154be-7ded-43c6-8102-c523586acc6c", + "fieldName": "remark", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "textarea" + } + } + }, + { + "type": "Form", + "id": "fabd3a03-e121-406b-86ea-96f0e975fca5", + "fieldName": "version", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "date-picker" + } + } + }, + { + "type": "Form", + "id": "8ca89120-0101-468f-ae3f-40c76c0f06b0", "fieldName": "billStatus_BillState", - "groupId": null, - "groupName": null, + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", "updateOn": "change", "fieldSchema": { - "name": "工单状态" + "editor": { + "$type": "combo-list" + } } }, { "type": "Form", - "id": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "fieldName": "name", - "groupId": null, - "groupName": null, + "id": "4b5b5386-65e3-4aec-8531-716991baca3f", + "fieldName": "actualPay", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", "updateOn": "blur", "fieldSchema": { - "name": "工单编号", "editor": { - "$type": "lookup" + "$type": "number-spinner" } } }, { "type": "Form", - "id": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "fieldName": "numberField", - "groupId": null, - "groupName": null, + "id": "6006c098-1d4b-41f6-8176-452bd2874885", + "fieldName": "totalDiscount", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", "updateOn": "blur", "fieldSchema": { - "name": "工时" + "editor": { + "$type": "check-box" + } } }, { "type": "Form", - "id": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "fieldName": "dateField", - "groupId": null, - "groupName": null, + "id": "61752adc-c793-46ad-8eab-af57fb89adf2", + "fieldName": "orderSour", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", "updateOn": "blur", "fieldSchema": { - "name": "制单日期" + "editor": { + "$type": "check-group" + } } }, { "type": "Form", - "id": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", - "fieldName": "processInstance_ProcessInstance", + "id": "3cd8435a-e667-495f-b08f-44f10b14a52d", + "fieldName": "sendState", "groupId": "", "groupName": "", "valueChanging": "", "valueChanged": "", - "updateOn": "blur", + "updateOn": "change", "fieldSchema": { "editor": { "$type": "radio-group" - }, - "name": "工单类型" + } } }, { "type": "Form", - "id": "c419df06-d982-44ca-8e48-b366b778049a", - "fieldName": "booleanField", + "id": "83491c18-d22f-4ded-b7a0-a730d863a8f9", + "fieldName": "totalPrice", "groupId": "", "groupName": "", "valueChanging": "", "valueChanged": "", - "updateOn": "change", + "updateOn": "blur", "fieldSchema": { "editor": { "$type": "switch" - }, - "name": "是否处理" + } } }, { "type": "Form", - "id": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "fieldName": "code", + "id": "67d14df7-b8d0-4679-b184-ee942a0d87c0", + "fieldName": "telephone", "groupId": "", "groupName": "", "valueChanging": "", @@ -1070,29 +1804,44 @@ "fieldSchema": { "editor": { "$type": "time-picker" + } + } + }, + { + "type": "Form", + "id": "ed091667-67f8-4aa2-8698-6f3d8dcf220f", + "fieldName": "merchant_Merchant_name", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "lookup" }, - "name": "制单时间" + "name": "商户" } }, { "type": "Form", - "id": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "fieldName": "eumu1", + "id": "320286b8-119a-43a9-ac4b-d627f64ee414", + "fieldName": "orderCode", "groupId": "", "groupName": "", "valueChanging": "", "valueChanged": "", - "updateOn": "change", + "updateOn": "blur", "fieldSchema": { "editor": { - "$type": "combo-list" + "$type": "input-group" } } }, { "type": "Form", - "id": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "fieldName": "ass1_ass1_Name", + "id": "a3569dcd-ff8e-40ea-aaf7-3c81b417fcbc", + "fieldName": "merchant", "groupId": "", "groupName": "", "valueChanging": "", @@ -1103,37 +1852,131 @@ "$type": "input-group" } } - } - ], - "serviceRefs": [], - "commands": [], - "states": [ + }, { - "id": "472eb525-a024-4a49-b51f-cdcfac1df8c8", - "category": "locale", - "code": "isCodeReadonly", - "name": "isCodeReadonly", - "type": "Object", - "value": { - "sssss": 22222 + "type": "Form", + "id": "301100df-cc10-4859-b645-db88538b3403", + "fieldName": "orderPerson_OrderPerson_Name", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "lookup" + }, + "name": "下单人" } } ], + "serviceRefs": [], + "commands": [], + "states": [], "bindTo": "/", "parent": "root-viewmodel", "enableValidation": true }, { - "id": "data-grid-z5vj-component-viewmodel", - "code": "data-grid-z5vj-component-viewmodel", - "name": "子表1", - "bindTo": "/child1s", - "parent": "root-viewmodel", + "id": "orderitem-component-viewmodel", + "code": "orderitem-component-viewmodel", + "name": "订单明细", "fields": [ { "type": "Form", - "id": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "fieldName": "name", + "id": "370df240-d24d-43d1-bb7a-a30a0ea86a84", + "fieldName": "discountType", + "groupId": null, + "groupName": null, + "updateOn": "change" + }, + { + "type": "Form", + "id": "8a7ac89a-83d4-4fcd-8cd1-aef0c9283111", + "fieldName": "discountAmount", + "groupId": null, + "groupName": null, + "updateOn": "blur" + }, + { + "type": "Form", + "id": "f3941d8f-9795-43f7-a50b-dd4c0a3c6bc7", + "fieldName": "actualAmount", + "groupId": null, + "groupName": null, + "updateOn": "blur" + }, + { + "type": "Form", + "id": "ada0c721-0da0-4eb9-8daa-86d6c070efbe", + "fieldName": "remark", + "groupId": null, + "groupName": null, + "updateOn": "blur" + } + ], + "states": [], + "bindTo": "/orderItems", + "parent": "root-viewmodel", + "commands": [ + { + "id": "3da96a96-b620-4716-9a7a-ff81a3645454", + "code": "orderitemAddItem1", + "name": "增加一条子表数据", + "params": [], + "handlerName": "AddItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "86697129-e440-44b4-a26d-a7d88d261641", + "code": "orderitemRemoveItem1", + "name": "删除一条子表数据", + "params": [ + { + "name": "id", + "shownName": "待删除子表数据的标识", + "value": "{DATA~/orderItems/id}", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "删除成功提示信息", + "value": "", + "defaultValue": null + } + ], + "handlerName": "RemoveItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + } + ], + "enableValidation": true + }, + { + "id": "data-grid-yu8f-component-viewmodel", + "code": "data-grid-yu8f-component-viewmodel", + "name": "订单明细", + "bindTo": "/orderItems", + "parent": "root-viewmodel", + "fields": [ + { + "type": "Form", + "id": "280090bf-5688-4809-92d7-81c54f1663df", + "fieldName": "specification", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": {} + }, + { + "type": "Form", + "id": "1a3b1585-e749-418c-91c5-8ccb7ab30f71", + "fieldName": "quality", "groupId": null, "groupName": null, "updateOn": "blur", @@ -1141,8 +1984,8 @@ }, { "type": "Form", - "id": "e5a6411a-c30e-4259-8682-53685c53e62a", - "fieldName": "code", + "id": "e36f2428-1373-4025-a4bd-2a2e8ec60cc5", + "fieldName": "price", "groupId": null, "groupName": null, "updateOn": "blur", @@ -1151,8 +1994,8 @@ ], "commands": [ { - "id": "d0d339b9-958b-4426-a108-e863300e4151", - "code": "datagridz5vjAddItem1", + "id": "0a972a53-04c9-4039-9d52-83fea52b0dd4", + "code": "datagridyu8fAddItem1", "name": "增加一条子表数据", "params": [], "handlerName": "AddItem", @@ -1162,14 +2005,14 @@ "isInvalid": false }, { - "id": "573952e2-118d-4773-8cf7-347e97e319ca", - "code": "datagridz5vjRemoveItem1", + "id": "d226931c-abdc-4ece-8192-fbaa9a5c8866", + "code": "datagridyu8fRemoveItem1", "name": "删除一条子表数据", "params": [ { "name": "id", "shownName": "待删除子表数据的标识", - "value": "{DATA~/child1s/id}" + "value": "{DATA~/orderItems/id}" } ], "handlerName": "RemoveItem", @@ -1190,6 +2033,7 @@ "viewModel": "root-viewmodel", "componentType": "frame", "onInit": "Load1", + "goBack": "CheckAndGoBack1", "contents": [ { "id": "root-layout", @@ -1206,8 +2050,9 @@ }, "iconClass": "f-title-icon f-text-orna-bill", "icon": "f-icon f-icon-page-title-record", - "title": "PC表单测试", + "title": "响应式卡片", "toolbar": { + "id": "page-header-toolbar", "type": "response-toolbar", "buttons": [ { @@ -1222,24 +2067,33 @@ "field": "canAdd" }, "onClick": "Add1", - "text": "新增" + "text": "新增", + "children": [ + { + "id": "response_toolbar_item_7866", + "type": "response-toolbar-item", + "text": "按钮1" + } + ] }, { "id": "button-edit", "type": "response-toolbar-item", "text": "编辑", - "disabled": "!viewModel.stateMachine['canEdit']", - "onClick": "Edit1" + "disabled": { + "type": "StateMachine", + "status": false, + "field": "canEdit" + }, + "onClick": "Edit1", + "visibleControlledByRules": true, + "disableControlledByRules": true }, { "id": "button-save", "type": "response-toolbar-item", "text": "保存", - "disabled": { - "type": "StateMachine", - "status": false, - "field": "canSave" - }, + "disabled": "!viewModel.stateMachine['canSave']", "onClick": "Save1" }, { @@ -1250,24 +2104,70 @@ "onClick": "Cancel1" }, { - "id": "toolbar_item_2362", + "id": "toolbar_item_1464", "type": "response-toolbar-item", - "text": "按钮", - "appearance": { - "class": "btn btn-secondary f-btn-ml" - }, - "onClick": "rootTest2" + "text": "提交", + "onClick": "rootSubmitWithBizDefKey1" + }, + { + "id": "toolbar_item_0223", + "type": "response-toolbar-item", + "text": "取消提交", + "onClick": "rootCancelSubmitWithDataId1" + }, + { + "id": "toolbar_item_3948", + "type": "response-toolbar-item", + "text": "定位", + "onClick": "rootGetLocation1" + }, + { + "id": "toolbar_item_0079", + "type": "response-toolbar-item", + "text": "拍照", + "onClick": "rootTakePhoto1" + }, + { + "id": "toolbar_item_3126", + "type": "response-toolbar-item", + "text": "拍摄视频", + "onClick": "rootTakeVideo1" + }, + { + "id": "toolbar_item_1073", + "type": "response-toolbar-item", + "text": "关闭窗口", + "onClick": "rootCloseWindow1" + }, + { + "id": "toolbar_item_3884", + "type": "response-toolbar-item", + "text": "发短信", + "onClick": "rootSendSMS1" }, { - "id": "toolbar_item_4335", + "id": "toolbar_item_2516", "type": "response-toolbar-item", - "text": "触发组合表单", - "onClick": "rootTest4" + "text": "打电话", + "onClick": "rootTelephone1" }, { - "id": "toolbar_item_1125", + "id": "toolbar_item_4679", "type": "response-toolbar-item", - "text": "弹出帮助" + "text": "选择图片", + "onClick": "rootSelectPicture1" + }, + { + "id": "toolbar_item_4173", + "type": "response-toolbar-item", + "text": "下载文件", + "onClick": "rootDownloadFile1" + }, + { + "id": "toolbar_item_9797", + "type": "response-toolbar-item", + "text": "选择文件", + "onClick": "rootSelectFile1" } ] } @@ -1292,41 +2192,111 @@ "component": "basic-form-component" }, { - "id": "container-0133", + "id": "detail-container", "type": "content-container", "contents": [ { - "id": "section-0133", + "id": "detail-section", "type": "section", + "appearance": { + "class": "f-section-tabs f-section-in-mainsubcard" + }, + "mainTitle": "", + "showHeader": false, "contents": [ { - "id": "data-grid-z5vj-component-ref", - "type": "component-ref", - "component": "data-grid-z5vj-component" + "id": "detail-tab", + "type": "tabs", + "appearance": { + "class": "f-component-tabs f-tabs-has-grid" + }, + "activeId": "orderitem-tab-page", + "contents": [ + { + "id": "orderitem-tab-page", + "type": "tab-page", + "title": "订单明细", + "contents": [ + { + "id": "orderitem-component-ref", + "type": "component-ref", + "component": "orderitem-component" + } + ], + "toolbar": { + "id": "orderitem-tab-toolbar", + "type": "tab-toolbar", + "position": "inHead", + "buttons": [ + { + "id": "orderitemAddButton", + "type": "tab-toolbar-item", + "text": "新增", + "onClick": "root-viewmodel.orderitem-component-viewmodel.orderitemAddItem1", + "disabled": { + "type": "StateMachine", + "status": false, + "field": "canAddDetail" + } + }, + { + "id": "orderitemRemoveButton", + "type": "tab-toolbar-item", + "text": "删除", + "onClick": "root-viewmodel.orderitem-component-viewmodel.orderitemRemoveItem1", + "disabled": "!viewModel.stateMachine['canRemoveDetail']" + } + ] + } + }, + { + "id": "tab_page_5718", + "type": "tab-page", + "contents": [ + { + "id": "data-grid-yu8f-component-ref", + "type": "component-ref", + "component": "data-grid-yu8f-component" + } + ], + "title": "商品详情", + "toolbar": { + "id": "tab_page_5718_toolbar", + "buttons": [ + { + "id": "button-add-data-grid-yu8f", + "type": "tab-toolbar-item", + "text": "新增", + "disabled": { + "type": "StateMachine", + "status": false, + "field": "canAddDetail" + }, + "onClick": "root-viewModel.data-grid-yu8f-component-viewmodel.datagridyu8fAddItem1" + }, + { + "id": "button-remove-data-grid-yu8f", + "type": "tab-toolbar-item", + "text": "删除", + "disabled": { + "type": "StateMachine", + "status": false, + "field": "canRemoveDetail" + }, + "onClick": "root-viewModel.data-grid-yu8f-component-viewmodel.datagridyu8fRemoveItem1" + } + ], + "type": "tab-toolbar" + } + } + ] } ], - "appearance": { - "class": "f-section-in-mainsubcard" - }, - "mainTitle": "子表1", "toolbar": { - "id": "section-0133_toolbar", - "buttons": [ - { - "id": "button-add-data-grid-z5vj", - "type": "section-toolbar-item", - "text": "新增", - "disabled": "!viewModel.stateMachine['canAddDetail']", - "onClick": "root-viewModel.data-grid-z5vj-component-viewmodel.datagridz5vjAddItem1" - }, - { - "id": "button-remove-data-grid-z5vj", - "type": "section-toolbar-item", - "text": "删除", - "disabled": "!viewModel.stateMachine['canRemoveDetail']", - "onClick": "root-viewModel.data-grid-z5vj-component-viewmodel.datagridz5vjRemoveItem1" - } - ] + "id": "detail-section-toolbar", + "type": "section-toolbar", + "position": "inHead", + "buttons": [] } } ], @@ -1342,9 +2312,7 @@ ] } ], - "name": "Vue测试", - "enableValidation": false, - "onAfterViewInit": null + "name": "销售订单" }, { "id": "basic-form-component", @@ -1372,72 +2340,154 @@ }, "contents": [ { - "id": "name_3410f627_2m6a", + "id": "orderCode_320286b8_bqwa", "type": "form-group", + "editor": { + "type": "input-group", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "maxLength": 36, + "formatValidation": { + "type": "none", + "expression": "", + "message": "请输入正确的无" + }, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "label": "订单编号", "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2", - "style": "color:red" + "class": "col-12 col-md-6 col-xl-3 col-el-2" }, - "label": "工单编号", "binding": { "type": "Form", - "path": "name", - "field": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "fullPath": "name" + "path": "orderCode", + "field": "320286b8-119a-43a9-ac4b-d627f64ee414", + "fullPath": "OrderCode" }, + "path": "orderCode", + "updateOn": "blur", + "visibleControlledByRules": true + }, + { + "id": "merchant_a3569dcd_yyp7", + "type": "form-group", "editor": { - "type": "lookup", + "type": "input-group", "readonly": { "type": "StateMachine", "status": false, "field": "editable" }, "maxLength": 36, - "dataSource": { - "displayName": "系统组织帮助(sysorghlp)", - "idField": "id", - "type": "ViewObject", - "uri": "lookup.name_3410f627_2m6a" + "formatValidation": { + "type": "cellNumber", + "expression": "^1[0-9]{10}$", + "message": "请输入正确的手机号" }, - "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", - "displayType": "TreeList", - "textField": "name", - "pagination": { - "enable": true, - "sizeLimits": [ - 10, - 20, - 30, - 50 - ], - "size": 20, - "showLimits": true, - "showGoto": false, - "mode": "server" + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "label": "商户", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "merchant", + "field": "a3569dcd-ff8e-40ea-aaf7-3c81b417fcbc", + "fullPath": "Merchant.Merchant" + }, + "path": "merchant.merchant", + "updateOn": "blur", + "visibleControlledByRules": true + }, + { + "id": "language-textbox_p7a2", + "type": "form-group", + "editor": { + "type": "language-textbox" + }, + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": null, + "label": "多语输入框" + }, + { + "id": "remark_76f154be_e018", + "type": "form-group", + "editor": { + "type": "textarea", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" }, - "loadTreeDataType": "default", - "onlySelectLeaf": false, - "multiSelect": true, - "required": true + "resizable": true, + "maxLength": 100, + "readonlyControlledByRules": true, + "requireControlledByRules": true }, - "path": "name", - "updateOn": "blur" + "label": "备注", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "remark", + "field": "76f154be-7ded-43c6-8102-c523586acc6c", + "fullPath": "Remark" + }, + "path": "remark", + "updateOn": "blur", + "visibleControlledByRules": true }, { - "id": "billStatus_BillState_e7c488df_x74m", + "id": "version_fabd3a03_0cek", "type": "form-group", + "editor": { + "type": "date-picker", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "fieldType": "DateTime", + "showTime": true, + "displayFormat": "yyyy-MM-dd HH:mm:ss", + "valueFormat": "yyyy-MM-dd HH:mm:ss", + "selectMode": "day", + "readonlyControlledByRules": false, + "requireControlledByRules": false + }, + "label": "版本", "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2 pc-red" + "class": "col-12 col-md-6 col-xl-3 col-el-2" }, - "label": "工单状态", "binding": { "type": "Form", - "path": "billStatus_BillState", - "field": "e7c488df-0101-468f-ae3f-40c76c0f06b0", - "fullPath": "BillStatus.BillState" + "path": "version", + "field": "fabd3a03-e121-406b-86ea-96f0e975fca5", + "fullPath": "Version" }, + "path": "version", + "updateOn": "blur", + "visibleControlledByRules": true + }, + { + "id": "billStatus_BillState_8ca89120_gq2r", + "type": "form-group", "editor": { "type": "combo-list", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, "data": [ { "disabled": false, @@ -1460,145 +2510,214 @@ "value": "ApprovalNotPassed" } ], - "textField": "name", - "valueField": "value", "idField": "value", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - } - }, - "path": "billStatus.billState", - "updateOn": "change" - }, - { - "id": "booleanField_c419df06_drqr", - "type": "form-group", - "editor": { - "type": "switch", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - } + "valueField": "value", + "textField": "name", + "readonlyControlledByRules": false, + "requireControlledByRules": false }, - "label": "是否处理", + "label": "状态", "appearance": { "class": "col-12 col-md-6 col-xl-3 col-el-2" }, "binding": { "type": "Form", - "path": "booleanField", - "field": "c419df06-d982-44ca-8e48-b366b778049a", - "fullPath": "booleanField" + "path": "billStatus_BillState", + "field": "8ca89120-0101-468f-ae3f-40c76c0f06b0", + "fullPath": "BillStatus.BillState" }, - "path": "booleanField", - "updateOn": "change" + "path": "billStatus.billState", + "updateOn": "change", + "fieldValueChanging": "", + "fieldValueChanged": "", + "visibleControlledByRules": true }, { - "id": "processInstance_ProcessInstance_5d3fd927_6mxv", + "id": "actualPay_4b5b5386_q8mm", "type": "form-group", "editor": { - "type": "radio-group", + "type": "number-spinner", "readonly": { "type": "StateMachine", "status": false, "field": "editable" }, - "data": [], - "idField": "value", - "valueField": "value", - "textField": "name", - "maxLength": 36 + "precision": 2, + "nullable": true, + "maxLength": 18, + "readonlyControlledByRules": true, + "requireControlledByRules": true }, - "label": "工单类型", + "label": "合计实付", "appearance": { "class": "col-12 col-md-6 col-xl-3 col-el-2" }, "binding": { "type": "Form", - "path": "processInstance_ProcessInstance", - "field": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", - "fullPath": "ProcessInstance.ProcessInstance" + "path": "actualPay", + "field": "4b5b5386-65e3-4aec-8531-716991baca3f", + "fullPath": "ActualPay" }, - "path": "processInstance.processInstance", - "updateOn": "blur" + "path": "actualPay", + "updateOn": "blur", + "visibleControlledByRules": true, + "fieldValueChanging": "", + "fieldValueChanged": "" }, { - "id": "numberField_cc6b21b3_dyee", + "id": "totalDiscount_6006c098_zjm7", "type": "form-group", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "label": "工时", - "binding": { - "type": "Form", - "path": "numberField", - "field": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "fullPath": "numberField" - }, "editor": { - "type": "number-spinner", - "nullable": true, + "type": "check-box", "readonly": { "type": "StateMachine", "status": false, "field": "editable" }, - "precision": 0, - "maxLength": 0 + "trueValue": 1, + "falseValue": 0, + "maxLength": 18, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "label": "" }, - "path": "numberField", - "updateOn": "blur" - }, - { - "id": "dateField_e18b1dc0_so35", - "type": "form-group", + "label": "折扣优惠", "appearance": { "class": "col-12 col-md-6 col-xl-3 col-el-2" }, - "label": "制单日期", "binding": { "type": "Form", - "path": "dateField", - "field": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "fullPath": "dateField" + "path": "totalDiscount", + "field": "6006c098-1d4b-41f6-8176-452bd2874885", + "fullPath": "TotalDiscount" }, + "path": "totalDiscount", + "updateOn": "blur", + "visibleControlledByRules": true, + "fieldValueChanging": "", + "fieldValueChanged": "" + }, + { + "id": "orderSour_61752adc_yxgt", + "type": "form-group", "editor": { - "type": "date-picker", + "type": "check-group", "readonly": { "type": "StateMachine", "status": false, "field": "editable" }, - "fieldType": "Date" - }, - "path": "dateField", - "updateOn": "blur" - }, - { - "id": "ass1_ass1_Name_63b04a7c_p63a", - "type": "form-group", - "editor": { - "type": "input-group", - "readonly": "!viewModel.stateMachine['editable']", - "maxLength": 36 + "data": [ + { + "value": "key1", + "name": "淘宝" + }, + { + "value": "key2", + "name": "京东" + } + ], + "idField": "value", + "valueField": "value", + "textField": "name", + "maxLength": 36, + "readonlyControlledByRules": true, + "requireControlledByRules": true }, - "label": "名称", + "label": "订单来源", "appearance": { "class": "col-12 col-md-6 col-xl-3 col-el-2" }, "binding": { "type": "Form", - "path": "ass1_ass1_Name", - "field": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "fullPath": "ass1.ass1_Name" + "path": "orderSour", + "field": "61752adc-c793-46ad-8eab-af57fb89adf2", + "fullPath": "OrderSour" }, - "path": "ass1.ass1_Name" + "path": "orderSour", + "updateOn": "blur", + "visibleControlledByRules": true, + "fieldValueChanging": "", + "fieldValueChanged": "" }, { - "id": "code_d63b5e0f_nzbn", + "id": "sendState_3cd8435a_dkxg", + "type": "form-group", + "editor": { + "type": "radio-group", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "data": [ + { + "disabled": false, + "name": "未发货", + "value": "Unshipped" + }, + { + "disabled": false, + "name": "已发货", + "value": "Shipped" + } + ], + "idField": "value", + "valueField": "value", + "textField": "name", + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "label": "发货状态", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "sendState", + "field": "3cd8435a-e667-495f-b08f-44f10b14a52d", + "fullPath": "SendState" + }, + "path": "sendState", + "updateOn": "change", + "visibleControlledByRules": true, + "fieldValueChanging": "", + "fieldValueChanged": "" + }, + { + "id": "totalPrice_83491c18_gana", + "type": "form-group", + "editor": { + "type": "switch", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "trueValue": 1, + "falseValue": 0, + "maxLength": 18, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "label": "订单金额", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "totalPrice", + "field": "83491c18-d22f-4ded-b7a0-a730d863a8f9", + "fullPath": "TotalPrice" + }, + "path": "totalPrice", + "updateOn": "blur", + "visibleControlledByRules": true, + "fieldValueChanging": "", + "fieldValueChanged": "" + }, + { + "id": "telephone_67d14df7_3jf2", "type": "form-group", "editor": { "type": "time-picker", @@ -1607,49 +2726,139 @@ "status": false, "field": "editable" }, - "maxLength": 36 + "maxLength": 36, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "hourStep": 1, + "secondStep": 1, + "showHeader": false }, - "label": "制单时间", + "label": "联系电话", "appearance": { "class": "col-12 col-md-6 col-xl-3 col-el-2" }, "binding": { "type": "Form", - "path": "code", - "field": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "fullPath": "code" + "path": "telephone", + "field": "67d14df7-b8d0-4679-b184-ee942a0d87c0", + "fullPath": "Telephone" }, - "path": "code", - "updateOn": "blur" + "path": "telephone", + "updateOn": "blur", + "visibleControlledByRules": true, + "fieldValueChanging": "", + "fieldValueChanged": "" }, { - "id": "eumu1_2092e529_k19l", + "id": "merchant_Merchant_name_ed091667_g1bz", "type": "form-group", "editor": { - "type": "combo-list", - "readonly": "!viewModel.stateMachine['editable']", - "data": [ - { - "disabled": false, - "name": "testname", - "value": "test1" + "type": "lookup", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "maxLength": 100, + "dataSource": { + "displayName": "系统组织帮助(sysorghlp)", + "idField": "id", + "type": "ViewObject", + "uri": "lookup.merchant_Merchant_name_ed091667_g1bz" + }, + "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", + "displayType": "TreeList", + "textField": "name", + "enableEqualSearch": false, + "pagination": { + "enable": true, + "sizeLimits": [ + 10, + 20, + 30, + 50 + ], + "size": 20, + "showLimits": true, + "showGoto": false, + "mode": "server", + "pagination": { + "size": 10 } - ], - "idField": "value", - "valueField": "value", - "textField": "name" + }, + "loadTreeDataType": "default", + "onlySelectLeaf": false, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "mappingFields": "{\"code\":\"version\"}" + }, + "label": "商户", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "merchant_Merchant_name", + "field": "ed091667-67f8-4aa2-8698-6f3d8dcf220f", + "fullPath": "Merchant.Merchant_name" + }, + "path": "merchant.merchant_name", + "updateOn": "blur", + "visibleControlledByRules": true + }, + { + "id": "orderPerson_OrderPerson_Name_301100df_zkan", + "type": "form-group", + "editor": { + "type": "lookup", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "maxLength": 36, + "dataSource": { + "displayName": "系统用户帮助(GspUserHelp)", + "idField": "id", + "type": "ViewObject", + "uri": "lookup.orderPerson_OrderPerson_Name_301100df_zkan" + }, + "helpId": "915a0b20-975a-4df1-8cfd-888c3dda0009", + "displayType": "List", + "textField": "name", + "enableEqualSearch": false, + "pagination": { + "enable": true, + "sizeLimits": [ + 10, + 20, + 30, + 50 + ], + "size": 20, + "showLimits": true, + "showGoto": false, + "mode": "server" + }, + "loadTreeDataType": "default", + "onlySelectLeaf": false, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "searchAnyField": false }, - "label": "eumu1", + "label": "下单人", "appearance": { "class": "col-12 col-md-6 col-xl-3 col-el-2" }, "binding": { "type": "Form", - "path": "eumu1", - "field": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "fullPath": "eumu1" + "path": "orderPerson_OrderPerson_Name", + "field": "301100df-cc10-4859-b645-db88538b3403", + "fullPath": "OrderPerson.OrderPerson_Name" }, - "path": "eumu1" + "path": "orderPerson.orderPerson_Name", + "updateOn": "blur", + "visibleControlledByRules": true } ], "controlsInline": true, @@ -1659,71 +2868,187 @@ "enableAccordion": "default" } ], - "name": "Vue测试" + "name": "销售订单" }, { - "id": "data-grid-z5vj-component", + "id": "orderitem-component", "type": "component", + "viewModel": "orderitem-component-viewmodel", "contents": [ { - "id": "data-grid-z5vj-container", + "id": "orderitem-component-layout", "type": "content-container", "contents": [ { - "id": "data-grid-z5vj-dataGrid", + "id": "dataGrid_orderitem", "type": "data-grid", + "dataSource": "orderItems", "columns": [ { - "id": "name_49fca8d8_r0yy", + "id": "discountType_370df240_6hb4", "type": "data-grid-column", - "title": "名称", - "field": "name", + "title": "折扣类型", + "field": "discountType", + "dataType": "enum", "binding": { "type": "Form", - "path": "name", - "field": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "fullPath": "name" + "path": "discountType", + "field": "370df240-d24d-43d1-bb7a-a30a0ea86a84", + "fullPath": "DiscountType" + }, + "width": 120, + "formatter": { + "type": "enum", + "data": [ + { + "disabled": false, + "name": "折扣", + "value": "Dis" + }, + { + "disabled": false, + "name": "无折扣", + "value": "NoDis" + } + ] }, - "dataType": "string", "editor": { - "type": "input-group", + "type": "combo-list", + "data": [ + { + "disabled": false, + "name": "折扣", + "value": "Dis" + }, + { + "disabled": false, + "name": "无折扣", + "value": "NoDis" + } + ], + "textField": "name", + "valueField": "value", + "idField": "value", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "filter": "", + "showSetting": false, + "actualWidth": 120, + "updateOn": "change", + "visibleControlledByRules": true + }, + { + "id": "discountAmount_8a7ac89a_59y2", + "type": "data-grid-column", + "title": "折扣金额", + "field": "discountAmount", + "dataType": "number", + "binding": { + "type": "Form", + "path": "discountAmount", + "field": "8a7ac89a-83d4-4fcd-8cd1-aef0c9283111", + "fullPath": "DiscountAmount" + }, + "width": 120, + "formatter": { + "type": "number", + "precision": 2, + "thousand": ",", + "decimal": "." + }, + "halign": "right", + "align": "right", + "editor": { + "type": "number-spinner", + "nullable": true, "readonly": "!viewModel.stateMachine['editable']", - "maxLength": 36 + "precision": 2, + "textAlign": "right", + "maxLength": 18, + "readonlyControlledByRules": true, + "requireControlledByRules": true }, "filter": "", "showSetting": false, - "actualWidth": 120 + "actualWidth": 120, + "visibleControlledByRules": true }, { - "id": "code_e5a6411a_lvjz", + "id": "actualAmount_f3941d8f_1wzb", "type": "data-grid-column", - "title": "编号", - "field": "code", + "title": "实际结算金额", + "field": "actualAmount", + "dataType": "number", "binding": { "type": "Form", - "path": "code", - "field": "e5a6411a-c30e-4259-8682-53685c53e62a", - "fullPath": "code" + "path": "actualAmount", + "field": "f3941d8f-9795-43f7-a50b-dd4c0a3c6bc7", + "fullPath": "ActualAmount" }, + "width": 120, + "formatter": { + "type": "number", + "precision": 2, + "thousand": ",", + "decimal": "." + }, + "halign": "right", + "align": "right", + "editor": { + "type": "number-spinner", + "nullable": true, + "readonly": "!viewModel.stateMachine['editable']", + "precision": 2, + "textAlign": "right", + "maxLength": 18, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "filter": "", + "showSetting": false, + "actualWidth": 120, + "visibleControlledByRules": true + }, + { + "id": "remark_ada0c721_sq9c", + "type": "data-grid-column", + "title": "备注", + "field": "remark", "dataType": "string", + "binding": { + "type": "Form", + "path": "remark", + "field": "ada0c721-0da0-4eb9-8daa-86d6c070efbe", + "fullPath": "Remark" + }, + "width": 120, "editor": { - "type": "input-group", + "type": "textarea", "readonly": "!viewModel.stateMachine['editable']", - "maxLength": 36 + "maxLength": 100, + "readonlyControlledByRules": true, + "requireControlledByRules": true }, "filter": "", "showSetting": true, - "actualWidth": 120 + "actualWidth": 120, + "visibleControlledByRules": true } ], - "appearance": { - "class": "f-component-grid" + "pagination": { + "enable": false, + "mode": "server" }, - "fieldEditable": true, - "dataSource": "child1s", "editable": "viewModel.stateMachine['editable']", - "pagination": { - "enable": false + "fieldEditable": true, + "appearance": { + "class": "f-component-grid f-utils-fill" } } ], @@ -1732,109 +3057,638 @@ } } ], - "viewModel": "data-grid-z5vj-component-viewmodel", "componentType": "data-grid", "appearance": { "class": "f-struct-is-subgrid" - } - } - ], - "webcmds": [ + }, + "name": "订单明细" + }, { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "path": "/projects/packages/Inspur.GS.Gsp.Web.WebCmp/webcmd", - "name": "CardController.webcmd", - "refedHandlers": [ - { - "host": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "handler": "Load" - }, - { - "host": "246a275c-88c9-4c8a-aa82-be6a950a4325", - "handler": "LoadAndAdd" - }, - { - "host": "70acc053-fa15-45be-851c-cf694e1bcaf7", - "handler": "LoadAndView" - }, - { - "host": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", - "handler": "LoadAndEdit" - }, - { - "host": "f90aadfa-988c-4da5-a5db-1416c3333794", - "handler": "Add" - }, - { - "host": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "handler": "Edit" - }, - { - "host": "31b814db-01e4-407d-8fad-0f08dbb01999", - "handler": "Save" - }, - { - "host": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "handler": "Cancel" - }, - { - "host": "d0d339b9-958b-4426-a108-e863300e4151", - "handler": "AddItem" - }, + "id": "data-grid-yu8f-component", + "type": "component", + "contents": [ { - "host": "573952e2-118d-4773-8cf7-347e97e319ca", - "handler": "RemoveItem" - } - ], - "code": "CardController", - "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" + "id": "data-grid-yu8f-container", + "type": "content-container", + "contents": [ + { + "id": "data-grid-yu8f-dataGrid", + "type": "data-grid", + "columns": [ + { + "id": "specification_280090bf_lbtk", + "type": "data-grid-column", + "title": "规格型号", + "field": "specification", + "binding": { + "type": "Form", + "path": "specification", + "field": "280090bf-5688-4809-92d7-81c54f1663df", + "fullPath": "Specification" + }, + "dataType": "string", + "editor": { + "type": "input-group", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "maxLength": 36, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "filter": "", + "showSetting": false, + "actualWidth": 120, + "visibleControlledByRules": true + }, + { + "id": "quality_1a3b1585_398t", + "type": "data-grid-column", + "title": "数量", + "field": "quality", + "binding": { + "type": "Form", + "path": "quality", + "field": "1a3b1585-e749-418c-91c5-8ccb7ab30f71", + "fullPath": "Quality" + }, + "dataType": "number", + "halign": "right", + "align": "right", + "formatter": { + "type": "number", + "precision": 0, + "thousand": ",", + "decimal": "." + }, + "editor": { + "type": "number-spinner", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "precision": 0, + "nullable": true, + "textAlign": "right", + "maxLength": 0, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "filter": "", + "showSetting": false, + "actualWidth": 120, + "visibleControlledByRules": true + }, + { + "id": "price_e36f2428_b6ud", + "type": "data-grid-column", + "title": "标价", + "field": "price", + "binding": { + "type": "Form", + "path": "price", + "field": "e36f2428-1373-4025-a4bd-2a2e8ec60cc5", + "fullPath": "Price" + }, + "dataType": "number", + "halign": "right", + "align": "right", + "formatter": { + "type": "number", + "precision": 2, + "thousand": ",", + "decimal": "." + }, + "editor": { + "type": "number-spinner", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "precision": 2, + "nullable": true, + "textAlign": "right", + "maxLength": 18, + "readonlyControlledByRules": true, + "requireControlledByRules": true + }, + "filter": "", + "showSetting": true, + "actualWidth": 120, + "visibleControlledByRules": true + } + ], + "appearance": { + "class": "f-component-grid" + }, + "fieldEditable": true, + "dataSource": "orderItems", + "editable": { + "type": "StateMachine", + "status": true, + "field": "editable" + }, + "pagination": { + "enable": false + } + } + ], + "appearance": { + "class": "f-grid-is-sub f-utils-flex-column" + } + } + ], + "viewModel": "data-grid-yu8f-component-viewmodel", + "componentType": "data-grid", + "appearance": { + "class": "f-struct-is-subgrid" + } + } + ], + "webcmds": [ + { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "path": "/projects/packages/Inspur.GS.Gsp.Web.WebCmp/webcmd", + "name": "CardController.webcmd", + "refedHandlers": [ + { + "host": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "handler": "Load" + }, + { + "host": "246a275c-88c9-4c8a-aa82-be6a950a4325", + "handler": "LoadAndAdd" + }, + { + "host": "70acc053-fa15-45be-851c-cf694e1bcaf7", + "handler": "LoadAndView" + }, + { + "host": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", + "handler": "LoadAndEdit" + }, + { + "host": "f90aadfa-988c-4da5-a5db-1416c3333794", + "handler": "Add" + }, + { + "host": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "handler": "Edit" + }, + { + "host": "31b814db-01e4-407d-8fad-0f08dbb01999", + "handler": "Save" + }, + { + "host": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "handler": "Cancel" + }, + { + "host": "3da96a96-b620-4716-9a7a-ff81a3645454", + "handler": "AddItem" + }, + { + "host": "86697129-e440-44b4-a26d-a7d88d261641", + "handler": "RemoveItem" + }, + { + "host": "0a972a53-04c9-4039-9d52-83fea52b0dd4", + "handler": "AddItem" + }, + { + "host": "d226931c-abdc-4ece-8192-fbaa9a5c8866", + "handler": "RemoveItem" + } + ], + "code": "CardController", + "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" + }, + { + "id": "65f0ba3f-8b72-49c4-8c0e-489bbf049d01", + "path": "Gsp/Web/WebCmp/bo-webcmp/metadata/webcmd-vue", + "name": "NavigationController.webcmd", + "refedHandlers": [ + { + "host": "efd106a7-bcf7-4525-958c-0a3fecac005b", + "handler": "checkAndGoBack" + } + ], + "code": "NavigationController", + "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" + }, + { + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "path": "MyDev/FarrisVueTest/DesignTest/bo-designtest-front/metadata/components", + "name": "ResponsiveCard_frm_Controller.webcmd", + "refedHandlers": [ + { + "host": "c551e046-100a-4729-883b-fb68b7126fce", + "handler": "getLocation" + }, + { + "host": "1bb9922c-5cf7-4535-bf13-5369266186e3", + "handler": "takePhoto" + }, + { + "host": "00b95b0c-0855-4b01-869a-a265119da570", + "handler": "closeWindow" + }, + { + "host": "27f01205-e2cf-4383-9a8a-171d80a463bd", + "handler": "sendSMS" + }, + { + "host": "3f381db0-73d8-437c-b49f-da848049cafa", + "handler": "telephone" + }, + { + "host": "5680a40d-474b-439e-8028-da9bbd1714a3", + "handler": "selectPicture" + }, + { + "host": "9417d30c-c253-4f12-81e7-2bb47b893495", + "handler": "downloadFile" + }, + { + "host": "3adc0e47-9629-4271-afdd-07d217949adb", + "handler": "selectFile" + }, + { + "host": "d0149d3b-31f0-48bc-b223-0a9ae85c9301", + "handler": "takeVideo" + } + ], + "code": "ResponsiveCard_frm_Controller", + "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.DesignTest.DesignTest.Front" + }, + { + "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "path": "MyDev/FarrisVueTest/DesignTest/bo-designtest-front/metadata/components", + "name": "ApproveController.webcmd", + "refedHandlers": [ + { + "host": "195a477d-9773-4167-b631-383d272cb324", + "handler": "submitWithBizDefKey" + }, + { + "host": "363874c5-8b52-4c79-a12b-e3ed8d04423f", + "handler": "cancelSubmitWithDataId" + } + ], + "code": "ApproveController", + "nameSpace": "Inspur.GS.Gsp.Web.WebApprove" + } + ], + "projectName": "bo-designtest-front", + "customClass": { + "root-component": "", + "basic-form-component": "", + "data-grid-yu8f-component": "" + }, + "actions": [ + { + "sourceComponent": { + "id": "button-add", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "f90aadfa-988c-4da5-a5db-1416c3333794", + "label": "Add1", + "name": "新增一条数据", + "handlerName": "Add", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-edit", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "label": "Edit1", + "name": "编辑当前数据", + "handlerName": "Edit", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-save", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "31b814db-01e4-407d-8fad-0f08dbb01999", + "label": "Save1", + "name": "保存变更", + "handlerName": "Save", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Save", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "保存成功提示信息", + "value": "", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-cancel", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "label": "Cancel1", + "name": "取消变更", + "handlerName": "Cancel", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "toolbar_item_1464", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "195a477d-9773-4167-b631-383d272cb324", + "label": "rootSubmitWithBizDefKey1", + "name": "提交审批1", + "handlerName": "submitWithBizDefKey", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "3ba1eba3-bfea-4d04-9034-8bba5e5348f6", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "label": "ApproveController", + "name": "审批控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "toolbar_item_0223", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "363874c5-8b52-4c79-a12b-e3ed8d04423f", + "label": "rootCancelSubmitWithDataId1", + "name": "取消提交1", + "handlerName": "cancelSubmitWithDataId", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "3ba1eba3-bfea-4d04-9034-8bba5e5348f6", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "label": "ApproveController", + "name": "审批控制器" + } + } + ] + } }, { - "id": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "path": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", - "name": "PCFormTest_frm_Controller.webcmd", - "refedHandlers": [ - { - "host": "20dbc06c-6e46-46f0-b8f2-a7fd951d722e", - "handler": "test" - }, - { - "host": "45e98f07-494f-4171-9129-817552fb91a8", - "handler": "test" - } - ], - "code": "PCFormTest_frm_Controller", - "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front" + "sourceComponent": { + "id": "toolbar_item_3948", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "c551e046-100a-4729-883b-fb68b7126fce", + "label": "rootGetLocation1", + "name": "获取定位1", + "handlerName": "getLocation", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" + } + } + ] + } }, { - "id": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "path": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", - "name": "vuetest1_frm_Controller.webcmd", - "code": "vuetest1_frm_Controller", - "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", - "refedHandlers": [ - { - "host": "01760ad7-e092-4d91-88d8-89f9e13566fa", - "handler": "test" - }, - { - "host": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", - "handler": "test" - } - ] - } - ], - "projectName": "bo-vueformtest-front", - "customClass": { - "root-component": ".pc-red{\r\n color:red\r\n}", - "card-component": ".test{\r\n color:green\r\n}", - "basic-form-component": ".test2{\r\n color:black\r\n}", - "child1-component": "" - }, - "actions": [ + "sourceComponent": { + "id": "toolbar_item_0079", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "1bb9922c-5cf7-4535-bf13-5369266186e3", + "label": "rootTakePhoto1", + "name": "拍照1", + "handlerName": "takePhoto", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" + } + } + ] + } + }, { "sourceComponent": { - "id": "button-add", + "id": "toolbar_item_3126", "viewModelId": "root-viewmodel", "map": [ { @@ -1847,26 +3701,19 @@ "viewModelId": "root-viewmodel" }, "command": { - "id": "f90aadfa-988c-4da5-a5db-1416c3333794", - "label": "Add1", - "name": "新增一条数据", - "handlerName": "Add", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "id": "d0149d3b-31f0-48bc-b223-0a9ae85c9301", + "label": "rootTakeVideo1", + "name": "拍摄视频1", + "handlerName": "takeVideo", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" } } ] @@ -1874,7 +3721,7 @@ }, { "sourceComponent": { - "id": "button-edit", + "id": "toolbar_item_1073", "viewModelId": "root-viewmodel", "map": [ { @@ -1887,26 +3734,19 @@ "viewModelId": "root-viewmodel" }, "command": { - "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "label": "Edit1", - "name": "编辑当前数据", - "handlerName": "Edit", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "id": "00b95b0c-0855-4b01-869a-a265119da570", + "label": "rootCloseWindow1", + "name": "关闭窗口1", + "handlerName": "closeWindow", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" } } ] @@ -1914,7 +3754,7 @@ }, { "sourceComponent": { - "id": "button-save", + "id": "toolbar_item_3884", "viewModelId": "root-viewmodel", "map": [ { @@ -1927,32 +3767,19 @@ "viewModelId": "root-viewmodel" }, "command": { - "id": "31b814db-01e4-407d-8fad-0f08dbb01999", - "label": "Save1", - "name": "保存变更", - "handlerName": "Save", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "successMsg", - "shownName": "保存成功提示信息", - "value": "", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "id": "27f01205-e2cf-4383-9a8a-171d80a463bd", + "label": "rootSendSMS1", + "name": "发短信1", + "handlerName": "sendSMS", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" } } ] @@ -1960,7 +3787,7 @@ }, { "sourceComponent": { - "id": "button-cancel", + "id": "toolbar_item_2516", "viewModelId": "root-viewmodel", "map": [ { @@ -1973,26 +3800,52 @@ "viewModelId": "root-viewmodel" }, "command": { - "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "label": "Cancel1", - "name": "取消变更", - "handlerName": "Cancel", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "id": "3f381db0-73d8-437c-b49f-da848049cafa", + "label": "rootTelephone1", + "name": "打电话1", + "handlerName": "telephone", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "toolbar_item_4679", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "5680a40d-474b-439e-8028-da9bbd1714a3", + "label": "rootSelectPicture1", + "name": "选择照片1", + "handlerName": "selectPicture", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" } } ] @@ -2000,7 +3853,7 @@ }, { "sourceComponent": { - "id": "toolbar_item_2362", + "id": "toolbar_item_4173", "viewModelId": "root-viewmodel", "map": [ { @@ -2013,19 +3866,19 @@ "viewModelId": "root-viewmodel" }, "command": { - "id": "45e98f07-494f-4171-9129-817552fb91a8", - "label": "rootTest2", - "name": "test2", - "handlerName": "test", + "id": "9417d30c-c253-4f12-81e7-2bb47b893495", + "label": "rootDownloadFile1", + "name": "下载文件1", + "handlerName": "downloadFile", "params": [], - "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "label": "PCFormTest_frm_Controller", - "name": "PC卡片表单测试_frm_Controller" + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" } } ] @@ -2033,7 +3886,7 @@ }, { "sourceComponent": { - "id": "toolbar_item_4335", + "id": "toolbar_item_9797", "viewModelId": "root-viewmodel", "map": [ { @@ -2046,19 +3899,98 @@ "viewModelId": "root-viewmodel" }, "command": { - "id": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", - "label": "rootTest4", - "name": "测试4", - "handlerName": "test", + "id": "3adc0e47-9629-4271-afdd-07d217949adb", + "label": "rootSelectFile1", + "name": "选择文件1", + "handlerName": "selectFile", + "params": [], + "cmpId": "67a774de-189e-4477-9f62-71c151f6768d", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "67a774de-189e-4477-9f62-71c151f6768d", + "label": "ResponsiveCard_frm_Controller", + "name": "响应式卡片_frm_Controller" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "orderitemAddButton", + "viewModelId": "orderitem-component-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "orderitem-component", + "viewModelId": "orderitem-component-viewmodel" + }, + "command": { + "id": "3da96a96-b620-4716-9a7a-ff81a3645454", + "label": "orderitemAddItem1", + "name": "增加一条子表数据", + "handlerName": "AddItem", "params": [], - "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "orderitemRemoveButton", + "viewModelId": "orderitem-component-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "orderitem-component", + "viewModelId": "orderitem-component-viewmodel" + }, + "command": { + "id": "86697129-e440-44b4-a26d-a7d88d261641", + "label": "orderitemRemoveItem1", + "name": "删除一条子表数据", + "handlerName": "RemoveItem", + "params": [ + { + "name": "id", + "shownName": "待删除子表数据的标识", + "value": "{DATA~/orderItems/id}", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "删除成功提示信息", + "value": "", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", "isNewGenerated": false, "isInvalid": false }, "controller": { - "id": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "label": "vuetest1_frm_Controller", - "name": "vuetest1_frm_Controller" + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" } } ] @@ -2066,8 +3998,8 @@ }, { "sourceComponent": { - "id": "button-add-data-grid-z5vj", - "viewModelId": "data-grid-z5vj-component-viewmodel", + "id": "button-add-data-grid-yu8f", + "viewModelId": "data-grid-yu8f-component-viewmodel", "map": [ { "event": { @@ -2075,12 +4007,12 @@ "name": "点击事件" }, "targetComponent": { - "id": "data-grid-z5vj-component", - "viewModelId": "data-grid-z5vj-component-viewmodel" + "id": "data-grid-yu8f-component", + "viewModelId": "data-grid-yu8f-component-viewmodel" }, "command": { - "id": "d0d339b9-958b-4426-a108-e863300e4151", - "label": "datagridz5vjAddItem1", + "id": "0a972a53-04c9-4039-9d52-83fea52b0dd4", + "label": "datagridyu8fAddItem1", "name": "增加一条子表数据", "handlerName": "AddItem", "params": [], @@ -2099,8 +4031,8 @@ }, { "sourceComponent": { - "id": "button-remove-data-grid-z5vj", - "viewModelId": "data-grid-z5vj-component-viewmodel", + "id": "button-remove-data-grid-yu8f", + "viewModelId": "data-grid-yu8f-component-viewmodel", "map": [ { "event": { @@ -2108,19 +4040,19 @@ "name": "点击事件" }, "targetComponent": { - "id": "data-grid-z5vj-component", - "viewModelId": "data-grid-z5vj-component-viewmodel" + "id": "data-grid-yu8f-component", + "viewModelId": "data-grid-yu8f-component-viewmodel" }, "command": { - "id": "573952e2-118d-4773-8cf7-347e97e319ca", - "label": "datagridz5vjRemoveItem1", + "id": "d226931c-abdc-4ece-8192-fbaa9a5c8866", + "label": "datagridyu8fRemoveItem1", "name": "删除一条子表数据", "handlerName": "RemoveItem", "params": [ { "name": "id", "shownName": "待删除子表数据的标识", - "value": "{DATA~/child1s/id}" + "value": "{DATA~/orderItems/id}" } ], "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", @@ -2159,8 +4091,7 @@ { "name": "action", "shownName": "初始方法", - "value": "{UISTATE~/#{root-component}/action}", - "defaultValue": null + "value": "{UISTATE~/#{root-component}/action}" } ], "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", @@ -2176,100 +4107,10 @@ ] } } - ], - "communications": [], - "customStyleFile": "/apps/MyDev/FarrisVueTest/web/bo-vueformtest-front/PCFormTest/PCFormTest.css", - "externalComponents": [ - { - "id": "sysorghlp-5vsx", - "type": "lookup", - "enableToSelect": false, - "dataSource": { - "displayName": "系统组织帮助(sysorghlp)", - "idField": "id", - "type": "ViewObject", - "uri": "lookup.sysorghlp_5vsx" - }, - "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", - "displayType": "TreeList", - "textField": "name", - "pagination": { - "enable": true, - "sizeLimits": [ - 10, - 20, - 30, - 50 - ], - "size": 20, - "showLimits": true, - "showGoto": false, - "mode": "server" - }, - "loadTreeDataType": "default", - "onlySelectLeaf": false, - "dialog": { - "title": "系统组织帮助" - }, - "name": "系统组织帮助" - }, - { - "id": "vuetest1-02de", - "type": "modal", - "name": "vuetest1", - "title": "vuetest1", - "contents": [ - { - "id": "external-container-1e92e", - "type": "external-container", - "appearance": { - "class": "position-relative h-100" - }, - "externalComponent": { - "id": "7df43f6c-35ff-429c-ab17-737a3d673ba4", - "code": "vuetest1", - "name": "vuetest1", - "fileName": "vuetest1.frm", - "relativePath": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components" - }, - "onCommunication": "" - } - ] - }, - { - "id": "UserOrgTest-t8m3", - "type": "lookup", - "enableToSelect": false, - "dataSource": { - "displayName": "用户组织帮助(UserOrgTest)", - "idField": "id", - "type": "ViewObject", - "uri": "lookup.UserOrgTest_t8m3" - }, - "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799", - "displayType": "NavTreeList", - "textField": "name", - "pagination": { - "enable": true, - "sizeLimits": [ - 10, - 20, - 30, - 50 - ], - "size": 20, - "showLimits": true, - "showGoto": false, - "mode": "server" - }, - "loadTreeDataType": "default", - "onlySelectLeaf": false, - "dialog": { - "title": "用户组织帮助" - }, - "name": "用户组织帮助" - } - ], - "hiddenComponents": [] + ] + }, + "options": { + "responsiveForm": true, + "formRulePushMode": "pushToVO" } } \ No newline at end of file diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java index 3cdde04388db2a8ac392bc5ddad6853258e506b5..55e83a5c7d830548401ece1dbd8a3719a07778d4 100644 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java @@ -28,12 +28,15 @@ class SmartFormServiceImplTest { @Test public void testExtract(){ - //String jsonContent = FileUtility.readAsString("D:\\WorkSpaces\\Projects\\Backed\\ui-model\\ui-model-ljk\\web-form-metadata\\src\\test\\java\\com\\inspur\\edp\\web\\formmetadata\\webservice\\PCForm-vue.json"); - String jsonContent = FileUtility.readAsString("D:\\WorkSpaces\\Projects\\Backed\\ui-model\\ui-model-ljk\\web-form-metadata\\src\\test\\java\\com\\inspur\\edp\\web\\formmetadata\\webservice\\PCForm-angular.json"); + String jsonContentVue = FileUtility.readAsString("src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json"); + String jsonContentAngular = FileUtility.readAsString("src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json"); + + boolean isVue = false; + String jsonContent = isVue ? jsonContentVue : jsonContentAngular; JsonNode jsonNode = SerializeUtility.getInstance().deserialize(jsonContent, JsonNode.class); SmartFormServiceImpl SmartFormServiceImpl = new SmartFormServiceImpl(); - SmartFormEntity smartFormEntity = SmartFormServiceImpl.extract(jsonNode,false); + SmartFormEntity smartFormEntity = SmartFormServiceImpl.extract(jsonNode,isVue); System.out.println(smartFormEntity); }