<template>
	<view class="page">
		<view class="page-wrap">
			<view class="card">
				<uni-card margin="0" :is-shadow="true">
					<view>
						<!-- <view class="table-record">
							<view class="table-left">编号</view>
							<view>{{dataModel.CODE}}</view>
						</view> -->
						<view class="table-record">
							<view class="table-left">作业名称</view>
							<view>{{dataModel.Nav_OperationStep.NAME}}</view>
						</view>
						<view class="table-record">
							<view class="table-left">作业地点</view>
							<view>{{dataModel.JOB_LOCATION}}</view>
						</view>
						<view class="table-record">
							<view class="table-left">作业时间</view>
							<view v-html="dataModel.JOB_DATE"></view>
						</view>
						<view class="table-record">
							<view class="table-left">采取有效风险控制措施</view>
							<view>{{dataModel.IS_EFFECTIVE}}</view>
						</view>
						<view class="table-record" v-if="dataModel.IS_EFFECTIVE==0" :required="dataModel.IS_EFFECTIVE==0">
							<view class="table-left">描述内容</view>
							<view>{{dataModel.EFFECTIVE}}</view>
						</view>
						<view class="table-record">
							<view class="table-left">人员未存在违规行为</view>
							<view>{{dataModel.IS_EXIST}}</view>
						</view>
						<view class="table-record" v-if="dataModel.IS_EXIST==0" :required="dataModel.IS_EXIST==0">
							<view class="table-left">描述内容</view>
							<view>{{dataModel.EXIST}}</view>
						</view>
						<view class="table-record">
							<view class="table-left">作业人员习惯合适</view>
							<view>{{dataModel.IS_SUITABLE}}</view>
						</view>
						<view class="table-record" v-if="dataModel.IS_SUITABLE==0" :required="dataModel.IS_SUITABLE==0">
							<view class="table-left">描述内容</view>
							<view>{{dataModel.SUITABLE}}</view>
						</view>
						<view class="table-record">
							<view class="table-left">作业人员无需再培训</view>
							<view>{{dataModel.IS_NEED}}</view>
						</view>
						<view class="table-record" v-if="dataModel.IS_NEED==0" :required="dataModel.IS_NEED==0">
							<view class="table-left">描述内容</view>
							<view>{{dataModel.NEED}}</view>
						</view>
						<view class="table-record">
							<view class="table-left">操作规程无需再改进</view>
							<view>{{dataModel.IS_REQUIRES}}</view>
						</view>
						<view class="table-record" v-if="dataModel.IS_REQUIRES==0" :required="dataModel.IS_REQUIRES==0">
							<view class="table-left">描述内容</view>
							<view>{{dataModel.REQUIRES}}</view>
						</view>
						<view class="table-record-noborder">
							<view class="table-left">作业人员</view>
							<view v-html="dataModel.UserNames"></view>
						</view>
					</view>
					<!-- <u--form labelPosition="left" labelWidth="auto" labelAlign="center" :model="dataModel"
						ref="wForm" errorType="border-bottom">
						<u-form-item label="作业名称" prop="stepName" borderBottom>
							<u--input v-model="dataModel.Nav_OperationStep.NAME" disabled disabledColor="#ffffff" placeholder="请输入作业名称" border="none"
								inputAlign="right"></u--input>
						</u-form-item>
						<u-form-item label="作业地点" prop="JOB_LOCATION" borderBottom>
							<u--input v-model="dataModel.JOB_LOCATION" disabled disabledColor="#ffffff" placeholder="请输入作业地点" border="none"
								inputAlign="right"></u--input>
						</u-form-item>
						<u-form-item label="作业时间" prop="JOB_DATE" borderBottom>
							<u--input v-model="dataModel.JOB_DATE" disabled disabledColor="#ffffff" placeholder="请输入作业时间" border="none" inputAlign="right"
							:value="$u.timeFormat(dataModel.JOB_DATE, 'yyyy-mm-dd')">
							</u--input>
						</u-form-item>
						<u-form-item label="采取有效风险控制措施" prop="IS_EFFECTIVE" borderBottom>
							<u--input v-model="dataModel.IS_EFFECTIVE"disabled disabledColor="#ffffff" placeholder="请选择是否" border="none" inputAlign="right">
							</u--input>
						</u-form-item>
						<u-form-item label="描述内容" prop="EFFECTIVE" borderBottom v-if="dataModel.IS_EFFECTIVE==0">
						</u-form-item>
						<u--textarea v-model="dataModel.EFFECTIVE" placeholder="请输入描述内容" border="surround" inputAlign="left"
						v-if="dataModel.IS_EFFECTIVE==0" :required="dataModel.IS_EFFECTIVE==0">
						</u--textarea>
						<u-form-item label="人员未存在违规行为" prop="IS_EXIST" borderBottom>
							<u--input v-model="dataModel.IS_EXIST"disabled disabledColor="#ffffff" placeholder="请选择是否" border="none" inputAlign="right">
							</u--input>
						</u-form-item>
						<u-form-item label="描述内容" prop="EXIST" borderBottom v-if="dataModel.IS_EXIST==0">
						</u-form-item>
						<u--textarea v-model="dataModel.EXIST" placeholder="请输入描述内容" border="surround" inputAlign="left"
						v-if="dataModel.IS_EXIST==0" :required="dataModel.IS_EXIST==0">
						</u--textarea>
						<u-form-item label="作业人员习惯合适" prop="IS_SUITABLE" borderBottom>
							<u--input v-model="dataModel.IS_SUITABLE"disabled disabledColor="#ffffff" placeholder="请选择是否" border="none" inputAlign="right">
							</u--input>
						</u-form-item>
						<u-form-item label="描述内容" prop="SUITABLE" borderBottom v-if="dataModel.IS_SUITABLE==0" >
						</u-form-item>
						<u--textarea v-model="dataModel.SUITABLE" placeholder="请输入描述内容" border="surround" inputAlign="left"
						v-if="dataModel.IS_SUITABLE==0" :required="dataModel.IS_SUITABLE==0">
						</u--textarea>
						<u-form-item label="作业人员无需再培训" prop="IS_NEED" borderBottom>
							<u--input v-model="dataModel.IS_NEED"disabled disabledColor="#ffffff" placeholder="请选择是否" border="none" inputAlign="right">
							</u--input>
						</u-form-item>
						<u-form-item label="描述内容" prop="NEED" borderBottom v-if="dataModel.IS_NEED==0">
						</u-form-item>
						<u--textarea v-model="dataModel.NEED" placeholder="请输入描述内容" border="surround" inputAlign="left"
						v-if="dataModel.IS_NEED==0" :required="dataModel.IS_NEED==0">
						</u--textarea>
						<u-form-item label="操作规程无需再改进" prop="IS_REQUIRES" borderBottom>
							<u--input v-model="dataModel.IS_REQUIRES"disabled disabledColor="#ffffff" placeholder="请选择是否" border="none" inputAlign="right">
							</u--input>
						</u-form-item>
						<u-form-item label="描述内容" prop="REQUIRES" borderBottom v-if="dataModel.IS_REQUIRES==0">
						</u-form-item>
						<u--textarea v-model="dataModel.REQUIRES" placeholder="请输入描述内容" border="surround" inputAlign="left"
						v-if="dataModel.IS_REQUIRES==0" :required="dataModel.IS_REQUIRES==0">
						</u--textarea>
						<u-form-item label="作业人员" prop="UserNames" borderBottom>
						</u-form-item>
						<u--textarea autoHeight type="textarea"  v-html="dataModel.UserNames" border="none" disabledColor="#ffffff"
							inputAlign="right">
						</u--textarea>
					</u--form> -->
				</uni-card>
			</view>
			<u-sticky offset-top="0">
				<view class="tabs-title" id="tabs-title" :style="{margin:isTop==true?'0px':'16px'}">
					<view style="margin-right: 10px;margin-left: 10px;">
						<u-tabs ref="tabs" :activeStyle="{
			    fontWeight: 'bold',
			    transform: 'scale(1)',
				fontSize:'14px',
				color:'#005BEA'
			}" :inactiveStyle="{
			    transform: 'scale(1)',
				fontSize:'14px',
			}" :list="list" lineColor="#005BEA" :is-scroll="true" :current="currentIndex" @change="change">
							<view class="icon-tabs" slot="right" @tap="changeIndex">
								<u-icon size="14" name="arrow-right" bold></u-icon>
							</view>
						</u-tabs>
					</view>
			
			
				</view>
			</u-sticky>
			<view v-if="currentIndex===0" class="uni-card-bottom">
				
				<u--form labelPosition="left" labelWidth="auto" labelAlign="center" errorType="border-bottom"
					ref="sForm">
					<u-collapse :border="false" accordion>
						<uni-card style="margin: 0px 16px 16px 16px;padding: 10px 0px;" margin="0" spacing="0" :is-shadow="false" padding="0"
							 v-for="(item, index) in dataModel.Nav_Details">
							
							<u-collapse-item title-border="none" :show-arrow="false" class="collapse-influ">
								<view slot="title" class="collapse-title">
									<view class="text-num">{{item.NUM+ '. '}}</view>
									<view class="text">{{item.SafeConfirmsStr}}</view>
								</view>
								<u-form-item label="是否确认" prop="IS_CONFIRM" borderBottom>
									<u--input disabled disabledColor="#fff"
														v-model="item.IS_CONFIRM"
														border="none"
														inputAlign="right"></u--input>
								</u-form-item>
								<u-form-item label="附件" prop="flowFiles" borderBottom>
									<view class="link-content">
										<view class="link-content-border" v-for="itemChild in item.confirmFiles">
											<u-link  :href="itemChild.url" :text="itemChild.name"
												color="#005BEA">
											</u-link>
										</view>
									</view>
									
								</u-form-item>
							</u-collapse-item>
						</uni-card>
					</u-collapse>
				</u--form>
			</view>
			<view v-if="currentIndex===1" class="uni-card-bottom">
						<u--form labelPosition="left" labelWidth="auto" labelAlign="center" errorType="border-bottom"
							ref="sForm">
							<u-collapse :border="false" accordion>
								<uni-card style="margin: 0px 16px 16px 16px;padding: 10px 0px;" margin="0" spacing="0" padding="0" :is-shadow="false"
									v-for="(item, index) in dataModel.Nav_Flow">
									
									<u-collapse-item title-border="none" :show-arrow="false" class="collapse-influ">
										<view slot="title" class="collapse-title">
											<view class="text-num">{{item.NUM+ '. '}}</view>
											<view class="text">{{item.SafeMeasuresStr}}</view>
										</view>
										<u-form-item label="是否确认" prop="IS_CONFIRM" borderBottom>
											<u--input disabled disabledColor="#fff"
																v-model="item.IS_CONFIRM"
																border="none"
																inputAlign="right"></u--input>
										</u-form-item>
										<u-form-item label="附件" prop="flowFiles" borderBottom>
											<view class="link-content">
												<view class="link-content-border" v-for="itemChild in item.flowFiles">
													<u-link :href="itemChild.url" :text="itemChild.name"
														color="#005BEA">
													</u-link>
												</view>
											</view>
										</u-form-item>
									</u-collapse-item>
								</uni-card>
							</u-collapse>
						</u--form>
			</view>
			<view v-if="currentIndex===2" class="uni-card-bottom">
				<u--form labelPosition="left" labelWidth="auto" labelAlign="center" errorType="border-bottom"
					ref="sForm">
					<u-collapse :border="false" accordion>
						<uni-card style="margin: 0px 16px 16px 16px;padding: 10px 0px;" margin="0" spacing="0" padding="0" :is-shadow="false"
							v-for="(item, index) in dataModel.Nav_Measure">
							
							<u-collapse-item title-border="none" :show-arrow="false" class="collapse-influ">
								<view slot="title" class="collapse-title">
									<view class="text-num">{{item.NUM+ '. '}}</view>
									
									<view class="text">{{ item.DealMeasuresStr}}</view>
								</view>
								<u-form-item label="是否确认" prop="IS_CONFIRM" borderBottom>
									<u--input disabled disabledColor="#fff"
														v-model="item.IS_CONFIRM"
														border="none"
														inputAlign="right"></u--input>
								</u-form-item>
								<u-form-item label="附件" prop="flowFiles" borderBottom>
									<view class="link-content">
										<view class="link-content-border" v-for="itemChild in item.dealFiles">
											<u-link  :href="itemChild.url" :text="itemChild.name"
												color="#005BEA">
											</u-link>
										</view>
									</view>
								</u-form-item>
							</u-collapse-item>
						</uni-card>
					</u-collapse>
				</u--form>
			</view>
			
