index.vue 4.6 KB
Newer Older
jinqian committed
1
<template>
2
  <div class="eContainer">
LiRui committed
3
    <c-page title="出口信用证电提不符点/拒付">
4 5
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
      :validate-on-rule-change="false">
6
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
7
        <el-tab-pane label="业务信息" name="ovwp">
8
          <c-content>
9
            <m-ovwp :model="model" :codes="codes" />
10 11 12
          </c-content>
        </el-tab-pane>
        <el-tab-pane label="统一授信" name="limitbody">
LiRui committed
13 14 15
          <c-content>
            <m-limitbody :model="model" :codes="codes" />
          </c-content>
16
        </el-tab-pane>
17 18 19 20 21 22 23 24 25 26 27 28
        <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>
29 30 31
                <el-collapse-item title="会计分录" name="glepan">
                  <m-glepan :model="model" :codes="codes" />
                </el-collapse-item>
32 33 34 35 36 37 38 39 40 41 42 43 44 45
              </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>
46 47 48 49 50 51 52

        <!--trndoc PD000546 Attachments -->
        <el-tab-pane label="附件" name="doctre">
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
53
      </c-tabs>
54
    </el-form>
55
    <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData" @select-ety="selectMsg">
56
    </c-grid-ety-prompt-dialog>
57 58 59 60 61 62 63 64
    <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>
LiRui committed
65
  </c-page>
66
  </div>
jinqian committed
67 68
</template>
<script>
69 70 71 72
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Betdcr from "~/model/Betdcr";
import commonProcess from "~/mixin/commonProcess";
Eivi committed
73
import commonFuncs from "~/mixin/commonFuncs";
74 75 76
import Check from "~/model/Betdcr/Check";
import Default from "~/model/Betdcr/Default";
import Pattern from "~/model/Betdcr/Pattern";
77 78 79 80

import Ovwp from "./Ovwp";

import Limitbody from "~/views/Public/Limitbody";
81
import Engp from "~/views/Public/Engp";
82
import Setpan from "~/components/business/setmod/views";
83
import Glepan from "~/views/Public/Glepan";
84 85
import Addbcb from "./Addbcb";

jinqian committed
86
import Docpan from "~/views/Public/Docpan";
87
import Doctre from "~/views/Public/Doctre";
88 89 90 91




92

jinqian committed
93
export default {
94 95
  name: "Betdcr",
  components: {
96 97
    "m-ovwp": Ovwp,
    "m-limitbody": Limitbody,
98 99
    "m-engp": Engp,
    "m-setpan": Setpan,
100 101
    "m-glepan": Glepan,
    "m-addbcb": Addbcb,
102
    "m-docpan": Docpan,
103
    "m-doctre": Doctre,
104 105 106 107 108 109 110 111 112
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
113 114
      tabVal: "ovwp",
      activeNames: ["engp"],
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
      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
       **/
132
    },
133 134 135 136 137 138 139 140 141 142 143 144
  },
  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
145
    }
146 147
  },
};
jinqian committed
148 149
</script>
<style>
150

jinqian committed
151
</style>