index.vue 4.52 KB
Newer Older
1 2
<template>
  <div class="eContainer">
3
    <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
4
    <c-page title="转让信用证通知到单">
5 6 7 8
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
9
      label-width="120px"
10 11 12 13 14 15
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        <!--lttdav PD000045 Advice Received -->
16 17
        <!-- 合并页面 -->
        <el-tab-pane label="业务信息" name="ovwp">
18
          <c-content>
19
           <m-ovwp :model="model" :codes="codes" />
20
          </c-content>
21
        </el-tab-pane>
22 23 24

       
      
25
        <!--setmod PD000000 Settlement -->
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <el-tab-pane label="费用/账务" name="setpan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>

41
        <!--coninf PD000000 Completion -->
42 43 44 45 46 47
        <el-tab-pane label="备查/附言" name="addbcb">
         <c-content>
           <m-addbcb :model="model" :codes="codes" />
         </c-content>
       </el-tab-pane>

48
        <!--trndoc PD000529 &Messages -->
49 50 51 52
        <el-tab-pane label="报文/面函" name="docpan">
          <c-content>
           <m-docpan :model="model" :codes="codes" />
          </c-content>
53
        </el-tab-pane>
54 55 56

        

57
        <!--trndoc PD000546 Attachments -->
58 59 60 61
        <el-tab-pane label="附件信息" name="doctre">
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
62 63
        </el-tab-pane>
      </c-tabs>
64
    </el-form>
65 66

    <!-- 数据回填 -->
67 68 69 70 71 72 73 74 75 76 77 78 79
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
80 81 82 83 84 85 86 87 88
    
    <!-- 提交,检核按钮 -->
      <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    >
    </c-function-btn>
    </c-page>
89 90 91
  </div>
</template>
<script>
92 93 94 95 96 97 98 99 100 101 102 103
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Lttdav from "~/model/Lttdav";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Lttdav/Check";
import Default from "~/model/Lttdav/Default";
import Pattern from "~/model/Lttdav/Pattern";
import Davp from "./Davp";
import Mt750p from "./Mt750p";
import Dscinsp from "./Dscinsp";
import Mt754p from "./Mt754p";
104 105 106
//  引入公共页面

import Engp from "~/views/Public/Engp";
107
import Setpan from "~/components/business/setmod/views";
108 109
import Glepan from "~/views/Public/Glepan";
import Addbcb from "./Addbcb"
110 111
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
112 113 114
import Ovwp from './Ovwp';

import CPage from '../../../components/c-page.vue';
115 116

export default {
117 118
  name: "Lttdav",
  components: {
119
    "m-ovwp": Ovwp,
120 121 122 123 124
    "m-davp": Davp,
    "m-mt750p": Mt750p,
    "m-dscinsp": Dscinsp,
    "m-mt754p": Mt754p,
    "m-setpan": Setpan,
125
    "m-addbcb": Addbcb,
126 127
    "m-docpan": Docpan,
    "m-doctre": Doctre,
128
    
129 130 131 132 133 134 135 136 137
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
138
      tabVal: "ovwp",
139 140 141 142 143 144 145 146 147
      trnName: "lttdav",
      model: new Lttdav().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
148
      activeNames: ["ovwp"],
149 150 151 152 153 154 155 156
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
157
    },
158 159 160 161 162 163 164 165 166 167 168 169
  },
  created: async function () {
    console.log("进入lttdav交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
170
    }
171 172
  },
};
173 174 175
</script>
<style>
</style>