index.vue 5.31 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<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 -->
        <el-tab-pane label="ovwp" name="ovwp">
          <m-ovwp :model="model" :codes="codes" />
        </el-tab-pane>

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

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

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

        <!--PD000328 -->
        <el-tab-pane label="dogpame" name="dogpame">
孟冬雪 committed
54 55 56 57 58 59 60 61 62
          <!-- <m-dogpame :model="model" :codes="codes" /> -->
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'lcrgod'"
            />
          </c-content>
孟冬雪 committed
63 64 65 66
        </el-tab-pane>

        <!--PD000324 -->
        <el-tab-pane label="dorpame" name="dorpame">
孟冬雪 committed
67 68 69 70 71 72 73 74
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'lcrdoc'"
            />
          </c-content>
孟冬雪 committed
75 76 77 78
        </el-tab-pane>

        <!--PD000332 -->
        <el-tab-pane label="adcpame" name="adcpame">
孟冬雪 committed
79 80 81 82 83 84 85 86
          <c-content>
            <m-doxpame
              :model="model"
              :codes="codes"
              :recgrp="'ltdgrp'"
              :ametyp="'adlcnd'"
            />
          </c-content>
孟冬雪 committed
87 88 89 90 91 92
        </el-tab-pane>

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

        <!--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
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
      </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Lttame from "~/model/Lttame";
import CommonProcess from "~/mixin/CommonProcess";
import CommonFuncs from "~/mixin/CommonFuncs";
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
147
import Doxpame from "~/views/Public/Doxpame";
孟冬雪 committed
148 149 150 151 152 153 154 155 156 157 158 159 160

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
161
    "m-doxpame": Doxpame,
孟冬雪 committed
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [CommonProcess, CommonFuncs], // 里面包含了Default、Check等的公共处理
  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
188 189 190 191 192
      this.updateModel(rtnmsg.data);
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
孟冬雪 committed
193 194 195 196 197 198 199 200
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
</script>
<style>
</style>