|
|
@@ -1149,7 +1149,6 @@ export default {
|
|
|
sun = (100 * sun + 100 * this.inputForm.financeInvoiceBaseDTOList[j].account) / 100
|
|
|
}
|
|
|
sun = parseFloat(sun.toFixed(2));
|
|
|
- console.log('111', sun)
|
|
|
this.inputForm.financeInvoiceDetailDTOList.push({
|
|
|
code: '',
|
|
|
number: '',
|
|
|
@@ -1163,7 +1162,6 @@ export default {
|
|
|
this.$refs.uploadComponent.newUpload(method, this.inputForm.workAttachmentDtoList, 'invoice')
|
|
|
this.$refs.uploadComponentSignContract.newUpload(method, this.inputForm.workAttachmenSignContract, 'signContract')
|
|
|
|
|
|
-
|
|
|
//针对红冲处理
|
|
|
if (redInvoice == "1") {
|
|
|
console.log("红冲处理")
|
|
|
@@ -1171,7 +1169,16 @@ export default {
|
|
|
this.inputForm.redInvoiceRelevancyNumber = this.inputForm.no
|
|
|
this.inputForm.invoiceNumberStr = this.inputForm.financeInvoiceDetailDTOList[0].number
|
|
|
// 恢复
|
|
|
- this.inputForm.financeInvoiceBaseDTOList[0].id = ""
|
|
|
+ this.inputForm.financeInvoiceBaseDTOList.forEach(item => {
|
|
|
+ item.id = ""
|
|
|
+ item.account = -Math.abs(item.account);
|
|
|
+ })
|
|
|
+ this.inputForm.workAttachmenSignContract.forEach(item => {
|
|
|
+ item.id = ""
|
|
|
+ })
|
|
|
+ this.inputForm.workAttachmentDtoList.forEach(item => {
|
|
|
+ item.id = ""
|
|
|
+ })
|
|
|
this.inputForm.id = ''
|
|
|
this.$nextTick(() => {
|
|
|
this.inputForm.redInvoiceFlag = '1';
|