<template>
	<view>
		<view class="timeBox flex justify-between align-center padding-lr-sm">
			<view class="time">{{this.getData.cl_time}}</view>
			<button class="cu-btn radius bg-green sm">{{this.getData.wtype}}</button>
		</view>
		<view >
			<!-- 基本信息start -->
			<view class="basic-info">
				<view class="info-tit margin-left-xs">
					<text class="cuIcon-titles margin-right-xs"></text>
					基本信息
				</view>
				<view class="info-content">
					<view class="info-one-info " style="display:block">
						<text >{{type==1?this.getData.artificial_code:this.getData.supervise_code}}:</text>  
						<br>
					
						<text>{{this.getData.content}}</text>
					</view>
					<!-- <view>
						
					</view> -->
				</view>
			</view>
			<!-- 基本信息end -->
			
			<!-- 处理信息start -->
			<view class="processStatus">
				<view class="info-tit margin-left-xs">
					<text class="cuIcon-titles margin-right-xs"></text>
					处理信息
				</view>
				<view class="info-content">
					<view class="info-one-info ">
						<text style="width:140px!important">处理账号/电话：</text>
						<text>{{this.getData.clr_phone}}</text>
					</view>
					<view>
						<text>处理时间：</text>
						<text>{{this.getData.cl_time}}</text>
					</view>
					
					<view>
						<text>处理内容：</text>
						<text>{{this.getData.clnr}}</text>
					</view>
				</view>
			</view>
			<!-- 处理状态end -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				radio: 'A',
				radio: 'B',
				modalName: null,
				type: 0,
				getData:{},
				detailMessage2:{},
			}
		},
		onLoad: function(option) {
			this.type=option.type;
			if(option.type==1){
				uni.setNavigationBarTitle({
					title: "消防支队人工督察单详情页",
				});
			}else{
				uni.setNavigationBarTitle({
					title: "消防支队电子督察单详情页",
				});
			}
			this.getDetailData({
				"id": option.id,
				"company_code": uni.getStorageSync('selectedCode')
			})
		},
		methods: {
			async getDetailData(params = {}) {
				const res = await this.$myRequest({
					url: this.type==1?'FireInspector/getManualInspectorDetails':'FireInspector/getElectronicInspectorDetails',
					data: params,
					showLoading: true
				})
				this.getData = res.data.data[0];
				console.log(this.getData)
			},
			submit() {
				uni.makePhoneCall({
					phoneNumber: '15122423833' //仅为示例
				});
			},
			RadioChange(e) {
				this.radio = e.detail.value
			},
			textareaAInput(e) {
				this.textareaAValue = e.detail.value
			},
		}
	}
</script>

<style lang="scss">
	.timeBox {
		height: 88rpx;
		background: #EFF4FF;
		line-height: 88rpx;
		.time {
			color: #333
		}
	}
	.info-tit {
		color: #4074E7;
		line-height: 90rpx;
		height: 90rpx;
	}

	// 基本信息
	.info-content>view {
		margin-left: 24rpx;
		border-bottom: 1px solid #EDEDED;
		line-height: 92rpx;
		color: #666;
	}

	.info-content view text:first-child {
		width: 160rpx;
		display: inline-block
	}
</style>
