index.vue 4.86 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2
    <div class="eContainer">
huangxin committed
3
      <c-page title="出口信用证通知">
zhengxiaokui committed
4 5 6 7
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
8
        label-width="120px"
zhengxiaokui committed
9
        label-position="right"
zhengxiaokui committed
10 11 12
        size="small"
        :validate-on-rule-change="false"
      >
13 14 15 16 17 18
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
huangxin committed
19
        <el-tab-pane label="业务信息" name="ovwp">
zhengxiaokui committed
20 21 22
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
23 24
          </el-tab-pane>

huangxin committed
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
          <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>

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

          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
zhengxiaokui committed
63 64
        </c-tabs>
      </el-form>
zhengxiaokui committed
65 66
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
zhengxiaokui committed
67 68 69 70 71 72
        :promptData="promptData"
        @select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
zhengxiaokui committed
73
        :isPty="false"
zhengxiaokui committed
74
        :promptData="promptData"
zhengxiaokui committed
75
        @select-ety="selectMsg"
zhengxiaokui committed
76 77
      >
      </c-grid-ety-prompt-dialog>
huangxin committed
78
      <c-function-btn
潘际乾 committed
79
        :handleConfirm="handleConfirm"
huangxin committed
80 81 82 83 84 85
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
    </c-page>
zhengxiaokui committed
86
    </div>
zhengxiaokui committed
87 88
</template>
<script>
89 90
import Api from '~/service/Api'
import Utils from '~/utils/index'
zhengxiaokui committed
91

92 93 94 95 96 97 98 99 100 101
import CodeTable from '~/config/CodeTable'
import Letopn from '~/model/Letopn'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from '~/mixin/commonFuncs'
import Check from '~/model/Letopn/Check'
import Default from '~/model/Letopn/Default'
import Pattern from '~/model/Letopn/Pattern'
import Ovwp from './Ovwp'
import Detp from './Detp'
import Ptyp from './Ptyp'
huangxin committed
102
import Addbcb from "./Addbcb";
103 104
import Revp from './Revp'
import Aamp from './Aamp'
zhengxiaokui committed
105

106 107 108 109 110 111 112
import Coninfp from '~/views/Public/Coninfp'
import Setpan from '~/views/Public/Setpan'
import Docpan from '~/views/Public/Docpan'
import Doctre from '~/views/Public/Doctre'
import Engp from '~/views/Public/Engp'
import Glepan from '~/views/Public/Glepan'
import Doxp from '~/views/Public/Doxp'
zhengxiaokui committed
113

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