fix: use absolute /supplychain/ URLs in all CRUD-generated index.ui
entire_url() relative paths resolve without module prefix in bricks DataViewer context. Changed all to /supplychain/... paths.
This commit is contained in:
parent
3159afbede
commit
7f2c265764
@ -20,18 +20,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_distribution_agreement_items.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/distribution_agreement_items_list/add_distribution_agreement_items.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_distribution_agreement_items.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/distribution_agreement_items_list/delete_distribution_agreement_items.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_distribution_agreement_items.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/distribution_agreement_items_list/update_distribution_agreement_items.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_distribution_agreement_items.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/distribution_agreement_items_list/get_distribution_agreement_items.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -48,19 +48,19 @@
|
||||
"alters": {
|
||||
"agreement_id": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_agreement_id.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_agreement_id.dspy')}}",
|
||||
"valueField": "agreement_id",
|
||||
"textField": "agreement_id_text"
|
||||
},
|
||||
"prodtypeid": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_prodtypeid.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_prodtypeid.dspy')}}",
|
||||
"valueField": "prodtypeid",
|
||||
"textField": "prodtypeid_text"
|
||||
},
|
||||
"productid": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_productid.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_productid.dspy')}}",
|
||||
"valueField": "productid",
|
||||
"textField": "productid_text"
|
||||
}
|
||||
@ -104,7 +104,7 @@
|
||||
"valueField": "agreement_id",
|
||||
"textField": "agreement_id_text"
|
||||
},
|
||||
"dataurl": "{{entire_url('../api/get_search_agreement_id.dspy')}}"
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_agreement_id.dspy')}}"
|
||||
},
|
||||
{
|
||||
"name": "resellerid",
|
||||
@ -126,7 +126,7 @@
|
||||
"uitype": "code",
|
||||
"datatype": "str",
|
||||
"label": "产品分类ID",
|
||||
"dataurl": "{{entire_url('../api/get_search_prodtypeid.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_prodtypeid.dspy')}}",
|
||||
"valueField": "prodtypeid",
|
||||
"textField": "prodtypeid_text"
|
||||
},
|
||||
@ -139,7 +139,7 @@
|
||||
"uitype": "code",
|
||||
"datatype": "str",
|
||||
"label": "产品ID",
|
||||
"dataurl": "{{entire_url('../api/get_search_productid.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_productid.dspy')}}",
|
||||
"valueField": "productid",
|
||||
"textField": "productid_text"
|
||||
},
|
||||
|
||||
@ -30,18 +30,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('../api/distribution_agreements_create.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/api/distribution_agreements_create.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('../api/distribution_agreements_delete.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/api/distribution_agreements_delete.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('../api/distribution_agreements_update.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/api/distribution_agreements_update.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_distribution_agreements.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/distribution_agreements_list/get_distribution_agreements.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -57,7 +57,7 @@
|
||||
"alters": {
|
||||
"sub_reseller_id": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_sub_reseller_id.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_sub_reseller_id.dspy')}}",
|
||||
"valueField": "sub_reseller_id",
|
||||
"textField": "sub_reseller_id_text"
|
||||
},
|
||||
@ -142,7 +142,7 @@
|
||||
"valueField": "sub_reseller_id",
|
||||
"textField": "sub_reseller_id_text"
|
||||
},
|
||||
"dataurl": "{{entire_url('../api/get_search_sub_reseller_id.dspy')}}"
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_sub_reseller_id.dspy')}}"
|
||||
},
|
||||
{
|
||||
"name": "agreement_code",
|
||||
@ -338,7 +338,7 @@
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"params": {},
|
||||
"url": "{{entire_url('../distribution_agreement_items_list')}}"
|
||||
"url": "{{entire_url('/supplychain/distribution_agreement_items_list')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -20,18 +20,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_platform_supply_products.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/platform_supply_products_list/add_platform_supply_products.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_platform_supply_products.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/platform_supply_products_list/delete_platform_supply_products.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_platform_supply_products.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/platform_supply_products_list/update_platform_supply_products.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_platform_supply_products.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/platform_supply_products_list/get_platform_supply_products.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
|
||||
@ -31,18 +31,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_platform_supply_relations.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/platform_supply_relations_list/add_platform_supply_relations.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_platform_supply_relations.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/platform_supply_relations_list/delete_platform_supply_relations.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_platform_supply_relations.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/platform_supply_relations_list/update_platform_supply_relations.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_platform_supply_relations.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/platform_supply_relations_list/get_platform_supply_relations.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -450,7 +450,7 @@
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"params": {},
|
||||
"url": "{{entire_url('../platform_supply_products_list')}}"
|
||||
"url": "{{entire_url('/supplychain/platform_supply_products_list')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -20,18 +20,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_product_supplier_mapping.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/product_supplier_mapping_list/add_product_supplier_mapping.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_product_supplier_mapping.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/product_supplier_mapping_list/delete_product_supplier_mapping.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_product_supplier_mapping.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/product_supplier_mapping_list/update_product_supplier_mapping.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_product_supplier_mapping.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/product_supplier_mapping_list/get_product_supplier_mapping.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
|
||||
@ -20,18 +20,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_sales_ledger.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/sales_ledger_list/add_sales_ledger.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_sales_ledger.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/sales_ledger_list/delete_sales_ledger.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_sales_ledger.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/sales_ledger_list/update_sales_ledger.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_sales_ledger.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/sales_ledger_list/get_sales_ledger.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
|
||||
@ -42,18 +42,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_sub_distributors.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/sub_distributors_list/add_sub_distributors.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_sub_distributors.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/sub_distributors_list/delete_sub_distributors.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_sub_distributors.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/sub_distributors_list/update_sub_distributors.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_sub_distributors.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/sub_distributors_list/get_sub_distributors.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -346,7 +346,7 @@
|
||||
},
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"url": "{{entire_url('../api/ensure_distribution_agreement.dspy')}}"
|
||||
"url": "{{entire_url('/supplychain/api/ensure_distribution_agreement.dspy')}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -365,7 +365,7 @@
|
||||
},
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"url": "{{entire_url('../api/add_sub_distributor_admin.dspy')}}"
|
||||
"url": "{{entire_url('/supplychain/api/add_sub_distributor_admin.dspy')}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -384,7 +384,7 @@
|
||||
},
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"url": "{{entire_url('../api/reset_sub_distributor_admin_pwd.dspy')}}"
|
||||
"url": "{{entire_url('/supplychain/api/reset_sub_distributor_admin_pwd.dspy')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -19,18 +19,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_sub_resellers.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/sub_resellers_list/add_sub_resellers.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_sub_resellers.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/sub_resellers_list/delete_sub_resellers.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_sub_resellers.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/sub_resellers_list/update_sub_resellers.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_sub_resellers.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/sub_resellers_list/get_sub_resellers.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
|
||||
73
wwwroot/supplier_resource_price_list/index.ui
Normal file
73
wwwroot/supplier_resource_price_list/index.ui
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"widgettype": "VBox",
|
||||
"options": {"width": "100%", "padding": "8px", "gap": "8px"},
|
||||
"subwidgets": [
|
||||
{
|
||||
"widgettype": "InlineForm",
|
||||
"id": "price_filter",
|
||||
"options": {
|
||||
"css": "card", "padding": "8px", "submit_label": "查询",
|
||||
"fields": [
|
||||
{"name": "supplier_org_id", "label": "供应商", "uitype": "str", "cwidth": 12},
|
||||
{"name": "resource_type", "label": "资源类型", "uitype": "code", "cwidth": 10,
|
||||
"data": [{"value": "", "text": "全部"}, {"value": "llm_model", "text": "大模型按量"}, {"value": "llm_monthly", "text": "大模型包月"}, {"value": "compute", "text": "算力"}]},
|
||||
{"name": "status", "label": "状态", "uitype": "code", "cwidth": 8,
|
||||
"data": [{"value": "", "text": "全部"}, {"value": "1", "text": "有效"}, {"value": "0", "text": "无效"}]}
|
||||
]
|
||||
},
|
||||
"binds": [{
|
||||
"wid": "self", "event": "submit",
|
||||
"actiontype": "script", "target": "price_table",
|
||||
"script": "var tbl = bricks.getWidgetById('price_table', bricks.app.root); if(tbl) await tbl.render(params);"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"widgettype": "Tabular",
|
||||
"id": "price_table",
|
||||
"options": {
|
||||
"width": "100%", "css": "card",
|
||||
"data_url": "{{entire_url('/supplychain/supplier_resource_price_list/get_supplier_resource_price.dspy')}}",
|
||||
"data_method": "GET", "page_rows": 20,
|
||||
"toolbar": {
|
||||
"tools": [
|
||||
{"name": "add_price", "label": "新增定价"}
|
||||
]
|
||||
},
|
||||
"row_options": {
|
||||
"browserfields": {
|
||||
"exclouded": ["id", "created_at", "updated_at"],
|
||||
"alters": {
|
||||
"supplier_org_id": {
|
||||
"uitype": "code", "valueField": "supplier_org_id", "textField": "supplier_org_id_text",
|
||||
"params": {"dbname": "supplychain", "table": "suppliers", "tblvalue": "org_id", "tbltext": "supplier_name", "valueField": "supplier_org_id", "textField": "supplier_org_id_text"},
|
||||
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
||||
},
|
||||
"resource_type": {"uitype": "code", "data": [{"value": "llm_model", "text": "大模型按量"}, {"value": "llm_monthly", "text": "大模型包月"}, {"value": "compute", "text": "算力"}]},
|
||||
"price_unit": {"uitype": "code", "data": [{"value": "per_1k_tokens", "text": "每千tokens"}, {"value": "per_request", "text": "每次"}, {"value": "per_gpu_hour", "text": "每GPU时"}]},
|
||||
"status": {"uitype": "code", "data": [{"value": "1", "text": "有效"}, {"value": "0", "text": "无效"}]}
|
||||
}
|
||||
},
|
||||
"fields": [
|
||||
{"name": "supplier_org_id", "title": "供应商", "type": "str", "length": 32, "cwidth": 14},
|
||||
{"name": "resource_type", "title": "资源类型", "type": "str", "length": 32, "cwidth": 10},
|
||||
{"name": "resource_ref_id", "title": "资源ID", "type": "str", "length": 32, "cwidth": 12},
|
||||
{"name": "resource_ref_name", "title": "资源名称", "type": "str", "length": 255, "cwidth": 12},
|
||||
{"name": "unit_price", "title": "统一单价", "type": "double", "length": 15, "dec": 8, "cwidth": 10},
|
||||
{"name": "input_price", "title": "输入价", "type": "double", "length": 15, "dec": 8, "cwidth": 10},
|
||||
{"name": "output_price", "title": "输出价", "type": "double", "length": 15, "dec": 8, "cwidth": 10},
|
||||
{"name": "price_unit", "title": "单位", "type": "str", "length": 32, "cwidth": 8},
|
||||
{"name": "effective_date", "title": "生效日", "type": "date", "cwidth": 10},
|
||||
{"name": "expiry_date", "title": "失效日", "type": "date", "cwidth": 10},
|
||||
{"name": "status", "title": "状态", "type": "char", "length": 1, "cwidth": 6}
|
||||
]
|
||||
}
|
||||
},
|
||||
"binds": [{
|
||||
"wid": "self", "event": "add_price",
|
||||
"actiontype": "urlwidget", "target": "PopupWindow",
|
||||
"popup_options": {"title": "新增定价", "cwidth": 45, "cheight": 28},
|
||||
"options": {"url": "{{entire_url('/supplychain/supplier_resource_price_list/add_supplier_resource_price.dspy')}}"}
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -28,18 +28,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('../api/suppliers_create.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/api/suppliers_create.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('../api/suppliers_delete.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/api/suppliers_delete.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('../api/suppliers_update.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/api/suppliers_update.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_suppliers.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/suppliers_list/get_suppliers.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -466,7 +466,7 @@
|
||||
},
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"url": "{{entire_url('../api/ensure_supply_contract.dspy')}}"
|
||||
"url": "{{entire_url('/supplychain/api/ensure_supply_contract.dspy')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -20,18 +20,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('../api/supply_contract_items_create.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/api/supply_contract_items_create.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('../api/supply_contract_items_delete.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/api/supply_contract_items_delete.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('../api/supply_contract_items_update.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/api/supply_contract_items_update.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_supply_contract_items.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/supply_contract_items_list/get_supply_contract_items.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -48,19 +48,19 @@
|
||||
"alters": {
|
||||
"contract_id": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_contract_id.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_contract_id.dspy')}}",
|
||||
"valueField": "contract_id",
|
||||
"textField": "contract_id_text"
|
||||
},
|
||||
"prodtypeid": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_prodtypeid.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_prodtypeid.dspy')}}",
|
||||
"valueField": "prodtypeid",
|
||||
"textField": "prodtypeid_text"
|
||||
},
|
||||
"productid": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_productid.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_productid.dspy')}}",
|
||||
"valueField": "productid",
|
||||
"textField": "productid_text"
|
||||
}
|
||||
@ -104,7 +104,7 @@
|
||||
"valueField": "contract_id",
|
||||
"textField": "contract_id_text"
|
||||
},
|
||||
"dataurl": "{{entire_url('../api/get_search_contract_id.dspy')}}"
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_contract_id.dspy')}}"
|
||||
},
|
||||
{
|
||||
"name": "resellerid",
|
||||
@ -134,7 +134,7 @@
|
||||
"valueField": "prodtypeid",
|
||||
"textField": "prodtypeid_text"
|
||||
},
|
||||
"dataurl": "{{entire_url('../api/get_search_prodtypeid.dspy')}}"
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_prodtypeid.dspy')}}"
|
||||
},
|
||||
{
|
||||
"name": "productid",
|
||||
@ -153,7 +153,7 @@
|
||||
"valueField": "productid",
|
||||
"textField": "productid_text"
|
||||
},
|
||||
"dataurl": "{{entire_url('../api/get_search_productid.dspy')}}"
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_productid.dspy')}}"
|
||||
},
|
||||
{
|
||||
"name": "discount",
|
||||
|
||||
@ -30,18 +30,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('../api/supply_contracts_create.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/api/supply_contracts_create.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('../api/supply_contracts_delete.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/api/supply_contracts_delete.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('../api/supply_contracts_update.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/api/supply_contracts_update.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_supply_contracts.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/supply_contracts_list/get_supply_contracts.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
@ -57,7 +57,7 @@
|
||||
"alters": {
|
||||
"supplier_id": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('../api/get_search_supplier_id.dspy')}}",
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_supplier_id.dspy')}}",
|
||||
"valueField": "supplier_id",
|
||||
"textField": "supplier_id_text"
|
||||
},
|
||||
@ -142,7 +142,7 @@
|
||||
"valueField": "supplier_id",
|
||||
"textField": "supplier_id_text"
|
||||
},
|
||||
"dataurl": "{{entire_url('../api/get_search_supplier_id.dspy')}}"
|
||||
"dataurl": "{{entire_url('/supplychain/api/get_search_supplier_id.dspy')}}"
|
||||
},
|
||||
{
|
||||
"name": "contract_code",
|
||||
@ -338,7 +338,7 @@
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"params": {},
|
||||
"url": "{{entire_url('../supply_contract_items_list')}}"
|
||||
"url": "{{entire_url('/supplychain/supply_contract_items_list')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -20,18 +20,18 @@
|
||||
|
||||
"editable":{
|
||||
|
||||
"new_data_url":"{{entire_url('add_supplychain_accounting.dspy')}}",
|
||||
"new_data_url":"{{entire_url('/supplychain/supplychain_accounting_list/add_supplychain_accounting.dspy')}}",
|
||||
|
||||
|
||||
"delete_data_url":"{{entire_url('delete_supplychain_accounting.dspy')}}",
|
||||
"delete_data_url":"{{entire_url('/supplychain/supplychain_accounting_list/delete_supplychain_accounting.dspy')}}",
|
||||
|
||||
|
||||
"update_data_url":"{{entire_url('update_supplychain_accounting.dspy')}}"
|
||||
"update_data_url":"{{entire_url('/supplychain/supplychain_accounting_list/update_supplychain_accounting.dspy')}}"
|
||||
|
||||
},
|
||||
|
||||
|
||||
"data_url":"{{entire_url('./get_supplychain_accounting.dspy')}}",
|
||||
"data_url":"{{entire_url('/supplychain/supplychain_accounting_list/get_supplychain_accounting.dspy')}}",
|
||||
|
||||
"data_method":"GET",
|
||||
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user