yusheng 1 년 전
부모
커밋
9ed2f488c4
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/views/bpm/handleTask/components/financialManage/receivableManage/components/detailDialog.vue

+ 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