<template>
  <div>
    <c-page title="客户风险报表">
      <el-form ref="modelForm" label-width="160px" size="small" label-position="right" :model="model" :rules="rules"
        :validate-on-rule-change="false">
        <c-tabs v-model="tabVal" ref="elment" type="card">
          <el-tab-pane label="基本信息" name="pty">
            <c-content>
              <m-ovwp ref="pty" :model="model" :branchlist="branchlist" title="dbapty"></m-ovwp>
            </c-content>
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <div style="text-align: center">
        <c-button type="primary" style="margin-right: 10px" @click="commitAdd">提 交</c-button>
        <button class="el-button el-button--default el-button--small" style="margin-left: 0" size="small"
          :disabled="false" @click.prevent="backToSearch">
          <span>返 回</span>
        </button>
      </div>
    </c-page>
  </div>
</template>

<script>
import Utils from "~/utils";
import Ovwp from "./Ovwp.vue";
import Pty, { Pattern } from "~/page/Statics/Pty/Dbipty/Pty.js";
import { getBchcodlist } from "~/service/manage/pty.js";

export default {
  name: "Inffxp",
  components: {
    "m-ovwp": Ovwp,
  },
  provide() {
    return {
      root: this,
    };
  },
  props: {},
  data() {
    return {
      tabVal: "pty",
      rules: Pattern,
      model: new Pty().data,
      branchlist: [],
    };
  },
  watch: {},
  created() {
    this.getBranch()
  },
  mounted() {
  },
  methods: {
    //获取支行(分支行)列表
    getBranch() {
      getBchcodlist().then((res) => {
        if (res.respCode == "AAAAAA") {
          this.$set(this, "branchlist", res.data)
        }
      })
    },
    //点击"提交"按钮,弹出主地址窗口
    commitAdd() {

    },
    backToSearch() {
      this.$confirm(cancelMsg, "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        this.$store.commit('delTagsArry', this.$route.path)
        this.$router.go(-1)
      })
      .catch(() => {
        this.$message({
          type: "info",
          message: "已取消",
        });
      });
    },
  },

};
</script>

<style></style>