|  | @@ -0,0 +1,66 @@
 | 
	
		
			
				|  |  | +<template>
 | 
	
		
			
				|  |  | +    <div class="content-wrapper">
 | 
	
		
			
				|  |  | +        <div class="filter-wrapper">
 | 
	
		
			
				|  |  | +            <gw-select :columns="inspectTypes" v-model:value="inspectType" />
 | 
	
		
			
				|  |  | +            <gw-select :columns="baseBatchs" v-model:value="baseBatch" />
 | 
	
		
			
				|  |  | +            <gw-select :columns="twoBatchs" v-model:value="twoBatch" />
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <list01 class="inspect-group-wrapper" type="history" :batch="twoBatch"></list01>
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +</template>
 | 
	
		
			
				|  |  | +<script setup>
 | 
	
		
			
				|  |  | +import { onMounted, ref, watch } from "vue";
 | 
	
		
			
				|  |  | +import List01 from "@/components/list01.vue";
 | 
	
		
			
				|  |  | +import GwSelect from "@/components/GwSelect.vue";
 | 
	
		
			
				|  |  | +import { getInspBaseByPersid } from "@/api/inspect";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const inspectType = ref('008');
 | 
	
		
			
				|  |  | +const inspectTypes = [{ text: '稽查工作', value: '008' }];
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const baseBatch = ref(null);
 | 
	
		
			
				|  |  | +const baseBatchs = ref([]);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const twoBatch = ref(null);
 | 
	
		
			
				|  |  | +const twoBatchs = ref([]);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +function getInspBase(value, level = 1) {
 | 
	
		
			
				|  |  | +    // 获取批次
 | 
	
		
			
				|  |  | +    getInspBaseByPersid(value).then(res => {
 | 
	
		
			
				|  |  | +        if (level === 2) {
 | 
	
		
			
				|  |  | +            twoBatchs.value = res.data.map(item => ({ text: item.prsnTitle, value: item.plnaId })).reverse();
 | 
	
		
			
				|  |  | +            twoBatch.value = twoBatchs.value[0].value;
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        baseBatchs.value = res.data.map(item => ({ text: item.prsnTitle, value: item.plnaId }));
 | 
	
		
			
				|  |  | +        baseBatch.value = baseBatchs.value[0].value;
 | 
	
		
			
				|  |  | +        // getInspBase(baseBatch.value, 2);
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +onMounted(() => {
 | 
	
		
			
				|  |  | +    getInspBase(inspectType.value)
 | 
	
		
			
				|  |  | +});
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +watch(() => inspectType, inspectType => {
 | 
	
		
			
				|  |  | +    getInspBase(inspectType.value);
 | 
	
		
			
				|  |  | +})
 | 
	
		
			
				|  |  | +watch(() => baseBatch, baseBatch => {
 | 
	
		
			
				|  |  | +    getInspBase(baseBatch.value, 2);
 | 
	
		
			
				|  |  | +}, { deep: true, immediate: true })
 | 
	
		
			
				|  |  | +</script>
 | 
	
		
			
				|  |  | +<style lang="scss" scoped>
 | 
	
		
			
				|  |  | +@import '@/assets/styles/filter.scss';
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +.content-wrapper {
 | 
	
		
			
				|  |  | +    padding-top: 8px;
 | 
	
		
			
				|  |  | +    height: 100%;
 | 
	
		
			
				|  |  | +    overflow: auto;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    .inspect-group-wrapper {
 | 
	
		
			
				|  |  | +        height: calc(100% - 35px);
 | 
	
		
			
				|  |  | +        overflow: auto;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +</style>
 |