index.vue 8.37 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2 3
  <c-page title="出口信用证通知">
    <div class="eContainer">
zhengxiaokui committed
4 5 6 7 8 9
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
10 11 12 13 14 15 16 17 18 19
        <el-button size="small">查询</el-button>
        <el-button size="small">用户确认</el-button>
        <el-button size="small">检核</el-button>
        <el-button size="small">日志</el-button>
        <!-- <el-button size="small">保存模板</el-button> -->
        <!-- <el-button size="small">使用模板</el-button> -->
        <el-button size="small">imgyge</el-button>
        <!-- <el-button size="small">拆分报文</el-button> -->
        <el-button size="small">img</el-button>
        <el-button size="small">His.img</el-button>
zhengxiaokui committed
20
      </c-function-btn>
zhengxiaokui committed
21 22 23 24
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
zhengxiaokui committed
25
        label-width="150px"
zhengxiaokui committed
26
        label-position="right"
zhengxiaokui committed
27 28 29
        size="small"
        :validate-on-rule-change="false"
      >
30 31 32 33 34 35
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
zhengxiaokui committed
36
          <!--PD000017 -->
zhengxiaokui committed
37
          <el-tab-pane label="基本信息" name="ovwp">
zhengxiaokui committed
38 39 40
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
41 42
          </el-tab-pane>

zhengxiaokui committed
43 44 45 46 47 48
          <!--PD000001 -->
          <el-tab-pane
            v-if="model.letp.aamp.aammod.addamtflg"
            label="附加金额"
            name="aamp"
          >
49 50 51
            <c-content>
              <m-aamp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
52 53
          </el-tab-pane>

zhengxiaokui committed
54 55
          <!--PD000063 -->
          <el-tab-pane label="信用证详情" name="detp">
zhengxiaokui committed
56 57 58
            <c-content>
              <m-detp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
59 60 61
          </el-tab-pane>

          <!--PD000042 -->
62
          <el-tab-pane label="银行信息" name="ptyp">
zhengxiaokui committed
63 64 65
            <c-content>
              <m-ptyp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
66 67 68
          </el-tab-pane>

          <!--PD000055 -->
zhengxiaokui committed
69
          <el-tab-pane label="货物描述" name="dogp">
70 71 72
            <c-content>
              <m-doxp :model="model" :codes="codes" :dtyp="'dogp'" :rec="'led'"/> 
            </c-content>
zhengxiaokui committed
73 74 75
          </el-tab-pane>

          <!--PD000057 -->
zhengxiaokui committed
76
          <el-tab-pane label="单据要求" name="dorp">
77 78 79
            <c-content>
              <m-doxp :model="model" :codes="codes" :dtyp="'dorp'" :rec="'led'" />
            </c-content>
zhengxiaokui committed
80 81 82
          </el-tab-pane>

          <!--PD000059 -->
zhengxiaokui committed
83
          <el-tab-pane label="附加条款" name="adcp">
84 85 86
            <c-content>
              <m-doxp :model="model" :codes="codes" :dtyp="'adcp'" :rec="'led'" />
            </c-content>
zhengxiaokui committed
87 88
          </el-tab-pane>

89
          <!--PD000317 -->
90 91
          <el-tab-pane label="循环信用详情" name="revp"
            v-if="model.ledgrp.rec.revflg=='X'">
92 93 94
            <c-content>
              <m-revp :model="model" :codes="codes" />
            </c-content>
95 96
          </el-tab-pane>

97
          <!--PD000027 -->
98
          <el-tab-pane label="表外" name="engp">
99 100 101
            <c-content>
              <m-engp :model="model" :codes="codes" />
            </c-content>
102 103
          </el-tab-pane>

zhengxiaokui committed
104
          <!--PD000000 -->
zhengxiaokui committed
105 106 107 108
          <el-tab-pane label="账务" name="setpan">
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
109 110 111
          </el-tab-pane>

          <!--PD000000 -->
zhengxiaokui committed
112
          <el-tab-pane label="附言" name="coninfp">
113 114 115
            <c-content>
              <m-coninfp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
116 117 118
          </el-tab-pane>

          <!--PD000529 -->
zhengxiaokui committed
119
          <el-tab-pane label="报文及面函" name="docpan">
120 121 122
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
123 124 125
          </el-tab-pane>

          <!--PD000546 -->
zhengxiaokui committed
126
          <el-tab-pane label="附件" name="doctre">
127 128 129
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
130 131
          </el-tab-pane>

132 133
          <!--PD000001 -->
          <el-tab-pane label="分录信息" name="glepan">
134 135 136
            <c-content>
              <m-glepan :model="model" :codes="codes" />
            </c-content>
137 138
          </el-tab-pane>

zhengxiaokui committed
139
          <!--PD000394 -->
