index.vue 5.12 KB
Newer Older
zhengxiaokui committed
1
<template>
2
  <div class="eContainer">
LiRui committed
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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
    <c-page title="出口信用证修改">
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="120px"
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">

          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
    
          <!--PD000027 -->
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000529 报文及面函-->
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000546 附件-->
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
    
        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
73
        :promptData="promptData"
LiRui committed
74
        @select-ety="selectEty"
75 76
      >
      </c-grid-ety-prompt-dialog>
LiRui committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90
      <c-grid-ety-prompt-dialog
          ref="doxpDialog"
          :isPty="false"
          :promptData="promptData"
          @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
    </c-page>
91
  </div>
zhengxiaokui committed
92 93
</template>
<script>
闫泽浩 committed
94
import Addbcb from "./Addbcb";
95 96 97 98 99 100 101 102 103 104 105 106 107
import Api from '~/service/Api'
import CodeTable from '~/config/CodeTable'
import Letame from '~/model/Letame'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from "~/mixin/commonFuncs"
import Check from '~/model/Letame/Check'
import Default from '~/model/Letame/Default'
import Pattern from '~/model/Letame/Pattern'
import Amep from './Amep'
import Ovwp from './Ovwp'
import Detp from './Detp'
import Aamp from './Aamp'
import Ptyp from './Ptyp'
闫泽浩 committed
108 109
import Ovwp1 from './Ovwp1'

110
import Inspame from './Inspame'
zhengxiaokui committed
111

112
import Doxpame from "~/views/Public/Doxpame";
zhengxiaokui committed
113
import Engp from "~/views/Public/Engp";
114
import Setpan from '~/views/Public/Setpan';
zhengxiaokui committed
115 116
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
117 118 119 120 121 122
import Docpan from "~/views/Public/Docpan";
import Doctre from '~/views/Public/Doctre';
import Limitbody from '~/views/Public/Limitbody';



zhengxiaokui committed
123

zhengxiaokui committed
124
export default {
125
  name: 'Letame',
zhengxiaokui committed
126
  components: {
127 128 129 130
    'm-amep': Amep,
    'm-ovwp': Ovwp,
    'm-detp': Detp,
    'm-aamp': Aamp,
闫泽浩 committed
131
    "m-addbcb": Addbcb,
132
    'm-ptyp': Ptyp,
zhengxiaokui committed
133
    "m-doxpame": Doxpame,
134 135 136 137 138 139 140 141
    'm-inspame': Inspame,
    'm-engp': Engp,
    'm-setpan': Setpan,
    'm-glepan': Glepan,
    'm-coninfp': Coninfp,
    'm-docpan': Docpan,
    'm-doctre': Doctre,
    'm-limitbody': Limitbody,
zhengxiaokui committed
142 143 144 145
  },
  provide() {
    return {
      root: this,
146
    }
zhengxiaokui committed
147
  },
wangren committed
148
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
zhengxiaokui committed
149 150
  data() {
    return {
闫泽浩 committed
151
      tabVal: 'ovwp',
152
      trnName: 'letame',
zhengxiaokui committed
153 154 155 156 157
      model: new Letame().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
zhengxiaokui committed
158
      codes: { ...CodeTable },
闫泽浩 committed
159
      activeNames: ["engp"],
160
    }
zhengxiaokui committed
161 162
  },
  methods: {
163 164 165 166 167 168
    myTabClick(tab) {
      this.tabClick(tab)
      /**
       *  do it yourself
       **/
    },
zhengxiaokui committed
169 170
  },
  created: async function () {
171 172
    console.log('进入letame交易')
    let rtnmsg = await this.init({})
zhengxiaokui committed
173
    if (rtnmsg.respCode == SUCCESS) {
174 175
      this.updateModel(rtnmsg.data)
      //TODO 处理数据逻辑
zhengxiaokui committed
176 177 178
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
zhengxiaokui committed
179
    } else {
180
      this.$notify.error({ title: '错误', message: '服务请求失败!' })
zhengxiaokui committed
181 182
    }
  },
183
}
zhengxiaokui committed
184
</script>
185
<style></style>