<!-- 静置  -->
<template>
    <StepFormPackage ref = "stepFormPackageRef" prefixKey="ry_jz" @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: 'jz',
            },
        },
        components: {
            StepFormPackage
        },
        computed: {
            formConfig() {
                let config = [{
                    config:{
                        text1:{
                            label:"将",
                            type:"text",
                        },
                        sjsr:{
                            type:"input",
                            fillType:"preFill",
                        },
                        sj:{
                            type:"sj",
                            fillType:"actFill",
                        },
                        text2:{
                            label:"放置于",
                            type:"text",
                        },
                        wd:{
                            type:"select",
                            options: this.getDictOptions("business_wddw"),
                            fillType:"actFill",
                            otherCode:"wdOther"
                        },
                        text3:{
                            label:"，条件下静置，静置",
                            type:"text",
                        },
                        jzsj:{
                            type:"input",
                            fillType:"preFill",
                        },
                        text4:{
                            type:"text",
                            label:"静置",
                        },
                        startDate: {
                            type: "input",
                            fillType: "actFill",
                            disabled: true,
                        },
                        button1:{
                            type:"button",
                            buttonName:"开始",
                        },
                        text5:{
                            type:"text",
                            label:"，静置",
                        },
                        endDate: {
                            type: "input",
                            fillType: "actFill",
                            disabled: true,
                        },
                        button2:{
                            type:"button",
                            buttonName:"结束",
                        },
                        text6: {
                            type: "text",
                            label: "。",
                        },
                    }
                }]
                if(this.sn==='jz_b'){
                    config[0].config.remark = {
                        type: "input",
                        fillType: "actFill",
                    }
                }
                return config
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>