<template>
  <div class="info-div">
    <a-form-model ref="form" layout="vertical">
      <a-row :gutter="30">
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="保险公司名称">
            <a-input v-model="detailObj.longName" placeholder="保险公司名称" />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="保险公司英文名称">
            <a-input
              v-model="detailObj.englishName"
              placeholder="保险公司英文名称"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="国家">
            <a-input v-model="detailObj.englishName" placeholder="国家" />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="30">
        <a-col :lg="3" :sm="12">
          <a-form-model-item label="有效">
            <a-select v-model="detailObj.payorId" placeholder="请选择">
              <a-select-option value="1">待核销</a-select-option>
              <a-select-option value="2">已核销</a-select-option>
            </a-select>
          </a-form-model-item>
        </a-col>
        <a-col :lg="9" :sm="12">
          <a-row :gutter="30">
            <a-col :lg="12" :sm="12">
              <a-form-model-item label="合同起始日期">
                <a-date-picker
                  v-model="detailObj.businessHours"
                  format="YYYY年MM月DD日"
                  placeholder="选择日期"
                />
              </a-form-model-item>
            </a-col>
            <a-col :lg="12" :sm="12">
              <a-form-model-item label="合同终止日期">
                <a-date-picker
                  v-model="detailObj.businessHours"
                  format="YYYY年MM月DD日"
                  placeholder="选择日期"
                />
              </a-form-model-item>
            </a-col>
          </a-row>
        </a-col>
        <a-col :lg="10" :sm="12">
          <a-form-model-item label="保险公司地址">
            <a-input v-model="detailObj.telNo1" placeholder="保险公司地址" />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="网络联系人">
            <a-input v-model="detailObj.address" placeholder="请输入联系人" />
          </a-form-model-item>
        </a-col>
        <a-col :lg="8" :sm="12">
          <a-form-model-item label="理赔件邮寄地址">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="理赔件邮寄地址"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="4" :sm="12">
          <a-form-model-item label="保险公司联系电话">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="保险公司联系电话"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="客服电话">
            <a-input v-model="detailObj.englishAddr" placeholder="客服电话" />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="预授权电话">
            <a-input v-model="detailObj.englishAddr" placeholder="预授权电话" />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="保险公司邮件地址">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="保险公司邮件地址"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="客服邮件地址">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="客服邮件地址"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="预授权邮件地址">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="预授权邮件地址"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="理赔邮件地址">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="理赔邮件地址"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="8" :sm="12">
          <a-form-model-item label="保险公司Protal链接">
            <a-input
              v-model="detailObj.englishAddr"
              placeholder="保险公司Protal链接"
            />
          </a-form-model-item>
        </a-col>
        <a-col :lg="4" :sm="12">
          <a-form-model-item label="登录名">
            <a-input v-model="detailObj.englishAddr" placeholder="登录名" />
          </a-form-model-item>
        </a-col>
        <a-col :lg="6" :sm="12">
          <a-form-model-item label="密码">
            <a-input v-model="detailObj.englishAddr" placeholder="密码" />
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
  </div>
</template>

<script>
export default {
  data() {},
  methods: {
    //获取详细信息
    getDetail() {
      return new Promise((resolve, reject) => {
        this.$apis.DOCTORUPDATE().then((res) => {
          if (res.returnCode == "0000") {
            this.detailObj = res.content || {};
            resolve();
          } else {
            this.$message.error(res.returnMsg);
            reject();
          }
        });
      });
    },
  },
};
</script>
