企业认证部分接口修改
Showing
4 changed files
with
57 additions
and
34 deletions
| ... | @@ -137,7 +137,7 @@ export const deleteConnector = (params) => request({ | ... | @@ -137,7 +137,7 @@ export const deleteConnector = (params) => request({ |
| 137 | }) | 137 | }) |
| 138 | 138 | ||
| 139 | export const getConnectorDetail = (guid) => request({ | 139 | export const getConnectorDetail = (guid) => request({ |
| 140 | url: `${import.meta.env.VITE_APP_CIRCULATION_PORTAL_URL}/tds-connector-identity/detail?guid=${guid}`, | 140 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/tds-connector-identity/detail?guid=${guid}`, |
| 141 | method: 'get' | 141 | method: 'get' |
| 142 | }) | 142 | }) |
| 143 | 143 | ... | ... |
| ... | @@ -920,7 +920,7 @@ const getTenant = () => { | ... | @@ -920,7 +920,7 @@ const getTenant = () => { |
| 920 | getDataType('机构类型', 'tenantTypeVal'), | 920 | getDataType('机构类型', 'tenantTypeVal'), |
| 921 | getDataType('证件类型', 'juridicalPersonIdType'), | 921 | getDataType('证件类型', 'juridicalPersonIdType'), |
| 922 | getDataType('组织机构性质', 'institutionType'), | 922 | getDataType('组织机构性质', 'institutionType'), |
| 923 | getDeploymentId('10013') | 923 | // getDeploymentId('10013') |
| 924 | ) | 924 | ) |
| 925 | if (userData.tenantName != '非认证会员') { | 925 | if (userData.tenantName != '非认证会员') { |
| 926 | getTenantData() | 926 | getTenantData() |
| ... | @@ -959,14 +959,14 @@ const getTenantData = () => { | ... | @@ -959,14 +959,14 @@ const getTenantData = () => { |
| 959 | } | 959 | } |
| 960 | 960 | ||
| 961 | // 获取流程信息 | 961 | // 获取流程信息 |
| 962 | const getDeploymentId = (flowType: any) => { | 962 | // const getDeploymentId = (flowType: any) => { |
| 963 | return getCamundaDeploymentId(flowType, userData.tenantGuid, userData.staffGuid).then((res: any) => { | 963 | // return getCamundaDeploymentId(flowType, userData.tenantGuid, userData.staffGuid).then((res: any) => { |
| 964 | if (res.code == proxy.$passCode) { | 964 | // if (res.code == proxy.$passCode) { |
| 965 | } else { | 965 | // } else { |
| 966 | ElMessage.error(res.msg); | 966 | // ElMessage.error(res.msg); |
| 967 | } | 967 | // } |
| 968 | }) | 968 | // }) |
| 969 | } | 969 | // } |
| 970 | 970 | ||
| 971 | const setTableField = () => { | 971 | const setTableField = () => { |
| 972 | tableField.value.splice(2); | 972 | tableField.value.splice(2); |
| ... | @@ -1169,7 +1169,7 @@ const subSave = (params) => { | ... | @@ -1169,7 +1169,7 @@ const subSave = (params) => { |
| 1169 | 1169 | ||
| 1170 | const changeApprove = (params) => { | 1170 | const changeApprove = (params) => { |
| 1171 | loading.value = true; | 1171 | loading.value = true; |
| 1172 | changeApproveSave(params).then((res: any) => { | 1172 | enterpriseSave(params).then((res: any) => { |
| 1173 | loading.value = false; | 1173 | loading.value = false; |
| 1174 | if (res.code == proxy.$passCode) { | 1174 | if (res.code == proxy.$passCode) { |
| 1175 | ElMessage.success('认证信息变更申请成功'); | 1175 | ElMessage.success('认证信息变更申请成功'); |
| ... | @@ -1280,14 +1280,32 @@ const btnClick = async (btn, bType = null) => { | ... | @@ -1280,14 +1280,32 @@ const btnClick = async (btn, bType = null) => { |
| 1280 | params.attachmentRQVOS = attachmentRQVOS; | 1280 | params.attachmentRQVOS = attachmentRQVOS; |
| 1281 | 1281 | ||
| 1282 | if (bizApproveState.value == 'Y') { | 1282 | if (bizApproveState.value == 'Y') { |
| 1283 | let flowParams: any = {}; | 1283 | params.immediateApprove = true; |
| 1284 | flowParams.flowType = '10014'; | 1284 | params.bizApproveState = 'A'; |
| 1285 | flowParams.bizGuid = detailGuid.value; | 1285 | params.isRestart = false; |
| 1286 | flowParams.sourceApproveGuid = flowDetail.value.approveVO.approveGuid; | 1286 | loading.value = true; |
| 1287 | flowParams.bizDataJson = JSON.stringify(params); | 1287 | enterpriseSave(params).then((res: any) => { |
| 1288 | flowParams.oldBizDataJson = JSON.stringify(flowDetail.value); | 1288 | loading.value = false; |
| 1289 | flowParams.isDraft = type == 'submit' ? 'N' : 'Y'; | 1289 | if (res.code == proxy.$passCode) { |
| 1290 | changeApprove(flowParams); | 1290 | ElMessage.success('编辑认证信息提交申请成功'); |
| 1291 | bizApproveState.value = 'A'; | ||
| 1292 | setFormDisable(); | ||
| 1293 | } else { | ||
| 1294 | ElMessage.error(res.msg); | ||
| 1295 | } | ||
| 1296 | }).catch((xhr) => { | ||
| 1297 | loading.value = false; | ||
| 1298 | ElMessage.error(xhr.response.data.msg); | ||
| 1299 | }); | ||
| 1300 | // let flowParams: any = {}; | ||
| 1301 | |||
| 1302 | // flowParams.flowType = '10014'; | ||
| 1303 | // flowParams.bizGuid = detailGuid.value; | ||
| 1304 | // // flowParams.sourceApproveGuid = flowDetail.value.approveVO.approveGuid; | ||
| 1305 | // flowParams.bizDataJson = JSON.stringify(params); | ||
| 1306 | // flowParams.oldBizDataJson = JSON.stringify(flowDetail.value); | ||
| 1307 | // flowParams.isDraft = type == 'submit' ? 'N' : 'Y'; | ||
| 1308 | // changeApprove(flowParams); | ||
| 1291 | } else { | 1309 | } else { |
| 1292 | if (type == 'submit') { | 1310 | if (type == 'submit') { |
| 1293 | params.immediateApprove = true; | 1311 | params.immediateApprove = true; |
| ... | @@ -1613,8 +1631,8 @@ const viewVoucherFile = () => { | ... | @@ -1613,8 +1631,8 @@ const viewVoucherFile = () => { |
| 1613 | <div class="empty_tips" v-else>暂无变更信息</div> | 1631 | <div class="empty_tips" v-else>暂无变更信息</div> |
| 1614 | </div> | 1632 | </div> |
| 1615 | </ContentWrap> | 1633 | </ContentWrap> |
| 1616 | <ContentWrap title="认证结果信息" v-if="bizApproveState == 'Y' && !isEdit" expandSwicth style="margin-top: 15px" :isExpand="expandResult" | 1634 | <ContentWrap title="认证结果信息" v-if="bizApproveState == 'Y' && !isEdit" expandSwicth style="margin-top: 15px" |
| 1617 | @expand="(v) => expandResult = v"> | 1635 | :isExpand="expandResult" @expand="(v) => expandResult = v"> |
| 1618 | <div class="list_panel"> | 1636 | <div class="list_panel"> |
| 1619 | <div class="list_item"> | 1637 | <div class="list_item"> |
| 1620 | <span class="item_label">认证时间:</span> | 1638 | <span class="item_label">认证时间:</span> | ... | ... |
| ... | @@ -295,7 +295,7 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -295,7 +295,7 @@ const tableBtnClick = (scope, btn) => { |
| 295 | if (type === 'detail') { // 详情 | 295 | if (type === 'detail') { // 详情 |
| 296 | router.push({ | 296 | router.push({ |
| 297 | name: 'certificationAuditDetail', | 297 | name: 'certificationAuditDetail', |
| 298 | query: { guid: row.flowType == '10014' ? row.objectGuid : row.bizGuid, name: row.param1, tName: row.tenantName, fType: row.flowType, bizGuid: row.bizGuid, type } | 298 | query: { guid: row.guid, name: row.param1, tName: row.tenantName, fType: row.flowType, type } |
| 299 | }); | 299 | }); |
| 300 | } else if (type == "delete") { | 300 | } else if (type == "delete") { |
| 301 | delTableOpen("此操作将永久删除该认证信息,是否继续?", "warning"); | 301 | delTableOpen("此操作将永久删除该认证信息,是否继续?", "warning"); | ... | ... |
| ... | @@ -27,7 +27,7 @@ const detailType = route.query.type; | ... | @@ -27,7 +27,7 @@ const detailType = route.query.type; |
| 27 | const tName = route.query.tName; | 27 | const tName = route.query.tName; |
| 28 | const fType = route.query.fType; | 28 | const fType = route.query.fType; |
| 29 | 29 | ||
| 30 | const bizGuid = route.query.bizGuid; | 30 | const bizGuid = route.query.guid; |
| 31 | const loading = ref(false); | 31 | const loading = ref(false); |
| 32 | const flowDetail: any = ref({}); | 32 | const flowDetail: any = ref({}); |
| 33 | const approveState = ref(''); | 33 | const approveState = ref(''); |
| ... | @@ -1130,12 +1130,27 @@ onActivated(() => { | ... | @@ -1130,12 +1130,27 @@ onActivated(() => { |
| 1130 | } | 1130 | } |
| 1131 | }) | 1131 | }) |
| 1132 | 1132 | ||
| 1133 | const getIndustryParamsList = () => { | ||
| 1134 | return getParamsList({ dictType: '行业分类' }).then((res: any) => { | ||
| 1135 | if (res?.code == proxy.$passCode) { | ||
| 1136 | industryList.value = res.data || []; | ||
| 1137 | let index = contentFormItems.value.findIndex(item => item.field == 'industry'); | ||
| 1138 | let item = contentFormItems.value[index]; | ||
| 1139 | item.options = industryList.value; | ||
| 1140 | contentFormItems.value[index + 1].options = !item.default ? [] : industryList.value.find(i => i.value == item.default)?.childDictList || []; | ||
| 1141 | } else { | ||
| 1142 | res?.msg && proxy.$ElMessage.error(res?.msg); | ||
| 1143 | } | ||
| 1144 | }) | ||
| 1145 | } | ||
| 1146 | |||
| 1133 | onBeforeMount(() => { | 1147 | onBeforeMount(() => { |
| 1134 | if (fType == '10014') { | 1148 | if (fType == '10014') { |
| 1135 | promiseList( | 1149 | promiseList( |
| 1136 | () => getDataType('机构类型', 'tenantType'), | 1150 | () => getDataType('机构类型', 'tenantType'), |
| 1137 | () => getDataType('证件类型', 'juridicalPersonIdType'), | 1151 | () => getDataType('证件类型', 'juridicalPersonIdType'), |
| 1138 | () => getDataType('组织机构性质', 'institutionType'), | 1152 | () => getDataType('组织机构性质', 'institutionType'), |
| 1153 | () => getIndustryParamsList(), | ||
| 1139 | () => getDetail(), | 1154 | () => getDetail(), |
| 1140 | () => getChangeDetail() | 1155 | () => getChangeDetail() |
| 1141 | ) | 1156 | ) |
| ... | @@ -1144,20 +1159,10 @@ onBeforeMount(() => { | ... | @@ -1144,20 +1159,10 @@ onBeforeMount(() => { |
| 1144 | () => getDataType('机构类型', 'tenantType'), | 1159 | () => getDataType('机构类型', 'tenantType'), |
| 1145 | () => getDataType('证件类型', 'juridicalPersonIdType'), | 1160 | () => getDataType('证件类型', 'juridicalPersonIdType'), |
| 1146 | () => getDataType('组织机构性质', 'institutionType'), | 1161 | () => getDataType('组织机构性质', 'institutionType'), |
| 1162 | () => getIndustryParamsList(), | ||
| 1147 | () => getDetail(), | 1163 | () => getDetail(), |
| 1148 | ) | 1164 | ) |
| 1149 | } | 1165 | } |
| 1150 | getParamsList({ dictType: '行业分类' }).then((res: any) => { | ||
| 1151 | if (res?.code == proxy.$passCode) { | ||
| 1152 | industryList.value = res.data || []; | ||
| 1153 | let index = contentFormItems.value.findIndex(item => item.field == 'industry'); | ||
| 1154 | let item = contentFormItems.value[index]; | ||
| 1155 | item.options = industryList.value; | ||
| 1156 | contentFormItems.value[index + 1].options = !item.default ? [] : industryList.value.find(i => i.value == item.default)?.childDictList || []; | ||
| 1157 | } else { | ||
| 1158 | res?.msg && proxy.$ElMessage.error(res?.msg); | ||
| 1159 | } | ||
| 1160 | }) | ||
| 1161 | }) | 1166 | }) |
| 1162 | 1167 | ||
| 1163 | const orgTableRef = ref(); | 1168 | const orgTableRef = ref(); | ... | ... |
-
Please register or sign in to post a comment