755e4547 by

Merge branch 'revert-242a9cb3' into 'release-test'

Revert "Merge branch 'develop' into release-test"

See merge request !1
2 parents 242a9cb3 a1ff38bb
...@@ -17,7 +17,6 @@ declare module '@vue/runtime-core' { ...@@ -17,7 +17,6 @@ declare module '@vue/runtime-core' {
17 Copyright: typeof import('./src/components/Copyright/index.vue')['default'] 17 Copyright: typeof import('./src/components/Copyright/index.vue')['default']
18 Day: typeof import('./src/components/Schedule/component/day.vue')['default'] 18 Day: typeof import('./src/components/Schedule/component/day.vue')['default']
19 Dialog: typeof import('./src/components/Dialog/index.vue')['default'] 19 Dialog: typeof import('./src/components/Dialog/index.vue')['default']
20 Dialog_approval: typeof import('./src/components/ApprovalProcess/dialog_approval.vue')['default']
21 Dialog_form: typeof import('./src/components/Dialog/dialog_form.vue')['default'] 20 Dialog_form: typeof import('./src/components/Dialog/dialog_form.vue')['default']
22 Dialog_grid: typeof import('./src/components/Dialog/dialog_grid.vue')['default'] 21 Dialog_grid: typeof import('./src/components/Dialog/dialog_grid.vue')['default']
23 Dialog_pane: typeof import('./src/components/Dialog/dialog_pane.vue')['default'] 22 Dialog_pane: typeof import('./src/components/Dialog/dialog_pane.vue')['default']
......
...@@ -63,11 +63,4 @@ export const isMyFirstNode = (params) => request({ ...@@ -63,11 +63,4 @@ export const isMyFirstNode = (params) => request({
63 url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/work-flow/data/is-my-first-node`, 63 url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/work-flow/data/is-my-first-node`,
64 method: 'post', 64 method: 'post',
65 data: params 65 data: params
66 }) 66 })
67
68 /** 获取跨平台审批数据节点详情 */
69 export const getCrossDetailList = (params) => request({
70 url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/approve-detail-cross/list`,
71 method: 'post',
72 data: params
73 })
...\ No newline at end of file ...\ No newline at end of file
......
1 <script lang="ts" setup name="DialogApproval">
2 import { TableColumnWidth } from '@/utils/enum';
3 import {
4 getCrossDetailList
5 } from '@/api/modules/workFlowService';
6
7 const { proxy } = getCurrentInstance() as any;
8
9 const emits = defineEmits([
10 "dialogCancel"
11 ]);
12
13 const props = defineProps({
14 visible: {
15 type: Boolean,
16 default: false
17 },
18 currentRowInfo: {
19 type: Object,
20 default: {
21 }
22 }
23 })
24
25 const dialogInfo = ref({
26 visible: false,
27 size: 700,
28 direction: "column",
29 header: {
30 title: "主平台审批节点",
31 },
32 footer: {
33 visible: false
34 }
35 });
36
37 watch(() => props.visible, () => {
38 dialogInfo.value.visible = props.visible;
39 if (props.visible) {
40 tableInfo.value.data = [];
41 gettableList();
42 }
43 }, {
44 immediate: true
45 })
46
47 /** 获取版本信息数据 */
48 const gettableList = () => {
49 tableInfo.value.loading = true;
50 getCrossDetailList({
51 pageIndex: 1,
52 pageSize: -1,
53 bizGuid: props.currentRowInfo.guid
54 }).then((res: any) => {
55 tableInfo.value.loading = false;
56 if (res.code == proxy.$passCode) {
57 const data = res.data || [];
58 tableInfo.value.data = data?.map(d => {
59 d.approveState = d.approveState == null ? undefined : d.approveState;
60 return d;
61 });
62 } else {
63 proxy.$ElMessage.error(res.msg);
64 }
65 })
66 }
67
68 const tableInfo = ref({
69 id: 'approval-table',
70 loading: false,
71 minPanelHeight: "60px",
72 minHeight: "60px",
73 fields: [
74 { label: "序号", type: "index", width: TableColumnWidth.INDEX, align: "center", fixed: "left" },
75 {
76 label: "节点", field: "processName", width: 100
77 },
78 { label: "处理对象", field: "operator", width: TableColumnWidth.USERNAME },
79 { label: "操作时间", field: "operatingTime", width: TableColumnWidth.DATETIME, },
80 {
81 label: "审批状态", field: "approveState", width: 120, type: 'tag'
82 },
83 { label: "审批原因", field: "approveSuggest", width: TableColumnWidth.DESCRIPTION },
84 ],
85 data: [],
86 showPage: false,
87 actionInfo: {
88 show: false
89 }
90 });
91
92 const handleDialogCancel = () => {
93 dialogInfo.value.visible = false;
94 emits("dialogCancel");
95 }
96
97 </script>
98
99 <template>
100 <!-- 版本信息 -->
101 <el-dialog v-model="dialogInfo.visible" :title="dialogInfo.header.title" :width="dialogInfo.size" :modal="true"
102 :close-on-click-modal="true" destroy-on-close align-center @close="handleDialogCancel">
103 <Table ref="tableRef" :tableInfo="tableInfo" class="approval-table" />
104 </el-dialog>
105 </template>
106
107 <style lang="scss" scoped>
108 .approval-table {
109 height: 180px !important;
110 }
111
112 :deep(.cusror-inherit) {
113 cursor: inherit;
114 }
115 </style>
...\ No newline at end of file ...\ No newline at end of file
...@@ -291,17 +291,6 @@ onMounted(() => { ...@@ -291,17 +291,6 @@ onMounted(() => {
291 }}</el-tag> 291 }}</el-tag>
292 <span v-else>{{ '--' }}</span> 292 <span v-else>{{ '--' }}</span>
293 </template> 293 </template>
294 <template #default="scope" v-else-if="item.type == 'approveTagBtn'">
295 <div v-if="scope.row[item.field] !== undefined" style="position: relative;">
296 <el-tag :type="tagType(scope.row, item.field)">{{
297 tagMethod(scope.row, item.field)
298 }}</el-tag>
299 <span v-if="item.btn?.visible?.(scope) !== false && item.btn.visible !== false" class="text_btn" style="position: absolute;right: 0;"
300 @click="(item.btn.click && !item.btn.disabled && !scope.row.disabled) ? item.btn.click(scope, item.btn) : handleClick(scope, item.btn)"
301 v-preReClick>{{ item.btn.label }}</span>
302 </div>
303 <span v-else>{{ '--' }}</span>
304 </template>
305 <template #default="scope" v-else-if="item.type == 'popover'"> 294 <template #default="scope" v-else-if="item.type == 'popover'">
306 <el-popover v-if="scope.row[item.field] !== undefined && (item.checkName ? item.checkName(scope) : true)" 295 <el-popover v-if="scope.row[item.field] !== undefined && (item.checkName ? item.checkName(scope) : true)"
307 placement="left-start" :title="props.tableInfo.popoverTitle || '变化'" :width="476" trigger="hover" 296 placement="left-start" :title="props.tableInfo.popoverTitle || '变化'" :width="476" trigger="hover"
......
...@@ -17,7 +17,6 @@ declare module '@vue/runtime-core' { ...@@ -17,7 +17,6 @@ declare module '@vue/runtime-core' {
17 Copyright: typeof import('./../components/Copyright/index.vue')['default'] 17 Copyright: typeof import('./../components/Copyright/index.vue')['default']
18 Day: typeof import('./../components/Schedule/component/day.vue')['default'] 18 Day: typeof import('./../components/Schedule/component/day.vue')['default']
19 Dialog: typeof import('./../components/Dialog/index.vue')['default'] 19 Dialog: typeof import('./../components/Dialog/index.vue')['default']
20 Dialog_approval: typeof import('./../components/ApprovalProcess/dialog_approval.vue')['default']
21 Dialog_form: typeof import('./../components/Dialog/dialog_form.vue')['default'] 20 Dialog_form: typeof import('./../components/Dialog/dialog_form.vue')['default']
22 Dialog_grid: typeof import('./../components/Dialog/dialog_grid.vue')['default'] 21 Dialog_grid: typeof import('./../components/Dialog/dialog_grid.vue')['default']
23 Dialog_pane: typeof import('./../components/Dialog/dialog_pane.vue')['default'] 22 Dialog_pane: typeof import('./../components/Dialog/dialog_pane.vue')['default']
......
...@@ -379,7 +379,7 @@ export const chunk = (arr, size) => { ...@@ -379,7 +379,7 @@ export const chunk = (arr, size) => {
379 } 379 }
380 380
381 // 设置tag样式 381 // 设置tag样式
382 export const tagType = (row, type): any => { 382 export const tagType = (row, type) => {
383 let state = 'info' 383 let state = 'info'
384 if (type == 'connectStatus') { 384 if (type == 'connectStatus') {
385 switch (row[type]) { 385 switch (row[type]) {
...@@ -441,7 +441,7 @@ export const tagType = (row, type): any => { ...@@ -441,7 +441,7 @@ export const tagType = (row, type): any => {
441 state = 'warning'; 441 state = 'warning';
442 break; 442 break;
443 } 443 }
444 } else if (type == 'approveState' || type == 'crossPlatformApproveState') { 444 } else if (type == 'approveState') {
445 switch (row[type]) { 445 switch (row[type]) {
446 case "N": 446 case "N":
447 state = 'info'; 447 state = 'info';
...@@ -705,7 +705,7 @@ export const tagMethod = (row, type) => { ...@@ -705,7 +705,7 @@ export const tagMethod = (row, type) => {
705 tag = '待受理' 705 tag = '待受理'
706 break; 706 break;
707 } 707 }
708 } else if (type == 'approveState' || type == 'crossPlatformApproveState') { 708 } else if (type == 'approveState') {
709 switch (row[type]) { 709 switch (row[type]) {
710 case "N": 710 case "N":
711 tag = '草稿中' 711 tag = '草稿中'
...@@ -723,7 +723,7 @@ export const tagMethod = (row, type) => { ...@@ -723,7 +723,7 @@ export const tagMethod = (row, type) => {
723 tag = '已撤销' 723 tag = '已撤销'
724 break; 724 break;
725 default: 725 default:
726 tag = type == 'crossPlatformApproveState' ? '未发起' : '--' 726 tag = '--'
727 break; 727 break;
728 } 728 }
729 } else if (type == 'standardType') { 729 } else if (type == 'standardType') {
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
6 6
7 import { ref } from 'vue'; 7 import { ref } from 'vue';
8 import TableTools from "@/components/Tools/table_tools.vue"; 8 import TableTools from "@/components/Tools/table_tools.vue";
9 import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue';
10 import { ElMessage, ElMessageBox } from 'element-plus'; 9 import { ElMessage, ElMessageBox } from 'element-plus';
11 import { 10 import {
12 getQualityEvaList, 11 getQualityEvaList,
...@@ -31,14 +30,6 @@ const { proxy } = getCurrentInstance() as any; ...@@ -31,14 +30,6 @@ const { proxy } = getCurrentInstance() as any;
31 const userStore = useUserStore(); 30 const userStore = useUserStore();
32 const userData = JSON.parse(userStore.userData) 31 const userData = JSON.parse(userStore.userData)
33 32
34 const systemApproveCurrentRowInfo: any = ref({})
35
36 const approvalDialogVisible = ref(false);
37
38 const handleApprovalDialogCancel = () => {
39 approvalDialogVisible.value = false;
40 }
41
42 /** 数据来源于该企业申请登记的数据资产已通过且剔除数据质量评价中已通过、审批中的资产。 */ 33 /** 数据来源于该企业申请登记的数据资产已通过且剔除数据质量评价中已通过、审批中的资产。 */
43 const assetListData: any = ref([]); 34 const assetListData: any = ref([]);
44 35
...@@ -49,16 +40,6 @@ const tableFields = ref([ ...@@ -49,16 +40,6 @@ const tableFields = ref([
49 // { label: "企业名称", field: "tenantName", width: 240, align: "left" }, 40 // { label: "企业名称", field: "tenantName", width: 240, align: "left" },
50 { label: "评估机构", field: "evaluationAgencyName", width: 250, align: "left" }, 41 { label: "评估机构", field: "evaluationAgencyName", width: 250, align: "left" },
51 { label: "审批状态", field: "approveVO", type: "approveTag", width: 96, align: 'center' }, 42 { label: "审批状态", field: "approveVO", type: "approveTag", width: 96, align: 'center' },
52 {
53 label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 150, align: 'center', btn: {
54 label: '查看', visible: (scope) => {
55 return scope.row.crossPlatformApproveState != null;
56 }, click: (scope) => {
57 systemApproveCurrentRowInfo.value = scope.row;
58 approvalDialogVisible.value = true;
59 }
60 }
61 },
62 ]); 43 ]);
63 44
64 const deploymentId = ref(''); 45 const deploymentId = ref('');
...@@ -864,8 +845,6 @@ const passCommonDialogBtnClick = (btn, info) => { ...@@ -864,8 +845,6 @@ const passCommonDialogBtnClick = (btn, info) => {
864 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" @inputChange=passDialogInputChange /> 845 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" @inputChange=passDialogInputChange />
865 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" /> 846 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" />
866 <Dialog :dialogInfo="passCommonDialogInfo" @btnClick="passCommonDialogBtnClick" /> 847 <Dialog :dialogInfo="passCommonDialogInfo" @btnClick="passCommonDialogBtnClick" />
867 <DialogApproval :visible="approvalDialogVisible" :currentRowInfo="systemApproveCurrentRowInfo"
868 @dialog-cancel="handleApprovalDialogCancel"></DialogApproval>
869 </div> 848 </div>
870 </template> 849 </template>
871 850
......
...@@ -25,7 +25,7 @@ import { ...@@ -25,7 +25,7 @@ import {
25 } from "@/api/modules/queryService"; 25 } from "@/api/modules/queryService";
26 import { passFlowData, rejectFlowData, revokeFlowData, isMyFirstNode } from "@/api/modules/workFlowService"; 26 import { passFlowData, rejectFlowData, revokeFlowData, isMyFirstNode } from "@/api/modules/workFlowService";
27 import useDataAssetStore from "@/store/modules/dataAsset"; 27 import useDataAssetStore from "@/store/modules/dataAsset";
28 import { changeNum } from '@/utils/common'; 28 import { changeNum, getDownloadUrl, download } from '@/utils/common';
29 import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; 29 import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common';
30 30
31 const assetStore = useDataAssetStore(); 31 const assetStore = useDataAssetStore();
...@@ -1035,8 +1035,6 @@ const passDialogBtnClick = (btn, info) => { ...@@ -1035,8 +1035,6 @@ const passDialogBtnClick = (btn, info) => {
1035 } else { 1035 } else {
1036 ElMessage.error(res.msg); 1036 ElMessage.error(res.msg);
1037 } 1037 }
1038 }).catch(() => {
1039 passDialogInfo.value.footer.btns[1].loading = false;
1040 }); 1038 });
1041 } else if (detailType.value == 'costAssess') { 1039 } else if (detailType.value == 'costAssess') {
1042 if (submitPromise.value) { 1040 if (submitPromise.value) {
...@@ -1072,8 +1070,6 @@ const passDialogBtnClick = (btn, info) => { ...@@ -1072,8 +1070,6 @@ const passDialogBtnClick = (btn, info) => {
1072 } else { 1070 } else {
1073 ElMessage.error(res.msg); 1071 ElMessage.error(res.msg);
1074 } 1072 }
1075 }).catch(() => {
1076 passDialogInfo.value.footer.btns[1].loading = false;
1077 }); 1073 });
1078 } else if (detailType.value == 'certificate') { 1074 } else if (detailType.value == 'certificate') {
1079 if (submitPromise.value) { 1075 if (submitPromise.value) {
...@@ -1097,9 +1093,7 @@ const passDialogBtnClick = (btn, info) => { ...@@ -1097,9 +1093,7 @@ const passDialogBtnClick = (btn, info) => {
1097 } else { 1093 } else {
1098 ElMessage.error(res.msg); 1094 ElMessage.error(res.msg);
1099 } 1095 }
1100 }).catch(() => { 1096 })
1101 passDialogInfo.value.footer.btns[1].loading = false;
1102 });
1103 } 1097 }
1104 } else if (btn.value == 'cancel') { 1098 } else if (btn.value == 'cancel') {
1105 passDialogInfo.value.visible = false; 1099 passDialogInfo.value.visible = false;
...@@ -1170,8 +1164,6 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1170,8 +1164,6 @@ const rejectDialogBtnClick = (btn, info) => {
1170 } else { 1164 } else {
1171 ElMessage.error(res.msg); 1165 ElMessage.error(res.msg);
1172 } 1166 }
1173 }).catch(() => {
1174 rejectDialogInfo.value.footer.btns[1].loading = false;
1175 }); 1167 });
1176 } else if (btn.value == 'cancel') { 1168 } else if (btn.value == 'cancel') {
1177 rejectDialogInfo.value.visible = false; 1169 rejectDialogInfo.value.visible = false;
...@@ -1256,9 +1248,7 @@ const passCommonDialogBtnClick = (btn, info) => { ...@@ -1256,9 +1248,7 @@ const passCommonDialogBtnClick = (btn, info) => {
1256 } else { 1248 } else {
1257 ElMessage.error(res.msg); 1249 ElMessage.error(res.msg);
1258 } 1250 }
1259 }).catch(() => { 1251 })
1260 passCommonDialogInfo.value.footer.btns[1].loading = false;
1261 });
1262 } else if (btn.value == 'cancel') { 1252 } else if (btn.value == 'cancel') {
1263 passCommonDialogInfo.value.visible = false; 1253 passCommonDialogInfo.value.visible = false;
1264 } 1254 }
......
...@@ -7,7 +7,6 @@ import { ref } from 'vue'; ...@@ -7,7 +7,6 @@ import { ref } from 'vue';
7 import TableTools from "@/components/Tools/table_tools.vue"; 7 import TableTools from "@/components/Tools/table_tools.vue";
8 import { ElMessage, ElMessageBox } from 'element-plus'; 8 import { ElMessage, ElMessageBox } from 'element-plus';
9 import { CarouselPanel } from '@/components/CarouselPanel'; 9 import { CarouselPanel } from '@/components/CarouselPanel';
10 import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue';
11 import { useRouter, useRoute } from "vue-router"; 10 import { useRouter, useRoute } from "vue-router";
12 import { MoreFilled } from "@element-plus/icons-vue"; 11 import { MoreFilled } from "@element-plus/icons-vue";
13 import { changeNum } from "@/utils/common"; 12 import { changeNum } from "@/utils/common";
...@@ -96,21 +95,13 @@ const pageInfo = ref({ ...@@ -96,21 +95,13 @@ const pageInfo = ref({
96 tenantGuid: '', 95 tenantGuid: '',
97 }); 96 });
98 97
99 const systemApproveCurrentRowInfo: any = ref({})
100
101 const approvalDialogVisible = ref(false);
102
103 const handleApprovalDialogCancel = () => {
104 approvalDialogVisible.value = false;
105 }
106
107 const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "center" }, 98 const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "center" },
108 { label: "资产名称", field: "daName", width: 160, align: "left" }, 99 { label: "资产名称", field: "daName", width: 160, align: "left" },
109 { label: "数据分类", field: "dataCategoryName", width: 120, align: "left" }, 100 { label: "数据分类", field: "dataCategoryName", width: 120, align: "left" },
110 { label: "存储方式", field: "storageFormName", width: 120, align: "left" }, 101 { label: "存储方式", field: "storageFormName", width: 120, align: "left" },
111 { label: "数交所名称", field: "exchangeName", width: 160, align: "left" }, 102 { label: "数交所名称", field: "exchangeName", width: 160, align: "left" },
112 { 103 {
113 label: "审批状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => { 104 label: "状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => {
114 const approveVO = scope.row.approveVO || {} 105 const approveVO = scope.row.approveVO || {}
115 switch (approveVO.approveState) { 106 switch (approveVO.approveState) {
116 case 'N': 107 case 'N':
...@@ -142,16 +133,6 @@ const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "ce ...@@ -142,16 +133,6 @@ const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "ce
142 } 133 }
143 } 134 }
144 }, 135 },
145 {
146 label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 150, align: 'center', btn: {
147 label: '查看', visible: (scope) => {
148 return scope.row.crossPlatformApproveState != null;
149 }, click: (scope) => {
150 systemApproveCurrentRowInfo.value = scope.row;
151 approvalDialogVisible.value = true;
152 }
153 }
154 },
155 { label: "修改人", field: "updateUserName", width: 140 }, 136 { label: "修改人", field: "updateUserName", width: 140 },
156 { label: "修改时间", field: "updateTime", width: 180 }]); 137 { label: "修改时间", field: "updateTime", width: 180 }]);
157 138
...@@ -443,7 +424,7 @@ const passDialogInfo = ref({ ...@@ -443,7 +424,7 @@ const passDialogInfo = ref({
443 424
444 const passDialogBtnClick = (btn, info) => { 425 const passDialogBtnClick = (btn, info) => {
445 if (btn.value == 'submit') { 426 if (btn.value == 'submit') {
446 passDialogInfo.value.footer.btns[1].loading = true; 427 loading.value = true;
447 let params = { 428 let params = {
448 guid: currTableData.value.approveVO.approveGuid, 429 guid: currTableData.value.approveVO.approveGuid,
449 flowType: currTableData.value.approveVO.flowType, 430 flowType: currTableData.value.approveVO.flowType,
...@@ -451,7 +432,7 @@ const passDialogBtnClick = (btn, info) => { ...@@ -451,7 +432,7 @@ const passDialogBtnClick = (btn, info) => {
451 approveStaffGuid: userData.staffGuid, 432 approveStaffGuid: userData.staffGuid,
452 } 433 }
453 passFlowData(params, currTableData.value.tenantGuid).then((res: any) => { 434 passFlowData(params, currTableData.value.tenantGuid).then((res: any) => {
454 passDialogInfo.value.footer.btns[1].loading = false; 435 loading.value = false;
455 if (res?.code == proxy.$passCode) { 436 if (res?.code == proxy.$passCode) {
456 if (res.data) { 437 if (res.data) {
457 ElMessage.success('审批成功'); 438 ElMessage.success('审批成功');
...@@ -464,7 +445,7 @@ const passDialogBtnClick = (btn, info) => { ...@@ -464,7 +445,7 @@ const passDialogBtnClick = (btn, info) => {
464 ElMessage.error(res.msg); 445 ElMessage.error(res.msg);
465 } 446 }
466 }).catch(() => { 447 }).catch(() => {
467 passDialogInfo.value.footer.btns[1].loading = false; 448 loading.value = false;
468 }); 449 });
469 } else if (btn.value == 'cancel') { 450 } else if (btn.value == 'cancel') {
470 passDialogInfo.value.visible = false; 451 passDialogInfo.value.visible = false;
...@@ -502,7 +483,7 @@ const rejectDialogInfo = ref({ ...@@ -502,7 +483,7 @@ const rejectDialogInfo = ref({
502 footer: { 483 footer: {
503 btns: [ 484 btns: [
504 { type: "default", label: "取消", value: "cancel" }, 485 { type: "default", label: "取消", value: "cancel" },
505 { type: "primary", label: "确定", value: "submit", loading: false }, 486 { type: "primary", label: "确定", value: "submit" },
506 ], 487 ],
507 }, 488 },
508 }); 489 });
...@@ -513,7 +494,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -513,7 +494,7 @@ const rejectDialogBtnClick = (btn, info) => {
513 ElMessage.error('请填写驳回理由'); 494 ElMessage.error('请填写驳回理由');
514 return 495 return
515 } 496 }
516 rejectDialogInfo.value.footer.btns[1].loading = true; 497 loading.value = true;
517 let params = { 498 let params = {
518 guid: currTableData.value.approveVO.approveGuid, 499 guid: currTableData.value.approveVO.approveGuid,
519 flowType: currTableData.value.approveVO.flowType, 500 flowType: currTableData.value.approveVO.flowType,
...@@ -521,7 +502,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -521,7 +502,7 @@ const rejectDialogBtnClick = (btn, info) => {
521 approveStaffGuid: userData.staffGuid, 502 approveStaffGuid: userData.staffGuid,
522 } 503 }
523 rejectFlowData(params, currTableData.value.tenantGuid).then((res: any) => { 504 rejectFlowData(params, currTableData.value.tenantGuid).then((res: any) => {
524 rejectDialogInfo.value.footer.btns[1].loading = false; 505 loading.value = false;
525 if (res?.code == proxy.$passCode) { 506 if (res?.code == proxy.$passCode) {
526 if (res.data) { 507 if (res.data) {
527 ElMessage.success('驳回成功'); 508 ElMessage.success('驳回成功');
...@@ -534,7 +515,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -534,7 +515,7 @@ const rejectDialogBtnClick = (btn, info) => {
534 ElMessage.error(res.msg); 515 ElMessage.error(res.msg);
535 } 516 }
536 }).catch(() => { 517 }).catch(() => {
537 rejectDialogInfo.value.footer.btns[1].loading = false; 518 loading.value = false;
538 }); 519 });
539 } else if (btn.value == 'cancel') { 520 } else if (btn.value == 'cancel') {
540 rejectDialogInfo.value.visible = false; 521 rejectDialogInfo.value.visible = false;
...@@ -581,8 +562,6 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -581,8 +562,6 @@ const rejectDialogBtnClick = (btn, info) => {
581 </div> 562 </div>
582 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" /> 563 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" />
583 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" /> 564 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" />
584 <DialogApproval :visible="approvalDialogVisible" :currentRowInfo="systemApproveCurrentRowInfo"
585 @dialog-cancel="handleApprovalDialogCancel"></DialogApproval>
586 </div> 565 </div>
587 </template> 566 </template>
588 567
......
...@@ -12,9 +12,10 @@ import { ...@@ -12,9 +12,10 @@ import {
12 saveCostAssess, 12 saveCostAssess,
13 updateCostAssess, 13 updateCostAssess,
14 deleteCostAssess, 14 deleteCostAssess,
15 registerApproveCancel,
16 registerApproveBackup,
15 costAssessAllow 17 costAssessAllow
16 } from "@/api/modules/dataAsset"; 18 } from "@/api/modules/dataAsset";
17 import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue';
18 import { 19 import {
19 getStaffDetailInfo 20 getStaffDetailInfo
20 } from "@/api/modules/queryService"; 21 } from "@/api/modules/queryService";
...@@ -36,14 +37,8 @@ const isCompanyPlatform = ref(userData.tenantType == 1); ...@@ -36,14 +37,8 @@ const isCompanyPlatform = ref(userData.tenantType == 1);
36 37
37 /** 数据来源于该企业申请登记的数据资产已通过且剔除数据价值评估中已通过、审批中的资产。 */ 38 /** 数据来源于该企业申请登记的数据资产已通过且剔除数据价值评估中已通过、审批中的资产。 */
38 const assetListData: any = ref([]); 39 const assetListData: any = ref([]);
39 40 /** 会员附件模板 */
40 const systemApproveCurrentRowInfo: any = ref({}) 41 const attachDataInfo: any = ref({});
41
42 const approvalDialogVisible = ref(false);
43
44 const handleApprovalDialogCancel = () => {
45 approvalDialogVisible.value = false;
46 }
47 42
48 const tableFields = ref([ 43 const tableFields = ref([
49 { label: "序号", type: "index", width: 56, align: "center" }, 44 { label: "序号", type: "index", width: 56, align: "center" },
...@@ -52,15 +47,35 @@ const tableFields = ref([ ...@@ -52,15 +47,35 @@ const tableFields = ref([
52 // { label: "企业名称", field: "tenantName", width: 240, align: "left" }, 47 // { label: "企业名称", field: "tenantName", width: 240, align: "left" },
53 { label: "评估机构", field: "evaluationAgencyName", width: 250, align: "left" }, 48 { label: "评估机构", field: "evaluationAgencyName", width: 250, align: "left" },
54 { 49 {
55 label: "审批状态", field: "approveVO", type: "approveTag", width: 96, align: 'center' 50 label: "审批状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => {
56 }, 51 const approveVO = scope.row.approveVO || {}
57 { 52 switch (approveVO.approveState) {
58 label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 150, align: 'center', btn: { 53 case 'N':
59 label: '查看', visible: (scope) => { 54 return '草稿中';
60 return scope.row.crossPlatformApproveState != null; 55 case 'A':
61 }, click: (scope) => { 56 return '审批中';
62 systemApproveCurrentRowInfo.value = scope.row; 57 case 'Y':
63 approvalDialogVisible.value = true; 58 return '已通过';
59 case 'R':
60 return '已驳回';
61 case 'C':
62 return '已撤销';
63 case 'I':
64 return '--';
65 default:
66 return '草稿中';
67 }
68 }, tagType: (scope) => {
69 const approveVO = scope.row.approveVO || {}
70 switch (approveVO.approveState) {
71 case 'A':
72 return 'warning';
73 case 'Y':
74 return 'success';
75 case 'R':
76 return 'danger';
77 default:
78 return 'info';
64 } 79 }
65 } 80 }
66 }, 81 },
...@@ -976,16 +991,16 @@ const passDialogInfo = ref({ ...@@ -976,16 +991,16 @@ const passDialogInfo = ref({
976 footer: { 991 footer: {
977 btns: [ 992 btns: [
978 { type: "default", label: "取消", value: "cancel" }, 993 { type: "default", label: "取消", value: "cancel" },
979 { type: "primary", label: "确定", value: "submit", loading: false }, 994 { type: "primary", label: "确定", value: "submit" },
980 ], 995 ],
981 }, 996 },
982 }); 997 });
983 998
984 const passDialogBtnClick = (btn, info) => { 999 const passDialogBtnClick = (btn, info) => {
985 let params: any = {} 1000 let params: any = {}
986 // console.log('btn', btn, info, currTableData.value); 1001 console.log('btn', btn, info, currTableData.value);
987 if (btn.value == 'submit') { 1002 if (btn.value == 'submit') {
988 passDialogInfo.value.footer.btns[1].loading = true; 1003
989 costAssessAllow({ 1004 costAssessAllow({
990 guid: currTableData.value.approveVO.approveGuid, 1005 guid: currTableData.value.approveVO.approveGuid,
991 bizGuid: currTableData.value.guid, 1006 bizGuid: currTableData.value.guid,
...@@ -1001,7 +1016,6 @@ const passDialogBtnClick = (btn, info) => { ...@@ -1001,7 +1016,6 @@ const passDialogBtnClick = (btn, info) => {
1001 } 1016 }
1002 }) || [] 1017 }) || []
1003 }, currTableData.value.tenantGuid).then((res: any) => { 1018 }, currTableData.value.tenantGuid).then((res: any) => {
1004 passDialogInfo.value.footer.btns[1].loading = false;
1005 if (res?.code == proxy.$passCode) { 1019 if (res?.code == proxy.$passCode) {
1006 if (res.data) { 1020 if (res.data) {
1007 ElMessage.success('审批成功'); 1021 ElMessage.success('审批成功');
...@@ -1013,9 +1027,7 @@ const passDialogBtnClick = (btn, info) => { ...@@ -1013,9 +1027,7 @@ const passDialogBtnClick = (btn, info) => {
1013 } else { 1027 } else {
1014 ElMessage.error(res.msg); 1028 ElMessage.error(res.msg);
1015 } 1029 }
1016 }).catch(() => { 1030 })
1017 passDialogInfo.value.footer.btns[1].loading = false;
1018 });
1019 } else if (btn.value == 'cancel') { 1031 } else if (btn.value == 'cancel') {
1020 passDialogInfo.value.visible = false; 1032 passDialogInfo.value.visible = false;
1021 } 1033 }
...@@ -1101,7 +1113,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1101,7 +1113,7 @@ const rejectDialogBtnClick = (btn, info) => {
1101 ElMessage.error('请填写驳回理由'); 1113 ElMessage.error('请填写驳回理由');
1102 return 1114 return
1103 } 1115 }
1104 // console.log('currTableData', currTableData.value, info); 1116 console.log('currTableData', currTableData.value, info);
1105 rejectDialogInfo.value.footer.btns[1].loading = true; 1117 rejectDialogInfo.value.footer.btns[1].loading = true;
1106 let params = { 1118 let params = {
1107 guid: currTableData.value.approveVO.approveGuid, 1119 guid: currTableData.value.approveVO.approveGuid,
...@@ -1122,9 +1134,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1122,9 +1134,7 @@ const rejectDialogBtnClick = (btn, info) => {
1122 } else { 1134 } else {
1123 ElMessage.error(res.msg); 1135 ElMessage.error(res.msg);
1124 } 1136 }
1125 }).catch(() => { 1137 })
1126 rejectDialogInfo.value.footer.btns[1].loading = false;
1127 });
1128 } else if (btn.value == 'cancel') { 1138 } else if (btn.value == 'cancel') {
1129 rejectDialogInfo.value.visible = false; 1139 rejectDialogInfo.value.visible = false;
1130 } 1140 }
...@@ -1152,9 +1162,7 @@ const passCommonDialogBtnClick = (btn, info) => { ...@@ -1152,9 +1162,7 @@ const passCommonDialogBtnClick = (btn, info) => {
1152 } else { 1162 } else {
1153 ElMessage.error(res.msg); 1163 ElMessage.error(res.msg);
1154 } 1164 }
1155 }).catch(() => { 1165 })
1156 passCommonDialogInfo.value.footer.btns[1].loading = false;
1157 });
1158 } else if (btn.value == 'cancel') { 1166 } else if (btn.value == 'cancel') {
1159 passCommonDialogInfo.value.visible = false; 1167 passCommonDialogInfo.value.visible = false;
1160 } 1168 }
...@@ -1177,7 +1185,6 @@ const passCommonDialogBtnClick = (btn, info) => { ...@@ -1177,7 +1185,6 @@ const passCommonDialogBtnClick = (btn, info) => {
1177 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" @inputChange="passDialogInputChange" /> 1185 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" @inputChange="passDialogInputChange" />
1178 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" /> 1186 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" />
1179 <Dialog :dialogInfo="passCommonDialogInfo" @btnClick="passCommonDialogBtnClick" /> 1187 <Dialog :dialogInfo="passCommonDialogInfo" @btnClick="passCommonDialogBtnClick" />
1180 <DialogApproval :visible="approvalDialogVisible" :currentRowInfo="systemApproveCurrentRowInfo" @dialog-cancel="handleApprovalDialogCancel"></DialogApproval>
1181 </div> 1188 </div>
1182 </template> 1189 </template>
1183 1190
......
...@@ -11,7 +11,7 @@ import { ElMessage, ElMessageBox } from "element-plus"; ...@@ -11,7 +11,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
11 import useDataAssetStore from "@/store/modules/dataAsset"; 11 import useDataAssetStore from "@/store/modules/dataAsset";
12 import { getListingList, listingDelete, listingUpdateStatus, getListingCount, productRejectFlowData } from "@/api/modules/dataProduct"; 12 import { getListingList, listingDelete, listingUpdateStatus, getListingCount, productRejectFlowData } from "@/api/modules/dataProduct";
13 import { TableColumnWidth } from '@/utils/enum'; 13 import { TableColumnWidth } from '@/utils/enum';
14 import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue'; 14
15 import TableTools from "@/components/Tools/table_tools.vue"; 15 import TableTools from "@/components/Tools/table_tools.vue";
16 import Table from "@/components/Table/index.vue"; 16 import Table from "@/components/Table/index.vue";
17 import { CarouselPanel } from '@/components/CarouselPanel'; 17 import { CarouselPanel } from '@/components/CarouselPanel';
...@@ -76,15 +76,6 @@ const page = ref({ ...@@ -76,15 +76,6 @@ const page = ref({
76 }); 76 });
77 const searchItemValue: any = ref({}); 77 const searchItemValue: any = ref({});
78 const currTableData: any = ref({}); 78 const currTableData: any = ref({});
79
80 const systemApproveCurrentRowInfo: any = ref({})
81
82 const approvalDialogVisible = ref(false);
83
84 const handleApprovalDialogCancel = () => {
85 approvalDialogVisible.value = false;
86 }
87
88 const tableInfo = ref({ 79 const tableInfo = ref({
89 id: "mapping-table", 80 id: "mapping-table",
90 fields: [ 81 fields: [
...@@ -101,23 +92,43 @@ const tableInfo = ref({ ...@@ -101,23 +92,43 @@ const tableInfo = ref({
101 }, 92 },
102 { label: "上架分类", field: "exchangeName", width: 140 }, 93 { label: "上架分类", field: "exchangeName", width: 140 },
103 { 94 {
104 label: "审批状态", field: "approveVO", type: "approveTag", width: TableColumnWidth.STATE, align: 'center' 95 label: "审核状态", field: "approveState", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => {
96 const approveVO = scope.row.approveVO || {}
97 switch (approveVO.approveState) {
98 case 'N':
99 return '草稿中';
100 case 'A':
101 return '审批中';
102 case 'Y':
103 return '已通过';
104 case 'R':
105 return '已驳回';
106 case 'C':
107 return '已撤销';
108 case 'I':
109 return '--';
110 default:
111 return '草稿中';
112 }
113 }, tagType: (scope) => {
114 const approveVO = scope.row.approveVO || {}
115 switch (approveVO.approveState) {
116 case 'A':
117 return 'warning';
118 case 'Y':
119 return 'success';
120 case 'R':
121 return 'danger';
122 default:
123 return 'info';
124 }
125 }
105 }, 126 },
106 { 127 {
107 label: '上架状态', field: 'listingStatus', width: 100, getName: (scope) => { 128 label: '上架状态', field: 'listingStatus', width: 100, getName: (scope) => {
108 return scope.row.listingStatus == 'Y' ? '已上架' : '未上架'; 129 return scope.row.listingStatus == 'Y' ? '已上架' : '未上架';
109 } 130 }
110 }, 131 },
111 {
112 label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 150, align: 'center', btn: {
113 label: '查看', visible: (scope) => {
114 return scope.row.crossPlatformApproveState != null;
115 }, click: (scope) => {
116 systemApproveCurrentRowInfo.value = scope.row;
117 approvalDialogVisible.value = true;
118 }
119 }
120 },
121 { label: "修改时间", field: "updateTime", width: TableColumnWidth.DATETIME }, 132 { label: "修改时间", field: "updateTime", width: TableColumnWidth.DATETIME },
122 ], 133 ],
123 loading: false, 134 loading: false,
...@@ -984,7 +995,6 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -984,7 +995,6 @@ const rejectDialogBtnClick = (btn, info) => {
984 </el-dialog> 995 </el-dialog>
985 <Dialog :dialogInfo="passCommonDialogInfo" @btnClick="passCommonDialogBtnClick" /> 996 <Dialog :dialogInfo="passCommonDialogInfo" @btnClick="passCommonDialogBtnClick" />
986 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" /> 997 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" />
987 <DialogApproval :visible="approvalDialogVisible" :currentRowInfo="systemApproveCurrentRowInfo" @dialog-cancel="handleApprovalDialogCancel"></DialogApproval>
988 </div> 998 </div>
989 </template> 999 </template>
990 1000
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!