<template>
    <view class="bg-white br12 p-0-20">
        <view class="d-b-c p-30-0 border-b">
            <view class="f28 fb">{{ $t('ENU_G_C_6') }}</view>
            <view class="hh100" @click="clickFold">
                <u-icon name="arrow-down" size="28rpx" color="#999999" v-if="fold"></u-icon>
                <u-icon name="arrow-right" size="28rpx" color="#999999" v-else></u-icon>
            </view>
        </view>
        <view class="collspaceContent" :class="{ 'closed': !fold }">
            <view class="d-b-c p-20-0 border-b">
                <view class="f24 gray3">{{ $t('S_C_7') }}：{{ $t('S_C_68') }}</view>
                <view class="f24">{{ data.month }}{{ $t('ENU_SETTLE_P_3') }}</view>
            </view>
            <view class="prefecture form-group">
                <view class="form-item">
                    <view class="d-b-c ww100">
                        <view>
                            <view class="d-s-c">
                                <view class="pr20">
                                    <text class="f24 fb">{{ $t('S_C_22') }}</text>
                                </view>
                                <view>
                                    <text class="f24">{{ goalsClassifyVOList.totalAchieve }}</text>
                                </view>
                            </view>
                        </view>
                    </view>
                </view>
                <view class="d-f">
                    <view>
                        <view class="form-item">
                            <view class="fb">{{ $t('S_C_9') }}</view>
                        </view>
                        <view class="form-item">
                            <view class="fb">{{ $t('S_C_11') }}</view>
                        </view>
                        <view class="form-item">
                            <view class="fb">{{ $t('S_C_12') }}</view>
                        </view>
                        <view class="form-item">
                            <view class="fb">{{ $t('S_C_13') }}</view>
                        </view>
                        <view class="form-item">
                            <view class="fb">{{ $t('S_C_14') }}</view>
                        </view>
                    </view>
                    <view class="flex-1">
                        <view class="form-item">
                            <view class="fb">{{ $t('S_C_23') }}</view>
                        </view>
                      <view class="form-item" v-for="index in 4" :key="index">
                            <view class="">{{ getVal(goalsClassifyVOList.goalsRowDetailVOList[0],index) }}</view>
                        </view>
                    </view>
                </view>
                <view class="pb20">
                    <view class="c-f2 p20" v-for="(v, idx) in goalsClassifyVOList.goalsMeetingVOList" :key="idx">
                        <view class="prefecture form-group">
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_24') }}</text>
                                </view>
                                <view class="flex-1">
                                    {{ v.meetingType }}
                                </view>
                            </view>
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_28') }}</text>
                                </view>
                                <view class="flex-1">{{ v.meetingTheme }}</view>
                            </view>
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_25') }}</text>
                                </view>
                                <view class="flex-1">
                                    {{ v.meetingNumber }}
                                </view>
                            </view>
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_26') }}</text>
                                </view>
                                <view class="flex-1">
                                    {{ v.recProvinceVal }}{{ v.recCityVal }}{{ v.recCountyVal }}
                                </view>
                            </view>
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_27') }}</text>
                                </view>
                                <view class="flex-1">{{ v.address }}</view>
                            </view>
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_31') }}</text>
                                </view>
                                <view class="flex-1">
                                    <view class="flex-1">{{ v.meetingDate }}</view>
                                </view>
                            </view>
                            <view class="form-item">
                                <view class="form-label">
                                    <text class="f24">{{ $t('S_C_29') }}</text>
                                </view>
                                <view class="flex-1">
                                    <view class="flex-1">{{ v.remarks }}</view>
                                </view>
                            </view>
                        </view>
                    </view>
                </view>

            </view>
        </view>
    </view>
</template>

<script>
export default {
    components: {},
    props: ['data', 'goalsClassifyVOList'],
    data() {
        return {
            fold: false,
        };
    },
    methods: {
        clickFold() {
            this.fold = !this.fold;
        },
          getVal(obj,index){
            let key = `m${index}`
            return obj[key] || '0.00'
        }
    }
};
</script>

<style lang="scss" scoped>
.collspaceContent {
    max-height: 5000rpx;
    overflow: hidden;
    transition: all ease 0.8s;

    &.closed {
        max-height: 0;
        transition: all ease 0.6s;
    }
}
</style>