index.vue 4.34 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2
  <c-page title="国内证承兑">
zhengxiaokui committed
3
    <div class="eContainer">
zhengxiaokui committed
4 5 6 7
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
zhengxiaokui committed
8
        label-width="200px"
zhengxiaokui committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          :value="initPane"
          ref="elment"
          type="card"
          @tab-click="tabClick"
        >
          <!--PD000032 -->
          <el-tab-pane label="内容" name="payp">
            <m-payp :model="model" :codes="codes" />
          </el-tab-pane>

zhengxiaokui committed
23 24 25 26
          <!--PD000062 -->
          <el-tab-pane label="单据详情" name="docpre">
            <m-docpre :model="model" :codes="codes" />
          </el-tab-pane>
zhengxiaokui committed
27

zhengxiaokui committed
28 29
          <!--PD000027 -->
          <el-tab-pane label="或有" name="engp">
zhengxiaokui committed
30
            <m-engp :model="model" :codes="codes" />
zhengxiaokui committed
31
          </el-tab-pane>
zhengxiaokui committed
32

zhengxiaokui committed
33 34
          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
zhengxiaokui committed
35
            <m-ccvpan :model="model" :codes="codes" />
zhengxiaokui committed
36
          </el-tab-pane>
zhengxiaokui committed
37

zhengxiaokui committed
38 39 40 41 42 43
          <el-tab-pane label="帐务" name="setpan">
            <m-setpan :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane label="分录" name="glepan">
            <m-glepan :model="model" :codes="codes" ref="glepan" />
zhengxiaokui committed
44 45
          </el-tab-pane>

zhengxiaokui committed
46 47
          <el-tab-pane label="附言" name="coninfp">
            <m-coninfp :model="model" :codes="codes" />
zhengxiaokui committed
48 49
          </el-tab-pane>

zhengxiaokui committed
50 51
          <el-tab-pane label="报文及面函" name="docpan">
            <m-docpan :model="model" :codes="codes" />
zhengxiaokui committed
52 53
          </el-tab-pane>

zhengxiaokui committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
          <el-tab-pane
            v-if="model.bddgrp.rec.advtyp === '750'"
            label="不符点通知"
            name="mt750p"
          >
            <m-mt750p :model="model" :codes="codes" />
          </el-tab-pane>
          <el-tab-pane
            v-else-if="model.bddgrp.rec.advtyp === 'oth'"
            label="Advice Details"
            name="othadvtypp"
          >
            <m-othadvtypp :model="model" :codes="codes" />
          </el-tab-pane>

zhengxiaokui committed
69 70 71
          <el-tab-pane label="统一授信" name="limitbody">
            <m-limitbody :model="model" :codes="codes" />
          </el-tab-pane>
zhengxiaokui committed
72 73 74 75 76
        </c-tabs>
        <c-bus-button :$pntvm="this"></c-bus-button>
      </el-form>
    </div>
  </c-page>
zhengxiaokui committed
77 78
</template>
<script>
zhengxiaokui committed
79
import Api from "~/service/Api";
zhengxiaokui committed
80
import Utils from "~/utils/index";
zhengxiaokui committed
81
import CodeTable from "~/config/CodeTable";
zhengxiaokui committed
82
import Default from "~/model/Ditopn/Default";
zhengxiaokui committed
83 84 85 86
import Bdtudp from "~/model/Bdtudp";
import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Bdtudp/Pattern";
import Payp from "./Payp";
zhengxiaokui committed
87
import Ovwp from "./Ovwp";
zhengxiaokui committed
88 89
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
zhengxiaokui committed
90
import Mt750p from "./Mt750p";
zhengxiaokui committed
91
//import Ccvpan from "./Ccvpan";
zhengxiaokui committed
92
import Othadvtypp from "./Othadvtypp";
zhengxiaokui committed
93 94
import Limitbody from "./Limitbody";

zhengxiaokui committed
95
import Engp from "~/views/Public/Engp";
zhengxiaokui committed
96 97 98
import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
zhengxiaokui committed
99 100 101
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";

zhengxiaokui committed
102
// import Event from "~/model/bdtudp/Event";
zhengxiaokui committed
103 104

export default {
潘际乾 committed
105
  name: 'Bdtudp',
zhengxiaokui committed
106 107
  components: {
    "m-payp": Payp,
zhengxiaokui committed
108 109
    "m-payp": Payp,
    "m-ovwp": Ovwp,
zhengxiaokui committed
110 111
    "m-docpre": Docpre,
    "m-shpdet": Shpdet,
zhengxiaokui committed
112
    "m-engp": Engp,
zhengxiaokui committed
113
    "m-mt750p": Mt750p,
zhengxiaokui committed
114 115 116 117 118
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
zhengxiaokui committed
119
    "m-othadvtypp": Othadvtypp,
zhengxiaokui committed
120
    "m-limitbody": Limitbody,
zhengxiaokui committed
121 122 123 124 125 126 127 128 129 130
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      initPane: "payp",
zhengxiaokui committed
131
      trnName: "bdtudp",
zhengxiaokui committed
132
      model: new Bdtudp().data,
zhengxiaokui committed
133
      defaultRule: Default,
zhengxiaokui committed
134
      rules: Pattern,
zhengxiaokui committed
135
      // Event: { ...Event },
zhengxiaokui committed
136
      codes: { ...CodeTable },
zhengxiaokui committed
137 138 139 140 141 142 143 144
    };
  },
  methods: {
    tabClick() {},
  },
  created: async function () {
    console.log("进入bdtudp交易");
    let rtnmsg = await Api.post("bdtudp/init", { params: {} });
zhengxiaokui committed
145
    if (rtnmsg.respCode == SUCCESS) {
zhengxiaokui committed
146 147 148 149 150
      //更新数据
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
zhengxiaokui committed
151 152
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
zhengxiaokui committed
153
    }
zhengxiaokui committed
154 155
  },
};
zhengxiaokui committed
156 157 158 159
</script>
<style>

</style>