<template>
	<view class="container">
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>养护编码</view><view>{{info.planNo}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>计划名称</view><view>{{info.planName}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>归属公司</view><view>{{info.belongCompanyName}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>道路名称</view><view>{{info.roadName}}</view></view>
		</tui-list-cell>
		<!--
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>植物类型</view><view>{{info.maintainSubjectName}}</view></view>
		</tui-list-cell>
		-->
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>养护类型</view><view>{{info.maintainTypeName}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>养护等级</view><view>{{info.curingLevelName}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>周 期</view><view>{{info.levelValue}}{{info.cycleName}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>计划开启</view><view>{{info.beginTimePlus}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>计划结束</view><view>{{info.endTimePlus}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false">
			<view class="fs-flex__between"><view>计划次数</view><view>{{info.planNum}}</view></view>
		</tui-list-cell>
		<tui-list-cell :hover="false" unlined>
			<view class="fs-flex__between"><view>完成次数</view><view>{{info.planFinishNum}}</view></view>
		</tui-list-cell>
	</view>
</template>

<script>
import { apiInspectionDetail } from '@/api/work'
export default {
	data() {
		return {
			info: {}
		}
	},
	onLoad(options) {
		this.getInspectionInfo(options.planNo)
	},
	methods: {
		// 获取养护详情
		getInspectionInfo(planNo) {
			apiInspectionDetail({data:{plan_no:planNo}}).then(res => {
				this.info = res.data
			})
		}
	}
}
</script>

<style lang="scss" scoped>

</style>
