index.vue 11.4 KB
Newer Older
liyixun committed
1 2
<template>
  <div class="eContainer">
3
    <c-page title="出口保函修改">
liyixun committed
4 5 6 7
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
8
      label-width="120px"
liyixun committed
9 10 11 12 13
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 57 58 59 60 61 62 63 64
        <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <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 v-if="this.flag" 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>

          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

liyixun committed
65
        <!--gitp PD001291 开立方式 -->
66
        <!-- <el-tab-pane label="开立方式" name="opnp">
liyixun committed
67
          <m-opnp :model="model" :codes="codes" />
68
        </el-tab-pane> -->
liyixun committed
69
        <!--gitamep PD002031 Amendment -->
70
        <!-- <el-tab-pane label="保函修改" name="ameps20">
liyixun committed
71
          <m-ameps20 :model="model" :codes="codes" />
72
        </el-tab-pane> -->
wangna committed
73
        <!--gitamep PD002100 修改日期 -->
74
        <!-- <el-tab-pane label="修改日期" name="amedat20">
liyixun committed
75
          <m-amedat20 :model="model" :codes="codes" />
76
        </el-tab-pane> -->
liyixun committed
77
        <!--gitp PD000002 Overview -->
78
        <!-- <el-tab-pane label="概要" name="ovwp1">
liyixun committed
79
          <c-content>
80
            <m-ovwp1 :model="model" :codes="codes" />
liyixun committed
81
          </c-content>
82
        </el-tab-pane> -->
liyixun committed
83
        <!--gitp PD000043 Parties -->
84
        <!-- <el-tab-pane label="当事人描述" name="ptyp">
liyixun committed
85
          <m-ptyp :model="model" :codes="codes" />
86
        </el-tab-pane> -->
liyixun committed
87
        <!--gitp PD000727 Presentation/ Delivery -->
88
        <!-- <el-tab-pane
panziyi committed
89
          v-if="false"
wangna committed
90
          label="演示/交付"
liyixun committed
91 92 93
          name="preperp"
        >
          <m-preperp :model="model" :codes="codes" />
94
        </el-tab-pane> -->
liyixun committed
95
        <!--gitp PD000389 Details -->
96
        <!-- <el-tab-pane label="详细信息" name="detp">
liyixun committed
97 98 99
          <c-content>
            <m-detp :model="model" :codes="codes" />
          </c-content>
liyixun committed
100
        </el-tab-pane>
liyixun committed
101

liyixun committed
102 103
        <el-tab-pane
          v-if="model.gitp.swiftflg == 'Y' && model.gitamep.prtflg == 'X'"
wangna committed
104
          label="保函文本"
liyixun committed
105 106 107
          name="gidtxtp"
        >
          <m-gidtxtp :model="model" :codes="codes" />
108
        </el-tab-pane> -->
liyixun committed
109

110
        <!-- <el-tab-pane
liyixun committed
111 112 113 114 115
          v-if="
            model.gitp.swiftflg == 'Y' &&
            (model.gidgrp.rec.legfrm == 'STBY' ||
              model.gidgrp.rec.purpos == 'ACNF')
          "
wangna committed
116
          label="确认详细信息"
liyixun committed
117 118 119
          name="confp"
        >
          <m-confp :model="model" :codes="codes" />
120
        </el-tab-pane> -->
liyixun committed
121
        <!--getame PD050035 History -->
122
        <!-- <el-tab-pane label="历史信息" name="amephis">
liyixun committed
123
          <m-amephis :model="model" :codes="codes" />
124
        </el-tab-pane> -->
liyixun committed
125

126
        <!-- <el-tab-pane label="表外" name="liability">
liyixun committed
127
          <m-engp :model="model" :codes="codes" />
128
        </el-tab-pane> -->
liyixun committed
129

130
        <!-- <el-tab-pane label="费用及账务" name="setpan">
