<!-- 恒温混匀 -->
<template>
    <StepFormPackage ref="stepFormPackageRef" prefixKey="ry_hwhy" @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: 'hwhy',
        },
    },
    components: {
        StepFormPackage
    },
    computed: {
        formConfig() {
            let config = [{
                config: {
                    text1: {
                        label: "使用恒温混匀仪",
                        type: "text",
                    },
                    yq1: {
                        type: "yq",
                        fillType: "actFill",
                    },
                    text2: {
                        label: "仪器，设置预计温度为",
                        type: "text",
                    },
                    yjzs: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    text3: {
                        label: "°C，实际温度为",
                        type: "text",
                    },
                    sjwd: {
                        type: "inputNumber",
                        fillType: "actFill",
                        compareTo: "yjzs",
                        copyFrom: "yjzs"
                    },
                    text4: {
                        label: "°C，设置预计转速为",
                        type: "text",
                    },
                    yjzs2: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    yjzsdw: {
                        type: "select",
                        options: this.getDictOptions("business_zsdw"),
                        selectTo: "sjzsdw",
                        fillType: "preFill",
                    },
                    text8: {
                        label: "实际转速为",
                        type: "text",
                    },
                    sjzs: {
                        type: "inputNumber",
                        fillType: "actFill",
                        compareTo: "yjzs2",
                        copyFrom: "yjzs2"
                    },
                    sjzsdw: {
                        type: "select",
                        options: this.getDictOptions("business_zsdw"),
                        fillType: "preFill",
                    },
                    text7: {
                        label: "，设置预计时长为",
                        type: "text",
                    },
                    yjsc: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    yjscdw: {
                        type: "select",
                        options: this.getDictOptions("business_yqscdw"),
                        selectTo: "sjscdw",
                        fillType: "preFill",
                    },
                    text5: {
                        label: "，实际时长为",
                        type: "text",
                    },
                    sjsc: {
                        type: "inputNumber",
                        fillType: "actFill",
                        compareTo: "yjsc",
                        copyFrom: "yjsc"
                    },
                    sjscdw: {
                        type: "select",
                        options: this.getDictOptions("business_yqscdw"),
                        fillType: "preFill",
                    },
                    text6: {
                        label: "，进行恒温混匀，混匀",
                        type: "text",
                    },
                    startDate: {
                        type: "input",
                        fillType: "actFill",
                        disabled: true,
                    },
                    startDate: {
                        type: "input",
                        fillType: "actFill",
                        disabled: true,
                    },
                    button1: {
                        type: "button",
                        buttonName: "开始"
                    },
                    text9: {
                        type: "text",
                        label: "。",
                    },
                }
            }]
            if(this.sn==='hwhy_b'){
                config[0].config.remark = {
                    type: "input",
                    fillType: "actFill",
                }
            }
            return config
        }
    },
}
</script>

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