<!-- 活化（SPE） -->
<template>
    <StepFormPackage ref="stepFormPackageRef" prefixKey="swypfx_hhspe" @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: 'hhsep',
		},
	},
    components: {
        StepFormPackage
    },
    computed: {
        formConfig() {
            return [{
                config: {
                    text1: {
                        label: "使用",
                        type: "text",
                    },
                    ytrq: {
                        fillType: "preFill",
                        type: "input",
                    },
                    sjrqcz: {
                        fillType: "actFill",
                        type: "yq",
                    },
                    text2: {
                        label: this.sn==='syspe'?"向预先活化平衡好的固相萃取版中加入":"向固相萃取版中加入",
                        type: "text",
                    },
                    srry: {
                        fillType: "preFill",
                        type: "input",
                    },
                    sjrq:{
                        fillType: "actFill",
                        type: "sj",
                        ylCode: "sjsr2",
                        dwCode: "sjsrdw2",
                    },
                    text3:{
                        label: this.sn==='syspe'?"样品，预计加入":"溶液，预计加入",
                        type: "text",
                    },
                    ytsr1:{
                        fillType: "preFill",
                        type: "inputNumber",
                    },
                    tjxz:{
                        fillType: "preFill",
                        type: "select",
                        selectTo: "sjsrdw2",
                        options:this.getDictOptions('business_tjdw'),  
                    },
                    text4:{
                        label: "，实际加入",
                        type: "text",
                    },
                    sjsr2:{
                        fillType: "actFill",
                        type: "inputNumber",
                        compareTo:"ytsr1",
                        copyFrom:"ytsr1"
                    },
                    sjsrdw2:{
                        fillType: "preFill",
                        type: "select",
                        options: this.getDictOptions('business_tjdw'),  
                    },
                    text5:{
                        label: this.sn==='phspe'?"进行平衡。":this.sn==='syspe'?"进行上样。":this.sn==='lxspe'?"进行淋洗，弃去淋洗液。":this.sn==='xtspe'?"进行洗脱，收集洗脱液。":"进行活化。",
                        type: "text",
                    }
                }
            }]
        }
    },
}
</script>

<style lang="scss" scoped></style>