fix: 添加browserfields空对象避免xls2ui报错

This commit is contained in:
Hermes Agent 2026-06-17 17:29:34 +08:00
parent ebb600c423
commit 29d35a020e
2 changed files with 78 additions and 20 deletions

View File

@ -4,26 +4,54 @@
"title": "编辑付款记录", "title": "编辑付款记录",
"params": { "params": {
"formfields": { "formfields": {
"exclouded": ["id", "order_id", "confirmed_by", "created_at", "updated_at"], "exclouded": [
"id",
"order_id",
"confirmed_by",
"created_at",
"updated_at"
],
"alters": { "alters": {
"status": { "status": {
"uitype": "code", "uitype": "code",
"data": [ "data": [
{"value": "pending", "text": "待确认"}, {
{"value": "confirmed", "text": "已确认"}, "value": "pending",
{"value": "rejected", "text": "已拒绝"} "text": "待确认"
},
{
"value": "confirmed",
"text": "已确认"
},
{
"value": "rejected",
"text": "已拒绝"
}
] ]
}, },
"payment_method": { "payment_method": {
"uitype": "code", "uitype": "code",
"data": [ "data": [
{"value": "bank_transfer", "text": "银行转账"}, {
{"value": "check", "text": "支票"}, "value": "bank_transfer",
{"value": "cash", "text": "现金"}, "text": "银行转账"
{"value": "online_payment", "text": "在线支付"} },
{
"value": "check",
"text": "支票"
},
{
"value": "cash",
"text": "现金"
},
{
"value": "online_payment",
"text": "在线支付"
}
] ]
} }
} }
} },
"browserfields": {}
} }
} }

View File

@ -4,26 +4,56 @@
"title": "编辑订单", "title": "编辑订单",
"params": { "params": {
"formfields": { "formfields": {
"exclouded": ["id", "contract_id", "customer_id", "owner_id", "org_id", "created_at", "updated_at"], "exclouded": [
"id",
"contract_id",
"customer_id",
"owner_id",
"org_id",
"created_at",
"updated_at"
],
"alters": { "alters": {
"order_type": { "order_type": {
"uitype": "code", "uitype": "code",
"data": [ "data": [
{"value": "advance", "text": "预付款"}, {
{"value": "progress", "text": "进度款"}, "value": "advance",
{"value": "final", "text": "尾款"}, "text": "预付款"
{"value": "manual", "text": "手动订单"} },
{
"value": "progress",
"text": "进度款"
},
{
"value": "final",
"text": "尾款"
},
{
"value": "manual",
"text": "手动订单"
}
] ]
}, },
"status": { "status": {
"uitype": "code", "uitype": "code",
"data": [ "data": [
{"value": "active", "text": "激活"}, {
{"value": "completed", "text": "已完成"}, "value": "active",
{"value": "cancelled", "text": "已取消"} "text": "激活"
},
{
"value": "completed",
"text": "已完成"
},
{
"value": "cancelled",
"text": "已取消"
}
] ]
} }
} }
} },
"browserfields": {}
} }
} }