index.vue 4.82 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 79 80 81 82 83 84
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
    </c-page>
zhengxiaokui committed
85
    </div>
zhengxiaokui committed
86 87
</template>
<script>
88 89
import Api from '~/service/Api'
import Utils from '~/utils/index'
zhengxiaokui committed
90

91 92 93 94 95 96 97 98 99 100
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
101
import Addbcb from "./Addbcb";
102 103
import Revp from './Revp'
import Aamp from './Aamp'
zhengxiaokui committed
104

105 106 107 108 109 110 111
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
112

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