index.vue 7.3 KB
Newer Older
1 2
<template>
  <div class="eContainer">
jianglong committed
3 4 5
    <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
6
      :handleStash="handleStash"
jianglong committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
    >
    </c-function-btn>
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      label-width="150px"
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        <!--PD000015 -->
        <el-tab-pane label="Amendment" name="amep">
          <c-content>
            <m-amep :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
25

jianglong committed
26 27 28 29 30 31
        <!--PD000001 -->
        <el-tab-pane label="Overview" name="ovwp">
          <c-content>
            <m-ovwp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
32

jianglong committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
        <el-tab-pane
          v-if="this.model.litp.aamp.aammod.addamtflg"
          label="Additional Amount"
          name="aamp"
        >
          <m-aamp :model="model" :code="codes" />
        </el-tab-pane>

        <!--PD000021 -->
        <el-tab-pane label="Narrative" name="narp">
          <m-narp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000077 -->
        <el-tab-pane label="Details" name="detp">
          <c-content>
            <m-detp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>

        <!--PD000042 -->
        <el-tab-pane label="Parties" name="ptyp">
          <c-content>
            <m-ptyp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>

        <!--PD000306 -->
        <el-tab-pane label="Instr.to P,A,N.Bank (Amend)" name="inspame">
          <m-inspame :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000027 -->
        <el-tab-pane label="Liability" name="engp">
          <m-engp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000001 -->
        <el-tab-pane label="Cash Cover" name="ccvpan">
          <m-ccvpan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000000 -->
        <el-tab-pane label="Settlement" name="setpan">
          <m-setpan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000001 -->
        <el-tab-pane label="Booking" name="glepan">
          <m-glepan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000328 -->
        <el-tab-pane label="备查表" name="addbcb">
          <m-addbcb :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000000 -->
        <el-tab-pane label="Completion" name="coninfp">
          <m-coninfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000529 -->
        <el-tab-pane label="message" name="docpan">
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000546 -->
        <el-tab-pane label="Attachments" name="doctre">
          <m-doctre :model="model" :codes="codes" />
        </el-tab-pane>

         <el-tab-pane 
106 107 108 109 110 111 112 113 114 115
           v-if="this.model.lidgrp.rec.spcbenflg"
           label="Spe.pay conditions Ben [Amend.]" name="spbpame">
                <m-spbpame :model="model" :codes="codes" />
           </el-tab-pane>

           <el-tab-pane 
           v-if="this.model.lidgrp.rec.spcrcbflg"
           label="Spe.pay.cond.bank only [Amend]" name="sprpame">
                <m-sprpame :model="model" :codes="codes" />
           </el-tab-pane>
jianglong committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136

        <!--PD000352 -->
        <el-tab-pane label="Doc's(Amend)" name="dorpame">
          <m-dorpame :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000355 -->
        <el-tab-pane label="Goods(Amend)" name="dogpame">
          <m-dogpame :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000359 -->
        <el-tab-pane label="Add.Con.(Amend)" name="adcpame">
          <m-adcpame :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000001 -->
        <el-tab-pane label="统一授信" name="limitbody">
          <m-limitbody :model="model" :codes="codes" />
        </el-tab-pane>
      </c-tabs>
137 138 139 140
    </el-form>
    <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
141
        @select-ety="selectEty"
142 143
      >
      </c-grid-ety-prompt-dialog>
144 145 146 147 148 149 150
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
        >
        </c-grid-ety-prompt-dialog>
151 152 153
  </div>
</template>
<script>
jianglong committed
154 155 156 157 158
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Litame from "~/model/Litame";
import commonProcess from "~/mixin/commonProcess";
159 160
import commonFuncs from "~/mixin/commonFuncs";

jianglong committed
161 162 163 164 165 166 167 168 169 170
import Check from "~/model/Litame/Check";
import Default from "~/model/Litame/Default";
import Pattern from "~/model/Litame/Pattern";
import Amep from "./Amep";
import Ovwp from "./Ovwp";
import Aamp from "./Aamp";
import Narp from "./Narp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Inspame from "./Inspame";
171 172 173 174
// import Engp from "./Engp"
// import Ccvpan from "./Ccvpan"
// import Setpan from "./Setpan"
// import Glepan from "./Glepan"
jianglong committed
175
import Addbcb from "./Addbcb";
176 177 178
// import Coninfp from "./Coninfp"
// import Docpan from "./Docpan"
// import Doctre from "./Doctre"
jianglong committed
179 180 181
import Dorpame from "./Dorpame";
import Dogpame from "./Dogpame";
import Adcpame from "./Adcpame";
182 183 184 185 186 187 188 189 190 191
// import Limitbody from "./Limitbody"

import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
import Limitbody from "~/views/Public/Limitbody";
jianglong committed
192
import AampVue from "../Detame/Aamp.vue";
193 194
import Spbpame from "./Spbpame.vue"
import Sprpame from "./Sprpame.vue"
jianglong committed
195

196
export default {
jianglong committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
  name:"Litame",
  components: {
    "m-amep": Amep,
    "m-ovwp": Ovwp,
    "m-aamp": Aamp,
    "m-narp": Narp,
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-inspame": Inspame,
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-addbcb": Addbcb,
    "m-coninfp": Coninfp,
    "m-spbpame" : Spbpame,
    "m-sprpame" : Sprpame,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-dorpame": Dorpame,
    "m-dogpame": Dogpame,
    "m-adcpame": Adcpame,
    "m-limitbody": Limitbody,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  computed: {},
  data() {
    return {
      tabVal: "amep",
      trnName: "litame",
      model: new Litame().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
246
    },
jianglong committed
247 248 249 250 251
  },
  created: async function () {
    console.log("进入litame交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
252
      this.updateModel(rtnmsg.data);
jianglong committed
253 254 255 256 257
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
258
    }
jianglong committed
259 260
  },
};
261 262 263
</script>
<style>
</style>