e5752aaf by lihua

企业认证部分接口修改

1 parent 1dae2c95
......@@ -137,7 +137,7 @@ export const deleteConnector = (params) => request({
})
export const getConnectorDetail = (guid) => request({
url: `${import.meta.env.VITE_APP_CIRCULATION_PORTAL_URL}/tds-connector-identity/detail?guid=${guid}`,
url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/tds-connector-identity/detail?guid=${guid}`,
method: 'get'
})
......
......@@ -882,7 +882,7 @@ const getTenant = () => {
flowDetail.value = data;
detailGuid.value = data.guid || '';
bizApproveState.value = data.bizApproveState || '';
// crossPlatformApproveState.value = data.tdsApproveState || '';
// crossPlatformApproveState.value = data.tdsApproveState || '';
isEdit.value = (bizApproveState.value == 'Y' || crossPlatformApproveState.value == 'Y' || bizApproveState.value == 'A' || crossPlatformApproveState.value == 'A' || bizApproveState.value == 'B') ? false : true;
contentFormItems.value[1].disabled = bizApproveState.value == 'Y' || crossPlatformApproveState.value == 'Y' ? true : false;
tableData.value = data.changeList || [];
......@@ -920,7 +920,7 @@ const getTenant = () => {
getDataType('机构类型', 'tenantTypeVal'),
getDataType('证件类型', 'juridicalPersonIdType'),
getDataType('组织机构性质', 'institutionType'),
getDeploymentId('10013')
// getDeploymentId('10013')
)
if (userData.tenantName != '非认证会员') {
getTenantData()
......@@ -959,14 +959,14 @@ const getTenantData = () => {
}
// 获取流程信息
const getDeploymentId = (flowType: any) => {
return getCamundaDeploymentId(flowType, userData.tenantGuid, userData.staffGuid).then((res: any) => {
if (res.code == proxy.$passCode) {
} else {
ElMessage.error(res.msg);
}
})
}
// const getDeploymentId = (flowType: any) => {
// return getCamundaDeploymentId(flowType, userData.tenantGuid, userData.staffGuid).then((res: any) => {
// if (res.code == proxy.$passCode) {
// } else {
// ElMessage.error(res.msg);
// }
// })
// }
const setTableField = () => {
tableField.value.splice(2);
......@@ -1014,7 +1014,7 @@ const setTableField = () => {
}
}
return scope.row.after && getChildLabel(industryList.value) || [];
} else {
} else {
return scope.row.after || '--';
}
}
......@@ -1169,7 +1169,7 @@ const subSave = (params) => {
const changeApprove = (params) => {
loading.value = true;
changeApproveSave(params).then((res: any) => {
enterpriseSave(params).then((res: any) => {
loading.value = false;
if (res.code == proxy.$passCode) {
ElMessage.success('认证信息变更申请成功');
......@@ -1280,14 +1280,32 @@ const btnClick = async (btn, bType = null) => {
params.attachmentRQVOS = attachmentRQVOS;
if (bizApproveState.value == 'Y') {
let flowParams: any = {};
flowParams.flowType = '10014';
flowParams.bizGuid = detailGuid.value;
flowParams.sourceApproveGuid = flowDetail.value.approveVO.approveGuid;
flowParams.bizDataJson = JSON.stringify(params);
flowParams.oldBizDataJson = JSON.stringify(flowDetail.value);
flowParams.isDraft = type == 'submit' ? 'N' : 'Y';
changeApprove(flowParams);
params.immediateApprove = true;
params.bizApproveState = 'A';
params.isRestart = false;
loading.value = true;
enterpriseSave(params).then((res: any) => {
loading.value = false;
if (res.code == proxy.$passCode) {
ElMessage.success('编辑认证信息提交申请成功');
bizApproveState.value = 'A';
setFormDisable();
} else {
ElMessage.error(res.msg);
}
}).catch((xhr) => {
loading.value = false;
ElMessage.error(xhr.response.data.msg);
});
// let flowParams: any = {};
// flowParams.flowType = '10014';
// flowParams.bizGuid = detailGuid.value;
// // flowParams.sourceApproveGuid = flowDetail.value.approveVO.approveGuid;
// flowParams.bizDataJson = JSON.stringify(params);
// flowParams.oldBizDataJson = JSON.stringify(flowDetail.value);
// flowParams.isDraft = type == 'submit' ? 'N' : 'Y';
// changeApprove(flowParams);
} else {
if (type == 'submit') {
params.immediateApprove = true;
......@@ -1613,8 +1631,8 @@ const viewVoucherFile = () => {
<div class="empty_tips" v-else>暂无变更信息</div>
</div>
</ContentWrap>
<ContentWrap title="认证结果信息" v-if="bizApproveState == 'Y' && !isEdit" expandSwicth style="margin-top: 15px" :isExpand="expandResult"
@expand="(v) => expandResult = v">
<ContentWrap title="认证结果信息" v-if="bizApproveState == 'Y' && !isEdit" expandSwicth style="margin-top: 15px"
:isExpand="expandResult" @expand="(v) => expandResult = v">
<div class="list_panel">
<div class="list_item">
<span class="item_label">认证时间:</span>
......
......@@ -295,7 +295,7 @@ const tableBtnClick = (scope, btn) => {
if (type === 'detail') { // 详情
router.push({
name: 'certificationAuditDetail',
query: { guid: row.flowType == '10014' ? row.objectGuid : row.bizGuid, name: row.param1, tName: row.tenantName, fType: row.flowType, bizGuid: row.bizGuid, type }
query: { guid: row.guid, name: row.param1, tName: row.tenantName, fType: row.flowType, type }
});
} else if (type == "delete") {
delTableOpen("此操作将永久删除该认证信息,是否继续?", "warning");
......
......@@ -27,7 +27,7 @@ const detailType = route.query.type;
const tName = route.query.tName;
const fType = route.query.fType;
const bizGuid = route.query.bizGuid;
const bizGuid = route.query.guid;
const loading = ref(false);
const flowDetail: any = ref({});
const approveState = ref('');
......@@ -1130,12 +1130,27 @@ onActivated(() => {
}
})
const getIndustryParamsList = () => {
return getParamsList({ dictType: '行业分类' }).then((res: any) => {
if (res?.code == proxy.$passCode) {
industryList.value = res.data || [];
let index = contentFormItems.value.findIndex(item => item.field == 'industry');
let item = contentFormItems.value[index];
item.options = industryList.value;
contentFormItems.value[index + 1].options = !item.default ? [] : industryList.value.find(i => i.value == item.default)?.childDictList || [];
} else {
res?.msg && proxy.$ElMessage.error(res?.msg);
}
})
}
onBeforeMount(() => {
if (fType == '10014') {
promiseList(
() => getDataType('机构类型', 'tenantType'),
() => getDataType('证件类型', 'juridicalPersonIdType'),
() => getDataType('组织机构性质', 'institutionType'),
() => getIndustryParamsList(),
() => getDetail(),
() => getChangeDetail()
)
......@@ -1144,20 +1159,10 @@ onBeforeMount(() => {
() => getDataType('机构类型', 'tenantType'),
() => getDataType('证件类型', 'juridicalPersonIdType'),
() => getDataType('组织机构性质', 'institutionType'),
() => getIndustryParamsList(),
() => getDetail(),
)
}
getParamsList({ dictType: '行业分类' }).then((res: any) => {
if (res?.code == proxy.$passCode) {
industryList.value = res.data || [];
let index = contentFormItems.value.findIndex(item => item.field == 'industry');
let item = contentFormItems.value[index];
item.options = industryList.value;
contentFormItems.value[index + 1].options = !item.default ? [] : industryList.value.find(i => i.value == item.default)?.childDictList || [];
} else {
res?.msg && proxy.$ElMessage.error(res?.msg);
}
})
})
const orgTableRef = ref();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!