<!-- 加热搅拌 -->
<template>
    <StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_jrjb" @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: 'jrjb',
            },
        },
        components: {
            StepFormPackage
        },
        computed: {
            formConfig() {
                let config = [{
                    config:{
                        text1:{
                            label:"使用搅拌仪",
                            type:"text",
                        },
                        yq:{
                            type:"yq",
                            fillType:"actFill",
                        },
                        text2:{
                            label:"仪器,设置预计温度为",
                            type:"text",
                        },
                        yjwd:{
                            type:"inputNumber",
                            fillType:"preFill",
                        },
                        text3:{
                            label:"°C，实际温度为",
                            type:"text",
                        },
                        sjwd:{
                            type:"inputNumber",
                            fillType:"actFill",
                            compareTo:"yjwd",
                            copyFrom:"yjwd"
                        },
                        text4:{
                            label:"，设置预计转速为",
                            type:"text",
                        },
                        yjzs2:{
                            type:"inputNumber",
                            fillType:"preFill",
                        },
                        yjzsdw:{
                            type:"select",
                            options: this.getDictOptions("business_zsdw"),
                            selectTo:"sjzsdw",
                            fillType:"preFill", 
                        },
                        text5:{
                            label:"实际转速为",
                            type:"text",
                        },
                        sjzs:{
                            type:"inputNumber",
                            fillType:"actFill",
                            compareTo:"yjzs2",
                            copyFrom:"yjzs2"
                        },
                         sjzsdw:{
                            type:"select",
                            options: this.getDictOptions("business_zsdw"),
                            fillType:"preFill", 
                        },
                        text6:{
                            label:"进行搅拌，搅拌",
                            type:"text",
                        },
                        startDate: {
                            type: "input",
                            fillType: "actFill",
                            disabled: true,
                        },
                        button1:{
                            type:"button",
                            buttonName:"开始",
                        },
                        text7:{
                            label:"搅拌",
                            type:"text",
                        },
                        endDate: {
                            type: "input",
                            fillType: "actFill",
                            disabled: true,
                        },
                         button2:{
                            type:"button",
                            buttonName:"结束",
                        },
                        text8: {
                            type: "text",
                            label: "。",
                        },
                        
                    }
                }]
                if(this.sn==='jrjb_b'){
                    config[0].config.remark = {
                        type: "input",
                        fillType: "actFill",
                    }
                }
                return config
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>