<!-- 称量（非传值） -->
<template>
    <StepFormPackage ref="stepFormPackageRef" prefixKey="ry_clcz" @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: "使用电子天平",
                        type: "text",
                    },
                    yq: {
                        type: "yq",
                        fillType: "actFill",
                    },
                    text2: {
                        label: "仪器，称取",
                        type: "text",
                    },
                    wzmc: {
                        type: "mix",
                        fillType: "actFill",
                        ylCode: "sjcz",
                        dwCode: "wzsuldw",
                    },
                    text3: {
                        label: "物质,称取预计质量为",
                        type: "text",
                    },
                    wzsul: {
                        type: "inputNumber",
                        fillType: "preFill",
                    },
                    wzsuldw: {
                        type: "select",
                        fillType: "preFill",
                        options: this.getDictOptions("business_zldw"),
                    },
                    text4: {
                        type: "text",
                        label: "，实际质量为"
                    },
                    sjcz: {
                        type: "span",
                        compareTo: "wzsul",
                        copyFrom: "wzsul"
                    },
                    text9: {
                        type: "text",
                        label: "。",
                    },
                }
            }]
        }
    },
}
</script>

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