Browse Source

任务审批修改

duy 10 hours ago
parent
commit
43cb3a9690
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/tasks/hc-data.vue

+ 3 - 2
src/views/tasks/hc-data.vue

@@ -319,14 +319,15 @@ const rowTaskReviewClick = async ({ row }) => {
 
 
 //获取PDF数据
 //获取PDF数据
 const queryTaskInfo = async (row, taskids) => {
 const queryTaskInfo = async (row, taskids) => {
-    console.log(checkedRowsRef.value, 'checkedRowsRef.value')
+
        const approvalTypeVal = arrToKey(checkedRowsRef.value, 'approvalType', ',')
        const approvalTypeVal = arrToKey(checkedRowsRef.value, 'approvalType', ',')
     try {
     try {
         const { error, code, data } = await tasksApi.queryTaskInfo({
         const { error, code, data } = await tasksApi.queryTaskInfo({
             formDataId: taskids && taskids.length > 0 ? taskids : row['formDataId'],
             formDataId: taskids && taskids.length > 0 ? taskids : row['formDataId'],
             // approvalType: row['approvalType'],
             // approvalType: row['approvalType'],
-             approvalType: approvalTypeVal,
+             approvalType: taskids && taskids.length > 0 ? approvalTypeVal : row['approvalType'],
         })
         })
+    
         
         
         if (!error && code === 200) {
         if (!error && code === 200) {
             const alldata = getArrValue(data)
             const alldata = getArrValue(data)