index.vue 6.01 KB
Newer Older
fanyanyan committed
1 2
<template>
  <div class="eContainer">
3 4 5 6 7 8 9 10 11 12 13 14
    <c-page title="转让信用证单据转让证收汇">
      <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">
            <c-content>
              <m-ovwp ref="ovwp" :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
15

16
          <el-tab-pane label="统一授信" name="limitbody,shisuan">
17
          <c-content>
18 19 20 21 22 23 24 25 26 27
            <div class="eibs-tab">
              <el-collapse v-model="activeNames1">
                <el-collapse-item title="统一授信" name="limitbody">
                  <m-limitbody :model="model" :codes="codes" />
                </el-collapse-item>
                <el-collapse-item title="试算结果" name="shisuan">
                  <m-shisuan :model="model" :codes="codes" />
                </el-collapse-item>
              </el-collapse>
            </div>
28 29 30
          </c-content>
        </el-tab-pane>

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
           <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-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </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>
57

58 59
        <!--PD000002 -->
        <el-tab-pane label="申报信息" name="cnyp">
liyixun committed
60
          <c-content>
61
          <m-cnyp :model="model" :codes="codes" />
liyixun committed
62 63
          </c-content>
        </el-tab-pane>
64

65 66
        <!--PD000529 -->
        <el-tab-pane label="报文/面函" name="docpan">
67
          <c-content>
68
          <m-docpan :model="model" :codes="codes" />
69 70 71
          </c-content>
        </el-tab-pane>

72 73
        <!--PD000546 -->
        <el-tab-pane label="附件信息" name="doctre">
74
          <c-content>
75
          <m-doctre :model="model" :codes="codes" />
76 77
          </c-content>
        </el-tab-pane>
78 79 80 81

        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
liyixun committed
82 83 84 85 86 87
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
liyixun committed
88 89 90 91 92 93
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
94 95 96 97 98 99 100

      <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    ></c-function-btn>
    </c-page>
fanyanyan committed
101 102
  </div>
</template>
103
    
fanyanyan committed
104
<script>
105 106 107 108 109 110 111 112
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bttset from "~/model/Bttset";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bttset/Check";
import Default from "~/model/Bttset/Default";
import Pattern from "~/model/Bttset/Pattern";
fanyanyan committed
113

114 115 116 117 118 119
import Cnyp from "./Cnyp"
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp";


import Shisuan from "./Shisuan";
120
import Engp from "~/views/Public/Engp";
121
import Setpan from "~/components/business/setmod/views";
122
import Docpan from "~/views/Public/Docpan";
123
import Doctre from "~/views/Public/Doctre";
124
import Glepan from "~/views/Public/Glepan";
125 126
import Limitbody from "~/views/Public/Limitbody";

127

fanyanyan committed
128
export default {
129 130
  name: "Bttset",
  components: {
131
    "m-ovwp": Ovwp,
132 133 134
    "m-docpan": Docpan,
    "m-cnyp": Cnyp,
    "m-shisuan": Shisuan,
135 136 137
    "m-engp": Engp,
    "m-setpan": Setpan,
    "m-doctre": Doctre,
liyixun committed
138
    "m-glepan": Glepan,
139 140
    "m-limitbody": Limitbody,
    "m-addbcb": Addbcb,
141 142 143 144 145 146 147 148 149
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
150
      tabVal: "ovwp",
151 152 153 154 155 156 157 158 159 160
      trnName: "bttset",
      trnType: "",
      model: new Bttset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
161 162
      activeNames: ["engp"],
      activeNames1:["shisuan"],
163 164 165 166 167 168 169 170
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
liyixun committed
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
      let name = tab.name;
      let rulePath;
      if (name === "basp") {
        rulePath = "bopmod.dbap.basp";
      }
      if (name === "basp1") {
        rulePath = "bopmod.dbdp.basp";
      }
      if (name === "wg") {
        rulePath = "bopgat.wg";
      }
      if (name === "incp") {
        rulePath = "Cnybop.incp";
      }
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
fanyanyan committed
192
    },
193 194 195 196 197 198
  },
  created: async function () {
    console.log("进入bttset交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
199 200 201 202 203
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
      this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();

204 205 206
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
fanyanyan committed
207
    }
208 209
  },
};
fanyanyan committed
210 211 212
</script>
<style>
</style>