index.vue 4.69 KB
Newer Older
1
<template>
2 3
  <div class="eContainer">
    <c-page title="进口保函索赔登记">
4 5 6 7
      <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">
wangna committed
8
            <c-content>
9
              <m-ovwp :model="model" :codes="codes" />
wangna committed
10 11 12
            </c-content>
          </el-tab-pane>

13 14 15
          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
            <m-limitbody :model="model" :codes="codes" />
wangna committed
16 17
          </el-tab-pane>

18
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
wangna committed
19
            <c-content>
20 21 22 23 24 25 26 27 28 29
              <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>
30 31 32 33
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
34 35
                </el-collapse>
              </div>
wangna committed
36 37 38
            </c-content>
          </el-tab-pane>

39 40 41 42 43
          <!--PD000510 -->
          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
wangna committed
44 45
          </el-tab-pane>

46 47 48 49
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
wangna committed
50 51
          </el-tab-pane>

52 53 54 55 56
          <!--trndoc PD000546 Attachments -->
          <el-tab-pane label="附件" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
wangna committed
57 58 59
          </el-tab-pane>
        </c-tabs>
      </el-form>
60
      <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
panziyi committed
61
      </c-grid-ety-prompt-dialog>
62

63 64 65 66 67 68
      <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> -->
      </c-function-btn>
69 70
    </c-page>
  </div>
71 72
</template>
<script>
wangna committed
73
import Api from "~/service/Api";
panziyi committed
74
import Utils from "~/utils/index";
wangna committed
75 76
import CodeTable from "~/config/CodeTable";
import Gitcrq from "~/model/Gitcrq";
panziyi committed
77 78 79
import commonProcess from "~/mixin/commonProcess";

import commonFuncs from "~/mixin/commonFuncs";
wangna committed
80 81 82 83
import Check from "~/model/Gitcrq/Check";
import Default from "~/model/Gitcrq/Default";
import Pattern from "~/model/Gitcrq/Pattern";

84 85 86

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

150
</style>