liyixun committed
131
          <m-setpan :model="model" :codes="codes" />
132
        </el-tab-pane> -->
liyixun committed
133

134
        <!-- <el-tab-pane v-if="this.flag" label="分录" name="glepan">
liyixun committed
135
          <m-glepan :model="model" :codes="codes" />
136
        </el-tab-pane> -->
liyixun committed
137

138
        <!-- <el-tab-pane label="附言" name="Completion">
liyixun committed
139 140
          <m-coninfp :model="model" :codes="codes" />
        </el-tab-pane>
liyixun committed
141

wangna committed
142
        <el-tab-pane label="面函" name="Messages">
liyixun committed
143 144
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>
liyixun committed
145

wangna committed
146
        <el-tab-pane label="交易附件" name="Attachments">
liyixun committed
147
          <m-doctre :model="model" :codes="codes" />
148
        </el-tab-pane> -->
liyixun committed
149

150
        <!-- <el-tab-pane
liyixun committed
151 152 153 154
          v-if="
            model.gidgrp.rec.purpos == 'ISCO' ||
            model.gidgrp.rec.purpos == 'ICCO'
          "
wangna committed
155
          label="Seq C : 概要"
liyixun committed
156 157 158 159 160 161
          name="ovwpc"
        >
          <c-content>
            <m-ovwpc :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
162

liyixun committed
163 164 165 166 167
        <el-tab-pane
          v-if="
            model.gidgrp.rec.purpos == 'ISCO' ||
            model.gidgrp.rec.purpos == 'ICCO'
          "
wangna committed
168
          label="Seq C : 当事人描述"
liyixun committed
169 170 171 172 173 174
          name="ptypc"
        >
          <c-content>
            <m-ptypc :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
175

liyixun committed
176 177 178 179 180
        <el-tab-pane
          v-if="
            model.gidgrp.rec.purpos == 'ISCO' ||
            model.gidgrp.rec.purpos == 'ICCO'
          "
wangna committed
181
          label="Seq C : 演示/交付"
liyixun committed
182 183 184 185 186 187
          name="preperpc"
        >
          <c-content>
            <m-preperpc :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
188

liyixun committed
189 190 191 192 193
        <el-tab-pane
          v-if="
            model.gidgrp.rec.purpos == 'ISCO' ||
            model.gidgrp.rec.purpos == 'ICCO'
          "
wangna committed
194
          label="Seq C : 详细信息"
liyixun committed
195 196 197 198 199 200 201 202 203 204 205
          name="detpc"
        >
          <c-content>
            <m-detpc :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
        <el-tab-pane
          v-if="
            model.gidgrp.rec.purpos == 'ISCO' ||
            model.gidgrp.rec.purpos == 'ICCO'
          "
wangna committed
206
          label="Seq C : 保函文本"
liyixun committed
207 208 209 210 211 212
          name="gidtxtpc"
        >
          <c-content>
            <m-gidtxtpc :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
213

liyixun committed
214
        <el-tab-pane
liyixun committed
215 216 217 218 219 220
          v-if="
            model.gitp.swiftflg == 'Y' &&
            (model.trnmod.swiadd.purposame == 'ISCA' ||
              model.trnmod.swiadd.purposame == 'ICCA') &&
            model.trnmod.swiadd.addamtflgc == 'X'
          "
wangna committed
221
          label="Seq. C: 附加金额"
liyixun committed
222 223
          name="aacp"
        >
liyixun committed
224 225 226 227 228 229 230 231 232 233 234
          <m-aacp :model="model" :codes="codes" />
        </el-tab-pane>

        <el-tab-pane
          v-if="
            model.gitp.swiftflg == 'Y' &&
            model.trnmod.swiadd.purposame == 'ISUA' &&
            model.trnmod.swiadd.addamtflg == 'X' &&
            model.gidgrp.rec.purpos != 'ISSU' ||
            model.trnmod.swiadd.addamt!=''
          "
