index.vue 4.09 KB
Newer Older
fanyanyan committed
1 2
<template>
  <div class="eContainer">
3 4
    <c-page title="转让信用证索汇">
      <el-form
liyixun committed
5 6 7
      :model="model"
      :rules="rules"
      ref="modelForm"
8
      label-width="120px"
liyixun committed
9 10 11 12
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
13 14
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
         <el-tab-pane label="业务信息" name="ovwp">
liyixun committed
15
          <c-content>
16 17
          <m-ovwp :model="model" :codes="codes" />
        </c-content>
liyixun committed
18
        </el-tab-pane>
liyixun committed
19

20
        <el-tab-pane label="费用/账务" name="engp,setpan">
liyixun committed
21
          <c-content>
22 23 24 25 26 27 28 29 30 31 32 33
            <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>
liyixun committed
34 35 36
          </c-content>
        </el-tab-pane>

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

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

49 50
          <!--PD000546 -->
        <el-tab-pane label="附件信息" name="doctre">
liyixun committed
51 52 53
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
54 55 56 57 58
        </el-tab-pane>       
        </c-tabs>
      </el-form>

      <c-grid-ety-prompt-dialog
liyixun committed
59 60 61 62 63 64 65 66 67 68 69 70
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
71 72 73 74 75 76 77

      <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash">
      </c-function-btn>
    </c-page>
fanyanyan committed
78 79 80
  </div>
</template>
<script>
liyixun committed
81 82 83 84 85 86 87 88
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bttrcl from "~/model/Bttrcl";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bttrcl/Check";
import Default from "~/model/Bttrcl/Default";
import Pattern from "~/model/Bttrcl/Pattern";
89 90 91

import Ovwp from "./Ovwp";

fanyanyan committed
92

liyixun committed
93
import Engp from "~/views/Public/Engp";
94
import Setpan from "~/components/business/setmod/views";
95
import Addbcb from "./Addbcb";
liyixun committed
96 97
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
98

liyixun committed
99

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