|
|
@@ -1032,6 +1032,11 @@ export default {
|
|
|
this.userEmail = data.email
|
|
|
|
|
|
});
|
|
|
+ let redInvoice = "0"
|
|
|
+ if (this.$route.query.redInvoice == 1) {
|
|
|
+ this.inputForm.id = this.$route.query.dataId
|
|
|
+ redInvoice = this.$route.query.redInvoice
|
|
|
+ }
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.loading = true
|
|
|
financeInvoiceService.queryById(this.inputForm.id).then((data) => {
|
|
|
@@ -1157,6 +1162,30 @@ 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("红冲处理")
|
|
|
+ this.inputForm.redInvoiceRelevancyId = this.inputForm.id
|
|
|
+ this.inputForm.redInvoiceRelevancyNumber = this.inputForm.no
|
|
|
+ this.inputForm.invoiceNumberStr = this.inputForm.financeInvoiceDetailDTOList[0].number
|
|
|
+ // 恢复
|
|
|
+ this.inputForm.financeInvoiceBaseDTOList[0].id = ""
|
|
|
+ this.inputForm.id = ''
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.inputForm.redInvoiceFlag = '1';
|
|
|
+ this.inputForm.accountTotal = -Math.abs(this.inputForm.accountTotal);
|
|
|
+ })
|
|
|
+ this.inputForm.financeInvoiceDetailDTOList = []
|
|
|
+ this.inputForm.no = ""
|
|
|
+ this.inputForm.billingPeople = ""
|
|
|
+ this.inputForm.billingPeopleId = this.$store.state.user.id
|
|
|
+ this.inputForm.procInsId = ""
|
|
|
+ this.inputForm.processDefinitionId = ""
|
|
|
+ this.inputForm.billingDate = ""
|
|
|
+ this.inputForm.collectDate = ""
|
|
|
+ }
|
|
|
this.loading = false
|
|
|
})
|
|
|
})
|
|
|
@@ -1247,7 +1276,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.inputForm.account = this.inputForm.accountTotal
|
|
|
- console.log(this.inputForm.account)
|
|
|
if (status === 'save') {
|
|
|
// 暂存
|
|
|
this.loading = true
|
|
|
@@ -1500,7 +1528,6 @@ export default {
|
|
|
}
|
|
|
if (type === 'detail') {
|
|
|
this.$refs.detailTable.insert().then((data) => {
|
|
|
- console.log(this.inputForm.accountTotal)
|
|
|
data.account = this.inputForm.accountTotal
|
|
|
this.inputForm.financeInvoiceDetailDTOList.push(data)
|
|
|
this.detailKey = Math.random()
|