Same as index.ui fix — entire_url() relative paths lose module prefix. Now both generated files AND source configs use absolute paths.
59 lines
2.2 KiB
JSON
59 lines
2.2 KiB
JSON
{
|
|
"tblname": "product_supplier_mapping",
|
|
"alias": "product_supplier_mapping_list",
|
|
"title": "产品供应映射管理",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "supplier_type", "op": "=", "var": "supplier_type"},
|
|
{"field": "buyer_org_id", "op": "=", "var": "buyer_org_id"},
|
|
{"field": "status", "op": "=", "var": "status"}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"supplier_type": "供应商类型",
|
|
"buyer_org_id": "采购方",
|
|
"status": "状态"
|
|
},
|
|
"editexclouded": ["id", "created_at", "updated_at"],
|
|
"browserfields": {
|
|
"exclouded": ["id", "supplier_org_id", "buyer_org_id"],
|
|
"alters": {
|
|
"supplier_type": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "internal", "text": "平台内部"},
|
|
{"value": "external", "text": "外部供应商"}
|
|
]
|
|
},
|
|
"product_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('/supplychain/api/get_search_productid.dspy')}}",
|
|
"valueField": "productid",
|
|
"textField": "productid_text"
|
|
},
|
|
"is_preferred": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "是"},
|
|
{"value": "0", "text": "否"}
|
|
]
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "启用"},
|
|
{"value": "0", "text": "停用"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('/supplychain/api/product_supplier_mapping_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('/supplychain/api/product_supplier_mapping_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('/supplychain/api/product_supplier_mapping_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|