<template>
    <div class="eibs-tab">
        <c-col :span="11">
            <c-col :span="24" v-if="false">
                <el-form-item label="汇款人名称" prop="orcnam">
                    <c-input
                        v-model="model.orcnam"
                        maxlength="16"
                        placeholder=""
                    ></c-input>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item label="收款人名称" prop="pyenam">
                        <c-input
                            v-model="model.pyenam"
                            placeholder=""
                            @blur="pyenamEvent"
                        ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="清算费用锁定服务" prop="cptp.qsfysd">
                    <c-select
                        v-model="model.cptp.qsfysd"
                        style="width: 100%"
                        placeholder="请选择服务提供银行"
                    >
                        <el-option
                            v-for="item in codes.qsfysd"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>

            <c-col :span="24" v-if="model.cptp.qsfysd === '1'">
                <el-form-item label="服务提供银行">
                    <c-input
                        v-model="model.cptp.fwtgyh"
                        placeholder=""
                    ></c-input>
                </el-form-item>
            </c-col>
        </c-col>
    </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event";

export default {
    inject: ["root"],
    props: ["model", "codes"],
    mixins: [CommonProcess],
    data() {
        return {};
    },
    watch:{
      "model.cptp.qsfysd": function(){
          if(this.model.cptp.qsfysd == ''){
                this.model.cptp.fwtgyh == '';
            }else{
                this.model.cptp.fwtgyh = 'CHASUS33XXX';
                console.log(this.model.cptp.fwtgyh)
            }
      }
    },
    methods: { 
        ...Event,
        pyenamEvent() {
            this.executeRule("pyenam").then( res => {

            })
        }
    },
    created: function () {},
};
</script>
<style>
</style>
