lilei 2 năm trước cách đây
mục cha
commit
70ba678efd

+ 1 - 1
src/views/expenseManagement/expenseReimbursement/detail.vue

@@ -186,7 +186,7 @@ export default {
         this.$refs.printModal.setData([{
           expenseInfo: this.detailData,
           fyListData,
-          spListData
+          spListData:spListData||[]
         }])
         // 立即打印
         if(type == 'print'){

+ 4 - 2
src/views/expenseManagement/expenseReimbursement/list.vue

@@ -307,8 +307,10 @@ export default {
       // 获取审核进度信息
       const spListData = await getBatchLastProcessInstance({ 'businessType': 'EXPENSES', 'businessSnList': businessSnList }).then(res => res.data)
       pageData.map(item => {
-        const sp = spListData[item.expenseInfo.expenseAccountSn]
-        item.spListData = sp ? sp.taskVOList : []
+        if(spListData){
+          const sp = spListData[item.expenseInfo.expenseAccountSn]
+          item.spListData = sp ? sp.taskVOList : []
+        }
       })
       console.log(pageData)
       // 打开预览弹框