index.vue 4.75 KB
Newer Older
panziyi committed
1
<template>
LiRui committed
2 3
  <div class="eContainer">
    <c-page title="进口保函注销">
nanrui committed
4 5 6 7 8 9 10
      <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
        :validate-on-rule-change="false">
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
panziyi committed
11 12 13
          </el-tab-pane>

          <!--PD000001 -->
wangna committed
14
          <el-tab-pane label="保证金" name="ccvpan">
nanrui committed
15 16 17
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
panziyi committed
18 19
          </el-tab-pane>

nanrui committed
20 21 22 23 24
          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
panziyi committed
25 26
          </el-tab-pane>

nanrui committed
27 28 29 30 31 32 33 34 35 36 37 38
          <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>
39 40 41 42
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
nanrui committed
43 44 45
                </el-collapse>
              </div>
            </c-content>
panziyi committed
46 47
          </el-tab-pane>

nanrui committed
48 49 50 51 52
          <!--PD000510 -->
          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
panziyi committed
53 54 55
          </el-tab-pane>


nanrui committed
56 57 58 59 60

          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
panziyi committed
61
          </el-tab-pane>
panziyi committed
62

nanrui committed
63 64 65 66 67
          <!--trndoc PD000546 Attachments -->
          <el-tab-pane label="附件" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
panziyi committed
68 69 70
          </el-tab-pane>
        </c-tabs>
      </el-form>
nanrui committed
71
      <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
panziyi committed
72
      </c-grid-ety-prompt-dialog>
nanrui committed
73 74
      <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
      </c-function-btn>
LiRui committed
75 76
    </c-page>
  </div>
panziyi committed
77 78
</template>
<script>
panziyi committed
79 80 81
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Gitcan from "~/model/Gitcan";
panziyi committed
82 83 84
import commonProcess from "~/mixin/commonProcess";

import commonFuncs from "~/mixin/commonFuncs";
panziyi committed
85 86 87
import Check from "~/model/Gitcan/Check";
import Default from "~/model/Gitcan/Default";
import Pattern from "~/model/Gitcan/Pattern";
wangna committed
88

nanrui committed
89 90 91
import Ovwp from "./Ovwp";
import Ccvpan from "~/views/Public/Ccvpan";
import Limitbody from "./Limitbody";
panziyi committed
92 93
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
94
import Glepan from "~/views/Public/Glepan";
nanrui committed
95
import Addbcb from "./Addbcb";
panziyi committed
96
import Coninfp from "~/views/Public/Coninfp";
nanrui committed
97 98 99
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";

wangna committed
100

panziyi committed
101 102

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

panziyi committed
160
</style>