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