<!-- 核酸样品分装 -->
<template>
    <StepFormPackage @clickButton="onHandleClickButton" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'pcr_hsypfz'" @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: 'hsypfz',
		},
	},
    components: {
        StepFormPackage
    },
    computed: {
        formConfig() {
            return [{
                config: {
                    text1: {
                        label: "使用移液器",
                        type: "text",
                    },
                    yq: {
                        fillType: "actFill",
                        type: "yq",
                    },
                    text2: {
                        label: "将提取的",
                        type: "text",
                    },
                    rymc: {
                        fillType: "preFill",
                        type: "input",
                    },
                    text3: {
                        label: "吸取到离心管中，其体积预计为",
                        type: "text",
                    },
                    yjtj:{
                        fillType: "preFill",
                        type: "inputNumber",
                    },
                    yjtjdw:{
                        fillType: "preFill",
                        type: "select",
                        selectTo: "sjtjdw",
                        options:this.getDictOptions('business_tjdw'),  
                    },
                    text4:{
                        label: "实际体积为",
                        type: "text",
                    },
                    sjtj:{
                        fillType: "actFill",
                        type: "inputNumber",
                        compareTo:"yjtj",
                        copyFrom:"yjtj"
                    },
                    sjtjdw:{
                        fillType: "preFill",
                        type: "select",
                        options:this.getDictOptions('business_tjdw'),  
                    },
                    text5:{
                        label: "其编号为",
                        type: "text",
                    },
                    lbbh:{
                        fillType: "preFill",
                        type: "input",
                    },
                    text6:{
                        label: "-",
                        type: "text",
                    },
                    //todo :自动生成
                    lbbhCode:{
                        fillType: "actFill",
                        type: "input",
                    },
                    text7:{
                        label: "，进行分装",
                        type: "text",
                    },
                    //todo :有没有什么分装逻辑
                    fzbutton:{
                        type:"button",
                        fillType: "actFill",
                        fzType:"step",
                        buttonName:"分装",
                        maxVolumeField:"sjtj",
                        maxVolumeUnitField:"sjtjdw",
                        myCodeFields:["lbbh","lbbhCode"],
                    },
                }
            }]
        }
    },
}
</script>

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