|
|
@@ -1,5 +1,11 @@
|
|
|
<template>
|
|
|
- <div class="sensitive-words flex">
|
|
|
+ <div
|
|
|
+ class="sensitive-words flex"
|
|
|
+ v-loading="treeLoading"
|
|
|
+ element-loading-text="Loading..."
|
|
|
+ element-loading-svg-view-box="-10, -10, 50, 50"
|
|
|
+ element-loading-background="rgba(122, 122, 122, 0.8)"
|
|
|
+ >
|
|
|
<TreeSelect class="mr20" ref="treeSelectdRef" @treeCheck="getTreeCheck"></TreeSelect>
|
|
|
<pageDetail v-if="detailConfig" :typeKey="typeKey" :modalConfig="detailConfig" ref="modalRef">
|
|
|
</pageDetail>
|
|
|
@@ -53,28 +59,26 @@ const getTreeCheck = async data => {
|
|
|
if (!data) {
|
|
|
return;
|
|
|
}
|
|
|
- typeKey.value = data[0] + '-' + data[1];
|
|
|
+ typeKey.value = data;
|
|
|
switch (data[0]) {
|
|
|
case '1':
|
|
|
- securityCheckDetailConfig.params.id = data[1];
|
|
|
- securityCheckDetailConfig.params.type = data[0];
|
|
|
securityCheckDetailConfig.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// --------- 安全检查通报信息模型 ------------
|
|
|
// 检查时间范围
|
|
|
- if (item.prop === 'scope_time_inspection') {
|
|
|
+ if (item.prop === 'checkRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 初复查标志
|
|
|
- if (item.prop === 'initial_review_mark') {
|
|
|
+ if (item.prop === 'checkType') {
|
|
|
item.options = bj_initial_review_mark;
|
|
|
}
|
|
|
// 船舶种类
|
|
|
- if (item.prop === 'shipType') {
|
|
|
+ if (item.prop === 'shipSort') {
|
|
|
item.options = bj_ship_type;
|
|
|
}
|
|
|
// 缺陷代码和描述
|
|
|
- if (item.prop === 'defect_code_and_desc') {
|
|
|
+ if (item.prop === 'defect') {
|
|
|
item.options = bj_defect_code_and_desc;
|
|
|
}
|
|
|
});
|
|
|
@@ -84,22 +88,20 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '2':
|
|
|
- shipRegistratioDdetailConfig.params.id = data[1];
|
|
|
- shipRegistratioDdetailConfig.params.type = data[0];
|
|
|
shipRegistratioDdetailConfig.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// ---------船舶登记通报信息模型----------
|
|
|
|
|
|
// 检查时间范围
|
|
|
- if (item.prop === 'scope_time_inspection') {
|
|
|
+ if (item.prop === 'checkRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 船舶登记状态
|
|
|
- if (item.prop === 'ship_registration_status') {
|
|
|
+ if (item.prop === 'shipRegisterStatus') {
|
|
|
item.options = bj_ship_registration_status;
|
|
|
}
|
|
|
// 注销原因
|
|
|
- if (item.prop === 'logout_reason') {
|
|
|
+ if (item.prop === 'deletionReason') {
|
|
|
item.options = bj_reason_deregistration;
|
|
|
}
|
|
|
});
|
|
|
@@ -108,14 +110,12 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '3':
|
|
|
- administrativePenaltyDetailConfig.params.id = data[1];
|
|
|
- administrativePenaltyDetailConfig.params.type = data[0];
|
|
|
administrativePenaltyDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 行政处罚通报信息模型 -----------
|
|
|
|
|
|
// 处罚决定时间
|
|
|
- if (item.prop === 'penalty_decision_time') {
|
|
|
+ if (item.prop === 'notifyStandard') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// // 案件状态
|
|
|
@@ -123,11 +123,11 @@ const getTreeCheck = async data => {
|
|
|
// item.options = bj_case_status;
|
|
|
// }
|
|
|
// 水域类别
|
|
|
- if (item.prop === 'water_category') {
|
|
|
+ if (item.prop === 'waterAreaType') {
|
|
|
item.options = bj_water_category;
|
|
|
}
|
|
|
// 船舶种类
|
|
|
- if (item.prop === 'shipType') {
|
|
|
+ if (item.prop === 'shipSort') {
|
|
|
item.options = bj_ship_type;
|
|
|
}
|
|
|
// // 海内河船
|
|
|
@@ -135,11 +135,11 @@ const getTreeCheck = async data => {
|
|
|
// item.options = bj_maritime_and_river_vessels;
|
|
|
// }
|
|
|
// 海上案号和案由
|
|
|
- if (item.prop === 'maritime_case_number_cause_of_action') {
|
|
|
+ if (item.prop === 'seaCaseNoReason') {
|
|
|
item.options = bj_maritime_case_number_cause_of_action;
|
|
|
}
|
|
|
// 内河案号和案由
|
|
|
- if (item.prop === 'inland_river_case_number_cause_of_action') {
|
|
|
+ if (item.prop === 'inlandCaseNoReason') {
|
|
|
item.options = bj_inland_river_case_number_cause_of_action;
|
|
|
}
|
|
|
});
|
|
|
@@ -148,17 +148,15 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '4':
|
|
|
- focusTrackShipDetailConfig.params.id = data[1];
|
|
|
- focusTrackShipDetailConfig.params.type = data[0];
|
|
|
focusTrackShipDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 重点跟踪船舶通报信息模型-----------
|
|
|
- // 入列时间范围
|
|
|
- if (item.prop === 'inclusion_time_range') {
|
|
|
+ // 列入时间范围
|
|
|
+ if (item.prop === 'addDateRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 审核状态
|
|
|
- if (item.prop === 'review_status') {
|
|
|
+ if (item.prop === 'auditStatus') {
|
|
|
item.options = bj_review_status;
|
|
|
}
|
|
|
});
|
|
|
@@ -167,21 +165,19 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '5':
|
|
|
- operationShipInspectionDetailConfig.params.id = data[1];
|
|
|
- operationShipInspectionDetailConfig.params.type = data[0];
|
|
|
operationShipInspectionDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 运营检验监督船舶检验通报信息模型 -----------
|
|
|
- // 检查范围
|
|
|
- if (item.prop === 'scope_time_inspection') {
|
|
|
+ // 检查时间范围
|
|
|
+ if (item.prop === 'checkRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 检查状态
|
|
|
- if (item.prop === 'check_status') {
|
|
|
+ if (item.prop === 'checkStatus') {
|
|
|
item.options = bj_check_status;
|
|
|
}
|
|
|
// 检查结论
|
|
|
- if (item.prop === 'inspection_conclusion') {
|
|
|
+ if (item.prop === 'checkResult') {
|
|
|
item.options = bj_inspection_conclusion;
|
|
|
}
|
|
|
});
|
|
|
@@ -190,21 +186,19 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '6':
|
|
|
- buildShipInspectionDetailConfig.params.id = data[1];
|
|
|
- buildShipInspectionDetailConfig.params.type = data[0];
|
|
|
buildShipInspectionDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 建造检验监督船舶检验通报信息模型 -----------
|
|
|
- // 检查范围
|
|
|
- if (item.prop === 'scopeInspection') {
|
|
|
+ // 检查时间范围
|
|
|
+ if (item.prop === 'checkRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 检查状态
|
|
|
- if (item.prop === 'check_status') {
|
|
|
+ if (item.prop === 'checkStatus') {
|
|
|
item.options = bj_check_status;
|
|
|
}
|
|
|
// 检查结论
|
|
|
- if (item.prop === 'inspection_conclusion') {
|
|
|
+ if (item.prop === 'checkResult') {
|
|
|
item.options = bj_inspection_conclusion;
|
|
|
}
|
|
|
});
|
|
|
@@ -213,17 +207,15 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '7':
|
|
|
- keyShipCompanyDetailConfig.params.id = data[1];
|
|
|
- keyShipCompanyDetailConfig.params.type = data[0];
|
|
|
keyShipCompanyDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 重点跟踪航运公司通报信息模型-----------
|
|
|
- // 入列时间范围
|
|
|
- if (item.prop === 'inclusion_time_range') {
|
|
|
+ // 列入时间范围
|
|
|
+ if (item.prop === 'addDateRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 检查状态
|
|
|
- if (item.prop === 'check_status') {
|
|
|
+ if (item.prop === 'checkStatus') {
|
|
|
item.options = bj_check_status;
|
|
|
}
|
|
|
});
|
|
|
@@ -232,21 +224,19 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '8':
|
|
|
- importExportPortReportDetailConfig.params.id = data[1];
|
|
|
- importExportPortReportDetailConfig.params.type = data[0];
|
|
|
importExportPortReportDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 进出口岸报告通报信息模型 -----------
|
|
|
- // 申请范围
|
|
|
- if (item.prop === 'scope_time_application') {
|
|
|
+ // 申请时间范围
|
|
|
+ if (item.prop === 'applyRange') {
|
|
|
item.options = bj_scope_time_application;
|
|
|
}
|
|
|
// 报给机构
|
|
|
- if (item.prop === 'report_to_institutions') {
|
|
|
+ if (item.prop === 'reportOrganization') {
|
|
|
item.options = bj_report_to_institutions;
|
|
|
}
|
|
|
// 进出港
|
|
|
- if (item.prop === 'arrival_and_departure') {
|
|
|
+ if (item.prop === 'inOutPort') {
|
|
|
item.options = bj_arrival_and_departure;
|
|
|
}
|
|
|
// // 滞留
|
|
|
@@ -267,25 +257,23 @@ const getTreeCheck = async data => {
|
|
|
|
|
|
break;
|
|
|
case '9':
|
|
|
- siteSafetySupervisionInspectionDetailConfig.params.id = data[1];
|
|
|
- siteSafetySupervisionInspectionDetailConfig.params.type = data[0];
|
|
|
siteSafetySupervisionInspectionDetailConfig?.formItems?.forEach((db, groupIndex) => {
|
|
|
db?.forEach(item => {
|
|
|
// -------- 现场安全监督检查通报信息模型 -----------
|
|
|
- // 检查范围
|
|
|
- if (item.prop === 'scope_time_inspection') {
|
|
|
+ // 检查时间范围
|
|
|
+ if (item.prop === 'checkRange') {
|
|
|
item.options = bj_scope_time_inspection;
|
|
|
}
|
|
|
// 初复查标志
|
|
|
- if (item.prop === 'initial_review_mark') {
|
|
|
+ if (item.prop === 'checkType') {
|
|
|
item.options = bj_initial_review_mark;
|
|
|
}
|
|
|
// 报给机构
|
|
|
- if (item.prop === 'report_to_institutions') {
|
|
|
+ if (item.prop === 'reportOrganization') {
|
|
|
item.options = bj_report_to_institutions;
|
|
|
}
|
|
|
// // 滞留
|
|
|
- // if (item.prop === 'detain') {
|
|
|
+ // if (item.prop === 'retention') {
|
|
|
// item.options = bj_detain;
|
|
|
// }
|
|
|
// 六个月无进出口港报告申请日期
|
|
|
@@ -293,9 +281,9 @@ const getTreeCheck = async data => {
|
|
|
item.options = bj_six_months_without_application_data;
|
|
|
}
|
|
|
// 检查内容
|
|
|
- // if (item.prop === 'inspection_content') {
|
|
|
- // item.options = bj_inspection_content;
|
|
|
- // }
|
|
|
+ if (item.prop === 'checkContent') {
|
|
|
+ item.options = bj_inspection_content;
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
detailConfig.value = siteSafetySupervisionInspectionDetailConfig;
|
|
|
@@ -305,7 +293,6 @@ const getTreeCheck = async data => {
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- console.log(detailConfig.value);
|
|
|
};
|
|
|
</script>
|
|
|
|