Jeecgboot设置online报表js增强

1.选择主表,然后单击JS增强

2.编写JS脚本

//当ces_order_goods表中的num字段改变时促发
ces_order_goods_onlChange(){
   return {
    num() {
      let id = event.row.id
      let num = event.row.num
      let price = event.row.price
      
      let targrt = event.target
      
      let nval = price*num
      
      let otherValues={'zong_price':nval}
      that.triggleChangeValues(otherValues,id,targrt)
    }
  }
 }

猜你喜欢

转载自www.cnblogs.com/xl4ng/p/12904303.html