|
@@ -408,14 +408,20 @@ onMounted(() => {
|
|
|
const {contractType} = contractInfo.value;
|
|
|
const dutyUser=ref('')
|
|
|
//设置责任者
|
|
|
-const setdutyUser=()=>{
|
|
|
- if(contractType===1){
|
|
|
- dutyUser.value=contractInfo?.contractorUnitName||''
|
|
|
- }else if(contractType===2){
|
|
|
- dutyUser.value=contractInfo?.constructionUnitName||''
|
|
|
- }else if(ontractType===3){
|
|
|
- dutyUser.value=contractInfo?.supervisionUnitName||''
|
|
|
- }
|
|
|
+const setdutyUser=async()=>{
|
|
|
+ const { error, code, data,msg } = await archiveFileApi.getDutyUser({
|
|
|
+ contractId: treecontractId.value,
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ if(contractType===1){
|
|
|
+ dutyUser.value=data?.contractorUnitName||''
|
|
|
+ }else if(contractType===2){
|
|
|
+ dutyUser.value=data?.constructionUnitName||''
|
|
|
+ }else if(contractType===3){
|
|
|
+ dutyUser.value=data?.supervisionUnitName||''
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
//打开文件选择框
|
|
|
const uploadFileClick = () => {
|
|
@@ -476,9 +482,11 @@ const primaryKeyId = ref('')
|
|
|
const isBuiltDrawing = ref(0)
|
|
|
const isStorageNode = ref(0)
|
|
|
const nodeIds = ref('')
|
|
|
+const treecontractId=ref('')
|
|
|
const projectTreeClick = ({node, data, keys, key}) => {
|
|
|
nodeIds.value = data.id || '';
|
|
|
isStorageNode.value = data['isStorageNode'] || 0;
|
|
|
+ treecontractId.value=data?.contractId||''
|
|
|
|
|
|
//设置搜索数据
|
|
|
searchForm.value.current = 1;
|