index.vue 4.13 KB
Newer Older
panziyi committed
1 2
<template>
  <div class="eContainer">
3
    <c-page title="保函索赔注销">
闫泽浩 committed
4

5
      <!--       <el-button size="small">备忘录</el-button>
wangna committed
6
      <el-button size="small">影像信息</el-button>
闫泽浩 committed
7 8
       <el-button size="small">保存模板</el-button> 
      <el-button size="small">使用模板</el-button> 
wangna committed
9
      <el-button size="small">制裁信息</el-button>
闫泽浩 committed
10 11
      <el-button size="small">拆分报文</el-button> 
      <el-button size="small">智能提示</el-button> -->
12 13 14 15 16
      <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">
          <!--PD000031 -->
          <el-tab-pane label="业务信息" name="ovwp">
闫泽浩 committed
17 18 19 20
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
          <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
37

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

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

51
          <!--trndoc PD000546 Attachments -->
52
          <el-tab-pane label="附件信息" name="doctre">
闫泽浩 committed
53 54 55 56
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
57

闫泽浩 committed
58
          <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
59 60 61 62
          </c-function-btn>
        </c-tabs>
      </el-form>
    </c-page>
panziyi committed
63 64 65
  </div>
</template>
<script>
wangna committed
66 67 68
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Gctcan from "~/model/Gctcan";
panziyi committed
69 70 71
import commonProcess from "~/mixin/commonProcess";

import commonFuncs from "~/mixin/commonFuncs";
wangna committed
72 73 74
import Check from "~/model/Gctcan/Check";
import Default from "~/model/Gctcan/Default";
import Pattern from "~/model/Gctcan/Pattern";
闫泽浩 committed
75
import Ovwp from "./Ovwp";
wangna committed
76 77 78 79
import Engp from "~/views/Public/Engp";
import Doctre from "~/views/Public/Doctre";
import Docpan from "~/views/Public/Docpan";
import Setpan from "~/views/Public/Setpan";
80
import Addbcb from "./Addbcb";
panziyi committed
81

闫泽浩 committed
82

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

panziyi committed
137
</style>