index.vue 8.51 KB
Newer Older
liuxin committed
1
<template>
2
  <c-page title="信用证修改">
SunJie committed
3
    <div class="eContainer">
liushikai committed
4
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
hulei committed
5 6 7 8
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
lianyang committed
9 10 11 12 13 14 15 16 17 18 19 20
      >
        <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">E结算影像</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>
      </c-function-btn>
21 22 23 24 25 26 27
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        size="small"
        label-position="right"
lianyang committed
28
        :validate-on-rule-change="false"
29
      >
lianyang committed
30 31 32 33 34 35
        <c-tabs
          :value="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
36 37
          <el-tab-pane label="修改" name="amep">
            <!--PD000015 -->
lianyang committed
38 39 40
            <c-content>
              <m-amep :model="model" :codes="codes" />
            </c-content>
41
          </el-tab-pane>
SunJie committed
42

liushikai committed
43
          <el-tab-pane label="基本信息" name="ovwp">
44 45 46 47 48
            <!--PD000001 -->
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
SunJie committed
49

50 51 52 53 54 55
          <el-tab-pane label="其他当事人" name="detp1">
            <!--PD000452 -->
            <c-content>
              <m-detp1 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
SunJie committed
56

57 58
          <el-tab-pane label="详细信息" name="detp">
            <!--PD000077 -->
lianyang committed
59 60 61
            <c-content>
              <m-detp :model="model" :codes="codes" />
            </c-content>
62
          </el-tab-pane>
SunJie committed
63

64 65
          <el-tab-pane label="单据要求" name="tk">
            <!--PD000342 -->
lianyang committed
66 67 68
            <c-content>
              <m-tk :model="model" :codes="codes" />
            </c-content>
69
          </el-tab-pane>
SunJie committed
70

71 72
          <!--PD000488 -->
          <el-tab-pane label="声明" name="stament">
lianyang committed
73 74 75 76
            <c-content>
              <m-stament :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
SunJie committed
77

78 79
          <el-tab-pane label="历史概要" name="narp">
            <!--PD000021 -->
lianyang committed
80 81 82
            <c-content>
              <m-narp :model="model" :codes="codes" />
            </c-content>
83
          </el-tab-pane>
SunJie committed
84

85 86
          <el-tab-pane label="货描修改" name="dogpame">
            <!--PD000105 -->
lianyang committed
87 88 89
            <c-content>
              <m-dogpame :model="model" :codes="codes" />
            </c-content>
90
          </el-tab-pane>
SunJie committed
91

92 93
          <el-tab-pane label="单据修改" name="dorpame">
            <!--PD000110 -->
lianyang committed
94 95 96
            <c-content>
              <m-dorpame :model="model" :codes="codes" />
            </c-content>
97
          </el-tab-pane>
SunJie committed
98

99 100
          <el-tab-pane label="其他条款修改" name="adcpame">
            <!--PD000114 -->
lianyang committed
101 102 103
            <c-content>
              <m-adcpame :model="model" :codes="codes" />
            </c-content>
104
          </el-tab-pane>
SunJie committed
105

106 107
          <el-tab-pane label="给P,A,N银行指示" name="inspame">
            <!--PD000306 -->
lianyang committed
108 109 110
            <c-content>
              <m-inspame :model="model" :codes="codes" />
            </c-content>
111
          </el-tab-pane>
SunJie committed
112

liushikai committed
113
          <el-tab-pane label="表外" name="engp">
114
            <!--PD000027 -->
lianyang committed
115 116 117
            <c-content>
              <m-engp :model="model" :codes="codes" />
            </c-content>
118
          </el-tab-pane>
SunJie committed
119

120 121
          <el-tab-pane label="保证金" name="ccvpan">
            <!--PD000001 -->
lianyang committed
122 123 124
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
125
          </el-tab-pane>
SunJie committed
126

liushikai committed
127
          <el-tab-pane label="费用及账务" name="setpan">
128
            <!--PD000000 -->
lianyang committed
129 130 131
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
132
          </el-tab-pane>
SunJie committed
133

134 135
          <el-tab-pane label="备查表" name="addbcb">
            <!--PD000328 -->
lianyang committed
136 137 138
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
139
          </el-tab-pane>
SunJie committed
140

141 142
          <el-tab-pane label="附言" name="coninfp">
            <!--PD000000 -->
lianyang committed
143 144 145
            <c-content>
              <m-coninfp :model="model" :codes="codes" />
            </c-content>
