<!-- 酸解加样 -->
<template>
    <StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'jcb_sjjy_jcb'" @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: 'sjjy_jcb',
		},
	},
    components: {
        StepFormPackage
    },
    computed: {
        formConfig() {
            let config =  [{
                config: {
                    text0: {
                        label: "取与检测板对应的",
                        type: "text",
                    },
                    srmc: {
                        fillType: "preFill",
                        type: "input",
                    },

                    text1: {
                        label: "深孔板，使用",
                        type: "text",
                    },
                    yqmc: {
                        fillType: "preFill",
                        type: "input",
                    },
                    yq: {
                        fillType: "actFill",
                        type: "yq",
                    },
                    text2: {
                        label: "仪器，先加入",
                        type: "text",
                    },
                    rymc:{
                        fillType: "preFill",
                        type: "input",
                    },
                    ry:{
                        fillType: "actFill",
                        type: "sj",
                        ylCode: "sjtj",
                        dwCode: "sjtjdw",
                    },
                    text3:{
                        label: "溶液，每孔预计各加入",
                        type: "text",
                    },
                    yjtj:{
                        fillType: "preFill",
                        type: "inputNumber",
                    },
                    yjtjdw:{
                        fillType: "preFill",
                        type: "select",
                        selectTo: "sjtjdw",
                        options:this.getDictOptions('business_tjdw'),  
                    },
                    text4:{
                        label: "，每孔实际各加入",
                        type: "text",
                    },
                    sjtj:{
                        fillType: "actFill",
                        type: "inputNumber",
                        compareTo:"yjtj",
                        copyFrom:"yjtj"
                    },
                    sjtjdw:{
                        fillType: "preFill",
                        type: "select",
                        options: this.getDictOptions('business_tjdw'),  
                    },
                    text5:{
                        label: "，再加入已配制的质控及待测样品，每孔预计各加入",
                        type: "text",
                    },

                    yjtj1:{
                        fillType: "preFill",
                        type: "inputNumber",
                    },
                    yjtjdw1:{
                        fillType: "preFill",
                        type: "select",
                        selectTo: "sjtjdw1",
                        options:this.getDictOptions('business_tjdw'),  
                    },
                    text6:{
                        label: "，每孔实际各加入",
                        type: "text",
                    },
                    sjtj1:{
                        fillType: "actFill",
                        type: "inputNumber",
                        compareTo:"yjtj1",
                        copyFrom:"yjtj1"
                    },
                    sjtjdw1:{
                        fillType: "preFill",
                        type: "select",
                        options: this.getDictOptions('business_tjdw'),  
                    },

                    text7:{
                        label: "，进行稀释，预计稀释倍数为",
                        type: "text",
                    },
                    yjbs:{
                        fillType: "preFill",
                        type: "inputNumber",
                    },
                    text8:{
                        label: "倍，实际稀释倍数为",
                        type: "text",
                    },
                    sjbs:{
                        fillType: "actFill",
                        type: "inputNumber",
                        copyFrom:'yjbs',
                        compareTo:'yjbs'
                    },
                    text9:{
                        label: "倍。",
                        type: "text",
                    },
                }
            }]

            return config
        }
    },
}
</script>

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