yusheng vor 1 Jahr
Ursprung
Commit
9ed2f488c4

+ 6 - 1
src/views/bpm/handleTask/components/financialManage/receivableManage/components/detailDialog.vue

@@ -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