wangna committed
235
          label="Seq. C: 附加金额"
liyixun committed
236 237 238
          name="aamp20"
        >
          <m-aamp20 :model="model" :codes="codes" />
239
        </el-tab-pane> -->
liyixun committed
240

241
        <!-- <el-tab-pane label="统一授信" name="limitbody">
liyixun committed
242
          <m-limitbody :model="model" :codes="codes" />
243
        </el-tab-pane> -->
liyixun committed
244
      </c-tabs>
liyixun committed
245
    </el-form>
liyixun committed
246 247 248 249 250
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
liyixun committed
251
    </c-grid-ety-prompt-dialog>
252 253 254 255 256 257 258
    <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
  </c-page>
liyixun committed
259 260 261
  </div>
</template>
<script>
liyixun committed
262 263 264 265
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Getame from "~/model/Getame";
import commonProcess from "~/mixin/commonProcess";
liyixun committed
266
import commonFuncs from "~/mixin/commonFuncs";
liyixun committed
267 268 269 270 271 272 273 274 275 276 277 278 279
import Check from "~/model/Getame/Check";
import Default from "~/model/Getame/Default";
import Pattern from "~/model/Getame/Pattern";
import Opnp from "./Opnp";
import Ameps20 from "./Ameps20";
import Amedat20 from "./Amedat20";
import Ovwp from "./Ovwp";
import Ptyp from "./Ptyp";
import Preperp from "./Preperp";
import Detp from "./Detp";
import Amephis from "./Amephis";
import Gidtxtp from "./Gidtxtp";
import Confp from "./Confp";
280
import Addbcb from "./Addbcb";
liyixun committed
281

liyixun committed
282 283 284 285 286 287
import Ovwpc from "./Ovwpc";
import Ptypc from "./Ptypc";
import Preperpc from "./Preperpc";
import Detpc from "./Detpc";
import Gidtxtpc from "./Gidtxtpc";
import Aacp from "./Aacp";
liyixun committed
288
import Aamp20 from "./Aamp20";
liyixun committed
289

liyixun committed
290 291 292 293 294 295 296 297
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
liyixun committed
298 299

export default {
liyixun committed
300 301
  name: "Getame",
  components: {
302
    "m-addbcb": Addbcb,
liyixun committed
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320
    "m-opnp": Opnp,
    "m-ameps20": Ameps20,
    "m-amedat20": Amedat20,
    "m-ovwp": Ovwp,
    "m-ptyp": Ptyp,
    "m-preperp": Preperp,
    "m-detp": Detp,
    "m-amephis": Amephis,
    "m-gidtxtp": Gidtxtp,
    "m-confp": Confp,
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-limitbody": Limitbody,
liyixun committed
321

liyixun committed
322 323 324 325 326 327
    "m-ovwpc": Ovwpc,
    "m-ptypc": Ptypc,
    "m-preperpc": Preperpc,
    "m-detpc": Detpc,
    "m-gidtxtpc": Gidtxtpc,
    "m-aacp": Aacp,
liyixun committed
328
    "m-aamp20": Aamp20,
liyixun committed
329 330 331 332 333 334 335 336 337
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
338
      tabVal: "ovwp",
liyixun committed
339 340 341 342 343 344 345 346 347 348
      trnName: "getame",
      trnType: "",
      model: new Getame().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
349
      activeNames: ["engp"],
liyixun committed
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
      flag: false,
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
      let name = tab.name;
      let rulePath;
      if (name === "setpan") {
        this.flag = true;
      }
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
liyixun committed
371
    },
liyixun committed
372 373 374 375 376 377 378 379 380 381 382 383
  },
  created: async function () {
    console.log("进入getame交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      //TODO 处理数据逻辑
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
liyixun committed
384
    }
liyixun committed
385 386
  },
};
liyixun committed
387 388 389
</script>
<style>
</style>