<!-- 复溶 -->
<template>
    <StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_fr" @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: 'fr',
            },
        },
        components: {
            StepFormPackage
        },
        computed: {
            formConfig() {
                let config = [{
                    config:{
                        text1:{
                            label:"使用",
                            type:"text",
                        },
                        ddsys:{
                            type:"input",
                            fillType:"preFill",
                        },
                        yq:{
                            type:"yq",
                            fillType:"actFill",
                        },
                        text2:{
                            label:"仪器，吸取",
                            type:"text",
                        },
                        ddsys2:{
                            type:"input",
                            fillType:"preFill",
                        },
                        sj:{
                            type:"sj",
                            fillType:"actFill",
                            ylCode: "sjtj",
                            dwCode: "sjtjdw",
                        },
                        text3:{
                            label:"溶液，各预计加入休积为",
                            type:"text",
                        },
                        yjtj:{
                            type:"input",
                            fillType:"preFill",
                        },
                        yjtjdw:{
                            type:"select",
                            fillType:"preFill",
                            options: this.getDictOptions("business_tjdw"),
                            selectTo:"sjtjdw"
                        },
                        text4:{
                            label:"，实际加入休积为",
                            type:"text",
                        },
                        sjtj:{
                            type:"input",
                            fillType:"actFill",
                            compareTo:"yjtj",
                            copyFrom:"yjtj",
                        },
                        sjtjdw:{
                            type:"select",
                            fillType:"preFill",
                            options: this.getDictOptions("business_tjdw"),
                        },
                        text5:{
                            label:"进行复溶。",
                            type:"text",
                        }
                    }
                }]
                if(this.sn==='fr_b'){
                    config[0].config.remark = {
                        type: "input",
                        fillType: "actFill",
                    }
                }
                return config
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>