8e1a655e by lihua

去掉产品上架的审批和数交所相关代码

1 parent 064ac55f
......@@ -112,16 +112,16 @@ const tableInfo = ref({
return scope.row.listingStatus == 'Y' ? '已上架' : '未上架';
}
},
{
label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 150, align: 'center', btn: {
label: '查看', visible: (scope) => {
return scope.row.crossPlatformApproveState != null;
}, click: (scope) => {
systemApproveCurrentRowInfo.value = scope.row;
approvalDialogVisible.value = true;
}
}
},
// {
// label: "主平台审批状态", field: "crossPlatformApproveState", type: "approveTagBtn", width: 150, align: 'center', btn: {
// label: '查看', visible: (scope) => {
// return scope.row.crossPlatformApproveState != null;
// }, click: (scope) => {
// systemApproveCurrentRowInfo.value = scope.row;
// approvalDialogVisible.value = true;
// }
// }
// },
{ label: "修改时间", field: "updateTime", width: TableColumnWidth.DATETIME },
],
loading: false,
......@@ -137,28 +137,34 @@ const tableInfo = ref({
width: 170,
btns: (scope) => {
const { row } = scope;
const approveVO = row.approveVO || {};
const currentStaffGuid = userData.staffGuid
const bizApproveState = row.approveState;
const approveState = approveVO.approveState || null;
const approveStaffGuids = approveVO.approveStaffGuids || [];
const staffGuid = approveVO.staffGuid || '';
let isShowCancel = false;
let flowState;
let list: any = [];
if (approveState == 'N') {
if (bizApproveState == 'N') {
flowState = 1;
}
if (approveState == 'A' && approveStaffGuids.indexOf(currentStaffGuid) > -1) {
flowState = 2;
const currentStaffGuid = userData.staffGuid
// const bizApproveState = row.approveState;
// const approveState = approveVO.approveState || null;
// const approveStaffGuids = approveVO.approveStaffGuids || [];
const staffGuid = row.createUserId || '';
let isShowCancel = false;
// let flowState;
let list: any = [];
if (bizApproveState == 'N') {
flowState = 1;
}
if ((bizApproveState == 'D' || approveState == 'C' || approveState == 'R' || row.crossPlatformApproveState == 'E' || row.crossPlatformApproveState == 'R') && staffGuid == currentStaffGuid) {
// // 审批中包含。
// if (approveState == 'A' && approveStaffGuids.indexOf(currentStaffGuid) > -1) {
// flowState = 2;
// }
if ((bizApproveState == 'D' || bizApproveState == 'C' || bizApproveState == 'R' || bizApproveState == 'E' || bizApproveState == 'R') && staffGuid == currentStaffGuid) {
flowState = 3;
}
if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) {
if (bizApproveState == 'A' && staffGuid == currentStaffGuid) {
isShowCancel = true;
}
if ((bizApproveState === 'Y' || row.crossPlatformApproveState == 'Y') && staffGuid == currentStaffGuid) {
if ((bizApproveState === 'Y') && staffGuid == currentStaffGuid) {
if (row.listingStatus == 'Y') {
list.push({ label: "下架", value: "down" });
} else {
......@@ -168,9 +174,9 @@ const tableInfo = ref({
if (flowState === 1) {
list = [{ label: "编辑", value: "edit" }, { label: "删除", value: "del" }]
}
if (flowState === 2) {
list = [{ label: "通过", value: "pass" }, { label: "驳回", value: "reject" }]
}
// if (flowState === 2) {
// list = [{ label: "通过", value: "pass" }, { label: "驳回", value: "reject" }]
// }
if (flowState === 3) {
list.push({ label: "删除", value: "del" })
}
......
......@@ -14,7 +14,7 @@ import useDataAssetStore from "@/store/modules/dataAsset";
import { changeNum } from '@/utils/common';
import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common';
import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService";
import { getApproveList, getTenantApprove, getParamsList, getServiceDetail } from "@/api/modules/dataAsset";
import { getApproveList, getTenantApprove, getParamsList, getDamTypesList, } from "@/api/modules/dataAsset";
import {
getProductList, getFileByDamGuid, productRejectFlowData,
getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile, getListingList
......@@ -340,17 +340,19 @@ const formInfo = ref<any>({
required: true,
visible: true,
},
// {
// label: "登记数交所",
// type: "input",
// placeholder: "请输入",
// field: "exchangeName",
// default: route.query.exchangeName ? route.query.exchangeName : '',
// clearable: true,
// disabled: true,
// required: true,
// visible: true
// },
{
label: "登记数交所",
type: "input",
placeholder: "请输入",
field: "exchangeName",
default: route.query.exchangeName ? route.query.exchangeName : '',
clearable: true,
disabled: true,
required: true,
visible: true
}, {
label: '产品描述',
type: 'textarea-rich',
placeholder: '该数据资产主要包含的信息,数据更新方式等',
......@@ -389,127 +391,127 @@ const formInfo = ref<any>({
// width: 'calc(33.33% - 20px)!important'
// },
},
{
label: '登记证',
tip: '支持扩展名:.jpg .png .jpeg',
accept: '.jpg, .png, .jpeg ',
type: 'upload-file',
placeholder: '请选择',
field: 'registrationCertificateInfo',
default: [],
limit: 1,
block: false,
required: false,
visible: true
},
{
label: '质量评估报告',
tip: '支持扩展名:.png .pdf',
accept: '.png, .pdf',
type: 'upload-file',
placeholder: '请选择',
field: 'qualityEvaluationFileInfo',
default: [],
limit: 1,
block: false,
required: false,
visible: true
},
{
label: "质量评估机构",
type: "select",
placeholder: "请选择",
field: "qualityEvaluationInstitution",
default: '',
options: [],
props: {
value: 'tenantName',
label: 'tenantName'
},
allowCreate: true,
filterable: true,
clearable: true,
disabled: false,
required: false,
visible: true,
col: 'mr8',
style: {
// / width: 'calc(50% - 16px)!important'
},
},
{
label: '价值评估报告',
tip: '支持扩展名:.png .pdf',
accept: '.png, .pdf',
type: 'upload-file',
placeholder: '请选择',
field: 'costAssessmentFileInfo',
default: [],
limit: 1,
block: false,
required: false,
visible: true
},
{
label: "价值评估机构",
type: "select",
placeholder: "请选择",
field: "costAssessmentInstitution",
default: '',
options: [],
props: {
value: 'tenantName',
label: 'tenantName'
},
allowCreate: true,
filterable: true,
clearable: true,
disabled: false,
required: false,
visible: true
},
{
label: '承诺函',
tip: '支持扩展名:.png .pdf',
accept: '.png, .pdf',
type: 'upload-file',
placeholder: '请选择',
field: 'commitmentLetterInfo',
templateUrl: '',
default: [],
limit: 1,
block: true,
required: true,
visible: true
},
{
label: '授权文件',
tip: '支持扩展名:.png .pdf',
accept: '.png, .pdf',
type: 'upload-file',
placeholder: '请选择',
field: 'accreditFileInfo',
templateUrl: '',
default: [],
limit: 1,
block: true,
required: true,
visible: true
},
{
label: '商品详细介绍(签章版)',
tip: '支持扩展名:.png .pdf',
accept: '.png, .pdf',
type: 'upload-file',
placeholder: '请选择',
field: 'productDetailInfo',
templateUrl: '',
default: [],
limit: 1,
block: true,
required: true,
visible: true
},
// {
// label: '登记证',
// tip: '支持扩展名:.jpg .png .jpeg',
// accept: '.jpg, .png, .jpeg ',
// type: 'upload-file',
// placeholder: '请选择',
// field: 'registrationCertificateInfo',
// default: [],
// limit: 1,
// block: false,
// required: false,
// visible: true
// },
// {
// label: '质量评估报告',
// tip: '支持扩展名:.png .pdf',
// accept: '.png, .pdf',
// type: 'upload-file',
// placeholder: '请选择',
// field: 'qualityEvaluationFileInfo',
// default: [],
// limit: 1,
// block: false,
// required: false,
// visible: true
// },
// {
// label: "质量评估机构",
// type: "select",
// placeholder: "请选择",
// field: "qualityEvaluationInstitution",
// default: '',
// options: [],
// props: {
// value: 'tenantName',
// label: 'tenantName'
// },
// allowCreate: true,
// filterable: true,
// clearable: true,
// disabled: false,
// required: false,
// visible: true,
// col: 'mr8',
// style: {
// // / width: 'calc(50% - 16px)!important'
// },
// },
// {
// label: '价值评估报告',
// tip: '支持扩展名:.png .pdf',
// accept: '.png, .pdf',
// type: 'upload-file',
// placeholder: '请选择',
// field: 'costAssessmentFileInfo',
// default: [],
// limit: 1,
// block: false,
// required: false,
// visible: true
// },
// {
// label: "价值评估机构",
// type: "select",
// placeholder: "请选择",
// field: "costAssessmentInstitution",
// default: '',
// options: [],
// props: {
// value: 'tenantName',
// label: 'tenantName'
// },
// allowCreate: true,
// filterable: true,
// clearable: true,
// disabled: false,
// required: false,
// visible: true
// },
// {
// label: '承诺函',
// tip: '支持扩展名:.png .pdf',
// accept: '.png, .pdf',
// type: 'upload-file',
// placeholder: '请选择',
// field: 'commitmentLetterInfo',
// templateUrl: '',
// default: [],
// limit: 1,
// block: true,
// required: true,
// visible: true
// },
// {
// label: '授权文件',
// tip: '支持扩展名:.png .pdf',
// accept: '.png, .pdf',
// type: 'upload-file',
// placeholder: '请选择',
// field: 'accreditFileInfo',
// templateUrl: '',
// default: [],
// limit: 1,
// block: true,
// required: true,
// visible: true
// },
// {
// label: '商品详细介绍(签章版)',
// tip: '支持扩展名:.png .pdf',
// accept: '.png, .pdf',
// type: 'upload-file',
// placeholder: '请选择',
// field: 'productDetailInfo',
// templateUrl: '',
// default: [],
// limit: 1,
// block: true,
// required: true,
// visible: true
// },
{
label: "",
type: "input",
......@@ -532,9 +534,9 @@ const formInfo = ref<any>({
{ required: true, message: "请选择数据产品", trigger: "change", },
],
deliveryWay: [required('请选择交付方式')],
exchangeGuids: [{
type: 'array', required: true, message: '请选择上架交易所', trigger: 'change',
}],
// exchangeGuids: [{
// type: 'array', required: true, message: '请选择上架交易所', trigger: 'change',
// }],
coverageArea: [
{ required: true, message: "请选择覆盖地域", trigger: "change", },
],
......@@ -607,44 +609,44 @@ const formInfo = ref<any>({
// },
// ],
// 校验承诺函
commitmentLetterInfo: [
{
validator: (rule: any, value: any, callback: any) => {
let formInline = listingFormRef.value.formInline;
if (!value?.length) {
callback(new Error('请上传承诺函'))
} else {
callback();
}
}, trigger: 'change'
},
],
// commitmentLetterInfo: [
// {
// validator: (rule: any, value: any, callback: any) => {
// let formInline = listingFormRef.value.formInline;
// if (!value?.length) {
// callback(new Error('请上传承诺函'))
// } else {
// callback();
// }
// }, trigger: 'change'
// },
// ],
// 校验授权文件
accreditFileInfo: [
{
validator: (rule: any, value: any, callback: any) => {
let formInline = listingFormRef.value.formInline;
if (!value?.length) {
callback(new Error('请上传授权文件'))
} else {
callback();
}
}, trigger: 'change'
},
],
// 校验商品详细介绍
productDetailInfo: [
{
validator: (rule: any, value: any, callback: any) => {
let formInline = listingFormRef.value.formInline;
if (!value?.length) {
callback(new Error('请上传商品详细介绍'))
} else {
callback();
}
}, trigger: 'change'
},
],
// accreditFileInfo: [
// {
// validator: (rule: any, value: any, callback: any) => {
// let formInline = listingFormRef.value.formInline;
// if (!value?.length) {
// callback(new Error('请上传授权文件'))
// } else {
// callback();
// }
// }, trigger: 'change'
// },
// ],
// // 校验商品详细介绍
// productDetailInfo: [
// {
// validator: (rule: any, value: any, callback: any) => {
// let formInline = listingFormRef.value.formInline;
// if (!value?.length) {
// callback(new Error('请上传商品详细介绍'))
// } else {
// callback();
// }
// }, trigger: 'change'
// },
// ],
}
})
......@@ -849,135 +851,6 @@ const submitForm = (btn, formEl, tosub = false) => {
flowDetailLoading.value = false;
});
}
} else {
if (detailType == 'add') {
// 上架交易所
// console.log(params, '--------上架交易所 ---------');
params.immediateApprove = btn.value == 'submit' ? true : false;
params.registrationCertificate = params.registrationCertificateInfo.length ? { name: params.registrationCertificateInfo[0].name, url: params.registrationCertificateInfo[0].url } : {};
params.accreditFile = params.accreditFileInfo.length ? [{
url: params.accreditFileInfo[0].url,
name: params.accreditFileInfo[0].name
}] : '';
params.commitmentLetter = params.commitmentLetterInfo.length ? [{
url: params.commitmentLetterInfo[0].url,
name: params.commitmentLetterInfo[0].name
}] : [];
params.assessmentFile = params.costAssessmentFileInfo.length ? [{
url: params.costAssessmentFileInfo[0].url,
name: params.costAssessmentFileInfo[0].name
}] : [];
params.productDetail = params.productDetailInfo.length ? [{
url: params.productDetailInfo[0].url,
name: params.productDetailInfo[0].name
}] : [];
params.evaluationFile = params.qualityEvaluationFileInfo.length ? [{
url: params.qualityEvaluationFileInfo[0].url,
name: params.qualityEvaluationFileInfo[0].name
}] : [];
params.exchangeGuid = route.query.exchangeGuid;
params.qualityEvaluationInstitutionGuid = qualityEvaluationData.value.find((item: any) => item.tenantName == params.qualityEvaluationInstitution)?.guid || '';
params.costAssessmentInstitutionGuid = costAssessmentData.value.find((item: any) => item.tenantName == params.costAssessmentInstitution)?.guid || '';
delete params.exchangeName;
delete params.registrationCertificateInfo;
delete params.accreditFileInfo;
delete params.commitmentLetterInfo;
delete params.costAssessmentFileInfo;
delete params.productDetailInfo;
delete params.qualityEvaluationFileInfo;
// console.log(params, '-------rwrwerwer----------');
listingSave(params).then((res: any) => {
if (res.code == proxy.$passCode) {
ElMessage({
type: "success",
message: '提交成功',
});
flowDetailLoading.value = false;
userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath));
assetStore.set(true);
router.push({
name: "productListing",
query: {},
});
} else {
ElMessage({
type: "error",
message: res.msg,
});
flowDetailLoading.value = false;
}
}).catch((res) => {
ElMessage({
type: "error",
message: '提交失败',
});
flowDetailLoading.value = false;
});
} else {
// listingUpdate
// 上架交易所
params.guid = guid;
params.immediateApprove = btn.value == 'submit' ? true : false;
params.registrationCertificate = params.registrationCertificateInfo.length ? { name: params.registrationCertificateInfo[0].name, url: params.registrationCertificateInfo[0].url } : {};
params.accreditFile = params.accreditFileInfo.length ? [{
url: params.accreditFileInfo[0].url,
name: params.accreditFileInfo[0].name
}] : null;
params.commitmentLetter = params.commitmentLetterInfo.length ? [{
url: params.commitmentLetterInfo[0].url,
name: params.commitmentLetterInfo[0].name
}] : [];
params.costAssessmentFile = params.costAssessmentFileInfo.length ? [{
url: params.costAssessmentFileInfo[0].url,
name: params.costAssessmentFileInfo[0].name
}] : [];
params.productDetail = params.productDetailInfo.length ? [{
url: params.productDetailInfo[0].url,
name: params.productDetailInfo[0].name
}] : [];
params.evaluationFile = params.qualityEvaluationFileInfo.length ? [{
url: params.qualityEvaluationFileInfo[0].url,
name: params.qualityEvaluationFileInfo[0].name
}] : [];
params.exchangeGuid = route.query.exchangeGuid;
params.qualityEvaluationInstitutionGuid = qualityEvaluationData.value.find((item: any) => item.tenantName == params.qualityEvaluationInstitution)?.guid || '';
params.costAssessmentInstitutionGuid = costAssessmentData.value.find((item: any) => item.tenantName == params.costAssessmentInstitution)?.guid || '';
delete params.exchangeName;
delete params.registrationCertificateInfo;
delete params.accreditFileInfo;
delete params.commitmentLetterInfo;
delete params.costAssessmentFileInfo;
delete params.productDetailInfo;
delete params.qualityEvaluationFileInfo;
// console.log(params, '-------rwrwerwer----------');
listingUpdate(params).then((res: any) => {
if (res.code == proxy.$passCode) {
ElMessage({
type: "success",
message: '提交成功',
});
flowDetailLoading.value = false;
userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath));
assetStore.set(true);
router.push({
name: "productListing",
query: {},
});
} else {
ElMessage({
type: "error",
message: res.msg,
});
flowDetailLoading.value = false;
}
}).catch((res) => {
ElMessage({
type: "error",
message: '提交失败',
});
flowDetailLoading.value = false;
});
}
}
} else {
......@@ -1379,7 +1252,7 @@ onBeforeMount(async () => {
})
}
// getApproveData();
getParamsDataList({ dictType: '资产类型' }).then((res: any) => {
getDamTypesList({ dictType: '资产类型' }).then((res: any) => {
if (res.code == proxy.$passCode) {
damTypes.value = res.data || [];
let item = formInfo.value.items.find(item => item.field == 'damType');
......@@ -1388,7 +1261,7 @@ onBeforeMount(async () => {
proxy.$ElMessage.error(res.msg);
}
})
getParamsDataList({ dictType: '交付方式' }).then((res: any) => {
getDamTypesList({ dictType: '交付方式' }).then((res: any) => {
if (res.code == proxy.$passCode) {
deliveryWayList.value = res.data || [];
let item = formInfo.value.items.find(item => item.field == 'deliveryWay');
......@@ -1416,7 +1289,7 @@ onBeforeMount(async () => {
}
})
if (detailType != 'detail') {
getParamsList({
getDamTypesList({
dictType: "数据资产目录主题名称",
}).then((res: any) => {
if (res.code == proxy.$passCode) {
......@@ -1427,37 +1300,37 @@ onBeforeMount(async () => {
proxy.$ElMessage.error(res.msg);
}
})
getCamundaDeploymentId('10016', userData.tenantGuid, userData.staffGuid).then((res: any) => {
if (res.code == proxy.$passCode) {
deploymentId.value = res.data;
} else {
ElMessage.error(res.msg);
}
})
// 获取质量评估机构
getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => {
if (res.code == proxy.$passCode) {
qualityEvaluationData.value = res.data.records || [];
let item = formInfo.value.items.find(item => item.field == 'qualityEvaluationInstitution');
item && (item.options = qualityEvaluationData.value);
} else {
proxy.$ElMessage.error(res.msg);
}
})
// 获取价值评估机构
getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => {
if (res.code == proxy.$passCode) {
costAssessmentData.value = res.data.records || [];
let item = formInfo.value.items.find(item => item.field == 'costAssessmentInstitution');
item && (item.options = costAssessmentData.value);
} else {
proxy.$ElMessage.error(res.msg);
}
})
if (route.query.exchangeGuid) {
getTemplateInfo();
}
// 不需要内部审批
// getCamundaDeploymentId('10016', userData.tenantGuid, userData.staffGuid).then((res: any) => {
// if (res.code == proxy.$passCode) {
// deploymentId.value = res.data;
// } else {
// ElMessage.error(res.msg);
// }
// })
// // 获取质量评估机构
// getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => {
// if (res.code == proxy.$passCode) {
// qualityEvaluationData.value = res.data.records || [];
// let item = formInfo.value.items.find(item => item.field == 'qualityEvaluationInstitution');
// item && (item.options = qualityEvaluationData.value);
// } else {
// proxy.$ElMessage.error(res.msg);
// }
// })
// // 获取价值评估机构
// getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => {
// if (res.code == proxy.$passCode) {
// costAssessmentData.value = res.data.records || [];
// let item = formInfo.value.items.find(item => item.field == 'costAssessmentInstitution');
// item && (item.options = costAssessmentData.value);
// } else {
// proxy.$ElMessage.error(res.msg);
// }
// })
// if (route.query.exchangeGuid) {
// getTemplateInfo();
// }
if (detailType && detailType != 'redit' && detailType != 'edit') {
setTimeout(() => {
formInfo.value.items.forEach(item => {
......@@ -1533,14 +1406,14 @@ const toolBtns: any = computed(() => {
let btnsArr: any = [{
label: "关闭", value: "cancel", plain: true
}];
let approveVO = flowDetail.value.approveVO;
let staffGuid = userData.staffGuid;
if (approveVO && approveVO.approveState == 'A' && approveVO.approveStaffGuids && approveVO.approveStaffGuids.indexOf(staffGuid) > -1) {
btnsArr.push(...[{ label: "通过", value: "pass", type: 'primary' }, { label: "驳回", value: "reject", type: 'danger', plain: true }]);
}
if (approveVO && approveVO.approveState == 'A' && approveVO.staffGuid == staffGuid) {
btnsArr.push({ label: "撤销", value: "revoke" });
}
// let approveVO = flowDetail.value.approveVO;
// let staffGuid = userData.staffGuid;
// if (approveVO && approveVO.approveState == 'A' && approveVO.approveStaffGuids && approveVO.approveStaffGuids.indexOf(staffGuid) > -1) {
// btnsArr.push(...[{ label: "通过", value: "pass", type: 'primary' }, { label: "驳回", value: "reject", type: 'danger', plain: true }]);
// }
// if (approveVO && approveVO.approveState == 'A' && approveVO.staffGuid == staffGuid) {
// btnsArr.push({ label: "撤销", value: "revoke" });
// }
return btnsArr;
});
......@@ -1893,20 +1766,21 @@ const rejectDialogBtnClick = (btn, info) => {
<template>
<div class="container_wrap" v-loading="flowDetailLoading">
<div class="content_main">
<div v-if="detailType == 'detail' && (flowDetail.crossPlatformApproveState == 'R' || flowDetail.crossPlatformApproveState == 'E')"
<div v-if="detailType == 'detail' && (flowDetail.approveState == 'R' || flowDetail.approveState == 'E')"
:class="['panel_wrap', 'results_panel', 'reject']">
<div class="panel_header">
<div class="header_title" v-if="flowDetail.crossPlatformApproveState == 'R'">
<div class="header_title" v-if="flowDetail.approveState == 'R'">
<el-icon class="title-icon">
<CircleCloseFilled />
</el-icon>
<span class="title_text">主平台审批已驳回,请在列表页面查看具体驳回原因</span>
<span class="title_text">平台审批已驳回,请在列表页面查看具体驳回原因</span>
<!-- 需要展示驳回原因 -->
</div>
<div class="header_title" v-else-if="flowDetail.crossPlatformApproveState == 'E'">
<div class="header_title" v-else-if="flowDetail.approveState == 'E'">
<el-icon class="title-icon">
<CircleCloseFilled />
</el-icon>
<span class="title_text">主平台审批发起失败,请在列表页面查看具体发起失败原因</span>
<span class="title_text">平台审批发起失败,请在列表页面重新提交</span>
</div>
</div>
</div>
......@@ -1984,11 +1858,11 @@ const rejectDialogBtnClick = (btn, info) => {
}}</span>
</span>
</div>
<div v-show="flowDetail.dataSource != '1'" class="list_item is_block">
<div class="list_item is_block">
<span class="item_label">收费说明:</span>
<span class="item_value">{{ flowDetail.feeDesc || '--' }}</span>
</div>
<div v-show="flowDetail.dataSource != '1'" class="list_item1 is_block1">
<div class="list_item1 is_block1">
<div class="file_item" v-if="flowDetail.productPic && flowDetail.productPic.name">
<span class="item_label">产品图片:</span>
<span class="item_value">
......@@ -2040,265 +1914,6 @@ const rejectDialogBtnClick = (btn, info) => {
<span class="item_value">--</span>
</div>
</div>
<div class="list_item1 is_block1">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">登记证照:</span>
<span class="item_value"
v-if="flowDetail.registrationCertificate && flowDetail.registrationCertificate.name">
<div class="file-operate">
<template
v-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'xls' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'xlsx' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'csv'">
<img class="file-img" src="../../assets/images/excel.png" />
</template>
<template
v-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() === 'csv'">
<img class="file-img" src="../../assets/images/csv.png" />
</template>
<template
v-else-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'doc' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'docx'">
<img class="file-img" src="../../assets/images/word.png" />
</template>
<template
v-else-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'zip'">
<img class="file-img" src="../../assets/images/zip.png" />
</template>
<template
v-else-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'rar'">
<img class="file-img" src="../../assets/images/RAR.png" />
</template>
<template
v-else-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'pdf'">
<img class="file-img" src="../../assets/images/PDF.png" />
</template>
<template
v-else-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'png'">
<img class="file-img" src="../../assets/images/png.png" />
</template>
<template
v-else-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'jpg' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'jpeg'">
<img class="file-img" src="../../assets/images/jpg.png" />
</template>
<div class="file-name"><ellipsis-tooltip :content="flowDetail.registrationCertificate.name ?? ''"
class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div>
<div :style="{ right: '36px' }"
v-if="flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'pdf' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'png' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'jpg' || flowDetail.registrationCertificate.name.substring(flowDetail.registrationCertificate.name.lastIndexOf('.') + 1).toLowerCase() == 'jpeg'"
class="file-preview" @click="onUploadFilePreview(flowDetail.registrationCertificate)">查看</div>
<div :style="{ right: '0px' }" class="file-preview"
@click="onUploadFileDownload(flowDetail.registrationCertificate)">下载
</div>
</div>
</span>
<span class="item_value" v-else>--</span>
</div>
</div>
<div class="list_item1 is_block1">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">质量评估报告:</span>
<span class="item_value">
<div class="file-operate">
<template v-if="flowDetail?.evaluationFile?.length > 0">
<template
v-if="flowDetail.evaluationFile[0].name?.substring(flowDetail.evaluationFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'">
<img class="file-img" src="../../assets/images/PDF.png" />
</template>
<template
v-else-if="flowDetail.evaluationFile[0].name?.substring(flowDetail.evaluationFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'">
<img class="file-img" src="../../assets/images/png.png" />
</template>
<template
v-else-if="['jpg', 'jpeg'].includes(flowDetail.evaluationFile[0].name?.substring(flowDetail.evaluationFile[0].name.lastIndexOf('.') + 1).toLowerCase())">
<img class="file-img" src="../../assets/images/jpg.png" />
</template>
<div class="file-name"><ellipsis-tooltip :content="flowDetail.evaluationFile[0].name ?? ''"
class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div>
<div
v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.evaluationFile[0].name?.substring(flowDetail.evaluationFile[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style="{ right: '36px' }" class="file-preview"
@click="onUploadFilePreview(flowDetail.evaluationFile[0])">
查看
</div>
<div :style="{ right: '0px' }" class="file-preview"
@click="onUploadFileDownload(flowDetail.evaluationFile[0])">
下载
</div>
</template>
<template v-else>
--
</template>
</div>
</span>
</div>
</div>
<div class="list_item1 is_block1">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">质量评估机构:</span>
<span class="item_value">
{{ flowDetail.qualityEvaluationInstitution || '--' }}
</span>
</div>
</div>
<div class="list_item1 is_block1">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">价值评估报告:</span>
<span class="item_value">
<div class="file-operate">
<template v-if="flowDetail?.assessmentFile?.length > 0">
<template
v-if="flowDetail.assessmentFile[0].name?.substring(flowDetail.assessmentFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'">
<img class="file-img" src="../../assets/images/PDF.png" />
</template>
<template
v-else-if="flowDetail.assessmentFile[0].name?.substring(flowDetail.assessmentFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'">
<img class="file-img" src="../../assets/images/png.png" />
</template>
<template
v-else-if="['jpg', 'jpeg'].includes(flowDetail.assessmentFile[0].name?.substring(flowDetail.assessmentFile[0].name.lastIndexOf('.') + 1).toLowerCase())">
<img class="file-img" src="../../assets/images/jpg.png" />
</template>
<div class="file-name"><ellipsis-tooltip :content="flowDetail.assessmentFile[0].name ?? ''"
class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div>
<div
v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.assessmentFile[0].name?.substring(flowDetail.assessmentFile[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style="{ right: '36px' }" class="file-preview"
@click="onUploadFilePreview(flowDetail.assessmentFile[0])">
查看
</div>
<div :style="{ right: '0px' }" class="file-preview"
@click="onUploadFileDownload(flowDetail.assessmentFile[0])">
下载
</div>
</template>
<template v-else>
--
</template>
</div>
</span>
</div>
</div>
<div class="list_item1 is_block1">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">价值估评机构:</span>
<span class="item_value">
{{ flowDetail.costAssessmentInstitution || '--' }}
</span>
</div>
</div>
<div class="list_item is_block">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">承诺函:</span>
<span class="item_value">
<div class="file-operate">
<template v-if="flowDetail?.commitmentLetter?.length > 0">
<template
v-if="flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'">
<img class="file-img" src="../../assets/images/PDF.png" />
</template>
<template
v-else-if="flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'">
<img class="file-img" src="../../assets/images/png.png" />
</template>
<template
v-else-if="['jpg', 'jpeg'].includes(flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase())">
<img class="file-img" src="../../assets/images/jpg.png" />
</template>
<div class="file-name"><ellipsis-tooltip :content="flowDetail.commitmentLetter[0].name ?? ''"
class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div>
<div
v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style="{ right: '36px' }" class="file-preview"
@click="onUploadFilePreview(flowDetail.commitmentLetter[0])">
查看
</div>
<div :style="{ right: '0px' }" class="file-preview"
@click="onUploadFileDownload(flowDetail.commitmentLetter[0])">
下载
</div>
</template>
<template v-else>
--
</template>
</div>
</span>
</div>
</div>
<div class="list_item is_block">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">授权文件:</span>
<span class="item_value">
<div class="file-operate">
<template v-if="flowDetail?.accreditFile?.length > 0">
<template
v-if="flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'">
<img class="file-img" src="../../assets/images/PDF.png" />
</template>
<template
v-else-if="flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'">
<img class="file-img" src="../../assets/images/png.png" />
</template>
<template
v-else-if="['jpg', 'jpeg'].includes(flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase())">
<img class="file-img" src="../../assets/images/jpg.png" />
</template>
<div class="file-name"><ellipsis-tooltip :content="flowDetail.accreditFile[0].name ?? ''"
class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div>
<div
v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style="{ right: '36px' }" class="file-preview"
@click="onUploadFilePreview(flowDetail.accreditFile[0])">
查看
</div>
<div :style="{ right: '0px' }" class="file-preview"
@click="onUploadFileDownload(flowDetail.accreditFile[0])">
下载
</div>
</template>
<template v-else>
--
</template>
</div>
</span>
</div>
</div>
<div class="list_item is_block">
<div class="file_item" v-if="route.query.exchangeGuid">
<span class="item_label">商品详细介绍(签章版):</span>
<span class="item_value">
<div class="file-operate">
<template v-if="flowDetail?.productDetail?.length > 0">
<template
v-if="flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'">
<img class="file-img" src="../../assets/images/PDF.png" />
</template>
<template
v-else-if="flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'">
<img class="file-img" src="../../assets/images/png.png" />
</template>
<template
v-else-if="['jpg', 'jpeg'].includes(flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase())">
<img class="file-img" src="../../assets/images/jpg.png" />
</template>
<div class="file-name"><ellipsis-tooltip :content="flowDetail.productDetail[0].name ?? ''"
class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div>
<div
v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase())"
:style="{ right: '36px' }" class="file-preview"
@click="onUploadFilePreview(flowDetail.productDetail[0])">
查看
</div>
<div :style="{ right: '0px' }" class="file-preview"
@click="onUploadFileDownload(flowDetail.productDetail[0])">
下载
</div>
</template>
<template v-else>
--
</template>
</div>
</span>
</div>
</div>
</div>
</div>
</div>
......@@ -2381,26 +1996,6 @@ const rejectDialogBtnClick = (btn, info) => {
</div>
</div>
</div>
<div class="panel_wrap" v-if="!dGuid">
<div class="panel_header">
<div class="header_title">
<span class="title_text">
<!-- <el-icon class="title_icon" :class="{active: !collapseIcon1}" @click="collapseIcon1=!collapseIcon1"><CaretRight /></el-icon> !-->
<span>审批信息</span>
</span>
</div>
</div>
<div class="panel_body" :class="{ collapse: collapseIcon1 }">
<div class="list_panel">
<div class="table_panel_wrap">
<!-- <Table :tableInfo="approveTableInfo" /> -->
<ApprovalProcess ref="approvalProcessRef" v-if="deploymentId" :deploymentId="deploymentId"
:processInstanceId="processInstanceId">
</ApprovalProcess>
</div>
</div>
</div>
</div>
<div class="panel_wrap" v-if="detailType == 'detail' && dGuid !== undefined">
<div class="panel_header">
<div class="header_title">
......@@ -2440,7 +2035,7 @@ const rejectDialogBtnClick = (btn, info) => {
<el-button @click="btnClick({ value: 'cancel' })">返回</el-button>
<!-- <el-button @click="btnClick({ value: 'draft' })"
v-if="route.query.type == 'add' || route.query.type == 'edit'">保存草稿</el-button> -->
<el-button type="primary" @click="btnClick({ value: 'submit' })">提交流程</el-button>
<el-button type="primary" @click="btnClick({ value: 'submit' })">提交</el-button>
</div>
</div>
<div class="tool_btns" v-else-if="detailType == 'detail'">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!