e515422a by xukangle

fix

1 parent 840f6a2d
...@@ -133,6 +133,13 @@ export const getEvaDetail = (params) => request({ ...@@ -133,6 +133,13 @@ export const getEvaDetail = (params) => request({
133 params 133 params
134 }) 134 })
135 135
136 // 获取价值评价详情
137 export const getCostDetail = (params) => request({
138 url: `${import.meta.env.VITE_API_NEW_PORTAL}/cost-assessment/detail`,
139 method: 'get',
140 params
141 })
142
136 /** 资产价值评估相关接口 */ 143 /** 资产价值评估相关接口 */
137 144
138 /** 获取资产价值评估分页列表。 */ 145 /** 获取资产价值评估分页列表。 */
......
...@@ -13,7 +13,8 @@ import { ...@@ -13,7 +13,8 @@ import {
13 qualityAllow, 13 qualityAllow,
14 costAssessAllow, 14 costAssessAllow,
15 getRegisterCatalogTableDetail, 15 getRegisterCatalogTableDetail,
16 getEvaDetail 16 getEvaDetail,
17 getCostDetail
17 } from "@/api/modules/dataAsset"; 18 } from "@/api/modules/dataAsset";
18 import { changeNum } from '@/utils/common' 19 import { changeNum } from '@/utils/common'
19 import { ElMessage, ElMessageBox } from "element-plus"; 20 import { ElMessage, ElMessageBox } from "element-plus";
...@@ -28,6 +29,7 @@ const userData = JSON.parse(userStore.userData) ...@@ -28,6 +29,7 @@ const userData = JSON.parse(userStore.userData)
28 const fullPath = route.fullPath; 29 const fullPath = route.fullPath;
29 const catalogGuid = route.query.guid; 30 const catalogGuid = route.query.guid;
30 const evaGuid = route.query.evaGuid; 31 const evaGuid = route.query.evaGuid;
32 const costAssessGuid = route.query.costAssessGuid;
31 const detailType = ref(route.query.type); 33 const detailType = ref(route.query.type);
32 34
33 const { proxy } = getCurrentInstance() as any; 35 const { proxy } = getCurrentInstance() as any;
...@@ -76,6 +78,8 @@ const baseInfoFormItems = ref([ ...@@ -76,6 +78,8 @@ const baseInfoFormItems = ref([
76 78
77 const evaDetailInfo: any = ref({}); 79 const evaDetailInfo: any = ref({});
78 80
81 const costAssessDetail: any = ref({});
82
79 const deploymentId = ref(''); 83 const deploymentId = ref('');
80 84
81 const processInstanceId = ref(''); 85 const processInstanceId = ref('');
...@@ -117,6 +121,19 @@ const getDetailInfo = () => { ...@@ -117,6 +121,19 @@ const getDetailInfo = () => {
117 } 121 }
118 }); 122 });
119 } 123 }
124 if (costAssessGuid) {
125 getCostDetail({ guid: costAssessGuid }).then((res: any) => {
126 if (res.code == proxy.$passCode) {
127 const data = res.data || {};
128 costAssessDetail.value = data;
129 evaDetailInfo.value = data;
130 deploymentId.value = data.approveVO.camundaDeploymentId;
131 processInstanceId.value = data.approveVO?.camundaInstanceId;
132 } else {
133 proxy.$ElMessage.error(res.msg);
134 }
135 })
136 }
120 } 137 }
121 138
122 onBeforeMount(() => { 139 onBeforeMount(() => {
...@@ -191,9 +208,9 @@ const toolBtns: any = computed(() => { ...@@ -191,9 +208,9 @@ const toolBtns: any = computed(() => {
191 let btnsArr: any = [{ 208 let btnsArr: any = [{
192 label: "关闭", value: "cancel", plain: true 209 label: "关闭", value: "cancel", plain: true
193 }]; 210 }];
194 let approveVO = evaDetailInfo.value.approveVO; 211 let approveVO = evaDetailInfo.value.approveVO || costAssessDetail.value.approveVO;
195 let staffGuid = userData.staffGuid; 212 let staffGuid = userData.staffGuid;
196 if (approveVO && approveVO.approveState == 'A' && approveVO.approveStaffGuids&&approveVO.approveStaffGuids.indexOf(staffGuid) > -1) { 213 if (approveVO && approveVO.approveState == 'A' && approveVO.approveStaffGuids && approveVO.approveStaffGuids.indexOf(staffGuid) > -1) {
197 btnsArr.push(...[{ label: "通过", value: "pass", type: 'primary' }, { label: "驳回", value: "reject", type: 'danger', plain: true }]); 214 btnsArr.push(...[{ label: "通过", value: "pass", type: 'primary' }, { label: "驳回", value: "reject", type: 'danger', plain: true }]);
198 } 215 }
199 if (approveVO && approveVO.approveState == 'A' && approveVO.staffGuid == staffGuid) { 216 if (approveVO && approveVO.approveState == 'A' && approveVO.staffGuid == staffGuid) {
...@@ -837,12 +854,14 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -837,12 +854,14 @@ const rejectDialogBtnClick = (btn, info) => {
837 </el-table-column> 854 </el-table-column>
838 </el-table> 855 </el-table>
839 </ContentWrap> 856 </ContentWrap>
840 <ContentWrap v-if="route.query.type == 'qualityEvaluate'" id="id-assetContent" title="附件信息" description="" style="margin: 16px 16px 16px"> 857 <ContentWrap v-if="route.query.type == 'qualityEvaluate'" id="id-assetContent" title="附件信息" description=""
858 style="margin: 16px 16px 16px">
841 <div class="list_panel mt4"> 859 <div class="list_panel mt4">
842 <div class="list_item is_block isFile" v-if="evaDetailInfo?.qualityEvaluationFile?.length" :style="{ width: '40%' }"> 860 <div class="list_item is_block isFile" v-if="evaDetailInfo?.qualityEvaluationFile?.length"
861 :style="{ width: '40%' }">
843 <span class="item_label" :style="{ width: 'auto', 'text-align': 'left' }">数据质量评价收集</span> 862 <span class="item_label" :style="{ width: 'auto', 'text-align': 'left' }">数据质量评价收集</span>
844 <span v-for="(item) in (evaDetailInfo?.qualityEvaluationFile || [])" 863 <span v-for="(item) in (evaDetailInfo?.qualityEvaluationFile || [])" class="item_value"
845 class="item_value" :style="{ 'padding-left': '0px' }"> 864 :style="{ 'padding-left': '0px' }">
846 <div class="file-operate"> 865 <div class="file-operate">
847 <template 866 <template
848 v-if="item.name.substring(item.name.lastIndexOf('.') + 1) == 'xls' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'xlsx' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'csv'"> 867 v-if="item.name.substring(item.name.lastIndexOf('.') + 1) == 'xls' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'xlsx' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'csv'">
...@@ -878,7 +897,8 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -878,7 +897,8 @@ const rejectDialogBtnClick = (btn, info) => {
878 </div> 897 </div>
879 </div> 898 </div>
880 </ContentWrap> 899 </ContentWrap>
881 <ContentWrap id="id-qualityEvaluate" v-if="route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null" title="质量评价" 900 <ContentWrap id="id-qualityEvaluate"
901 v-if="route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null" title="质量评价"
882 description="资产质量评价信息" style="margin: 16px 16px 16px"> 902 description="资产质量评价信息" style="margin: 16px 16px 16px">
883 <div class="list_panel"> 903 <div class="list_panel">
884 <div class="list_item"> 904 <div class="list_item">
...@@ -909,12 +929,14 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -909,12 +929,14 @@ const rejectDialogBtnClick = (btn, info) => {
909 </div> 929 </div>
910 </div> 930 </div>
911 </ContentWrap> 931 </ContentWrap>
912 <ContentWrap v-if="route.query.type == 'qualityEvaluate'" id="id-approveInfo" title="审批信息" description="" style="margin: 16px 16px 16px"> 932 <ContentWrap v-if="route.query.type == 'qualityEvaluate' || 'costAssess'" id="id-approveInfo" title="审批信息"
933 description="" style="margin: 16px 16px 16px">
913 <ApprovalProcess v-if="deploymentId" :deploymentId="deploymentId" :processInstanceId="processInstanceId"> 934 <ApprovalProcess v-if="deploymentId" :deploymentId="deploymentId" :processInstanceId="processInstanceId">
914 </ApprovalProcess> 935 </ApprovalProcess>
915 </ContentWrap> 936 </ContentWrap>
916 </div> 937 </div>
917 <div class="tool_btns" v-if="toolBtns.length && route.query.type == 'qualityEvaluate'"> 938 <div class="tool_btns"
939 v-if="toolBtns.length && (route.query.type == 'qualityEvaluate' || route.query.type == 'costAssess')">
918 <div class="btns"> 940 <div class="btns">
919 <el-button v-for="btn in toolBtns" :type="btn.type" :plain="btn.plain" @click="btnClick(btn)">{{ btn.label 941 <el-button v-for="btn in toolBtns" :type="btn.type" :plain="btn.plain" @click="btnClick(btn)">{{ btn.label
920 }}</el-button> 942 }}</el-button>
...@@ -952,6 +974,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -952,6 +974,7 @@ const rejectDialogBtnClick = (btn, info) => {
952 font-weight: 600; 974 font-weight: 600;
953 } 975 }
954 } 976 }
977
955 &.results_panel { 978 &.results_panel {
956 box-shadow: 0 0 0 1px #d9d9d9; 979 box-shadow: 0 0 0 1px #d9d9d9;
957 margin: 16px 16px 0px; 980 margin: 16px 16px 0px;
...@@ -1173,9 +1196,9 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1173,9 +1196,9 @@ const rejectDialogBtnClick = (btn, info) => {
1173 color: var(--el-color-primary); 1196 color: var(--el-color-primary);
1174 margin-right: 8px; 1197 margin-right: 8px;
1175 } 1198 }
1176 } 1199 }
1177 1200
1178 .list_panel { 1201 .list_panel {
1179 display: flex; 1202 display: flex;
1180 flex-wrap: wrap; 1203 flex-wrap: wrap;
1181 display: flex; 1204 display: flex;
......
...@@ -369,11 +369,6 @@ const tableBtnClick = (scope, btn) => { ...@@ -369,11 +369,6 @@ const tableBtnClick = (scope, btn) => {
369 }); 369 });
370 }); 370 });
371 } else if (type === 'detail') { // 详情 371 } else if (type === 'detail') { // 详情
372 router.push({
373 name: 'registerValueDetail',
374 query: { guid: row.registerGuid, costAssessGuid: row.guid, type: 'costAssess', daTenantGuid: row.tenantGuid }
375 });
376 } else if (type === 'detail') { // 详情
377 if (row.registerApproveState == 'Y') { 372 if (row.registerApproveState == 'Y') {
378 router.push({ 373 router.push({
379 name: 'registerDetail', 374 name: 'registerDetail',
...@@ -382,7 +377,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -382,7 +377,7 @@ const tableBtnClick = (scope, btn) => {
382 } else { 377 } else {
383 router.push({ 378 router.push({
384 name: 'evaCatalogDetail', 379 name: 'evaCatalogDetail',
385 query: { guid: row.registerGuid, costAssessGuid: row.guid, type: 'costAssess' } 380 query: { guid: row.damGuid, costAssessGuid: row.guid, type: 'costAssess' }
386 }); 381 });
387 } 382 }
388 } else if (type == 'productDetail') { 383 } else if (type == 'productDetail') {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!