index.vue 4.03 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 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 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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
<template>
  <div class="eContainer">
    <c-page title="进口信用证单据附加电子凭证">
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="180px"
        label-position="right"
        size="small"
        :validate-on-rule-change="false">
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
          <el-tab-pane :label="$t('commonModels.业务信息')" name="ovwp">
            <c-content>
              <m-ovwp :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>
        </c-tabs>
      </el-form>
      <!-- 底部按钮 -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
        ref="commonBtn"
        @handleSureWarning="handleSureWarning"></c-function-btn>
    </c-page>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brtatt from "../model";
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import Check from "../model/check";
import Default from "../model/default";
import buildFn from "../event/buildCommons.js";

import Ovwp from "./Ovwp";

//import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre2/views";

export default {
  name: "Brtatt",
  components: {
    "m-ovwp": Ovwp,
    //"m-docpan": Docpan,
    "m-doctre": Doctre,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [Check, Default, event, buildFn, operationFunc, commonDepend],
  data() {
    return {
      tabVal: "ovwp",
      trnName: "brtatt",
      trnType: "",
      model: new Brtatt().data,
      codes: {
        ...CodeTable,
      },
    };
  },
  methods: {
    // 测试数据
    /*
    initData() {
      this.model.lidgrp.rec.ownref = "LC7654200589AE";
      this.model.lidgrp.rec.expdat = new Date();
      this.model.brdgrp.rec.ownref = "AB7654200589AE03";
      this.model.brdgrp.cbs.max.cur = "CNY";
      this.model.brdgrp.cbs.max.amt = "100";
      this.model.brdgrp.cbs.opn1.cur = "CNY";
      this.model.brdgrp.cbs.opn1.amt = "200";
      this.model.strinf = "AAAAAAAAAAAA";
      this.model.lidgrp.cbs.opn1.cur = "CNY";
      this.model.lidgrp.cbs.opn1.amt = "300";
      this.model.brdgrp.rec.rcvdat = new Date();
      this.model.brdgrp.rec.advdat = new Date();
      this.model.brdgrp.rec.matdat = new Date();
      this.model.brdgrp.rec.stadat = new Date();
      this.model.brdgrp.rec.docflg = "P";
      this.model.brdgrp.rec.tenmaxday = 10;
      this.model.brdgrp.rec.docsta = "A";
      this.model.brdgrp.apl.pts = {
        rol: "APL",
        ptainr: "10001048",
        ptyinr: "10000839",
        extkey: "2001562307-001",
        adrblk: "China Power Complete Equipment\r\nCo., Ltd.\r\nNo. 32 Haidian South Road,\r\n100080 Beijing, China",
        nam: "China Power Complete Equipment, 100080 B",
      };
      this.model.brdgrp.ben.pts = {
        rol: "BEN",
        ptainr: "10001048",
        ptyinr: "10000839",
        extkey: "2001562307-001",
        adrblk: "China Power Complete Equipment\r\nCo., Ltd.\r\nNo. 32 Haidian South Road,\r\n100080 Beijing, China",
        nam: "China Power Complete Equipment, 100080 B",
      };
      this.model.brdgrp.prb.pts = {
        rol: "PRB",
        ptainr: "00032541",
        ptyinr: "00032541",
        extkey: "EVERCNBJSH1-001",
        adrblk: "CHINA EVERBRIGHT BANK\r\n200002 SHANGHAI\r\nCHINA",
        nam: "CHINA EVERBRIGHT BANK,CHINA",
      };
    },
    */
  },
  created() {
    console.log("进入brtatt交易");
    let params = {
      transName: this.trnName,
      brdgrp: {
        rec: {
          inr: this.$route.query.inr,
        },
      },
		};
		 //this.initData();
    this.init(params);
  },
};
</script>
<style></style>