|
@ -59,7 +59,7 @@ |
|
|
// 主数据税额 |
|
|
// 主数据税额 |
|
|
taxAmount:mainTaxAmount, |
|
|
taxAmount:mainTaxAmount, |
|
|
// 主数据价税合计金额:mainAdTaxAmount =未税金额+税额 |
|
|
// 主数据价税合计金额:mainAdTaxAmount =未税金额+税额 |
|
|
adTaxAmount:(beforeTaxAmount+parseFloat(taxAmount)).toFixed(2) |
|
|
adTaxAmount:beforeTaxAmount+parseFloat(taxAmount) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -88,6 +88,7 @@ |
|
|
import { CustomerSaleInvoiceMain,CustomerSaleInvoiceMainRules,CustomerSaleInvoiceDetailRules,CustomerSaleInvoiceDetail} from './customerSaleInvoiceRequestMain.data' |
|
|
import { CustomerSaleInvoiceMain,CustomerSaleInvoiceMainRules,CustomerSaleInvoiceDetailRules,CustomerSaleInvoiceDetail} from './customerSaleInvoiceRequestMain.data' |
|
|
import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' |
|
|
import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' |
|
|
import * as CustomerStatementDetailApi from '@/api/wms/customerStatementDetail' |
|
|
import * as CustomerStatementDetailApi from '@/api/wms/customerStatementDetail' |
|
|
|
|
|
import Decimal from "decimal.js" |
|
|
// 传递给父类 |
|
|
// 传递给父类 |
|
|
const emit = defineEmits([ |
|
|
const emit = defineEmits([ |
|
|
'buttonBaseClick','getList' |
|
|
'buttonBaseClick','getList' |
|
@ -281,7 +282,7 @@ const initTableDataPrice = ()=>{ |
|
|
tableData.value.forEach(item=>{ |
|
|
tableData.value.forEach(item=>{ |
|
|
item['sumPrice'] = (item['price'] + item['allocationPrice']).toFixed(5) |
|
|
item['sumPrice'] = (item['price'] + item['allocationPrice']).toFixed(5) |
|
|
// 未税金额 默认等于数量*合计单价,可修改,必填,最多可输入2位小数 |
|
|
// 未税金额 默认等于数量*合计单价,可修改,必填,最多可输入2位小数 |
|
|
item['beforeTaxAmount'] = Number(item['sumPrice'])*item['qty'] |
|
|
item['beforeTaxAmount'] = Number(new Decimal(Number(item['sumPrice'])).mul(new Decimal(item['qty'])).toNumber().toFixed(2)) |
|
|
|
|
|
|
|
|
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 |
|
|
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 |
|
|
item['taxAmount'] = (item['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额 |
|
|
item['taxAmount'] = (item['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额 |
|
|