index.vue 7.04 KB
Newer Older
hpj committed
1
<template>
2
  <c-page title="出口信用证预通知">
hpj committed
3
    <div class="eContainer">
4
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> j加操作按钮-->
lianyang committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
        <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>
      </c-function-btn>

hpj committed
22 23 24 25 26 27 28 29 30
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        label-position="left"
        size="small"
        :validate-on-rule-change="false"
      >
31 32 33 34 35 36
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
hpj committed
37 38 39 40 41 42 43
          <!--PD000017 -->
          <el-tab-pane label="内容" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

44 45 46 47 48 49 50 51 52
          <!--PD000001  Additional Amount 附加金额/额外款项-->
          <el-tab-pane
            label="附加金额"
            name="aamp"
            v-if="model.letp.aamp.aammod.addamtflg == 'X'"
          >
            <c-content>
              <m-aamp :model="model" :codes="codes" />
            </c-content>
53 54
          </el-tab-pane>

hpj committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
          <!--PD000063 -->
          <el-tab-pane label="信用证详情" name="detp">
            <c-content>
              <m-detp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000042 -->
          <el-tab-pane label="银行信息" name="ptyp">
            <c-content>
              <m-ptyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000055 -->
          <el-tab-pane label="货物说明" name="dogp">
71 72 73
            <c-content>
              <m-dogp :model="model" :codes="codes" />
            </c-content>
hpj committed
74 75 76 77
          </el-tab-pane>

          <!--PD000057 -->
          <el-tab-pane label="单据要求" name="dorp">
78 79 80
            <c-content>
              <m-dorp :model="model" :codes="codes" />
            </c-content>
hpj committed
81 82 83 84
          </el-tab-pane>

          <!--PD000060 -->
          <el-tab-pane label="其他条款" name="adcp">
85 86 87
            <c-content>
              <m-adcp :model="model" :codes="codes" />
            </c-content>
hpj committed
88 89 90 91 92 93 94 95 96
          </el-tab-pane>

          <!--PD000000 -->
          <el-tab-pane label="账务" name="setpan">
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

97 98 99 100 101 102
          <el-tab-pane label="Booking" name="glepan">
            <c-content>
              <m-glepan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

hpj committed
103 104
          <!--PD000000 -->
          <el-tab-pane label="附言" name="coninfp">
105 106 107
            <c-content>
              <m-coninfp :model="model" :codes="codes" />
            </c-content>
hpj committed
108 109 110 111
          </el-tab-pane>

          <!--PD000529 -->
          <el-tab-pane label="报文及面函" name="docpan">
112 113 114
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
hpj committed
115 116 117 118
          </el-tab-pane>

          <!--PD000546 -->
          <el-tab-pane label="附件" name="doctre">
119 120 121
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
122 123
          </el-tab-pane>

124 125 126 127 128 129 130 131 132
          <!--PD000422 -->
          <el-tab-pane
            label="银行专用特殊付款条件"
            name="spcrcvp"
            v-if="model.ledgrp.rec.spcrcbflg == 'X'"
          >
            <c-content>
              <m-spcrcvp :model="model" :codes="codes" />
            </c-content>
133
          </el-tab-pane>
134 135 136 137 138 139 140 141 142
          <!--PD000394 -->
          <el-tab-pane
            label="受益人特殊付款条件"
            name="spcbenp"
            v-if="model.ledgrp.rec.spcbenflg == 'X'"
          >
            <c-content>
              <m-spcbenp :model="model" :codes="codes" />
            </c-content>
hpj committed
143 144 145 146 147 148 149 150
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
151 152 153 154 155 156 157
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
hpj committed
158 159 160 161
    </div>
  </c-page>
</template>
<script>
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
import Api from '~/service/Api'
import Utils from '~/utils/index'
import CodeTable from '~/config/CodeTable'
import Letnot from '~/model/Letnot'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from '~/mixin/commonFuncs'
import Check from '~/model/Letnot/Check'
import Default from '~/model/Letnot/Default'
import Pattern from '~/model/Letnot/Pattern'
import Ovwp from './Ovwp'
import Aamp from './Aamp'
import Spcrcvp from './Spcrcvp'
import Spcbenp from './Spcbenp'
import Detp from './Detp'
import Ptyp from './Ptyp'
import Dogp from './Dogp'
import Dorp from './Dorp'
import Adcp from './Adcp'
hpj committed
180

181 182
import Coninfp from '~/views/Public/Coninfp'
import Setpan from '~/views/Public/Setpan'
183
import Glepan from '~/views/Public/Glepan'
184 185
import Docpan from '~/views/Public/Docpan'
import Doctre from '~/views/Public/Doctre'
hpj committed
186 187

export default {
188
  name: 'Letnot',
hpj committed
189
  components: {
190 191 192 193 194 195 196
    'm-ovwp': Ovwp,
    'm-aamp': Aamp,
    'm-detp': Detp,
    'm-ptyp': Ptyp,
    'm-dogp': Dogp,
    'm-dorp': Dorp,
    'm-adcp': Adcp,
lianyang committed
197
    // "m-notcha": Notcha,
198
    'm-setpan': Setpan,
199
    'm-glepan': Glepan,
200 201 202 203 204
    'm-coninfp': Coninfp,
    'm-docpan': Docpan,
    'm-doctre': Doctre,
    'm-spcrcvp': Spcrcvp,
    'm-spcbenp': Spcbenp,
hpj committed
205 206 207 208
  },
  provide() {
    return {
      root: this,
209
    }
hpj committed
210
  },
211
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
hpj committed
212 213
  data() {
    return {
214 215
      tabVal: 'ovwp',
      trnName: 'letnot',
hpj committed
216 217 218 219 220 221
      model: new Letnot().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
222
    }
hpj committed
223 224
  },
  methods: {
225 226 227 228 229 230
    myTabClick(tab) {
      this.tabClick(tab)
      /**
       *  do it yourself
       **/
    },
hpj committed
231 232
  },
  created: async function () {
233 234
    console.log('进入letnot交易')
    let rtnmsg = await this.init({})
hpj committed
235 236
    if (rtnmsg.respCode == SUCCESS) {
      //更新数据
237 238
      // Utils.copyValueFromVO(this.model, rtnmsg.data);
      this.updateModel(rtnmsg.data)
239
      //TODO 处理数据逻辑
hpj committed
240
      if (this.isInDisplay) {
241
        this.restoreDisplay()
hpj committed
242 243
      }
    } else {
244
      this.$notify.error({ title: '错误', message: '服务请求失败!' })
hpj committed
245 246
    }
  },
247
}
hpj committed
248
</script>
249
<style></style>