<!-- 颠倒混匀 -->
<template>
    <StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_ddhy" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>

<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';    

    export default {
        mixins: [stepMixins],
        props: {
            sn: {
                type: String,
                default: 'ddhy',
            },
        },
        components: {
            StepFormPackage
        },
        computed: {
            formConfig() {
                let config = [{
                    config:{
                        text1:{
                            label:"将溶液进行上下颠倒，预计颠倒",
                            type:"text",
                        },
                        ddcs1:{
                            type:"inputNumber",
                            fillType:"preFill",
                        },
                        text2:{
                            label:"次，实际颠倒",
                            type:"text",
                        },
                        ddcs2:{
                            type:"inputNumber",
                            fillType:"actFill",
                            compareTo:"ddcs1",
                            copyFrom:"ddcs1"
                        },
                        text3:{
                            label:"次。",
                            type:"text",
                        }
                    }
                }]
                if(this.sn==='ddhy_b'){
                    config[0].config.remark = {
                        type: "input",
                        fillType: "actFill",
                    }
                }
                return config
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>