71fb119e by lihua

修改部分审批接口联调

1 parent 83b659b1
...@@ -89,7 +89,7 @@ export const getUserTenant = () => request({ ...@@ -89,7 +89,7 @@ export const getUserTenant = () => request({
89 89
90 // 获取企业信息 90 // 获取企业信息
91 export const getEnterpriseData = (params) => request({ 91 export const getEnterpriseData = (params) => request({
92 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/detail-by-logonUser`, 92 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/enterprise/detail-by-logonUser`,
93 method: 'get', 93 method: 'get',
94 params 94 params
95 }) 95 })
......
...@@ -94,7 +94,7 @@ export const getUserTenant = () => request({ ...@@ -94,7 +94,7 @@ export const getUserTenant = () => request({
94 94
95 // 获取企业信息 95 // 获取企业信息
96 export const getEnterpriseData = (params) => request({ 96 export const getEnterpriseData = (params) => request({
97 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/detail-by-logonUser`, 97 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/enterprise/detail-by-logonUser`,
98 method: 'get', 98 method: 'get',
99 params 99 params
100 }) 100 })
......
...@@ -22,7 +22,7 @@ export const rejectFlowData = (params, serviceTenantGuid:any=null) => request({ ...@@ -22,7 +22,7 @@ export const rejectFlowData = (params, serviceTenantGuid:any=null) => request({
22 }) 22 })
23 // 审批撤销 23 // 审批撤销
24 export const revokeFlowData = (params, serviceTenantGuid:any=null) => request({ 24 export const revokeFlowData = (params, serviceTenantGuid:any=null) => request({
25 url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/work-flow/data/canal-flow${ serviceTenantGuid ? `?serviceTenantGuid=${serviceTenantGuid}` : '' }`, 25 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/data/canal-flow${ serviceTenantGuid ? `?serviceTenantGuid=${serviceTenantGuid}` : '' }`,
26 method: 'post', 26 method: 'post',
27 data: params 27 data: params
28 }) 28 })
......
...@@ -883,7 +883,7 @@ const getTenant = () => { ...@@ -883,7 +883,7 @@ const getTenant = () => {
883 detailGuid.value = data.guid || ''; 883 detailGuid.value = data.guid || '';
884 bizApproveState.value = data.bizApproveState || ''; 884 bizApproveState.value = data.bizApproveState || '';
885 // crossPlatformApproveState.value = data.tdsApproveState || ''; 885 // crossPlatformApproveState.value = data.tdsApproveState || '';
886 isEdit.value = (bizApproveState.value == 'Y' || crossPlatformApproveState.value == 'Y' || bizApproveState.value == 'A' || crossPlatformApproveState.value == 'A' || bizApproveState.value == 'B') ? false : true; 886 isEdit.value = (bizApproveState.value == 'Y' || bizApproveState.value == 'E' || crossPlatformApproveState.value == 'Y' || bizApproveState.value == 'A' || crossPlatformApproveState.value == 'A' || bizApproveState.value == 'B') ? false : true;
887 contentFormItems.value[1].disabled = bizApproveState.value == 'Y' || crossPlatformApproveState.value == 'Y' ? true : false; 887 contentFormItems.value[1].disabled = bizApproveState.value == 'Y' || crossPlatformApproveState.value == 'Y' ? true : false;
888 tableData.value = data.changeList || []; 888 tableData.value = data.changeList || [];
889 orgData.value = data.domainRSVOS?.map(d => { 889 orgData.value = data.domainRSVOS?.map(d => {
......
...@@ -68,6 +68,12 @@ const handleApprovalDialogCancel = () => { ...@@ -68,6 +68,12 @@ const handleApprovalDialogCancel = () => {
68 const tableFields: any = ref([ 68 const tableFields: any = ref([
69 { label: "序号", type: "index", width: 56, align: "center" }, 69 { label: "序号", type: "index", width: 56, align: "center" },
70 { label: "企业名称", field: "tenantName", width: 200, }, 70 { label: "企业名称", field: "tenantName", width: 200, },
71 {
72 label: "机构类型", field: "tenantType", width: 120, getName: (scope) => {
73 const datas = typeMap.value?.tenantType;
74 return datas?.find((item) => item.value == scope.row.tenantType)?.label || '--';
75 }
76 },
71 { label: "统一社会信用代码", field: "socialCreditCode", width: 160 }, 77 { label: "统一社会信用代码", field: "socialCreditCode", width: 160 },
72 { 78 {
73 label: "法人姓名", field: "juridicalPerson", width: TableColumnWidth.USERNAME, 79 label: "法人姓名", field: "juridicalPerson", width: TableColumnWidth.USERNAME,
...@@ -220,7 +226,7 @@ const getTableBtns = (row, includeDetail = true) => { ...@@ -220,7 +226,7 @@ const getTableBtns = (row, includeDetail = true) => {
220 const promiseList = async (...promises: Promise<void>[]) => { 226 const promiseList = async (...promises: Promise<void>[]) => {
221 try { 227 try {
222 await Promise.all(promises).then((res) => { 228 await Promise.all(promises).then((res) => {
223 setTableField(); 229 // setTableField();
224 }); 230 });
225 } catch (e) { 231 } catch (e) {
226 loading.value = false; 232 loading.value = false;
...@@ -241,15 +247,6 @@ const getDataType = (dictType, fieldName) => { ...@@ -241,15 +247,6 @@ const getDataType = (dictType, fieldName) => {
241 }) 247 })
242 } 248 }
243 249
244 const setTableField = () => {
245 tableFields.value.splice(2, 0, {
246 label: "机构类型", field: "tenantType", width: 120, getName: (scope) => {
247 const datas = typeMap.value.tenantType;
248 return datas.find((item) => item.value == scope.row.tenantType)?.label || '--';
249 }
250 });
251 }
252
253 const toSearch = (val: any, clear: boolean = false) => { 250 const toSearch = (val: any, clear: boolean = false) => {
254 page.value.curr = 1; 251 page.value.curr = 1;
255 if (clear) { 252 if (clear) {
...@@ -270,8 +267,8 @@ const getTableData = () => { ...@@ -270,8 +267,8 @@ const getTableData = () => {
270 getEnterpriseList({ 267 getEnterpriseList({
271 pageSize: page.value.limit, 268 pageSize: page.value.limit,
272 pageIndex: page.value.curr, 269 pageIndex: page.value.curr,
273 param1Like: page.value.tenantName, 270 tenantName: page.value.tenantName,
274 param2: page.value.tenantType, 271 tenantType: page.value.tenantType,
275 flowTypeList: ["10013", "10014"], 272 flowTypeList: ["10013", "10014"],
276 tenantGuid: userData.tenantGuid, 273 tenantGuid: userData.tenantGuid,
277 staffGuid: userData.staffGuid, 274 staffGuid: userData.staffGuid,
......
...@@ -169,7 +169,7 @@ const getTableBtns = (row, includeDetail = true) => { ...@@ -169,7 +169,7 @@ const getTableBtns = (row, includeDetail = true) => {
169 // if (approveState == 'A' && approveStaffGuids.indexOf(currentStaffGuid) > -1) { 169 // if (approveState == 'A' && approveStaffGuids.indexOf(currentStaffGuid) > -1) {
170 // flowState = 2; 170 // flowState = 2;
171 // } 171 // }
172 if ((approveState == 'C' || approveState == 'R') && staffGuid == currentStaffGuid) { 172 if ((approveState == 'C' || approveState == 'E' || approveState == 'R') && staffGuid == currentStaffGuid) {
173 flowState = 3; 173 flowState = 3;
174 } 174 }
175 if (approveState == 'A' && staffGuid == currentStaffGuid) { 175 if (approveState == 'A' && staffGuid == currentStaffGuid) {
......
...@@ -106,7 +106,7 @@ const tableInfo = ref({ ...@@ -106,7 +106,7 @@ const tableInfo = ref({
106 }, 106 },
107 // { label: "上架分类", field: "exchangeName", width: 140 }, 107 // { label: "上架分类", field: "exchangeName", width: 140 },
108 { 108 {
109 label: "审批状态", field: "approveState", type: "tag", width: TableColumnWidth.STATE, align: 'center' 109 label: "审批状态", field: "bizApproveState", type: "tag", width: TableColumnWidth.STATE, align: 'center'
110 }, 110 },
111 { 111 {
112 label: '上架状态', field: 'listingStatus', width: 100, getName: (scope) => { 112 label: '上架状态', field: 'listingStatus', width: 100, getName: (scope) => {
...@@ -138,7 +138,7 @@ const tableInfo = ref({ ...@@ -138,7 +138,7 @@ const tableInfo = ref({
138 width: 170, 138 width: 170,
139 btns: (scope) => { 139 btns: (scope) => {
140 const { row } = scope; 140 const { row } = scope;
141 const bizApproveState = row.approveState; 141 const bizApproveState = row.bizApproveState;
142 let flowState; 142 let flowState;
143 if (bizApproveState == 'N') { 143 if (bizApproveState == 'N') {
144 flowState = 1; 144 flowState = 1;
...@@ -181,7 +181,7 @@ const tableInfo = ref({ ...@@ -181,7 +181,7 @@ const tableInfo = ref({
181 if (flowState === 3) { 181 if (flowState === 3) {
182 list.push({ label: "删除", value: "del" }) 182 list.push({ label: "删除", value: "del" })
183 } 183 }
184 if (flowState === 3 && bizApproveState != 'D') { //重新提交过的不能再重新提交 184 if (flowState === 3) { //重新提交过的不能再重新提交 && bizApproveState != 'D'
185 list.push({ label: "重新提交", value: "redit" }) //已驳回 185 list.push({ label: "重新提交", value: "redit" }) //已驳回
186 } 186 }
187 if (isShowCancel) { 187 if (isShowCancel) {
...@@ -384,26 +384,25 @@ const tableBtnClick = (scope, btn) => { ...@@ -384,26 +384,25 @@ const tableBtnClick = (scope, btn) => {
384 } 384 }
385 //撤销 385 //撤销
386 if (type == 'revoke') { 386 if (type == 'revoke') {
387 //TODO。撤销调用什么接口。 387 ElMessageBox.confirm(`撤销后,该流程将不再进行审核,确定这样操作吗?`, "提示", {
388 // ElMessageBox.confirm(`撤销后,该流程将不再进行审核,确定这样操作吗?`, "提示", { 388 confirmButtonText: "确定",
389 // confirmButtonText: "确定", 389 cancelButtonText: "取消",
390 // cancelButtonText: "取消", 390 type: 'warning',
391 // type: 'warning', 391 }).then(() => {
392 // }).then(() => { 392 revokeFlowData({
393 // revokeFlowData({ 393 guid: row.approveVO.approveGuid,
394 // guid: row.approveVO.approveGuid, 394 flowType: row.approveVO.flowType,
395 // flowType: row.approveVO.flowType, 395 approveStaffGuid: userData.staffGuid
396 // approveStaffGuid: userData.staffGuid 396 }, row.tenantGuid).then((res: any) => {
397 // }, row.tenantGuid).then((res: any) => { 397 if (res.code == '00000') {
398 // if (res.code == '00000') { 398 ElMessage.success('撤销成功!')
399 // ElMessage.success('撤销成功!') 399 getTableData();
400 // getTableData(); 400 getListingCountData();
401 // getListingCountData(); 401 } else {
402 // } else { 402 ElMessage.error(res.msg)
403 // ElMessage.error(res.msg) 403 }
404 // } 404 })
405 // }) 405 });
406 // });
407 406
408 } 407 }
409 if (type == 'pass') { 408 if (type == 'pass') {
......
...@@ -1766,43 +1766,57 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1766,43 +1766,57 @@ const rejectDialogBtnClick = (btn, info) => {
1766 <template> 1766 <template>
1767 <div class="container_wrap" v-loading="flowDetailLoading"> 1767 <div class="container_wrap" v-loading="flowDetailLoading">
1768 <div class="content_main"> 1768 <div class="content_main">
1769 <div v-if="detailType == 'detail' && flowDetail.approveState" 1769 <div v-if="detailType == 'detail' && flowDetail.bizApproveState"
1770 :class="['panel_wrap', 'results_panel', flowDetail.approveState == 'Y' ? 'success' : (flowDetail.approveState == 'R' ? 'reject' : (flowDetail.approveState == 'C' ? 'revoke' : 'audit'))]"> 1770 :class="['panel_wrap', 'results_panel', flowDetail.bizApproveState == 'Y' ? 'success' : ((flowDetail.bizApproveState == 'R' || flowDetail.bizApproveState == 'E') ? 'reject' : (flowDetail.bizApproveState == 'C' ? 'revoke' : 'audit'))]">
1771 <div class="panel_header"> 1771 <div class="panel_header">
1772 <div class="header_title" v-if="flowDetail.approveState == 'Y'"> 1772 <div class="header_title" v-if="flowDetail.bizApproveState == 'Y'">
1773 <el-icon class="title-icon"> 1773 <el-icon class="title-icon">
1774 <svg-icon name="icon-success" /> 1774 <svg-icon name="icon-success" />
1775 </el-icon> 1775 </el-icon>
1776 <span class="title_text">平台审批通过</span> 1776 <span class="title_text">审批通过</span>
1777 </div> 1777 </div>
1778 <div class="header_title" v-else-if="flowDetail.approveState == 'R'"> 1778 <div class="header_title" v-else-if="flowDetail.bizApproveState == 'R'">
1779 <el-icon class="title-icon"> 1779 <el-icon class="title-icon">
1780 <CircleCloseFilled /> 1780 <CircleCloseFilled />
1781 </el-icon> 1781 </el-icon>
1782 <span class="title_text">平台被驳回</span> 1782 <span class="title_text">审批被驳回</span>
1783 </div> 1783 </div>
1784 <div class="header_title" v-else-if="flowDetail.approveState == 'A'"> 1784 <div class="header_title" v-else-if="flowDetail.bizApproveState == 'E'">
1785 <el-icon class="title-icon"> 1785 <el-icon class="title-icon">
1786 <svg-icon name="icon-audit" /> 1786 <CircleCloseFilled />
1787 </el-icon> 1787 </el-icon>
1788 <span class="title_text">平台审批中</span> 1788 <span class="title_text">审批发起失败</span>
1789 </div> 1789 </div>
1790 <div class="header_title" v-else-if="flowDetail.approveState == 'C'"> 1790 <div class="header_title" v-else-if="flowDetail.bizApproveState == 'A'">
1791 <el-icon class="title-icon"> 1791 <el-icon class="title-icon">
1792 <svg-icon name="icon-revoke" /> 1792 <svg-icon name="icon-audit" />
1793 </el-icon> 1793 </el-icon>
1794 <span class="title_text">已撤销</span> 1794 <span class="title_text">审批中</span>
1795 </div>
1796 <div class="header_title" v-else-if="flowDetail.bizApproveState == 'C'">
1797 <el-icon class="title-icon">
1798 <svg-icon name="icon-revoke" />
1799 </el-icon>
1800 <span class="title_text">已撤销</span>
1801 </div>
1802 </div>
1803 <div class="panel_body" v-if="flowDetail.bizApproveState == 'R'">
1804 <div class="results_list">
1805 <div class="list_item">
1806 <span class="item_label">平台审批意见:</span>
1807 <span class="item_value">{{ flowDetail?.tdsApproveSuggest || '--' }}</span>
1795 </div> 1808 </div>
1796 </div> 1809 </div>
1797 <div class="panel_body" v-if="flowDetail.approveState == 'R'"> 1810 </div>
1798 <div class="results_list"> 1811 <div class="panel_body" v-if="flowDetail.bizApproveState == 'E'">
1799 <div class="list_item"> 1812 <div class="results_list">
1800 <span class="item_label">平台审批意见:</span> 1813 <div class="list_item">
1801 <span class="item_value">{{ flowDetail?.approveSuggest || '--' }}</span> 1814 <span class="item_label">失败原因:</span>
1802 </div> 1815 <span class="item_value">{{ flowDetail?.tdsApproveErrorMsg || '--' }}</span>
1803 </div> 1816 </div>
1804 </div> 1817 </div>
1805 </div> 1818 </div>
1819 </div>
1806 <div class="panel_wrap"> 1820 <div class="panel_wrap">
1807 <div class="panel_header"> 1821 <div class="panel_header">
1808 <div class="header_title"> 1822 <div class="header_title">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!