Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 10 months ago
parent
commit
d71d9d41f0
  1. 4
      yxt-as-ui/src/views/operation/salesticket/salesticketAdd.vue

4
yxt-as-ui/src/views/operation/salesticket/salesticketAdd.vue

@ -404,13 +404,13 @@ export default {
}
},
computed: {
// =
// =
clfTotal() {
let clf = '0'
if (this.formobj.goodsVos.length > 0) {
this.formobj.goodsVos.forEach((e) => {
if (e.goodsSpuName !== '') {
clf = Math.round((parseFloat(clf) + parseFloat(e.price !== '' ? e.price : '0')) * 100) / 100
clf = Math.round((parseFloat(clf) + (parseFloat(e.price !== '' ? e.price : '0') * parseFloat(e.count !== '' ? e.count : '0'))) * 100) / 100
}
})
}

Loading…
Cancel
Save