index.vue 4.72 KB
Newer Older
panziyi committed
1 2
<template>
  <div class="eContainer">
3
    <c-page title="出口保函注销">
wangna committed
4 5 6 7
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
8
      label-width="120px"
wangna committed
9 10 11 12 13 14
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        <!--PD000026 -->
15 16 17 18 19
         <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
20 21
              <el-tab-pane label="统一授信" name="limitbody">
          <m-limitbody :model="model" :codes="codes" />
wangna committed
22
        </el-tab-pane>
23 24 25 26
<!--         <el-tab-pane label="注销" name="canp">
          <m-canp :model="model" :codes="codes" />
        </el-tab-pane> -->

wangna committed
27 28 29 30 31 32 33 34
        <el-tab-pane
          label="Mt769"
          name="Mt769p"
          v-if="model.gidgrp.rec.purcan == 'RR'"
        >
          <m-mt769p :model="model" :codes="codes" />
        </el-tab-pane>
        <!--PD000027 -->
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
         <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>
             </el-collapse>
           </div>
         </c-content>
       </el-tab-pane>
  <!--       <el-tab-pane label="表外" name="engp">
wangna committed
52 53
          <m-engp :model="model" :codes="codes" />
        </el-tab-pane>
54
 -->
wangna committed
55
        <!--PD000000 -->
56
<!--         <el-tab-pane label="费用及账务" name="setpan">
wangna committed
57
          <m-setpan :model="model" :codes="codes" />
58
        </el-tab-pane> -->
wangna committed
59 60

        <!--PD000000 -->
61
        <el-tab-pane label="备查/附言" name="coninfp">
wangna committed
62 63 64 65
          <m-coninfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000529 -->
66
        <el-tab-pane label="报文/面函" name="docpan">
wangna committed
67 68 69 70
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000546 -->
71
        <el-tab-pane label="附件信息" name="doctre">
wangna committed
72 73
          <m-doctre :model="model" :codes="codes" />
        </el-tab-pane>
74 75
          <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
        </c-function-btn>
wangna committed
76 77

        <!--PD000001 -->
78
  
wangna committed
79
      </c-tabs>
panziyi committed
80
    </el-form>
wangna committed
81 82 83 84 85 86
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
87
    </c-page>
panziyi committed
88 89 90
  </div>
</template>
<script>
wangna committed
91 92 93
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Getcan from "~/model/Getcan";
panziyi committed
94 95 96
import commonProcess from "~/mixin/commonProcess";

import commonFuncs from "~/mixin/commonFuncs";
wangna committed
97 98 99 100
import Check from "~/model/Getcan/Check";
import Default from "~/model/Getcan/Default";
import Pattern from "~/model/Getcan/Pattern";
import Canp from "./Canp";
panziyi committed
101

wangna committed
102 103 104 105 106 107 108
import Limitbody from "~/views/Public/Limitbody";
import Engp from "~/views/Public/Engp";
import Doctre from "~/views/Public/Doctre";
import Docpan from "~/views/Public/Docpan";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Mt769p from "./Mt769p";
109 110
import Ovwp from "./Ovwp";

panziyi committed
111 112

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