|
@@ -2,6 +2,7 @@
|
|
|
import { BasicModal, useModalInner } from '/@/components/Modal';
|
|
|
import {
|
|
|
getMaterialtaskInfo,
|
|
|
+ getMaterialtaskView,
|
|
|
getMaterialtaskViewContents,
|
|
|
postMaterialtaskSubmited,
|
|
|
} from '/@/services/apis/MaterialTaskController';
|
|
@@ -47,14 +48,18 @@
|
|
|
|
|
|
isUpdate.value = !!data?.isUpdate;
|
|
|
|
|
|
- const resData = await getMaterialtaskInfo({ id: data.baseData.id });
|
|
|
+ const resData = unref(isView)
|
|
|
+ ? await getMaterialtaskView({ id: data.baseData.id })
|
|
|
+ : await getMaterialtaskInfo({ id: data.baseData.id });
|
|
|
taskDataInfo.value = {
|
|
|
...resData,
|
|
|
assignId: data.baseData.assignId,
|
|
|
materialId: data.baseData.assignId,
|
|
|
};
|
|
|
if (unref(isView)) {
|
|
|
- folderId.value = resData.files ? resData.files[0]?.folderId : '';
|
|
|
+ folderId.value = resData.materialTaskAppendixList
|
|
|
+ ? resData.materialTaskAppendixList[0]?.folderId
|
|
|
+ : '';
|
|
|
} else {
|
|
|
folderId.value = '';
|
|
|
}
|
|
@@ -294,7 +299,7 @@
|
|
|
flex-direction: row;
|
|
|
background: white;
|
|
|
align-items: center;
|
|
|
- border: 1px solid #eeeeee;
|
|
|
+ border: 1px solid #eee;
|
|
|
border-radius: 4px;
|
|
|
|
|
|
h3 {
|
|
@@ -304,9 +309,10 @@
|
|
|
padding: 0 0 0 20px;
|
|
|
line-height: 50px;
|
|
|
}
|
|
|
+
|
|
|
span {
|
|
|
font-size: 14px;
|
|
|
- color: #999999;
|
|
|
+ color: #999;
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
}
|
|
@@ -314,7 +320,7 @@
|
|
|
&-body {
|
|
|
padding: 20px;
|
|
|
background: white;
|
|
|
- border: 1px solid #eeeeee;
|
|
|
+ border: 1px solid #eee;
|
|
|
border-radius: 4px;
|
|
|
overflow: auto;
|
|
|
margin-top: 16px;
|
|
@@ -343,6 +349,7 @@
|
|
|
background: #f9f9f9;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.taskView-Content-action {
|
|
|
margin-top: 16px;
|
|
|
display: flex;
|
|
@@ -350,7 +357,7 @@
|
|
|
flex-direction: column;
|
|
|
justify-content: space-between;
|
|
|
margin: 12px auto;
|
|
|
- border: 1px solid #eeeeee;
|
|
|
+ border: 1px solid #eee;
|
|
|
border-radius: 4px;
|
|
|
padding: 16px;
|
|
|
flex: 1;
|