<template>
	<view class="phone-zjzgs-page">
		<view class="icon-title-navBar-box">
			<view @click="goUpPage" class="nav-bar-icon"></view>
			<text class="nav-bar-title">子家政公司</text>
		</view>
		<view class="jiazheng-search-box">
			<uni-datetime-picker v-model="data.range" type="daterange" @change="onDateSelect" style="flex: 1" class="yishou-date-box"/>
		</view>
		<view class="zjzgs-body-box">
			<view class="zjzgs-num-box" v-for="item in data.list" :key="item.jzId">
				<view class="zjzgs-title">{{ item.jgName }}</view>
				<view class="num-item-box">
					<view>职业名称：{{ item.zyName }}</view>
				</view>
				<view class="num-item-box">
					<view>职业等级:{{ item.zyLevel }}</view>
				</view>
				<view class="num-item-box">
					<view>家政人员数量:{{ item.userCount }}</view>
					<view class="num-btn" @click="checkUser(item)">详情</view>
				</view>
			</view>
		</view> 
	</view>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import {ref} from "vue"
	import * as httpApi from "@/api/zijiazhenggongsi"
	
	const listIds = ref([])
	
	const certList = ref([])
	
	onLoad((options) =>{
			listIds.value = options.listIds.split(',');
	})
	
	function getCertInfo() {
		httpApi.getZiJiazhengGongsiInfo({idList:listIds.value}).then(res => {
			certList.value = res.data;
		})
	}
	
	function checkUser(item) {}
	
	function goUpPage() {
		  uni.redirectTo({
		  	url:'/pages/admin/zijiazheng/index'
		  })
	}
</script>

<style>

</style>
