<!-- 全部任务-完成 -->
<template>
	<view class="allTask">
		<uni-card v-for="(item,index) in props.taskList" padding="0" spacing="0" class="allTask_list" @click="pageNav(item)" v-if="props.taskList.length!=0">
			<view class="list_content">
				<view class="list_content_img">
					<image :src="pageData.statusIcon" class="statusIcon"></image>
				</view>
				<view class="list_item">质控名称</view>
				<view class="list_item_text">{{item.taskName}}</view>
			</view>
			<view class="list_content">
				<view class="list_item">质控日期</view>
				<view class="list_item_text">{{item.zkTime}}</view>
			</view>
			<view class="list_content">
				<view class="list_item">整改项数</view>
				<view class="list_item_text">{{item.zgxs}}</view>
			</view>
			<view class="list_content">
				<view class="list_item">整改上传日期</view>
				<view class="list_item_text">{{item.zgDeadline}}</view>
			</view>
			<view class="list_content">
				<view class="list_item">整改情况</view>
				<view class="list_item_text">{{'第'+item.zgState+'次'}}</view>
			</view>
			<view class="list_content">
				<view class="list_item">整改审核日期</view>
				<view class="list_item_text">{{item.zgshTime}}</view>
			</view>
			<view class="list_content">
				<view class="list_item">整改审核结果</view>
				<view class="list_item_text">{{item.zgshResult}}</view>
			</view>
		</uni-card>
		<view v-else class="empty_data">
			<image src="@/static/empty_data.png" mode="aspectFit"></image>
		</view>
	</view>
</template>

<script setup>
import http from '@/utils/request';
import {ref,reactive,getCurrentInstance, computed, nextTick,watch} from "vue";
import {onLoad,onShow,onUnload,onPageScroll,onReachBottom,onPullDownRefresh} from "@dcloudio/uni-app";

const props=defineProps({
	// 接受父组件参数，任务列表
	taskList:Array
})

const pageData=reactive({
	// 状态icon
	statusIcon:'/static/wan_icon.png',
	taskList:[]
})

const pageNav=(e)=>{
	uni.navigateTo({
		url: '/pages/ypczk/djfk/uploadZg/rectification?id='+e.id+'&status='+e.status,
	});
}

</script>

<style lang="scss" scoped>
@import 'index.scss';
</style>
