index.vue 4.32 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

wangna committed
24 25 26 27 28 29 30 31
        <el-tab-pane
          label="Mt769"
          name="Mt769p"
          v-if="model.gidgrp.rec.purcan == 'RR'"
        >
          <m-mt769p :model="model" :codes="codes" />
        </el-tab-pane>
        <!--PD000027 -->
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
         <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>
wangna committed
48
       
wangna committed
49
        <!--PD000000 -->
50
        <el-tab-pane label="备查/附言" name="coninfp">
wangna committed
51 52 53 54
          <m-coninfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000529 -->
55
        <el-tab-pane label="报文/面函" name="docpan">
wangna committed
56 57 58 59
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000546 -->
60
        <el-tab-pane label="附件信息" name="doctre">
wangna committed
61 62
          <m-doctre :model="model" :codes="codes" />
        </el-tab-pane>
63 64
          <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
        </c-function-btn>
wangna committed
65 66

        <!--PD000001 -->
67
  
wangna committed
68
      </c-tabs>
panziyi committed
69
    </el-form>
wangna committed
70 71 72 73 74 75
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
76
    </c-page>
panziyi committed
77 78 79
  </div>
</template>
<script>
wangna committed
80 81 82
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Getcan from "~/model/Getcan";
panziyi committed
83 84 85
import commonProcess from "~/mixin/commonProcess";

import commonFuncs from "~/mixin/commonFuncs";
wangna committed
86 87 88 89
import Check from "~/model/Getcan/Check";
import Default from "~/model/Getcan/Default";
import Pattern from "~/model/Getcan/Pattern";
import Canp from "./Canp";
panziyi committed
90

wangna committed
91 92 93 94
import Limitbody from "~/views/Public/Limitbody";
import Engp from "~/views/Public/Engp";
import Doctre from "~/views/Public/Doctre";
import Docpan from "~/views/Public/Docpan";
95
import Setpan from "~/components/business/setmod/views";
wangna committed
96 97
import Coninfp from "~/views/Public/Coninfp";
import Mt769p from "./Mt769p";
98 99
import Ovwp from "./Ovwp";

panziyi committed
100 101

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