index.vue 4.47 KB
Newer Older
jinqian committed
1
<template>
2
  <div class="eContainer">
3 4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
      :validate-on-rule-change="false">
5
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
6
        <el-tab-pane label="业务信息" name="ovwp">
7
          <c-content>
8
            <m-ovwp :model="model" :codes="codes" />
9 10 11 12 13
          </c-content>
        </el-tab-pane>
        <el-tab-pane label="统一授信" name="limitbody">
          <m-limitbody :model="model" :codes="codes" />
        </el-tab-pane>
14 15 16 17 18 19 20 21 22 23 24 25
        <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
          <c-content>
            <div class="eibs-tab">
              <el-collapse v-model="activeNames">
                <el-collapse-item title="表外记账" name="engp">
                  <!-- 表外记账 -->
                  <m-engp :model="model" :codes="codes" />
                </el-collapse-item>
                <el-collapse-item title="结算" name="setpan">
                  <!-- 结算 -->
                  <m-setpan :model="model" :codes="codes" />
                </el-collapse-item>
26 27 28
                <el-collapse-item title="会计分录" name="glepan">
                  <m-glepan :model="model" :codes="codes" />
                </el-collapse-item>
29 30 31 32 33 34 35 36 37 38 39 40 41 42
              </el-collapse>
            </div>
          </c-content>
        </el-tab-pane>
        <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
        <el-tab-pane label="报文/面函" name="docpan">
          <c-content>
            <m-docpan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
43 44 45 46 47 48 49

        <!--trndoc PD000546 Attachments -->
        <el-tab-pane label="附件" name="doctre">
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
50
      </c-tabs>
51
    </el-form>
52
    <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData" @select-ety="selectMsg">
53
    </c-grid-ety-prompt-dialog>
54 55 56 57 58 59 60 61
    <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
      <!-- <el-button size="small">流程附言</el-button>
      <el-button size="small">交易历史</el-button>
      <el-button size="small">备忘录</el-button>
      <el-button size="small">影像信息</el-button>
      <el-button size="small">制裁信息</el-button>
      <el-button size="small">智能提示</el-button> -->
    </c-function-btn>
62
  </div>
jinqian committed
63 64
</template>
<script>
65 66 67 68
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Betdcr from "~/model/Betdcr";
import commonProcess from "~/mixin/commonProcess";
Eivi committed
69
import commonFuncs from "~/mixin/commonFuncs";
70 71 72
import Check from "~/model/Betdcr/Check";
import Default from "~/model/Betdcr/Default";
import Pattern from "~/model/Betdcr/Pattern";
73 74 75 76

import Ovwp from "./Ovwp";

import Limitbody from "~/views/Public/Limitbody";
77
import Engp from "~/views/Public/Engp";
jinqian committed
78
import Setpan from "~/views/Public/Setpan";
79
import Glepan from "~/views/Public/Glepan";
80 81
import Addbcb from "./Addbcb";

jinqian committed
82
import Docpan from "~/views/Public/Docpan";
83
import Doctre from "~/views/Public/Doctre";
84 85 86 87




88

jinqian committed
89
export default {
90 91
  name: "Betdcr",
  components: {
92 93
    "m-ovwp": Ovwp,
    "m-limitbody": Limitbody,
94 95
    "m-engp": Engp,
    "m-setpan": Setpan,
96 97
    "m-glepan": Glepan,
    "m-addbcb": Addbcb,
98
    "m-docpan": Docpan,
99
    "m-doctre": Doctre,
100 101 102 103 104 105 106 107 108
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
109 110
      tabVal: "ovwp",
      activeNames: ["engp"],
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
      trnName: "betdcr",
      model: new Betdcr().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
128
    },
129 130 131 132 133 134 135 136 137 138 139 140
  },
  created: async function () {
    console.log("进入betdcr交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
jinqian committed
141
    }
142 143
  },
};
jinqian committed
144 145
</script>
<style>
146

jinqian committed
147
</style>