index.vue 5.54 KB
Newer Older
孟冬雪 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
<template>
  <div class="eContainer">
    <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    >
      <el-button size="small">备忘录</el-button>
      <el-button size="small">影像信息</el-button>
      <el-button size="small">保存模板</el-button>
      <el-button size="small">使用模板</el-button>
      <el-button size="small">制裁信息</el-button>
      <el-button size="small">拆分报文</el-button>
      <el-button size="small">智能提示</el-button>
    </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="tabClick">
        <!--PD000001 -->
        <el-tab-pane label="amep" name="amep">
          <c-content>
            <m-amep :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
        <!--PD000001 -->
孟冬雪 committed
33
        
孟冬雪 committed
34
        <el-tab-pane label="ovwp" name="ovwp">
孟冬雪 committed
35
          <c-content>
孟冬雪 committed
36
          <m-ovwp :model="model" :codes="codes" />
孟冬雪 committed
37
          </c-content>
孟冬雪 committed
38 39 40 41
        </el-tab-pane>

        <!--PD000001 -->
        <el-tab-pane label="aamp" name="aamp">
孟冬雪 committed
42
          <c-content>
孟冬雪 committed
43
          <m-aamp :model="model" :codes="codes" />
孟冬雪 committed
44
          </c-content>
孟冬雪 committed
45 46 47 48
        </el-tab-pane>

        <!--PD000042 -->
        <el-tab-pane label="ptyp" name="ptyp">
孟冬雪 committed
49
          <c-content>
孟冬雪 committed
50
          <m-ptyp :model="model" :codes="codes" />
孟冬雪 committed
51
          </c-content>
孟冬雪 committed
52 53 54 55
        </el-tab-pane>

        <!--PD000077 -->
        <el-tab-pane label="detp" name="detp">
孟冬雪 committed
56
          <c-content>
孟冬雪 committed
57
          <m-detp :model="model" :codes="codes" />
孟冬雪 committed
58
          </c-content>
孟冬雪 committed
59 60 61 62
        </el-tab-pane>

        <!--PD000328 -->
        <el-tab-pane label="dogpame" name="dogpame">
孟冬雪 committed
63 64 65 66 67 68 69 70 71
          <!-- <m-dogpame :model="model" :codes="codes" /> -->
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'lcrgod'"
            />
          </c-content>
孟冬雪 committed
72 73 74 75
        </el-tab-pane>

        <!--PD000324 -->
        <el-tab-pane label="dorpame" name="dorpame">
孟冬雪 committed
76 77 78 79 80 81 82 83
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'lcrdoc'"
            />
          </c-content>
孟冬雪 committed
84 85 86 87
        </el-tab-pane>

        <!--PD000332 -->
        <el-tab-pane label="adcpame" name="adcpame">
孟冬雪 committed
88 89 90 91 92 93 94 95
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'adlcnd'"
            />
          </c-content>
孟冬雪 committed
96 97 98 99
        </el-tab-pane>

        <!--PD000169 -->
        <el-tab-pane label="lttinf" name="lttinf">
孟冬雪 committed
100
          <c-content>
孟冬雪 committed
101
          <m-lttinf :model="model" :codes="codes" />
孟冬雪 committed
102
          </c-content>
孟冬雪 committed
103
        </el-tab-pane>
孟冬雪 committed
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

        <!--PD000400 -->
        <el-tab-pane
          v-if="model.ltdgrp.rec.spcrcbflg"
          label="Spc.Pay Conditions for Ban"
          name="sprpame"
        >
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'spcrcb'"
            />
          </c-content>
        </el-tab-pane>

        <!--PD000396 -->
        <el-tab-pane
          v-if="model.ltdgrp.rec.spcbenflg"
          label="Spc.Pay Conditions for Ben"
          name="spbpame"
        >
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'spcben'"
            />
          </c-content>
        </el-tab-pane>
孟冬雪 committed
136 137 138 139 140 141 142 143
      </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Lttame from "~/model/Lttame";
wangren committed
144 145
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
孟冬雪 committed
146 147 148 149 150 151 152 153 154 155 156 157
import Check from "~/model/Lttame/Check";
import Default from "~/model/Lttame/Default";
import Pattern from "~/model/Lttame/Pattern";
import Ovwp from "./Ovwp";
import Amep from "./Amep";
import Aamp from "./Aamp";
import Ptyp from "./Ptyp";
import Detp from "./Detp";
import Dogpame from "./Dogpame";
import Dorpame from "./Dorpame";
import Adcpame from "./Adcpame";
import Lttinf from "./Lttinf";
孟冬雪 committed
158
import Doxpame from "~/views/Public/Doxpame";
孟冬雪 committed
159 160 161 162 163 164 165 166 167 168 169 170 171

export default {
  name: "Lttame",
  components: {
    "m-amep": Amep,
    "m-ovwp": Ovwp,
    "m-aamp": Aamp,
    "m-ptyp": Ptyp,
    "m-detp": Detp,
    "m-dogpame": Dogpame,
    "m-dorpame": Dorpame,
    "m-adcpame": Adcpame,
    "m-lttinf": Lttinf,
孟冬雪 committed
172
    "m-doxpame": Doxpame,
孟冬雪 committed
173 174 175 176 177 178
  },
  provide() {
    return {
      root: this,
    };
  },
wangren committed
179
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
孟冬雪 committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
  data() {
    return {
      tabVal: "amep",
      trnName: "lttame",
      model: new Lttame().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    tabClick() {},
  },
  created: async function () {
    console.log("进入lttame交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
孟冬雪 committed
199 200 201 202 203
      this.updateModel(rtnmsg.data);
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
孟冬雪 committed
204 205 206 207 208 209 210 211
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
</script>
<style>
</style>