|
|
@@ -170,7 +170,12 @@ export default {
|
|
|
await this.getClassifyList(24, 'accountingSubjectList')
|
|
|
let data = await getFinReceivableInfoAPI(id)
|
|
|
this.form = data
|
|
|
- let invoiceData = await invoiceApplyInfoAPI(data.invoiceId)
|
|
|
+ let invoiceData={}
|
|
|
+ if(data.invoiceId){
|
|
|
+ invoiceData = await invoiceApplyInfoAPI(data.invoiceId)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
this.form.accountingSubjectCode = invoiceData.accountingSubjectCode
|
|
|
this.form.accountingSubjectId = invoiceData.accountingSubjectId
|
|
|
this.form.accountingSubjectName = invoiceData.accountingSubjectName
|