|
@@ -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',
|
|
|
|
|
|
})
|