146
          </el-tab-pane>
SunJie committed
147

148 149
          <el-tab-pane label="面函" name="docpan">
            <!--PD000529 -->
lianyang committed
150 151 152
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
153
          </el-tab-pane>
SunJie committed
154

155 156
          <el-tab-pane label="附件" name="doctre">
            <!--PD000546 -->
lianyang committed
157 158 159
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
160
          </el-tab-pane>
SunJie committed
161

162 163
          <el-tab-pane label="Mt799" name="mt799">
            <!--PD000361 -->
lianyang committed
164 165 166
            <c-content>
              <m-mt799 :model="model" :codes="codes" />
            </c-content>
167
          </el-tab-pane>
SunJie committed
168

liushikai committed
169
          <el-tab-pane label="授信额度" name="limitbody">
170
            <!--PD000001 -->
lianyang committed
171 172 173
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
174 175 176 177 178 179 180 181 182 183
          </el-tab-pane>
        </c-tabs>
        <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      </el-form>

      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
SunJie committed
184
    </div>
185
  </c-page>
liuxin committed
186 187
</template>
<script>
lianyang committed
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
// import Utils from "~/utils/index";
import Api from '~/service/Api'
import CodeTable from '~/config/CodeTable'
import Ditame from '~/model/Ditame'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from '~/mixin/commonFuncs'
import Check from '~/model/Ditame/Check'
import Default from '~/model/Ditame/Default'
import Pattern from '~/model/Ditame/Pattern'
import Amep from './Amep'
import Ovwp from './Ovwp'
import Detp from './Detp'
import Tk from '../Ditopn/Tk'
import Mt799 from './Mt799'
import Detp1 from './Detp1'
import Addbcb from './Addbcb'
import Narp from './Narp'
import Dogpame from './Dogpame'
import Dorpame from './Dorpame'
import Adcpame from './Adcpame'
import Inspame from './Inspame'
import Stament from './Stament'
210

lianyang committed
211 212 213 214 215 216 217
import Doctre from '~/views/Public/Doctre'
import Setpan from '~/views/Public/Setpan'
import Engp from '~/views/Public/Engp'
import Ccvpan from '~/views/Public/Ccvpan'
import Coninfp from '~/views/Public/Coninfp'
import Docpan from '~/views/Public/Docpan'
import Limitbody from '~/views/Public/Limitbody'
liuxin committed
218

219
export default {
lianyang committed
220
  name: 'Ditame',
221
  components: {
lianyang committed
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
    'm-stament': Stament,
    'm-amep': Amep,
    'm-ovwp': Ovwp,
    'm-detp': Detp,
    'm-tk': Tk,
    'm-mt799': Mt799,
    'm-detp1': Detp1,
    'm-narp': Narp,
    'm-dogpame': Dogpame,
    'm-dorpame': Dorpame,
    'm-adcpame': Adcpame,
    'm-inspame': Inspame,
    'm-engp': Engp,
    'm-ccvpan': Ccvpan,
    'm-setpan': Setpan,
    'm-addbcb': Addbcb,
    'm-coninfp': Coninfp,
    'm-docpan': Docpan,
    'm-doctre': Doctre,
    'm-limitbody': Limitbody,
242 243 244 245
  },
  provide() {
    return {
      root: this,
lianyang committed
246
    }
247
  },
lianyang committed
248
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
249 250
  data() {
    return {
lianyang committed
251 252
      tabVal: 'amep',
      trnName: 'ditame',
253
      model: new Ditame().data,
lianyang committed
254 255 256
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
257
      rules: null,
258
      codes: { ...CodeTable },
lianyang committed
259 260 261 262 263 264 265 266 267
    }
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab)
      /**
       *  do it yourself
       **/
    },
268 269
  },
  created: async function () {
lianyang committed
270 271
    console.log('进入ditame交易')
    let rtnmsg = await this.init({})
272 273
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
lianyang committed
274 275 276 277
      // Utils.copyValueFromVO(this.model, rtnmsg.data);
      this.updateModel(rtnmsg.data)
      if (this.isInDisplay) {
        this.restoreDisplay()
wangyanjiao committed
278
      }
279
    } else {
lianyang committed
280
      this.$notify.error({ title: '错误', message: '服务请求失败!' })
281 282
    }
  },
lianyang committed
283
}
liuxin committed
284
</script>
lianyang committed
285
<style></style>