<!-- 调节PH(传值) -->
<template>
    <StepFormPackage ref="stepFormPackageRef" @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],
    components: {
        StepFormPackage
    },
    computed: {
        formConfig() {
            return [{
                config: {
                    text1: {
                        label: "使用PH测量仪",
                        type: "text",
                    },
                    yq: {
                        type: "instrument",
                        fillType: "actFill",
                    },
                    text2: {
                        label: "仪器，目标PH值为",
                        type: "text",
                    },
                    rm: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    text3: {
                        label: "，加入酸性溶液",
                        type: "text",
                    },
                    rxry: {
                        type: "input",
                        fillType: "preFill",
                    },
                    sj1: {
                        type: "regent",
                        fillType: "actFill",
                        ylCode: "sjjrl",
                        dwCode: "sjjrldw",
                    },
                    text4: {
                        label: "进行调节，实际加入量为",
                        type: "text",
                    },
                    sjjrl: {
                        type: "input",
                        fillType: "actFill",
                    },
                    sjjrldw: {
                        type: "select",
                        options: this.getDictOptions("business_tjdw"),
                        selectTo: "sjbdtjdw",
                        fillType: "actFill",
                    },

                    text5: {
                        label: "，加入碱性溶液",
                        type: "text",
                    },
                    jxry: {
                        type: "input",
                        fillType: "preFill",
                    },
                    sj2: {
                        type: "regent",
                        fillType: "actFill",
                        ylCode: "sjjrl1",
                        dwCode: "sjjrldw1",
                    },
                    text6: {
                        label: "进行调节，实际加入量为",
                        type: "text",
                    },
                    sjjrl1: {
                        type: "input",
                        fillType: "actFill",
                    },
                    sjjrldw1: {
                        type: "select",
                        options: this.getDictOptions("business_tjdw"),
                        selectTo: "sjbdtjdw",
                        fillType: "actFill",
                    },
                    text7: {
                        label: "，调节后实际PH值为",
                        type: "text",
                    },
                    ph: {
                        type: "inputNumber",
                        fillType: "actFill",
                    },
                    button1: {
                        type: "button",
                        buttonName: "获取值",
                    },
                    text8: {
                        type: "text",
                        label: "。",
                    },
                }
            }]
        }
    },
}
</script>

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