{ "id":"pricing_item_tbl", "widgettype":"Tabular", "options":{ "width":"100%", "height":"100%", "title":"项目定价项", "css":"card", "editable":{ "new_data_url":"{{entire_url('add_pricing_item.dspy')}}", "delete_data_url":"{{entire_url('delete_pricing_item.dspy')}}", "update_data_url":"{{entire_url('update_pricing_item.dspy')}}" }, "data_url":"{{entire_url('./get_pricing_item.dspy')}}", "data_method":"GET", "data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}}, "row_options":{ "browserfields": { "exclouded": [ "id", "pptid" ], "alters": { "psid": { "dataurl": "{{entire_url('../pi_get_all_specs.dspy')}}", "textField": "name", "valueField": "id", "params": { "pptid": "{{params_kw.pptid}}" } } } }, "editexclouded":[ "id", "pptid" ], "fields":[ { "name": "id", "title": "id", "type": "str", "length": 32, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "id" }, { "name": "name", "title": "定价项名", "type": "str", "length": 256, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "定价项名" }, { "name": "description", "title": "描述", "type": "text", "length": 0, "uitype": "text", "datatype": "text", "label": "描述" }, { "name": "pptid", "title": "项目id", "type": "str", "length": 32, "label": "项目id", "uitype": "code", "valueField": "pptid", "textField": "pptid_text", "params": { "dbname": "{{get_module_dbname('pricing')}}", "table": "pricing_program_timing", "tblvalue": "id", "tbltext": "id", "valueField": "pptid", "textField": "pptid_text" }, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, { "name": "psid", "title": "定价规格id", "type": "str", "length": 32, "label": "定价规格id", "uitype": "code", "valueField": "id", "textField": "name", "params": { "pptid": "{{params_kw.pptid}}" }, "dataurl": "{{entire_url('../pi_get_all_specs.dspy')}}" }, { "name": "subppid", "title": "子项目id", "type": "str", "length": 32, "nullable": "yes", "label": "子项目id", "uitype": "code", "valueField": "subppid", "textField": "subppid_text", "params": { "dbname": "{{get_module_dbname('pricing')}}", "table": "pricing_program", "tblvalue": "id", "tbltext": "name", "valueField": "subppid", "textField": "subppid_text" }, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, { "name": "pricing_unit", "title": "定价单位", "type": "float", "length": 18, "dec": 5, "cwidth": 18, "uitype": "float", "datatype": "float", "label": "定价单位" }, { "name": "pricing_amount", "title": "定价金额", "type": "float", "length": 18, "dec": 5, "cwidth": 18, "uitype": "float", "datatype": "float", "label": "定价金额" }, { "name": "cost_amount", "title": "成本金额", "type": "float", "length": 18, "dec": 5, "cwidth": 18, "uitype": "float", "datatype": "float", "label": "成本金额" } {{get_all_spec_fields_by_pptid(request, params_kw.pptid)}} ] }, "page_rows":160, "cache_limit":5 } ,"binds":[ { "wid":"psid", "event":"changed", "actiontype":"script", "target":"self", "script":"this.hide_field(params.psid);" } ] }