|
@@ -946,7 +946,9 @@
|
|
|
this.inputForm.billingDate = this.moment(new Date()).format('YYYY-MM-DD')
|
|
|
}
|
|
|
}
|
|
|
- if (!this.commonJS.isEmpty(this.status) && this.status === 'audit' && (this.commonJS.isEmpty(this.inputForm.financeInvoiceDetailDTOList) || this.inputForm.financeInvoiceDetailDTOList.length === 0)) {
|
|
|
+ this.inputForm.account = parseFloat(parseFloat(this.inputForm.account).toFixed(2));
|
|
|
+ console.log('this.inputForm.account',this.inputForm.account)
|
|
|
+ if (!this.commonJS.isEmpty(this.status) && this.status === 'audit' && (this.commonJS.isEmpty(this.inputForm.financeInvoiceDetailDTOList) || this.inputForm.financeInvoiceDetailDTOList.length === 0)) {
|
|
|
this.inputForm.financeInvoiceDetailDTOList = []
|
|
|
this.inputForm.financeInvoiceDetailDTOList.push({
|
|
|
code: '',
|
|
@@ -957,7 +959,11 @@
|
|
|
tax: '',
|
|
|
allAmount: ''
|
|
|
})
|
|
|
- }
|
|
|
+ }else {
|
|
|
+ this.inputForm.financeInvoiceDetailDTOList.forEach((item)=>{
|
|
|
+ item.account = parseFloat(parseFloat(item.account).toFixed(2));
|
|
|
+ })
|
|
|
+ }
|
|
|
this.$refs.uploadComponent.newUpload(method, this.inputForm.workAttachmentDtoList, 'invoice')
|
|
|
this.loading = false
|
|
|
})
|