<template>
  <div class="eibs">
    <c-row>
      <c-col :span="24">
        <c-col :span="12" style="padding-right: 20px">
          <c-col :span="24">
            <el-form-item label="数据采集标志" prop="cfagit.cfaflg">
              <c-select
                v-model="model.cfagit.cfaflg"
                style="width: 100%"
                placeholder="请选择数据采集标志"
                @change="dclpChange"
              >
                <el-option
                  v-for="item in codes.cfaflg1"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="" prop="cfagit.basflg" class="checkbox-left">
              <c-checkbox disabled v-model="model.cfagit.basflg"
                >签约信息</c-checkbox
              >
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="" prop="cfagit.dclflg" class="checkbox-left">
              <c-checkbox disabled v-model="model.cfagit.dclflg"
                >责任余额信息</c-checkbox
              >
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="" prop="cfagit.vrfflg" class="checkbox-left">
              <c-checkbox disabled v-model="model.cfagit.vrfflg"
                >履约信息</c-checkbox
              >
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="12" style="padding-left: 20px">
          <c-col :span="24">
            <el-form-item label="地区机构号" prop="cfagit.ownextkey">
              <c-select
                v-model="model.cfagit.ownextkey"
                style="width: 100%"
                placeholder="请选择地区机构号"
              >
                <el-option
                  v-for="item in codes.ownextkey1"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitopn/Event";
import Utils from "~/utils";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {
    ...Event,
    async dclpChange() {
      this.executeDefault("cfagit.dclnum").then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });

      this.executeDefault("cfagit.recp.dclp").then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
  },
  created: function () {},
};
</script>
<style>
</style>