index.vue 5.87 KB
Newer Older
唐贵贤 committed
1 2 3 4 5 6 7 8 9 10 11
<template>
  <div class="eContainer">
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      label-width="150px"
      label-position="left"
      size="small"
      :validate-on-rule-change="false"
    >
12 13 14 15

    <m-infsea v-show="!showPanel" @updateShowPanel="updateShowPanel($event)"  :model="model" :codes="codes" ref="infsea"/>

      <c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick">
唐贵贤 committed
16
        <!--PD000006 -->
17
        <!-- <el-tab-pane label="Selection" name="infsea">
唐贵贤 committed
18 19 20
          <c-content>
            <m-infsea :model="model" :codes="codes" />
          </c-content>
21
        </el-tab-pane> -->
唐贵贤 committed
22 23 24 25 26 27 28 29 30 31 32 33 34

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

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

        <!--PD000042 -->
        <el-tab-pane label="Parties" name="ptyp">
唐贵贤 committed
35 36 37
          <c-content>
            <m-ptyp :model="model" :codes="codes" />
          </c-content>
唐贵贤 committed
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
        </el-tab-pane>

        <!--PD000169 -->
        <el-tab-pane label="Orig.L/C Details" name="lttinf">
          <m-lttinf :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000000 -->
        <el-tab-pane label="Completion" name="coninfp">
          <m-coninfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000013 -->
        <el-tab-pane label="Transaction" name="trnpan">
          <m-trnpan :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000019 -->
        <el-tab-pane label="CBS Info" name="cbsinfp">
          <m-cbsinfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000028 -->
        <el-tab-pane label="CBE Info" name="cbeinfp">
          <m-cbeinfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000111 -->
        <el-tab-pane label="FEP/FCP Info" name="fepinfp">
          <m-fepinfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000162 -->
        <el-tab-pane label="SEP Info" name="sepinfp">
          <m-sepinfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000177 -->
        <el-tab-pane label="GLE Info" name="gleinfp">
          <m-gleinfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000119 -->
        <el-tab-pane label="SMH Info" name="smhinfp">
          <m-smhinfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000130 -->
        <el-tab-pane label="SPT/DIA Info" name="peninfp">
          <m-peninfp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--PD000005 -->
        <el-tab-pane label="Print" name="prtpan">
          <m-prtpan :model="model" :codes="codes" />
        </el-tab-pane>
      </c-tabs>
    </el-form>
96 97 98 99 100 101 102 103
    <c-button
          v-show="showPanel"
          style="margin-left: 75%;bottom: 10%;position:sticky"
          size="small"
          @click="goBack()">
     <!-- @click="getDitSelInfo(scope.$index, scope.row)" -->
          返回
     </c-button>
唐贵贤 committed
104 105 106 107 108 109
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infltd from "~/model/Infltd";
wangren committed
110
import commonProcess from "~/mixin/commonProcess";
唐贵贤 committed
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 139 140 141 142 143 144 145 146 147 148 149 150 151 152
import Check from "~/model/Infltd/Check";
import Default from "~/model/Infltd/Default";
import Pattern from "~/model/Infltd/Pattern";
import Infsea from "./Infsea";
import Ovwp from "./Ovwp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Lttinf from "./Lttinf";
import Coninfp from "./Coninfp";
import Trnpan from "./Trnpan";
import Cbsinfp from "./Cbsinfp";
import Cbeinfp from "./Cbeinfp";
import Fepinfp from "./Fepinfp";
import Sepinfp from "./Sepinfp";
import Gleinfp from "./Gleinfp";
import Smhinfp from "./Smhinfp";
import Peninfp from "./Peninfp";
import Prtpan from "./Prtpan";

export default {
  components: {
    "m-infsea": Infsea,
    "m-ovwp": Ovwp,
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-lttinf": Lttinf,
    "m-coninfp": Coninfp,
    "m-trnpan": Trnpan,
    "m-cbsinfp": Cbsinfp,
    "m-cbeinfp": Cbeinfp,
    "m-fepinfp": Fepinfp,
    "m-sepinfp": Sepinfp,
    "m-gleinfp": Gleinfp,
    "m-smhinfp": Smhinfp,
    "m-peninfp": Peninfp,
    "m-prtpan": Prtpan,
  },
  provide() {
    return {
      root: this,
    };
  },
wangren committed
153
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
唐贵贤 committed
154 155 156 157 158 159 160 161 162
  data() {
    return {
      tabVal: "infsea",
      trnName: "infltd",
      model: new Infltd().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
163
      showPanel:false,
唐贵贤 committed
164
      codes: { ...CodeTable },
唐贵贤 committed
165
    };
唐贵贤 committed
166 167
  },
  methods: {
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
    goBack(){
          this.showPanel = false;
        },
    tabClick(tab) {

          const name = tab.name
          let rulePath;
          
          if (name === "fepinfp") {
          rulePath = "infcon.fepinfp";
          }
          if (name === "coninfp") {
          rulePath = "coninf.coninfp";
          }
          
          
          if (!!rulePath) {
          this.executeRule(rulePath).then(res => {
               if (res.respCode == SUCCESS) {
                 this.updateModel(res.data);
               }
          })
          }
        },
        initPanel(val){
            if(val){
            this.tabVal = "ovwp"
          //   
          }else{
            this.tabVal = ""
          }
        },
    async updateShowPanel(value) {
            this.showPanel = value;
            this.initPanel(value);
        },
唐贵贤 committed
204 205 206 207 208
  },
  created: async function () {
    console.log("进入infltd交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
唐贵贤 committed
209
      console.log("ini方法:");
唐贵贤 committed
210 211 212 213 214 215 216 217 218
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
</script>
<style>
</style>