<template>
	<view class="todo-page">
		<step-title :stepPage="stepsPage" :stepText="stepsText"></step-title>
		<view class="allview">
			<view class="card">
				<u--form labelWidth="auto" :model="model" ref="wForm" class="demo-ruleForm">
					<view style="position: relative;">
						<view style="position: absolute;left: -10px;color: #3d4b70;top: -3px;">*</view>
					</view>

					<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">基本信息</view>
					<u-form-item label="发起时间：" prop="Product_Unit">
						<u--input v-model="model.CREATE_TIME" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
						</u--input>

					</u-form-item>
					<u-form-item label="发起部门：" prop="Product_Unit">
						<u--input v-model="(model.Nav_ApplyDepartment||{}).NAME" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
						</u--input>

					</u-form-item>
					<u-form-item label="发起人：" prop="Product_Unit">
						<u--input v-model="(model.Nav_ApplyUser||{}).NAME" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
						</u--input>

					</u-form-item>
					<u-form-item v-if="model.HIDDEN_DANGER_CONFIRM_ID!=null || model.HIDDEN_DANGER_REPORT_ID!=null" label="检查区域:">
						<u--input v-model="(model.Nav_RiskArea||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item v-if="model.HIDDEN_DANGER_CONFIRM_ID!=null || model.HIDDEN_DANGER_REPORT_ID!=null" label="检查内容:">
						<u--input v-model="(model.Nav_Contents||{}).CHECKCONTENT" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item v-if="model.HIDDEN_DANGER_CONFIRM_ID!=null || model.HIDDEN_DANGER_REPORT_ID!=null" label="隐患描述:">
						<u--input v-model="(model.Nav_Question||{}).DESCREPTION" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item v-if="model.HIDDEN_DANGER_CONFIRM_ID!=null || model.HIDDEN_DANGER_REPORT_ID!=null" label="隐患等级:">
						<u--input v-model="model.HIDDEN_LEVELName" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item v-if="model.HIDDEN_DANGER_CONFIRM_ID!=null || model.HIDDEN_DANGER_REPORT_ID!=null" label="整改措施:">
					</u-form-item>
					<u--textarea v-if="model.HIDDEN_DANGER_CONFIRM_ID!=null || model.HIDDEN_DANGER_REPORT_ID!=null" v-model="model.RECTIFICATION_MEASURES" disabled autoHeight></u--textarea>
					<view class="upload-title">附件：</view>
					<full-upload v-model="model.Nav_DoubleFiles" :isShowBtn='false' :listProp='listPropUpload' :listPropVal='listPropValUpload'></full-upload>

				</u--form>
				<u--form labelWidth="auto" :model="model" ref="wForm" class="sub-form">


					<view style="position: relative;">

						<view style="position: absolute;left: -10px;color: #3d4b70;top: -3px;">*</view>
					</view>

					<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;margin-top: 20px;">辨识内容</view>
					<view v-for="(item,index) in model.Nav_DoubleDetails" :key="index" style="border-bottom: #ceccca 1px solid;margin-bottom: 10px;padding-bottom: 10px;">
						<u-form-item prop="Nav_Contents" :label="index+1+'.辨识区域：'">

							<view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;">
								<!-- <view @click="handleChangeStep(index,'','Area')" style="flex: 1;">
									{{index+1+'.辨识区域：'+item.Nav_Area.NAME}}
								</view> -->
								<u--input v-model="(item.Nav_Area||{}).NAME" disabled disabledColor="#ffffff" border="none" fontSize="14px">
								</u--input>
								<view class="action" @click.stop style="display: flex;flex-direction: row;align-items: center;justify-content: space-around;">
									<u-icon name="arrow-up" size="12" v-if="item.showPack" @click="handlePack(item)"></u-icon>
									<u-icon name="arrow-down" size="12" v-if="!item.showPack" @click="handlePack(item)"></u-icon>
								</view>
							</view>

						</u-form-item>
						<view v-if="item.showPack==true">
							<u-form-item label="生产单元：" border-bottom>
								<u--input v-model="(item.Nav_ProductionUnit||{}).NAME" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
								</u--input>

							</u-form-item>
							<u-form-item label="风险名称" prop="CHECKSTANDARD" border-bottom>
								<u--input v-model="item.RISK_NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="风险描述" prop="HIDDEN_DESCRIPTION">
							</u-form-item>
							<u--textarea v-model="item.RISK_DESCRIPTION" disabled autoHeight maxlength="-1"></u--textarea>
							<u-form-item label="风险类别" prop="HIDDEN_LEVEL" border-bottom>
								<u--input v-model="(item.Nav_Type||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="风险评价L" border-bottom>
								<u--input v-model="(item.Nav_SCOREL||{}).SCORE" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="风险评价E" border-bottom>
								<u--input v-model="(item.Nav_SCOREE||{}).SCORE" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="风险评价C" border-bottom>
								<u--input v-model="(item.Nav_SCOREC||{}).SCORE" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="分值D" border-bottom>
								<u--input v-model="item.EVALUATE_SCORE" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="风险等级" prop="HIDDEN_PLACE" border-bottom>
								<u--input v-model="item.EVALUATE_LEVELName" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
								</u--input>
							</u-form-item>
							<u-form-item label="应急处置" prop="EMERGENCY">

							</u-form-item>
							<u--textarea v-model="item.EMERGENCY" disabled autoHeight maxlength="-1"></u--textarea>
							<uni-collapse class="collapse" ref="collapse">
								<uni-collapse-item title="管控措施" name="Docs guide">
									<view v-if="item.Nav_DoubleDetailMeasures&&item.Nav_DoubleDetailMeasures.length!==0">
										<view v-for="(item1,index1) in item.Nav_DoubleDetailMeasures" :key="index1" style="margin: 5px 5px;padding: 0px 10px;">
											<u-form-item :label="index1+1+'.顺序'" prop="NUM" borderBottom>
												<u-number-box integer v-model="item1.NUM" disabled :min="-10000" :max="10000"></u-number-box>
											</u-form-item>
											<u-form-item label="管控措施" prop="MEASURES_NAME">

											</u-form-item>
											<u--textarea v-model="item1.MEASURES_NAME" disabled autoHeight maxlength="-1"></u--textarea>

											<u-form-item label="检查内容" prop="EMERGENCY" @click="ishowCheckCo(item1)" border-bottom>
												<u-icon name="arrow-up" size="12" v-if="item1.ishowCheckCo"></u-icon>
												<u-icon name="arrow-down" size="12" v-if="!item1.ishowCheckCo"></u-icon>
											</u-form-item>

											<view v-if="item1.ishowCheckCo">
												<view v-for="(item2,index2) in item1.Nav_DetailMeasureContents" :key="index2">
													<u-form-item borderBottom>
														<view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;">
															<view style="flex: 1;display: flex;flex-direction: row;align-items: center;">
																<view style="flex: 1;">
																	{{index2+1+'.检查内容 : ' +item2.Nav_Contents.CHECKCONTENT}}
																</view>
															</view>

														</view>
													</u-form-item>
													<!-- 	<u-form-item borderBottom label="检查依据" prop="HIDDEN_PLACE" border-bottom>
													</u-form-item>
													<u--textarea v-model="item2.Nav_DetailMeasureContentBasicsName" disabled maxlength="-1"></u--textarea>
													<u-form-item borderBottom label="判定标准" prop="HIDDEN_PLACE" border-bottom>
														<u--input v-model="item2.CHECK_STANDARD" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
														</u--input>
													</u-form-item> -->
													<u-form-item label="检查层级" prop="EMERGENCY" @click="ishowCheckLe(item2)" border-bottom>
														<u-icon name="arrow-up" size="12" v-if="item2.ishowCheckLe"></u-icon>
														<u-icon name="arrow-down" size="12" v-if="!item2.ishowCheckLe"></u-icon>
													</u-form-item>
													<view v-if="item2.ishowCheckLe">
														<view v-for="(item3,index3) in item2.Nav_DetailMeasureContentPosts" :key="index3">
															<u-form-item :label="index3+1+'.顺序'" prop="NUM" borderBottom>
																<u-number-box integer v-model="item3.NUM" disabled :min="-10000" :max="10000"></u-number-box>

															</u-form-item>
															<u-form-item label="检查层级：" border-bottom>
																<u--input v-model="item3.CHECK_TYPEName" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
																</u--input>
															</u-form-item>
															<u-form-item borderBottom label="检查部门" prop="HIDDEN_PLACE" border-bottom>
																<u--input v-model="(item3.Nav_Department||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
																</u--input>
															</u-form-item>
															<u-form-item borderBottom label="检查类型" prop="HIDDEN_PLACE" border-bottom>
																<u--input v-model="(item3.Nav_CheckType||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
																</u--input>
															</u-form-item>
															<u-form-item label="检查周期：" border-bottom>
																<u--input v-model="item3.CHECK_CYCLEName" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
																</u--input>
															</u-form-item>
						
														</view>
													</view>
													<u-form-item label="隐患描述" prop="EMERGENCY" @click="ishowRiskDes(item2)" border-bottom>
														<u-icon name="arrow-up" size="12" v-if="item2.ishowRiskDes"></u-icon>
														<u-icon name="arrow-down" size="12" v-if="!item2.ishowRiskDes"></u-icon>
													</u-form-item>
													<view v-if="item2.ishowRiskDes">
														<view v-for="(item3,index3) in item2.Nav_DetailMeasureContentHiddens" :key="index3">
															<u-form-item borderBottom :label="index3+1+'.隐患描述:'" prop="HIDDEN_PLACE" border-bottom>
																<u--input v-model="(item3.Nav_Question||{}).DESCREPTION" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
																</u--input>

															</u-form-item>
															<u-form-item label="隐患等级：" border-bottom>
																<u--input v-model="item3.HIDDEN_LEVELName" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">
																</u--input>
															</u-form-item>
															<u-form-item borderBottom label="整改措施" prop="HIDDEN_PLACE" border-bottom>

															</u-form-item>
															<u--textarea v-model="item3.RECTIFICATION_MEASURES" disabled maxlength="-1"></u--textarea>

														</view>
													</view>
												</view>
											</view>
										</view>
									</view>
								</uni-collapse-item>
								<uni-collapse-item title="管控层级" name="Variety components">
									<view v-if="item.Nav_DetailPosts&&item.Nav_DetailPosts.length!==0">
										<view v-for="(item1,index1) in item.Nav_DetailPosts" :key="index1" style="margin: 5px 5px;padding: 0px 10px;">
											<u-form-item borderBottom>
												<view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;">
													<view style="flex: 1;display: flex;flex-direction: row;align-items: center;">
														<view style="flex: 1;">
															{{index1+1+'.管控部门 : ' +item1.Nav_Department.NAME}}
														</view>
													</view>
												</view>
											</u-form-item>
											<u-form-item borderBottom label="管控层级：" prop="Check_Level">
												<u--input v-model="item1.DEPARTMENT_TYPEName" disabled disabledColor="#ffffff" border="none" inputAlign="right" fontSize="14px">

												</u--input>
											</u-form-item>
											<u-form-item borderBottom label="管控责任人" prop="HIDDEN_PLACE" border-bottom>
												<u--input v-model="((item1.Nav_Department||{}).Nav_User||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
												</u--input>
											</u-form-item>
										</view>
									</view>
								</uni-collapse-item>
								<uni-collapse-item title="辨识岗位" name="Numerous tools">
									<view v-if="item.Nav_DetailDeparts&&item.Nav_DetailDeparts.length!==0">
										<view v-for="(item1,index1) in item.Nav_DetailDeparts" :key="index1" style="margin: 5px 5px;padding: 0px 10px;">
											<u-form-item borderBottom>
												<view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;">
													<view style="flex: 1;display: flex;flex-direction: row;align-items: center;">
														<view style="flex: 1;">
															{{index1+1+'.辨识部门 : ' +item1.Nav_Department.NAME}}
														</view>
													</view>
												</view>
											</u-form-item>
											<u-form-item borderBottom label="辨识岗位" prop="HIDDEN_PLACE" border-bottom>
											
											</u-form-item>
												<u-textarea v-model="item1.Nav_DepartDetailsName" disabled autoHeight ></u-textarea>
										</view>
									</view>
								</uni-collapse-item>
							</uni-collapse>
						</view>
					</view>
				</u--form>
			</view>
			<check-action v-if="isLoadOK && tableKey === '1'&&isAudit==='true' " :okApi="okApi" :refuseApi="refuseApi" :dataSource="$store.state.auditModel"></check-action>
		</view>
	</view>
