<!-- 超声 -->
<template>
    <StepFormPackage ref="stepFormPackageRef" prefixKey="ry_cs" @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: 'cs',
		},
	},
    components: {
        StepFormPackage
    },
    computed: {
        formConfig() {
            let config = [{
                config: {
                    text1: {
                        label: "使用超声波清洗机",
                        type: "text",
                    },
                    yq: {
                        type: "yq",
                        fillType: "actFill",
                    },
                    text2: {
                        label: "仪器，设置预计频率为",
                        type: "text",
                    },
                    yjpl: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    text3: {
                        label: "Hz，实际频率为",
                        type: "text",
                    },
                    sjpl: {
                        type: "inputNumber",
                        fillType: "actFill",
                        compareTo: "yjpl",
                        copyFrom: "yjpl",
                    },
                    text4: {
                        label: "Hz，设置预计时长为",
                        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",
                    },
                    cssr: {
                        type: "input",
                        fillType: "preFill",
                    },
                    text7: {
                        label: "超声，超声",
                        type: "text",
                    },
                    startDate: {
                        type: "input",
                        fillType: "actFill",
                        disabled: true,
                    },
                    button1: {
                        type: "button",
                        buttonName: "开始"
                    },
                    text9: {
                        type: "text",
                        label: "。",
                    },

                }
            }]
            if(this.sn==='cs_b'){
                config[0].config.remark = {
                    type: "input",
                    fillType: "actFill",
                }
            }
            return config
        }
    },
}
</script>

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