<template>
  <div class="page_container">
    <bg-breadcrumb></bg-breadcrumb>
    <div class="page_content">
      <bg-form-gap title="注册信息"></bg-form-gap>
      <bg-detail-table2 class="register_info" :list="instanceData.applyBasicInfo">
        <!-- <template v-slot:approvalStatus="{ data }">
          <p class="detail-module">
            <span>{{ data.label }}</span>
            <span>{{ data.value }}</span>
          </p>
        </template> -->
      </bg-detail-table2>
      <bg-form-gap title="审批"></bg-form-gap>
      <div class="approve">
        <div class="header">
          <div class="left">
            <span class="approve_person">平台运营者审批</span>
            <span class="approve_status">待审批</span>
          </div>
          <div class="right">
            <span class="label">申请时间：</span>
            <span class="value">2022-10-22 09:58:30</span>
          </div>
        </div>
        <el-form
          ref="approveFormRef"
          :model="formData"
          :rules="rules"
          label-width="70px"
          class="approveForm"
          :size="formSize">
          <el-form-item label="审批单位" prop="ability_name">
            <el-input disabled placeholder="平台用户组织" maxlength="20" />
          </el-form-item>
          <el-form-item label="审批人" prop="synopsis">
            <el-input disabled placeholder="超级管理员" maxlength="20" />
          </el-form-item>
          <el-form-item label="审批结果" prop="openness_id">
            <el-radio-group>
              <el-radio label="1"> 通过 </el-radio>
              <el-radio label="0"> 驳回 </el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="审批意见" prop="synopsis">
            <el-input placeholder="请输入审批意见" rows="5" maxlength="200" show-word-limit type="textarea" />
          </el-form-item>
        </el-form>
      </div>
      <div class="operate_btns">
        <el-button type="default" @click="cancel"> 取消 </el-button>
        <el-button type="primary" @click="save"> 保存 </el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { reactive, toRefs, computed, onBeforeMount } from "vue";
import bgBreadcrumb from "@/components/bg-breadcrumb.vue";

const instanceData = reactive({
  applyBasicInfo: [
    {
      key: "approval_status",
      label: "所属机构",
      value: "",
      // slot: "approvalStatus",
    },
    {
      key: "apply_time",
      label: "业务系统名称",
      value: "",
    },
    {
      key: "apply_organization",
      label: "账号",
      value: "",
    },
    {
      key: "business_name",
      label: "手机号",
      value: "",
    },
    {
      key: "contact_person",
      label: "开发厂商名称",
      value: "",
    },
    {
      key: "contact_phone",
      label: "提交时间",
      value: "",
    },
    {
      key: "contact_person",
      label: "联系人",
      value: "",
    },
    {
      key: "contact_phone",
      label: "联系人手机号",
      value: "",
    },
    {
      key: "apply_application",
      label: "业务系统描述",
      value: "",
    },
  ],
  formData: {},
  rules: {},
});
//取消
const cancel = () => {};
//保存
const save = () => {};
</script>

<style lang="scss" scoped>
.page_content {
  position: relative;
  padding: 24px 0 68px 24px;
  .register_info {
    margin-bottom: 24px;
    width: 960px;
  }
  .approve {
    overflow: hidden;
    width: 1127px;
    height: 378px;
    background-color: #ffffff;
    border-radius: 4px;
    border: solid 1px #e3e4ef;

    .header {
      display: flex;
      justify-content: space-between;
      height: 38px;
      padding: 0 16px;
      border-bottom: 1px solid #e3e4ef;
      background-color: #f9fafc;

      .left {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 150px;
        height: 100%;
        .approve_person {
          display: inline-block;
          width: 98px;
          font-size: 14px;
          font-weight: 600;
          color: #242c43;
        }
        .approve_status {
          display: inline-block;
          width: 46px;
          height: 18px;
          font-size: 12px;
          text-align: center;
          color: #e56600;
          background-color: #fcf0e6;
          border-radius: 3px;
          border: solid 1px #f2b380;
        }
      }
      .right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 210px;
        height: 100%;
        font-size: 14px;
        color: #7784a6;
        .value {
          color: #242c43;
        }
      }
    }
    .approveForm {
      padding: 24px 24px 0 24px;
      ::v-deep .el-form-item {
        margin-bottom: 24px;
      }
      ::v-deep .el-form-item__label,
      ::v-deep .el-radio__label {
        color: var(--el-text-color-primary);
      }
    }
  }
  .operate_btns {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding-right: 16px;
    line-height: 64px;
    text-align: right;
    border-top: solid 1px #e6e9ef;
    .el-button {
      width: 92px;
      & + .el-button {
        margin-left: 16px;
      }
    }
  }
}
</style>