<!-- 			<u-sticky offset-top="20">
				<view class="sub-form">
					<u-collapse :border="false" accordion>
						<uni-card margin="0" spacing="0" padding="0" :is-shadow="true">
							<u-collapse-item title="作业前安全确认">
								<view class="sub-form-wrap" style="height: 500px; overflow: auto">
									<u--form labelPosition="left" labelWidth="auto" labelAlign="center"
										:model="subDataModel" ref="sForm2" errorType="border-bottom">
										<u-swipe-action>
											<u-swipe-action-item style="margin-bottom: 16px;" :options="options"
												v-for="(item, index) in dataModel.Nav_Details">
												<uni-card margin="0" spacing="0" :is-shadow="false"
													style="margin-bottom: 10px;">
													<u-form-item label="顺序" prop="NUM" borderBottom>
														<u--input disabled disabledColor="#fff"
															v-model="item.NUM" border="none"
															inputAlign="right"></u--input>
													</u-form-item>
													<u-form-item label="名称" prop="SafeConfirmsStr" borderBottom>
													</u-form-item>
													<u--textarea
														v-model="item.SafeConfirmsStr"
														border="none" inputAlign="right"></u--textarea>
													<u-form-item label="是否确认" prop="IS_CONFIRM" borderBottom>
														<u--input disabled disabledColor="#fff"
															v-model="item.IS_CONFIRM" border="none"
															inputAlign="right"></u--input>
													</u-form-item>
													<u-form-item label="附件" prop="dealFiles" borderBottom>
													</u-form-item>
													<u-link v-for="itemChild in item.dealFiles" :href="itemChild.url" :text="itemChild.name">
													</u-link>
												</uni-card>
											</u-swipe-action-item>
										</u-swipe-action>
									</u--form>
								</view>
							</u-collapse-item>
						</uni-card>
					</u-collapse>
				</view>
			</u-sticky>
			<u-sticky offset-top="20">
				<view class="sub-form">
					<u-collapse :border="false" accordion>
						<uni-card margin="0" spacing="0" padding="0" :is-shadow="true">
							<u-collapse-item title="作业流程及安全措施">
								<view class="sub-form-wrap" style="height: 500px; overflow: auto">
									<u--form labelPosition="left" labelWidth="auto" labelAlign="center"
										:model="subDataModel" ref="sForm2" errorType="border-bottom">
										<u-swipe-action>
											<u-swipe-action-item style="margin-bottom: 16px;" :options="options"
												v-for="(item, index) in dataModel.Nav_Flow">
												<uni-card margin="0" spacing="0" :is-shadow="false"
													style="margin-bottom: 16px;">
													<u-form-item label="顺序" prop="NUM" borderBottom>
														<u--input disabled disabledColor="#fff"
															v-model="item.NUM" border="none"
															inputAlign="right"></u--input>
													</u-form-item>
													<u-form-item label="名称" prop="SafeMeasuresStr" borderBottom>
													</u-form-item>
													<u--textarea
														v-model="item.SafeMeasuresStr"
														border="none" inputAlign="right"></u--textarea>
													<u-form-item label="是否确认" prop="IS_CONFIRM" borderBottom>
														<u--input disabled disabledColor="#fff"
															v-model="item.IS_CONFIRM" border="none"
															inputAlign="right"></u--input>
													</u-form-item>
													<u-form-item label="附件" prop="dealFiles" borderBottom>
													</u-form-item>
													<u-link v-for="itemChild in item.dealFiles" :href="itemChild.url" :text="itemChild.name">
													</u-link>
												</uni-card>
											</u-swipe-action-item>
										</u-swipe-action>
									</u--form>
								</view>
							</u-collapse-item>
						</uni-card>
					</u-collapse>
				</view>
			</u-sticky>
			<u-sticky offset-top="20">
				<view class="sub-form">
					<u-collapse :border="false" accordion>
						<uni-card margin="0" spacing="0" padding="0" :is-shadow="true">
							<u-collapse-item title="作业后处理措施">
								<view class="sub-form-wrap" style="height: 500px; overflow: auto">
									<u--form labelPosition="left" labelWidth="auto" labelAlign="center"
										:model="subDataModel" ref="sForm2" errorType="border-bottom">
										<u-swipe-action>
											<u-swipe-action-item style="margin-bottom: 16px;" :options="options"
												v-for="(item, index) in dataModel.Nav_Measure">
												<uni-card margin="0" spacing="0" :is-shadow="false"
													style="margin-bottom: 10px;">
													<u-form-item label="顺序" prop="NUM" borderBottom>
														<u--input disabled disabledColor="#fff"
															v-model="item.NUM" border="none"
															inputAlign="right"></u--input>
													</u-form-item>
													<u-form-item label="名称" prop="DealMeasuresStr" borderBottom>
													</u-form-item>
													<u--textarea
														v-model="item.DealMeasuresStr"
														border="none" inputAlign="right"></u--textarea>
													<u-form-item label="是否确认" prop="IS_CONFIRM" borderBottom>
														<u--input disabled disabledColor="#fff"
															v-model="item.IS_CONFIRM" border="none"
															inputAlign="right"></u--input>
													</u-form-item>
													<u-form-item label="附件" prop="dealFiles" borderBottom>
													</u-form-item>
													<u-link v-for="itemChild in item.dealFiles" :href="itemChild.url" :text="itemChild.name">
													</u-link>
												</uni-card>
											</u-swipe-action-item>
										</u-swipe-action>
									</u--form>
								</view>
							</u-collapse-item>
						</uni-card>
					</u-collapse>
				</view>
			</u-sticky> -->
			<view class="bottom-button">
				<button type="primary" class="bottom" v-if="isLoadOK&&tableKey==='1'&&!isAudit" @click="onTableBtnAgree">确认</button>
				<!-- <button type="primary" class="bottom" v-if='isLoadOK&&tableKey==1' @click="onTableBtnAgree">签到</button> -->
			</view>
			<!-- <query-selector :show="showPopup" :lists="userLists" :defaultValue="currentOperateUser.NAME"
				@close="handleClosePopup" @search="handleSearchUser" @select="handleSelectedUser" />
			<u-picker :show="comPickerInfo.showSheet" :columns="comPickerInfo.columns" @confirm="onConfirmPicker"
				@close="closePicker" @cancel="closePicker" keyName="NAME"></u-picker> -->
		</view>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	import {
		extendFilterGroup,
		extendGroupRule,
		extendInclude,
		extendOrder,
		extendRule,
		guid,
		initFilter,
		initFilterGroup,
		extendIgnoreDataRule
	} from '../../../../utils/common'
	import {
		getRequest,//getJobActivityGet,
		getUserLists,
		getJobActivityRecordSign,
		saveJobActivityRecord
	} from '../../../../services/apply/FOServices/FOServices.js'
	import config from '../../../../config/common'

	export default {
		data() {
			return {
				ID:'',
				TaskID: '',
				tableKey: 0,
				isLoadOK: false,
				isAudit: false,
				userLists: [],
				dataModel: {
					Nav_OperationStep:''
				},
				subDataModel: {},
				options: [{
					text: '删除',
					style: {
						backgroundColor: '#f56c6c'
					}
				}],
				comPickerInfo: {
					showSheet: false,
					columns: [],
					title: '',
					dataIndex: undefined,
					formIndex: undefined,
					name: ''
				},
				currentOperateUser: {},
				showPopup: false,
				list: [{
					name: '作业前安全确认'
				}, {
					name: '作业流程及安全措施'
				}, {
					name: '作业后处理措施'
				}],
				currentIndex: 0,
				isTop: false
			}
		},
		onLoad(opt) {
			this.handleGetJobActivityGet(opt)
		},
		onPageScroll(e) {
			let query = uni.createSelectorQuery().in(this);
			query.select('#tabs-title').boundingClientRect(data => {
				if (data.top == 0) {
					this.isTop = true
				} else {
					this.isTop = false
				}
				// 这个 
			}).exec();
		},
		methods: {
			change(index) {
				this.currentIndex = index.index;
			},
			changeIndex() {
				this.show = true
				if (this.currentIndex + 1 < this.list.length) {
					this.currentIndex = this.currentIndex + 1
				}
			},
			handleGetJobActivityGet(opt) {
				this.TaskID = opt.taskID ? opt.taskID : '';
				this.ID = opt.ID ? opt.ID : '';
				this.tableKey = opt.tableKey ? opt.tableKey : '0'
				this.isAudit = opt.isAudit
				const orgId = uni.getStorageSync('orgId')
				const json = initFilter(orgId, "", "")
				 extendRule(json, 'ID', 1, opt.ID)
					 //    extendInclude(json, 'Nav_TechDisclosure');
					 //    extendInclude(json, 'Nav_JobName');
					 //    extendInclude(json, 'Nav_OperationStep');
					 //    extendInclude(json, 'Nav_JobActivityPerson');
						// extendInclude(json, 'Nav_JobActivityPerson.Nav_User.Nav_Department');
					 //     extendInclude(json, 'Nav_Details');
						//  extendInclude(json, 'Nav_Details.Nav_Files.Nav_ImgFile');
					 //     extendInclude(json, 'Nav_Flow');
						//  extendInclude(json, 'Nav_Flow.Nav_Files.Nav_ImgFile');
					 //     extendInclude(json, 'Nav_Measure');
						//  extendInclude(json, 'Nav_Measure.Nav_Files.Nav_ImgFile');
				// TODO: id 未获取
				getRequest(json,"/FO/FOJobActivityRecord/GetEdit").then(res => {
					this.dataModel = res
					this.dataModel.IS_EFFECTIVE == 0 ? this.dataModel.IS_EFFECTIVE = "否" : this.dataModel
						.IS_EFFECTIVE = "是";
					this.dataModel.IS_EXIST == 0 ? this.dataModel.IS_EXIST  = "否" : this.dataModel
						.IS_EXIST = "是";
					this.dataModel.IS_SUITABLE == 0 ? this.dataModel.IS_SUITABLE = "否" : this.dataModel
						.IS_SUITABLE = "是";
					this.dataModel.IS_NEED == 0 ? this.dataModel.IS_NEED = "否" : this.dataModel
						.IS_NEED = "是";
					this.dataModel.IS_REQUIRES == 0 ? this.dataModel.IS_REQUIRES = "否" : this.dataModel
						.IS_REQUIRES = "是";
					if(res.JOB_DATE)
					{
						res.JOB_DATE = uni.$u.timeFormat(res.JOB_DATE,'yyyy-mm-dd')
					}
					if(res.JOB_END_DATE)
					{
						res.JOB_END_DATE = uni.$u.timeFormat(res.JOB_END_DATE,'yyyy-mm-dd')
					}
					//数据组装
					let strUserName = ''
					if (res.Nav_JobActivityPerson && res.Nav_JobActivityPerson.length > 0) {
						for (let i = 0; i < res.Nav_JobActivityPerson.length; i++) {
							if (res.Nav_JobActivityPerson[i].DEAL_STATUS == 0) {
								strUserName += (strUserName.length > 0 ? "&nbsp;&nbsp;" : "") + "<text style='color:red'>" +
									res.Nav_JobActivityPerson[i].Nav_User.NAME + "</text>";
							} else {
								let user=res.Nav_JobActivityPerson[i].USER_ID!=null?res.Nav_JobActivityPerson[i].Nav_User.NAME:'';
									strUserName += (strUserName.length > 0 ? "&nbsp;&nbsp;" : "") + user;
							}
					
						}
					}
					//数据组装
					if (res.Nav_Details && res.Nav_Details.length > 0) {
						let strconfirmFiles = [{
							url: '',
							name:''
						}]
						for (let i = 0; i < res.Nav_Details.length; i++) {
							res.Nav_Details[i].NUM=i+1;
							if (res.Nav_Details[i].IS_CONFIRM == true) {
								res.Nav_Details[i].IS_CONFIRM ="是"		
								} else {
								res.Nav_Details[i].IS_CONFIRM ="否"	
							}
							let details=res.Nav_Details[i];
							if (details.Nav_Files && details.Nav_Files.length > 0) {
								for (let j = 0; j < details.Nav_Files.length; j++) {
								strconfirmFiles.push({
								url: config.uni_app_web_source_url+ details.Nav_Files[j].Nav_ImgFile.FILE_PATH,
								name:details.Nav_Files[j].Nav_ImgFile.FILE_NAME
								})
								details.confirmFiles = strconfirmFiles
								}
							}
						}
					}
					//数据组装
					if (res.Nav_Flow && res.Nav_Flow.length > 0) {
						let strconfirmFiles = [{
							url: '',
							name:''
						}]
						for (let i = 0; i < res.Nav_Flow.length; i++) {
							res.Nav_Flow[i].NUM=i+1;
							if (res.Nav_Flow[i].IS_CONFIRM == true) {
								res.Nav_Flow[i].IS_CONFIRM ="是"		
								} else {
								res.Nav_Flow[i].IS_CONFIRM ="否"	
							}
							let details=res.Nav_Flow[i];
							if (details.Nav_Files && details.Nav_Files.length > 0) {
								for (let j = 0; j < details.Nav_Files.length; j++) {
								strconfirmFiles.push({
								url: config.uni_app_web_source_url+ details.Nav_Files[j].Nav_ImgFile.FILE_PATH,
								name:details.Nav_Files[j].Nav_ImgFile.FILE_NAME
								})
								details.flowFiles = strconfirmFiles
								}
							}
						}
					}
					//数据组装
					if (res.Nav_Measure && res.Nav_Measure.length > 0) {
						let strconfirmFiles = [{
							url: '',
							name:''
						}]
						for (let i = 0; i < res.Nav_Measure.length; i++) {
							res.Nav_Measure[i].NUM=i+1;
							if (res.Nav_Measure[i].IS_CONFIRM == true) {
								res.Nav_Measure[i].IS_CONFIRM ="是"		
								} else {
								res.Nav_Measure[i].IS_CONFIRM ="否"	
							}
							let details=res.Nav_Measure[i];
							if (details.Nav_Files && details.Nav_Files.length > 0) {
								for (let j = 0; j < details.Nav_Files.length; j++) {
								strconfirmFiles.push({
								url: config.uni_app_web_source_url+ details.Nav_Files[j].Nav_ImgFile.FILE_PATH,
								name:details.Nav_Files[j].Nav_ImgFile.FILE_NAME
								})
								details.dealFiles = strconfirmFiles
								}
							}
						}
					}
					this.dataModel.UserNames = strUserName
					this.isLoadOK = true
				})
			},
			onTableBtnAgree() {
				let json={};
				json.ID=this.ID;
				json.TaskID=this.TaskID;
				getJobActivityRecordSign(json).then(res => {
					uni.$showMsgFunc('操作成功!', () => {
						uni.navigateBack()
					}, 'success', 1000)
				})
			}
			}
	}
