浏览代码

委托单上班修改

duy 2 月之前
父节点
当前提交
7210e2ca2f
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/tentative/detect/commission.vue

+ 6 - 6
src/views/tentative/detect/commission.vue

@@ -646,10 +646,7 @@ const reportClick = async () => {
     if (rows.length <= 0) {
         window.$message.warning('请先勾选一条需要上报的数据')
         return
-    } else if (rows.length > 1) {
-        window.$message.warning('只能选择其中一条数据进行上报')
-        return
-    }
+    } 
     //判断状态
     const { status, entrustName } = { ...rows[0] }
     if (status !== 1) {
@@ -659,7 +656,10 @@ const reportClick = async () => {
     // 委托单上报设置为1
     classifyType.value = '1'
     //其它数据
-    reportIds.value = rows[0].id //数据ID
+    // reportIds.value = rows[0].id //数据ID
+    reportIds.value = arrToId(rows) //数据ID
+
+    
     // reportTaskName.value = entrustName //任务名称
     //附加数据
     const { contractIdRelation } = nodeDataInfo.value
@@ -671,7 +671,7 @@ const reportClick = async () => {
      //请求文件题名
      const { data } = await wbsApi.queryDocumentTitle({
                     // primaryKeyId: info['primaryKeyId'],
-                    primaryKeyId: rows[0].id,
+                    primaryKeyId: reportIds.value,
                     classify: '1',
 
                 })