<!-- 质量分装 -->
<template>
    <StepFormPackage
    @onDialogSubmit = "onDialogSubmit"
     ref="stepFormPackageRef" prefixKey="ry_zlfz" @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",
                        },
                        ddsys: {
                            type: "input",
                            fillType: "preFill",
                        },
                        yq: {
                            type: "gsp",
                            fillType: "actFill",
                        },
                        text2: {
                            label: "进行称量分装",
                            type: "text",
                        },
                    }
                },
                {
                    config:{
                        zlfz:{
                            type: "zlfz",
                        }
                    }
                }
            ]
        }
    },
    methods: {
        onDialogSubmit(data,key){
            console.log(data,key,"onDialogSubmit")
            if(key === 'yq'){//供试品弹窗确定
                this.$refs.stepFormPackageRef.updateZlfzData("zlfz",{mybh:data.selectedId});
                // this.formData[key] = data;

            }
        }
    }
}
</script>

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