<!-- 摇床孵育开始 -->
<template>
    <StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'jcb_ycfyks'" @resetRecord = "resetRecord" :form-config="formConfig" :formData="localFormData" />
</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: 'ycfyks',
		},
	},
    components: {
        StepFormPackage
    },
    mounted() {
        this.commonHandleJcbUpdate();
    },
    computed: {
        formConfig() {
            let config = [{
                config: {
                    text1: {
                        label: "将检测板放置于摇床",
                        type: "text",
                    },
                    yq: {
                        type: "yq",
                        fillType: "actFill",
                    },
                    text2: {
                        label: "上，设置预计转速为",
                        type: "text",
                    },
                    sjjrl: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    sjjrldw: {
                        type: "select",
                        options: this.getDictOptions("business_zsdw"),
                        selectTo: "sjzsdw",
                        fillType: "preFill",
                    },

                    text3: {
                        label: "，实际设置转速为",
                        type: "text",
                    },
                    jxry: {
                        type: "inputNumber",
                        fillType: "actFill",
                        compareTo:"sjjrl",
                        copyFrom:"sjjrl"
                    },
                    sjzsdw: {
                        type: "select",
                        options: this.getDictOptions("business_zsdw"),
                        fillType: "preFill",
                    },
                    
                    text4: {
                        label: "设置预计温度为",
                        type: "text",
                    },
                    rm: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    text5: {
                        label: "°C，实际设置温度为",
                        type: "text",
                    },
                    rxry: {
                        type: "inputNumber",
                        fillType: "actFill",
                        compareTo:"rm",
                        copyFrom:"rm"
                    },
                    text6: {
                        label: "°C，放置",
                        type: "text",
                    },
                    time:{
                        fillType: "preFill",
                        type: "input",
                    },
                    jcb:{
                        type:"dcjcb",
                        buttonName:"开始"
                    }
                }
            }]
            return config
        }
    },
}
</script>

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