zhengxiaokui committed
140 141 142 143 144
          <el-tab-pane
            v-if="model.ledgrp.rec.spcbenflg"
            label="受益人特殊付款条款"
            name="spcbenp"
          >
145
          <c-content>
zhengxiaokui committed
146 147 148 149 150 151
            <m-doxp
              :model="model"
              :codes="codes"
              :dtyp="'spcbenp'"
              :rec="'led'"
            />
152
            </c-content>
zhengxiaokui committed
153 154
          </el-tab-pane>

155 156
          <!--PD000394 -->
          <!-- <el-tab-pane label="PD000394" name="spcbenp">
157 158 159
          <m-spcbenp :model="model" :codes="codes" />
        </el-tab-pane> -->

zhengxiaokui committed
160
          <!--PD000395 -->
zhengxiaokui committed
161 162 163 164 165
          <el-tab-pane
            v-if="model.ledgrp.rec.spcrcbflg"
            label="收款银行特殊付款条款"
            name="spcrcvp"
          >
166
          <c-content>
zhengxiaokui committed
167 168 169 170 171 172
            <m-doxp
              :model="model"
              :codes="codes"
              :dtyp="'spcrcvp'"
              :rec="'led'"
            />
173
            </c-content>
zhengxiaokui committed
174
          </el-tab-pane>
175 176
          <!--PD000422 -->
          <!-- <el-tab-pane label="PD000422" name="spcrcvp">
177 178
          <m-spcrcvp :model="model" :codes="codes" />
        </el-tab-pane> -->
zhengxiaokui committed
179 180
        </c-tabs>
      </el-form>
zhengxiaokui committed
181 182
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
zhengxiaokui committed
183 184 185 186 187 188
        :promptData="promptData"
        @select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
zhengxiaokui committed
189
        :isPty="false"
zhengxiaokui committed
190
        :promptData="promptData"
zhengxiaokui committed
191
        @select-ety="selectMsg"
zhengxiaokui committed
192 193
      >
      </c-grid-ety-prompt-dialog>
zhengxiaokui committed
194 195
    </div>
  </c-page>
zhengxiaokui committed
196 197
</template>
<script>
198 199
import Api from '~/service/Api'
import Utils from '~/utils/index'
zhengxiaokui committed
200

201 202 203 204 205 206 207 208 209 210
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'
211 212 213
// import Dogp from './Dogp';
// import Dorp from './Dorp';
// import Adcp from './Adcp';
zhengxiaokui committed
214
// import Setpan from "./Setpan";
zhengxiaokui committed
215 216 217 218
// import Coninfp from "./Coninfp";
// import Docpan from "./Docpan";
// import Glepan from "./Glepan";
// import Engp from "./Engp";
219
// import Doctre from "./Doctre";
220 221
import Revp from './Revp'
import Aamp from './Aamp'
222 223 224
// import Spcbenp from './Spcbenp'
// import Spcrcvp from './Spcrcvp'
// import Glepan from './Glepan'
zhengxiaokui committed
225

226 227 228 229 230 231 232
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
233

zhengxiaokui committed
234
export default {
235
  name: 'Letopn',
zhengxiaokui committed
236
  components: {
237 238 239 240 241 242 243 244 245 246 247 248
    '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
249 250 251 252
  },
  provide() {
    return {
      root: this,
253
    }
zhengxiaokui committed
254
  },
wangren committed
255
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
zhengxiaokui committed
256 257
  data() {
    return {
258 259
      tabVal: 'ovwp',
      trnName: 'letopn',
zhengxiaokui committed
260 261 262 263 264
      model: new Letopn().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
zhengxiaokui committed
265
      codes: { ...CodeTable },
266
    }
zhengxiaokui committed
267 268
  },
  methods: {
269
    myTabClick(tab) {
270 271 272 273 274
      this.tabClick(tab)
      /**
       *  do it yourself
       **/
    },
zhengxiaokui committed
275 276
  },
  created: async function () {
277 278
    console.log('进入letopn交易')
    let rtnmsg = await this.init({})
zhengxiaokui committed
279 280
    if (rtnmsg.respCode == SUCCESS) {
      //更新数据
281 282 283
      this.updateModel(rtnmsg.data)
      // Utils.copyValueFromVO(this.model, rtnmsg.data);
      //TODO 处理数据逻辑
zhengxiaokui committed
284
      if (this.isInDisplay) {
285
        this.restoreDisplay()
zhengxiaokui committed
286
      }
287
      console.log('1111', this.model)
zhengxiaokui committed
288
    } else {
289
      this.$notify.error({ title: '错误', message: '服务请求失败!' })
zhengxiaokui committed
290
    }
zhengxiaokui committed
291
  },
292
}
zhengxiaokui committed
293
</script>
294
<style></style>