guoyuji
2024-04-24 0a68c5b8442e3da4325ec5ad4e42db64d42057f8
north-glass-erp/northglass-erp/src/views/sd/delivery/CreateDelivery.vue
@@ -540,13 +540,25 @@
  }
}
//计算金钱
const countMoney = (list) => {
  let  countMoney = 0
  list.forEach((item)=>{
    countMoney += parseFloat(item.grossAmount)
  })
  // otherMoney.value.forEach(item => {
  //   countMoney+=item.quantity*item.price
  // })
  return parseFloat((countMoney).toFixed(2))
}
//关闭其他金额界面
const refOtherMoney = ref()
const closeOtherMoneyDialog = async (done) => {
  const flag = await refOtherMoney.value.validate()
  if(flag){
    done()
    titleUploadData.value.money=countMoney(xGrid.value.getTableData().fullData).toString()
    //titleUploadData.value.money=countMoney(xGrid.value.getTableData().fullData).toString()
  }
}