e4e0cb29 by lxs

数据资产登记更新

1 parent 6c643bf5
...@@ -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,24 +95,14 @@ const pageInfo = ref({ ...@@ -96,24 +95,14 @@ 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 = (reSubmit) => {
104 approvalDialogVisible.value = false;
105 if (reSubmit) {
106 getTableData();
107 }
108 }
109
110 const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "center" }, 98 const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "center" },
111 { label: "资产名称", field: "daName", width: 160, align: "left" }, 99 { label: "资产名称", field: "daName", width: 160, align: "left" },
112 { label: "数据分类", field: "dataCategoryName", width: 120, align: "left" }, 100 { label: "数据分类", field: "dataCategoryName", width: 120, align: "left" },
113 { label: "存储方式", field: "storageFormName", width: 120, align: "left" }, 101 { label: "存储方式", field: "storageFormName", width: 120, align: "left" },
114 { label: "数交所名称", field: "exchangeName", width: 160, align: "left" }, 102 { label: "数交所名称", field: "exchangeName", width: 160, align: "left" },
103 { label: "专区名称", field: "zqName", width: 160, align: "left" },
115 { 104 {
116 label: "审批状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => { 105 label: "状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => {
117 const approveVO = scope.row.approveVO || {} 106 const approveVO = scope.row.approveVO || {}
118 switch (approveVO.approveState) { 107 switch (approveVO.approveState) {
119 case 'N': 108 case 'N':
...@@ -145,16 +134,6 @@ const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "ce ...@@ -145,16 +134,6 @@ const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "ce
145 } 134 }
146 } 135 }
147 }, 136 },
148 {
149 label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 170, align: 'center', btn: {
150 label: '查看', visible: (scope) => {
151 return scope.row.crossPlatformApproveState != null;
152 }, click: (scope) => {
153 systemApproveCurrentRowInfo.value = scope.row;
154 approvalDialogVisible.value = true;
155 }
156 }
157 },
158 { label: "修改人", field: "updateUserName", width: 140 }, 137 { label: "修改人", field: "updateUserName", width: 140 },
159 { label: "修改时间", field: "updateTime", width: 180 }]); 138 { label: "修改时间", field: "updateTime", width: 180 }]);
160 139
...@@ -212,12 +191,12 @@ const getTableBtns = (row, includeDetail = true) => { ...@@ -212,12 +191,12 @@ const getTableBtns = (row, includeDetail = true) => {
212 if (flowState === 2) { 191 if (flowState === 2) {
213 btnsArr.push(...[{ label: "通过", value: "pass" }, { label: "驳回", value: "reject" }]) 192 btnsArr.push(...[{ label: "通过", value: "pass" }, { label: "驳回", value: "reject" }])
214 } else if (flowState === 3) { 193 } else if (flowState === 3) {
215 if (bizApproveState != 'D') { 194 if (bizApproveState != 'D' && !row.zqName) {
216 btnsArr.push({ label: "重新提交", value: "edit" }) 195 btnsArr.push({ label: "重新提交", value: "edit" })
217 } 196 }
218 } 197 }
219 isShowCancel && btnsArr.push({ label: "撤销", value: "revoke" }) 198 isShowCancel && !row.zqName && btnsArr.push({ label: "撤销", value: "revoke" })
220 flowState === 3 && btnsArr.push({ label: "删除", value: "delete" }) 199 flowState === 3 && !row.zqName && btnsArr.push({ label: "删除", value: "delete" })
221 } 200 }
222 return btnsArr 201 return btnsArr
223 } 202 }
...@@ -498,7 +477,7 @@ const rejectDialogInfo = ref({ ...@@ -498,7 +477,7 @@ const rejectDialogInfo = ref({
498 block: true, 477 block: true,
499 col: 'margin_b_0', 478 col: 'margin_b_0',
500 } 479 }
501 ] 480 ],
502 } 481 }
503 } 482 }
504 ], 483 ],
...@@ -584,8 +563,6 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -584,8 +563,6 @@ const rejectDialogBtnClick = (btn, info) => {
584 </div> 563 </div>
585 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" /> 564 <Dialog :dialogInfo="passDialogInfo" @btnClick="passDialogBtnClick" />
586 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" /> 565 <Dialog :dialogInfo="rejectDialogInfo" @btnClick="rejectDialogBtnClick" />
587 <DialogApproval :visible="approvalDialogVisible" :currentRowInfo="systemApproveCurrentRowInfo"
588 @dialog-cancel="handleApprovalDialogCancel"></DialogApproval>
589 </div> 566 </div>
590 </template> 567 </template>
591 568
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!