</template>

<script>
	import {
		extendFilterGroup,
		extendGroupRule,
		extendInclude,
		extendOrder,
		extendRule,
		extendIgnoreDataRule,
		guid,
		initFilter,
		initFilterGroup,
		handleOriginalArray,
		transformData
	} from '../../../../utils/common'
	import {
		FMProductionUnit,
		SKEffective,
		SKMarkEnum,
		SKLevelEnum,
		CheckPeriods,
		CheckLevels,
		MineTypeIndex,
		MineTypeName
	} from '../../../../utils/enums.js'
	import {
		getEnum,
		GetEnumAnyOrder
	} from '../../../../services/common';
	import {
		DouPreGet,
		SKDoublePreventFullUpdate,
	} from '../../../../services/apply/subPages/SK/SKServices.js'
	import {
		getRequest,
	} from '../../../../services/apply/FOServices/FOServices';
	import stepTitle from '@/components/custom/step-title.vue'
	export default {
		components: {
			stepTitle,
		},
		data() {
			return {
				showDelModalIndex: undefined,
				newContent: false,
				showPopupDate: false,
				showPopupRecitifyDate: false,
				listPropUpload: ['NOTIFY_ID'],
				listPropValUpload: [],
				ORG_ID: uni.getStorageSync('orgId'),
				currentOperateStep: {},
				showPopupStep: false,
				isMultiple: false,
				stepLists: [],
				curTotalStep: 0,
				showPopupUnit: false,
				stepLoad: true,
				UnitLists: [],
				UnitDefaultIndex: [0],
				LevelLists: [],
				defaultChecked: [],
				model: {
					Nav_ApplyDepartment: {
						NAME: ''
					},
					Nav_ApplyUser: {
						NAME: ''
					},
					CREATE_TIME: '',
					Nav_RiskArea: {
						NAME: ''
					},
					Nav_Contents: {
						CHECKCONTENT: ''
					},
					Nav_Question: {
						DESCREPTION: ''
					},
					HIDDEN_LEVEL: '',
					RECTIFICATION_MEASURES: '',
					Nav_DoubleFiles: [],
					Nav_DoubleDetails: [{
						showPack: false,
						MineType: '',
						Nav_Area: {
							NAME: ''
						},
						RISK_NAME: '',
						Nav_RiskName: {
							NAME: ''
						},
						RISK_DESCRIPTION: '',
						Nav_Type: {
							NAME: ''
						},
						EVALUATE_L: 0,
						EVALUATE_E: 0,
						EVALUATE_C: 0,
						EVALUATE_SCORE: 0,
						EVALUATE_LEVEL: '',
						Nav_DetailPosts: [],
						Nav_DoubleDetailMeasures: [],
						isShowControl: false,
					}]
				},
				model: {
					Nav_RiskArea: {
						NAME: ''
					},
					Nav_Contents: {
						CHECKCONTENT: ''
					},
					Nav_Question: {
						DESCREPTION: ''
					},
					HIDDEN_LEVEL: '',
					RECTIFICATION_MEASURES: '',
					Nav_DoubleFiles: [],
					Nav_DoubleFiles: [],
					Nav_DoubleDetails: [{
						showPack: false,
						MineType: '',
						Nav_Area: {
							NAME: ''
						},
						RISK_NAME: '',
						Nav_RiskName: {
							NAME: ''
						},
						RISK_DESCRIPTION: '',
						Nav_Type: {
							NAME: ''
						},
						EVALUATE_L: 0,
						EVALUATE_E: 0,
						EVALUATE_C: 0,
						EVALUATE_SCORE: 0,
						EVALUATE_LEVEL: '',
						Nav_DetailPosts: [],
						Nav_DoubleDetailMeasures: [],
						isShowControl: false,
					}]

				},
				dateRecitifyTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
				stepsText: ['发起', '审批', '归档'],
				stepsPage: 0,
				stepsPageList: 0,
				TaskID: '',
				nowName: '',
				nowIndex: 0,
				childList: ['管控措施', '管控层级', '辨识岗位'],
				curNow: 0,
				isAudit: false,
				isLoadOK: false,
				tableKey: 0,
				enumsData: {}, // 存储所有枚举数据（键：枚举名称，值：处理后的枚举列表）
				enumsText: {} // 存储枚举文本列表（用于下拉选择等场景）
			}
		},
		onLoad(option) {
			this.TaskID = option.taskID ? option.taskID : '';
			this.ID = option.ID ? option.ID : '';
			this.tableKey = option.tableKey ? option.tableKey : '0'
			this.isAudit = option.isAudit
			this.okApi = option.okApi
			this.refuseApi = option.refuseApi
			this.auditModel = {
				...this.$store.state.auditModel,
				TaskID: option.taskID ? option.taskID : ''
			}
			this.fetchEnums(['SKHiddenLevel', 'SKProductionUnit', 'SKEvaluateLevelEnum', 'SKPLANCHECKFREQUENCYEnum', 'SKDepartmentTypeEnum']);
		},
		methods: {
			fetchEnums(enumNames) {
				var dataParm = {
					'name': enumNames.join('|')
				}
				GetEnumAnyOrder(dataParm).then(res => {
					let newd = transformData(res, enumNames)
					this.enumsData = newd[0];
					// 生成文本列表（如需要）
					this.enumsText = newd[1]
					this.loadData();
				})
			},
			loadData() {
				// const json = {}
				const orgId = uni.getStorageSync('orgId')
				const json = initFilter(orgId, "", "")
				extendRule(json, 'ID', 1, this.ID);
				extendInclude(json, 'Nav_ApplyUser');
				extendInclude(json, 'Nav_ApplyDepartment');
				extendInclude(json, 'Nav_RiskArea');
				extendInclude(json, 'Nav_Contents');
				extendInclude(json, 'Nav_DoubleDetails.Nav_Type');
					extendInclude(json, 'Nav_DoubleDetails.Nav_ProductionUnit');
				extendInclude(json, 'Nav_DoubleDetails.Nav_Area');
				extendInclude(json, 'Nav_DoubleDetails.Nav_RiskName');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DetailPosts.Nav_Department');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DetailPosts.Nav_User');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DoubleDetailMeasures.Nav_DetailMeasureContents.Nav_Contents');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DoubleDetailMeasures.Nav_DetailMeasureContents.Nav_DetailMeasureContentPosts.Nav_Department');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DoubleDetailMeasures.Nav_DetailMeasureContents.Nav_DetailMeasureContentPosts.Nav_CheckType');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DoubleDetailMeasures.Nav_DetailMeasureContents.Nav_DetailMeasureContentPosts.Nav_DetailPosts.Nav_Post');
				extendInclude(json, 'Nav_DoubleDetails.Nav_DoubleDetailMeasures.Nav_DetailMeasureContents.Nav_DetailMeasureContentHiddens');
				extendInclude(json, 'Nav_DoubleFiles.Nav_ImgFile');
				extendIgnoreDataRule(json)
				// extendRule(json, 'TASK_ID', 1, this.TaskID);
				DouPreGet(json).then(res => {
					this.model = res;
					this.model.HIDDEN_LEVELName = res.HIDDEN_LEVEL !== undefined ? this.enumsData['SKHiddenLevel'].find(item4 => item4.code === res.HIDDEN_LEVEL).name : '';
					this.stepsPage = res.STATUS == 0 ? 0 : res.STATUS == 20 ? 1 : 2
					this.model.Nav_DoubleDetails.map(item => {
						item['showPack'] = false
						item['isShowControl'] = false
						item['isShowCheck'] = false
						item['curNow'] = 0
					
						item.EVALUATE_LEVELName = item.EVALUATE_LEVEL !== undefined ? this.enumsData['SKEvaluateLevelEnum'].find(item4 => item4.code === item.EVALUATE_LEVEL).name : '';
						item.Nav_RiskName = item.Nav_RiskName ? item.Nav_RiskName : {
							NAME: ''
						}
						if (item.Nav_DetailPosts && item.Nav_DetailPosts.length > 0) {
							item.Nav_DetailPosts.map(item1 => {
								item1.DEPARTMENT_TYPEName = item1.DEPARTMENT_TYPE !== undefined ? this.enumsData['SKDepartmentTypeEnum'].find(item4 => item4.code === item1.DEPARTMENT_TYPE).name : '';
							})
						}

						if (item.Nav_DetailDeparts && item.Nav_DetailDeparts.length > 0) {
							item.Nav_DetailDeparts.map(item1 => { //辨识岗位
								if (item1.Nav_DepartDetails.length > 0) {
									let areaShow = ''
									item1.Nav_DepartDetails.map(o => {
										areaShow += o.Nav_Post.NAME
									})
									item1['Nav_DepartDetailsName'] = areaShow
								} else {
									item1['Nav_DepartDetailsName'] = ''
								}
							})
						}

						if (item.Nav_DoubleDetailMeasures && item.Nav_DoubleDetailMeasures.length > 0) { //管控措施
							item.Nav_DoubleDetailMeasures.map(item1 => {
								item1['ishowCheckCo'] = false
								if (item1.Nav_DetailMeasureContents && item1.Nav_DetailMeasureContents.length > 0) { //检查内容
									item1.Nav_DetailMeasureContents.map(item2 => {
										item2['ishowCheckLe'] = false
										item2['ishowRiskDes'] = false
										if (item2.Nav_DetailMeasureContentBasics && item2.Nav_DetailMeasureContentBasics.length > 0) {
											let areaShow = ''
											item2.Nav_DetailMeasureContentBasics.map(o => {
												if (o.Nav_Law && o.Nav_Law.NAME) {
													areaShow += o.Nav_Law.NAME + ' 、'
												}

											})
											item2['Nav_DetailMeasureContentBasicsName'] = areaShow
										} else {
											item2['Nav_DetailMeasureContentBasicsName'] = ''
										}
										if (item2.Nav_DetailMeasureContentPosts && item2.Nav_DetailMeasureContentPosts.length > 0) {
											item2.Nav_DetailMeasureContentPosts.map(item3 => {
												item3.CHECK_CYCLEName = item3.CHECK_CYCLE !== undefined ? this.enumsData['SKPLANCHECKFREQUENCYEnum'].find(item4 => item4.code === item3
													.CHECK_CYCLE).name : '';
												item3.CHECK_TYPEName = item3.CHECK_TYPE !== undefined ? this.enumsData['SKDepartmentTypeEnum'].find(item4 => item4.code === item3
													.CHECK_TYPE).name : '';
												if (item3.Nav_DetailPosts && item3.Nav_DetailPosts.length > 0) {
													let areaShow = ''
													item3.Nav_DetailPosts.map(o => { //检查岗位
														areaShow += o.Nav_Post.NAME
													})
													item3['Nav_DetailPostsName'] = areaShow
												} else {
													item3['Nav_DetailPostsName'] = ''
												}
											})
										}
										if (item2.Nav_DetailMeasureContentHiddens && item2.Nav_DetailMeasureContentHiddens.length > 0) {
											item2.Nav_DetailMeasureContentHiddens.map(item3 => {
												item3.Nav_Question = item3.Nav_Question ? item3.Nav_Question : {
														DESCREPTION: ''
													},
													item3.HIDDEN_LEVELName = item3.HIDDEN_LEVEL !== undefined ? this.enumsData['SKHiddenLevel'].find(item4 => item4.code === item3
														.HIDDEN_LEVEL).name : '';
											})
										}

									})
								}
							})
						}

					})
					this.stepLoad = false

				})
				this.isLoadOK = true
			},
			handlePack(item) {
				item.showPack = item.showPack == false ? true : false
				this.$forceUpdate()
			
			},
			ishowCheckCo(item) {
				item.ishowCheckCo = item.ishowCheckCo == false ? true : false
				this.$forceUpdate()
			},
			ishowCheckLe(item) {
				item.ishowCheckLe = item.ishowCheckLe == false ? true : false
				this.$forceUpdate()
			},
			ishowRiskDes(item) {
				item.ishowRiskDes = item.ishowRiskDes == false ? true : false
				this.$forceUpdate()
			},




		},
	}
</script>

<style scoped>
	@import url("../../../../style/css/newTemplate.css");

	.sub-form>>>.u-form-item__body__right__content__slot {
		display: flex;
		justify-content: flex-end;
	}

	.collapse>>>.uni-collapse-item__title-box {
		padding: 0px;
	}

	.collapse>>>.uni-collapse-item__title-arrow {
		margin-right: 0px;
	}

	.collapse>>>.uni-icons {
		color: #606266 !important;
	}

	.collapse>>>.uni-collapse-item__wrap-content.open {
		padding: 0px 0px 20px 0px;
	}

	.force-reflow {
		/* 这里可以设置一个无实际影响的样式，例如透明边框 */
		border: 1px solid transparent;
	}

	.collapse-content {
		height: 400px;
		width: 100%;
	}

	.collapse-content-no {
		/* height: 200px;
		width: 100%; */
	}
</style>