PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
399 lines
11 KiB
JSON
399 lines
11 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "物资供应商信息",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "UNITNAME",
|
|
"label" : "企业名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "SUPPLIER_TYPE",
|
|
"label" : "供应商分类",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/supplier_type"
|
|
}, {
|
|
"name" : "MAJORPRODUCTS",
|
|
"label" : "主要供应产品",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ELIGIBILITY",
|
|
"label" : "状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/eligibility"
|
|
}, {
|
|
"name" : "ABC_TYPE",
|
|
"label" : "ABC分类",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"multiple" : true,
|
|
"overflowConfig" : {
|
|
"displayPosition" : [ "select" ],
|
|
"maxTagCount" : 1
|
|
},
|
|
"source" : "/api/picker/1c697ca9-e87e-4a9c-84c8-cb4a7ba052ba/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "TYPES",
|
|
"label" : "产品类型",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"multiple" : true,
|
|
"overflowConfig" : {
|
|
"displayPosition" : [ "select" ],
|
|
"maxTagCount" : 1
|
|
},
|
|
"source" : "/api/template/fdd10db0-963d-4e67-bf2a-584ba48fca33/tree",
|
|
"searchable" : true
|
|
}, {
|
|
"name" : "VALIDDATE",
|
|
"label" : "有效期至",
|
|
"type" : "input-date-range"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_PM_MATERIALSUPPLIER_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITID_DISPLAY__",
|
|
"label" : "单位",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITNO",
|
|
"label" : "企业编码",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITNAME",
|
|
"label" : "企业名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SUPPLIER_TYPE",
|
|
"label" : "供应商分类",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "采购供应商",
|
|
"2" : "租赁供应商"
|
|
}
|
|
}, {
|
|
"name" : "MAJORPRODUCTS",
|
|
"label" : "主要供应产品",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ABC_TYPE",
|
|
"label" : "ABC分类",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "A",
|
|
"2" : "B",
|
|
"3" : "C"
|
|
}
|
|
}, {
|
|
"name" : "PAYEEUNITNAME",
|
|
"label" : "收款单位全称",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "OPENINGBANK",
|
|
"label" : "开户银行",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"label" : "银行账号",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "TAXTICKETTYPE_LIST",
|
|
"label" : "税票类型",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "VALIDDATE",
|
|
"label" : "有效期至",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "UNITADDRESS",
|
|
"label" : "地址",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "UNITPHONE",
|
|
"label" : "单位电话",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "CORPORATE",
|
|
"label" : "法人代表",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "NAME",
|
|
"label" : "联系人",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "PHONE",
|
|
"label" : "联系电话",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "ELIGIBILITY",
|
|
"label" : "状态",
|
|
"width" : 60,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "待调查",
|
|
"2" : "未评审",
|
|
"3" : "评审中",
|
|
"4" : "合格",
|
|
"5" : "不合格",
|
|
"6" : "黑名"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/6b622f06-1abc-450c-895f-761259977cc8?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/VIEW_PM_MATERIALSUPPLIER/defaults?templateId=6b622f06-1abc-450c-895f-761259977cc8"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/VIEW_PM_MATERIALSUPPLIER_ADD?__egtpl=6b622f06-1abc-450c-895f-761259977cc8",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "修改",
|
|
"label" : "修改",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "修改",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/6b622f06-1abc-450c-895f-761259977cc8?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_LOAD?__egtpl=6b622f06-1abc-450c-895f-761259977cc8",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/VIEW_PM_MATERIALSUPPLIER_UPDATE?__egtpl=6b622f06-1abc-450c-895f-761259977cc8",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:VIEW_PM_MATERIALSUPPLIER_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看",
|
|
"label" : "查看",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/6b622f06-1abc-450c-895f-761259977cc8?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_LOAD?__egtpl=6b622f06-1abc-450c-895f-761259977cc8",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "加入黑名单",
|
|
"label" : "加入黑名单",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确定要将此供应商加入黑名单吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_ADDINTO_BLACKLIST",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${selectedItems[0].VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "复评",
|
|
"label" : "复评",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确定对此供应商进行复评吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_REVIEW",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${selectedItems[0].VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "合同信息",
|
|
"label" : "合同信息",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "合同明细",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${selectedItems[0].VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/1edd6c1c-2d17-4504-8ee5-faf12822c0c2?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_PM_MATERIALSUPPLIER_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "加入黑名单"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "复评"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "30b8f8fb-26be-4a07-87cf-2d66053acfb0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "30b8f8fb-26be-4a07-87cf-2d66053acfb0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |