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
          </el-tab-pane>

111 112 113 114 115 116 117
          <!--PD000001 -->
          <el-tab-pane label="Booking" name="glepan">
            <c-content>
              <m-glepan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

zhengxiaokui committed
118
          <!--PD000000 -->
zhengxiaokui committed
119
          <el-tab-pane label="附言" name="coninfp">
120 121 122
            <c-content>
              <m-coninfp :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
123 124 125
          </el-tab-pane>

          <!--PD000529 -->
zhengxiaokui committed
126
          <el-tab-pane label="报文及面函" name="docpan">
127 128 129
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
130 131 132
          </el-tab-pane>

          <!--PD000546 -->
zhengxiaokui committed
133
          <el-tab-pane label="附件" name="doctre">
134 135 136
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
zhengxiaokui committed
137 138
          </el-tab-pane>

139
          
140

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

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

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

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

228 229 230 231 232 233 234
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
235

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