<template>
	<view class="border border-light-opc rounded mb-2 p-2 shadow-sm">
		<view class="">
			<text class="text-primary">企业名称：</text>
			<text class="text-secondary">{{itemData.enterpriseName}}</text>
		</view>
		<view class="my-2">
			<text class="text-primary">提交时间：</text>
			<text class="text-secondary">{{itemData.submitTime || itemData.createTime}}</text>
		</view>
		<view class="">
			<text class="text-primary">提交人：</text>
			<text class="text-secondary">{{itemData.submitName || itemData.userName}}</text>
		</view>
		<view class="pt-2">
			<text class="text-primary">办结时间：</text>
			<text class="text-secondary">{{itemData.submitTime || itemData.finishedTime || '----'}}</text>
		</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			questionData: {
				type: Object,
				default: () => {}
			}
		},
		computed: {
			itemData() {
				return this.questionData
			}
		}
	}
</script>

<style>
</style>
