https://help.fanruan.com/finereport10.0/doc-view-4007.html
参考
var value = this.getValue();//获取A当前控件值
let widget= _g().getParameterContainer().getWidgetByName("B");
value.length > 0 ? widget.setEnable(false) : widget.setEnable(true);