</script>

<style  scoped>
	.page {
		// background-image: url('../../../../utils/waves.svg');
		// background-repeat: no-repeat;
		// background-size: 100%;
	}

	.page-wrap {
		padding-bottom: 66px;
	}

	.uni-card {
		// margin-bottom: 10px;
		margin: 16px;
	}
	.uni-card-bottom {
		margin-bottom: 116px;
	}

	.uni-card-content {
		margin: 5px 10px;
	}

	.tabs-title {
		//padding-top: 10px;
		// margin-bottom: 10px;
		// margin: 16px;
		display: flex;
		flex-direction: row;
		align-items: center;
		background-color: rgba(255, 255, 255, 1);
		box-shadow: 0px 1px 0px 0px #eaedf4;

		.icon-tabs {
			padding-left: 5px;
			display: flex;
			align-items: center;
		}
	}

	.card {
		// margin-bottom: 18px;
		margin: 16px;
	}

	.table-record {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		/* font-size: 12px; */
		border-bottom: 1px #c8c7cc solid;
		line-height: 40px;
		color: #303133;
	}

	.table-record-noborder {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		/* font-size: 12px; */
		line-height: 40px;
		color: #303133;
	}

	.table-bottom {
		border-bottom: 1px #c8c7cc solid;
	}


	.table-record-column {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		font-size: 12px;
		color: #303133;
	}
	.table-left {
		line-height: 40px;
		display: flex;
		align-items: center;
		width: 150px;
	}
	
	.table-right {
		display: flex;
		color: #808080;
		align-items: center;
		justify-content: flex-end;
		flex: 1;
		line-height: 18px;
		padding: 5px 0px 5px 0px;
	}
	
	.link-content {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		width: 100%;
		align-items: center;
	
		
	}
	.link-content-border {
		display: flex;
		margin-left: 10px;
		align-items: center;
	}

	.sub-form {
		margin-bottom: 16px;
	}

	.bottom-button {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 10px 16px;
		box-sizing: border-box;
		background: #fff;
		z-index: 999;
	}

	.upload-title {
		color: #303133;
		font-size: 15px;
		line-height: 22px;
		padding: 8px 0;
	}

	.page-wrap>>>.u-upload__button {
		margin-bottom: 0;
	}
	/* .collapse-influ>>>.u-cell__body__content {
		width: calc(100% - 20px);
		display: block;
	} */
	.collapse-title {
		display: flex;
		flex-direction: row;
		/* justify-content: space-between; */
		/* align-items: center; */
		width: 100%;
	}
	.text-num {
		display: flex;
		align-items: flex-start;
		margin-right: 3px;
	}
	.collapse-title .down {
		width: 20px;
		flex: 0 0 auto;
	}
	/* .collapse-title .text {
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
		flex: 1;
		width: calc(100% - 100px);
	} */
</style>
