Browse Source

系统税额

master_hella_20240701
wangyufei 5 months ago
parent
commit
559ce1c773
  1. 4
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

4
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -93,8 +93,10 @@
:sumFormDataByTableCustom ="(formRef,formModel,tableData)=>{
// 1 XX
const {taxRate=0} = formModel
const sumObject = {
amount:tableData.reduce((prev, item) => prev + Number(Number(item['singlePrice']*item['invoicableQuantity']).toFixed(2)),0)
amount:tableData.reduce((prev, item) => prev + Number(Number(item['singlePrice']*item['invoicableQuantity']).toFixed(2)),0),
taxAmount:tableData.reduce((prev, item) => prev + Number(Number(taxRate*0.01*Number(Number(item['singlePrice']*item['invoicableQuantity']).toFixed(2))).toFixed(2)),0)
}
formRef.value.setValues(sumObject)
}"

Loading…
Cancel
Save