<template>
	<view>

		<form action=""  class="planDetailDone" >
			
			<view class="form-item">
				<view class="title">
					<text class="necessary">*</text>
					上报名称：
				</view>
				<view>{{this.getData.wx_name}}</view>
			</view>
			
			<view class="form-item">
				<view class="title">
					<text class="necessary">*</text>
					维保状态：
				</view>
				<view>{{this.getData.spot_status}}</view>
				<!-- <radio-group name="gender" @change="radioChange">
					<label class="margin-right-xs">
						<radio value="2" checked /><text>正常</text>
					</label>
					<label class="margin-right-xs">
						<radio value="3" /><text>异常</text>
					</label>
					<label class="margin-right-xs">
						<radio value="2" checked /><text>故障</text>
					</label>
					<label>
						<radio value="3" /><text>其他</text>
					</label>
				</radio-group> -->
			</view>
			
			<view class="form-item">
				<view class="title">
					<text class="necessary">*</text>
					上传图片：
				</view>
			
				<!-- <img :src="`https://qhome.usky.cn${this.getData.report_photos}`" alt="" style="max-width:50%">  -->
				<img :src="`${this.$websiteUrl}${this.getData.report_photos}`" alt="" style="max-width:50%">
				
			</view>
			
			<view class="form-item">
				<view class="title">
					<text class="necessary">*</text>
					维保描述：
				</view>
				<view>{{this.getData.dwsb_remarks}}</view>
			</view>
		
		</form>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				getData:{}
			}
		},
		onLoad:function(option){
			this.getPlanDetail({"zb_id":option.zb_id,"spot_id":option.id})
		},
		methods: {
			radioChange(e) {
				console.log('type:' + e.detail.value);
				this.radioOne = e.detail.value;
			},
			
			async getPlanDetail(params = {}) {
				const res = await this.$myRequest({
					url: 'Inspection/getPatrolDetailss',
					data:params,
					showLoading: true
				})
				this.getData=res.data.data[0];
			
				console.log(this.getData)
			},
			
		
			
		}
	}
</script>

<style lang="scss">
	

	
</style>

