Utlp.vue 26.5 KB
Newer Older
liushikai committed
1
<template>
潘际乾 committed
2
  <div class="eibs-tab" style="">
liuxin committed
3 4

    <c-col :span="24">
wangyanjiao committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18
      <c-col :span="11">
        <c-col :span="16">
          <el-form-item label="信用证参考号" prop="didgrp.rec.ownref">
            <c-fullbox>
              <c-input v-model="model.didgrp.rec.ownref" maxlength="16" placeholder="请输入信用证参考号" disabled></c-input>
              <template slot="footer">
                <c-button style="padding: 0 14px;" size="small" type="primary">
                  <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right;margin-left:10px">
liuxin committed
19 20 21 22 23 24 25
                    <c-button
                        style="margin:0;padding: 0 14px;"
                        size="small"
                        type="primary"
                    >
                    <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                    </c-button>
liushikai committed
26
                </c-col> -->
wangyanjiao committed
27 28 29 30 31 32 33 34

        <c-col :span="8">
          <el-form-item label="到期日" prop="didgrp.rec.expdat" label-width="30%">
            <c-fullbox>
              <c-date-picker type="date" v-model="model.didgrp.rec.expdat" style="width: 100%"
                placeholder="请选择Date of Expiry" disabled></c-date-picker>
            </c-fullbox>
          </el-form-item>
liuxin committed
35
        </c-col>
wangyanjiao committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49
      </c-col>

      <c-col :span="11" :offset="1">
        <c-col :span="12">
          <el-form-item label="信用证余额" prop="didgrp.cbs.opn1.cur">
            <c-input v-model="model.didgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入Currency" disabled></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="2%">
            <c-input v-model="model.didgrp.cbs.opn1.amt" placeholder="请输入Balance" disabled></c-input>
          </el-form-item>
        </c-col>
      </c-col>
50
    </c-col>
liuxin committed
51

52
    <c-col :span="24" style="height:24px;margin-top:-10px">
wangyanjiao committed
53 54
      <el-form-item label="单据信息" class="messageLabel">
      </el-form-item>
liuxin committed
55
    </c-col>
潘际乾 committed
56
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
57
      <el-divider></el-divider>
liuxin committed
58
    </c-col>
59

liuxin committed
60
    <c-col :span="11" style="margin-top:10px">
wangyanjiao committed
61 62 63 64 65 66 67 68 69 70 71 72
      <c-col :span="24">
        <c-col :span="22">
          <el-form-item label="单据参考号" prop="bddgrp.rec.ownref">
            <c-input v-model="model.bddgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号" disabled></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="2" style="text-align: right">
          <c-button style="margin:0;padding: 0 14px;" size="small" type="primary">
            <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
          </c-button>
        </c-col>
      </c-col>
73 74
    </c-col>

liuxin committed
75
    <c-col :span="11" :offset="1" style="margin-top:10px">
liushikai committed
76
      <el-form-item label="单据摘要" prop="bddgrp.rec.nam">
wangyanjiao committed
77 78
        <c-input v-model="model.bddgrp.rec.nam" maxlength="40" placeholder="请输入Name of Bill Contract" disabled>
        </c-input>
79 80 81 82 83 84
      </el-form-item>
    </c-col>

    <!-- ==========middle-left======== -->
    <c-col :span="11">
      <c-col :span="24">
liuxin committed
85
        <c-col :span="12">
86
          <el-form-item label="单据金额" prop="bddgrp.cbs.max.cur">
wangyanjiao committed
87
            <c-select v-model="model.bddgrp.cbs.max.cur" placeholder="请选择单据金额" disabled>
88 89 90
            </c-select>
          </el-form-item>
        </c-col>
91 92
        <c-col :span="12">
          <el-form-item label="" prop="bddgrp.cbs.max.amt" label-width="2%">
wangyanjiao committed
93
            <c-input v-model="model.bddgrp.cbs.max.amt" placeholder="请输入单据金额" disabled></c-input>
94 95 96 97 98
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
liuxin committed
99
        <c-col :span="12">
100
          <el-form-item label="单据余额" prop="bddgrp.cbs.opn1.cur">
wangyanjiao committed
101
            <c-select v-model="model.bddgrp.cbs.opn1.cur" placeholder="请选择单据余额" disabled></c-select>
102 103
          </el-form-item>
        </c-col>
104 105
        <c-col :span="12">
          <el-form-item label="" prop="bddgrp.cbs.opn1.amt" label-width="2%">
wangyanjiao committed
106
            <c-input v-model="model.bddgrp.cbs.opn1.amt" placeholder="请输入Balance" disabled></c-input>
107 108 109 110
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
liuxin committed
111
        <c-col :span="12">
112
          <el-form-item label="到单日期" prop="bddgrp.rec.rcvdat">
wangyanjiao committed
113 114
            <c-date-picker type="date" style="width:100%" v-model="model.bddgrp.rec.rcvdat" placeholder="请选择到单日期"
              disabled></c-date-picker>
115 116
          </el-form-item>
        </c-col>
liuxin committed
117
        <c-col :span="1">
wangyanjiao committed
118
          &nbsp;
liuxin committed
119
        </c-col>
120
        <c-col :span="11">
wangyanjiao committed
121 122 123
          <el-form-item label="远期起算日" prop="bddgrp.rec.stadat" label-width="40%">
            <c-date-picker type="date" v-model="model.bddgrp.rec.stadat" style="width: 100%" placeholder="请选择Start Date"
              disabled></c-date-picker>
124 125 126 127 128
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
liuxin committed
129
        <c-col :span="12">
130
          <el-form-item label="单据到期日" prop="bddgrp.rec.matdat">
wangyanjiao committed
131 132
            <c-date-picker type="date" style="width:100%" v-model="model.bddgrp.rec.matdat"
              placeholder="请选择Maturity Date" width="100%" disabled></c-date-picker>
133 134
          </el-form-item>
        </c-col>
liuxin committed
135
        <c-col :span="1">
wangyanjiao committed
136
          &nbsp;
liuxin committed
137
        </c-col>
138
        <c-col :span="11">
wangyanjiao committed
139 140
          <el-form-item label="远期期限" prop="bddgrp.rec.tenmaxday" label-width="40%">
            <c-input v-model="model.bddgrp.rec.tenmaxday" placeholder="请输入单据到期日" disabled></c-input>
141 142 143 144 145
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bddgrp.rec.docflg">
wangyanjiao committed
146 147
          <c-select v-model="model.bddgrp.rec.docflg" style="width: 100%" placeholder="请选择单据类型" disabled>
            <el-option v-for="item in codes.brdtyp" :key="item.value" :label="item.label" :value="item.value">
148
            </el-option>
149 150 151 152 153
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bddgrp.rec.docsta">
wangyanjiao committed
154 155 156
          <c-select v-model="model.bddgrp.rec.docsta" style="width: 100%" placeholder="请选择单据状态" disabled>
            <el-option v-for="item in codes.docsta" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
157 158 159 160 161 162 163
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- ==========middle-right======== -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
wangguangchao committed
164
        <el-form-item label="申请人编号" prop="bddgrp.apl.pts.ref">
wangyanjiao committed
165
          <c-input v-model="model.bddgrp.apl.pts.ref" maxlength="16" placeholder="请输入申请人" disabled></c-input>
liushikai committed
166
        </el-form-item>
167 168 169
      </c-col>

      <c-col :span="24">
liushikai committed
170
        <el-form-item label="申请人名称" prop="bddgrp.apl.pts.nam">
wangyanjiao committed
171
          <c-input v-model="model.bddgrp.apl.pts.nam" maxlength="40" placeholder="请输入Name of Party" disabled></c-input>
liushikai committed
172
        </el-form-item>
173 174 175
      </c-col>

      <c-col :span="24">
wangguangchao committed
176
        <el-form-item label="受益人编号" prop="bddgrp.ben.pts.ref">
wangyanjiao committed
177
          <c-input v-model="model.bddgrp.ben.pts.ref" maxlength="16" placeholder="请输入受益人" disabled></c-input>
liushikai committed
178
        </el-form-item>
179 180 181
      </c-col>

      <c-col :span="24">
liushikai committed
182
        <el-form-item label="受益人名称" prop="bddgrp.ben.pts.nam">
wangyanjiao committed
183
          <c-input v-model="model.bddgrp.ben.pts.nam" maxlength="40" placeholder="请输入远期期限" disabled></c-input>
184 185 186 187
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangguangchao committed
188
        <el-form-item label="交单行编号" prop="bddgrp.prb.pts.ref">
wangyanjiao committed
189
          <c-input v-model="model.bddgrp.prb.pts.ref" maxlength="16" placeholder="请输入交单行" disabled></c-input>
liushikai committed
190
        </el-form-item>
191 192 193
      </c-col>

      <c-col :span="24">
liushikai committed
194
        <el-form-item label="交单行名称" prop="bddgrp.prb.pts.nam">
wangyanjiao committed
195
          <c-input v-model="model.bddgrp.prb.pts.nam" maxlength="40" placeholder="请输入Name of Party" disabled></c-input>
196 197 198 199
        </el-form-item>
      </c-col>
    </c-col>

liuxin committed
200
    <!-- <c-col :span="24" style="height:10px">
liushikai committed
201
           <el-divider></el-divider>
liuxin committed
202
       </c-col> -->
liushikai committed
203

204
    <!-- =========bottom-left======== -->
205
    <c-col :span="24" style="height:24px;margin-top:-10px">
wangyanjiao committed
206 207
      <el-form-item label="付款信息" class="messageLabel">
      </el-form-item>
liuxin committed
208
    </c-col>
潘际乾 committed
209
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
210
      <el-divider></el-divider>
liuxin committed
211
    </c-col>
212
    <c-col :span="11">
liuxin committed
213
      <!-- <c-col :span="22" :offset="2" style="height:24px">
liushikai committed
214 215 216 217 218 219
            <el-form-item
                class="formItemLabel"
                label="表外信息"
                label-width="300px"
            >
            </el-form-item>
liuxin committed
220
        </c-col> -->
liuxin committed
221 222
      <c-col :span="24" style="margin-top: 10px">
        <c-col :span="12">
223
          <el-form-item label="付款金额" prop="setmod.doccur">
wangyanjiao committed
224
            <c-input v-model="model.setmod.doccur" maxlength="3" placeholder="请输入document currency" disabled></c-input>
225
          </el-form-item>
liushikai committed
226
        </c-col>
227 228
        <c-col :span="12">
          <el-form-item label="" prop="setmod.docamt" label-width="2%">
wangyanjiao committed
229 230
            <c-input v-model="model.setmod.docamt" placeholder="请输入document amount"
              @keyup.enter.native="commonExecuteRule('setmod.docamt')"></c-input>
231 232 233
          </el-form-item>
        </c-col>
      </c-col>
liushikai committed
234 235

      <c-col :span="24">
liuxin committed
236
        <c-col :span="12">
liushikai committed
237
          <el-form-item label="扣减金额" prop="setmod.doccur">
wangyanjiao committed
238
            <c-input v-model="model.setmod.doccur" placeholder="请输入扣减金额" disabled></c-input>
liushikai committed
239 240
          </el-form-item>
        </c-col>
241 242
        <c-col :span="12">
          <el-form-item label="" prop="setmod.redamt" label-width="2%">
wangyanjiao committed
243 244
            <c-input v-model="model.setmod.redamt" placeholder="请输入扣减金额" :disabled="model.bddgrp.rec.frepayflg == 'X' "
              @keyup.enter.native="commonExecuteRule('setmod.redamt')"></c-input>
liushikai committed
245 246 247
          </el-form-item>
        </c-col>
      </c-col>
wangyanjiao committed
248

249
      <c-col :span="24">
liuxin committed
250
        <c-col :span="12">
251
          <el-form-item label="扣费后付款金额" prop="setmod.doccur">
wangyanjiao committed
252
            <c-input v-model="model.setmod.doccur" maxlength="3" placeholder="请输入document currency" disabled></c-input>
253 254
          </el-form-item>
        </c-col>
255 256
        <c-col :span="12">
          <el-form-item label="" prop="setmod.setamt" label-width="2%">
wangyanjiao committed
257
            <c-input v-model="model.setmod.setamt" placeholder="请输入扣费后付款金额" disabled></c-input>
258 259 260
          </el-form-item>
        </c-col>
      </c-col>
wangyanjiao committed
261

262
      <c-col :span="24">
wangguangchao committed
263
        <el-form-item label="清算方式" prop="bddgrp.rec.clrmtd">
wangyanjiao committed
264 265 266

          <c-select v-model="model.bddgrp.rec.clrmtd" style="width: 100%" placeholder="请选择清算方式" disabled>
            <el-option v-for="item in codes.clrtyp" :key="item.value" :label="item.label" :value="item.value">
wangguangchao committed
267 268
            </el-option>
          </c-select>
269 270
        </el-form-item>
      </c-col>
liushikai committed
271

wangyanjiao committed
272
      <!-- <c-col :span="24">
liuxin committed
273
        <el-form-item label="交单行联行名称">
wangyanjiao committed
274 275
          <c-input type="textarea" v-model="model.bddgrp.prb.pts.jigomc" style="width: 100%" maxlength="35"
            show-word-limit placeholder="请输入联行名称" disabled></c-input>
liuxin committed
276
        </el-form-item>
wangyanjiao committed
277
      </c-col> -->
wangyanjiao committed
278

279 280 281
    </c-col>
    <!-- =========bottom-right======== -->
    <c-col :span="11" :offset="1">
liuxin committed
282 283
      <c-col :span="24" style="margin-top:10px">
        <el-form-item>
wangyanjiao committed
284 285 286 287
          <c-col :span=4>
            <c-checkbox v-model="crefinflg" :disabled="model.bddgrp.rec.frepayflg === 'X'  || model.paypsb ==='X'">融资</c-checkbox>
          </c-col>
          <c-col :span="5">
lianyang committed
288
            <c-checkbox v-model="clsflg" @change="clsflgOtherDefault" :disabled="clsflgFlg">闭卷</c-checkbox>
wangyanjiao committed
289 290 291 292 293 294 295 296 297 298
          </c-col>
          <c-col :span="5">
            <c-checkbox v-model="paypsb" :disabled="model.bddgrp.rec.frepayflg === 'X' || model.trtcre.crefinflg ==='X'">垫款</c-checkbox>
          </c-col>
          <c-col :span="5">
            <c-checkbox v-model="frepayflg" @change="frepayflgDefault">无偿放单</c-checkbox>
          </c-col>
          <c-col :span="5">
            <c-checkbox v-model="dfflag">同业代付</c-checkbox>
          </c-col>
299 300 301
        </el-form-item>
      </c-col>

302
      <c-col :span="24">
lianyang committed
303 304 305 306
        <el-form-item label="交单行" prop="bddgrp.rec.docprbrol">
          <c-select v-model="model.bddgrp.rec.docprbrol" style="width: 100%" placeholder="请选择Presented by"
            :code="codes.docprbrol1" @change="docprbrolChange">
          </c-select>
wangyanjiao committed
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行BIC" prop="bddgrp.prb.pts.extkey">
          <c-input
            v-model="model.bddgrp.prb.pts.extkey"
            maxlength="16"
            style="width: 100%"
            placeholder="请输入交单行BIC"
            @keyup.enter.native="showGridPromptDialog(`bddgrp.prb.pts.extkey`)"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行行号" prop="bddgrp.prb.pts.bankno">
          <c-input
            v-model="model.bddgrp.prb.pts.bankno"
            maxlength="20"
            style="width: 100%"
            placeholder="请输入交单行联行行号"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
             @keyup.enter.native="showGridPromptDialog('bddgrp.prb.pts.bankno')"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行名称" prop="bddgrp.prb.pts.jigomc">
          <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.jigomc"
            style="width: 100%"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行地址" prop="bddgrp.prb.pts.dizhii">
          <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.dizhii"
            style="width: 100%"
            maxlength="35"
            show-word-limit
            placeholder="请输入交单行地址"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>

      <!-- <c-col :span="24">
365
        <el-form-item label="交单行" prop="bddgrp.rec.docprbrol">
wangyanjiao committed
366 367
          <c-select v-model="model.bddgrp.rec.docprbrol" style="width: 100%" placeholder="请选择Presented by"
            :code="getValues('bddgrp.rec.docprbrol')" @change="docprbrolChange">
368 369 370
          </c-select>
        </el-form-item>
      </c-col>
wangyanjiao committed
371
      <c-col :span="24">
372
        <el-form-item label="交单行BIC" prop="bddgrp.prb.pts.extkey">
wangyanjiao committed
373 374
          <c-input v-model="model.bddgrp.prb.pts.extkey" maxlength="16" style="width: 100%" placeholder="请输入交单行BIC"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"></c-input>
375 376 377 378 379
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行行号" prop="bddgrp.prb.pts.bankno">
wangyanjiao committed
380
          <c-input v-model="model.bddgrp.prb.pts.bankno" maxlength="20" style="width: 100%" placeholder="请输入交单行联行行号"
381
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
wangyanjiao committed
382
            @keyup.enter.native="showGridPromptDialog('bddgrp.prb.pts.bankno')"></c-input>
383 384 385 386
        </el-form-item>
      </c-col>

      <c-col :span="24">
liuxin committed
387
        <el-form-item label="交单行地址">
wangyanjiao committed
388 389 390
          <c-input type="textarea" v-model="model.bddgrp.prb.pts.dizhii" style="width: 100%" maxlength="35"
            show-word-limit placeholder="请输入交单行地址" :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true">
          </c-input>
391
        </el-form-item>
wangyanjiao committed
392
      </c-col> -->
393
      <!-- <c-ptapdome
394 395 396 397
        :disabledJigomc="true"
        :disabledDizhii="true"
        :model="model"
        :argadr="{
liushikai committed
398
          title: '交单行',
399 400 401
          rol: 'apl',
          grp: 'bddgrp',
        }"
402
      ></c-ptapdome> -->
403 404
    </c-col>

405
    <c-col :span="24" style="height:24px;margin-top:-10px">
wangyanjiao committed
406 407
      <el-form-item label="表外信息" class="messageLabel">
      </el-form-item>
408
    </c-col>
潘际乾 committed
409
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
410
      <el-divider></el-divider>
411
    </c-col>
潘际乾 committed
412
    <c-col :span="24" :offset="0">
lianyang committed
413
      <c-istream-table ref="bwxxIst" :list="stmData.data" :columns="stmData.columns" :paginationShow="false" v-on:multipleSelect="multipleSelect"
wangyanjiao committed
414 415 416
        :showSelection="true">
      </c-istream-table>
    </c-col>
417

liuxin committed
418
    <c-col :span="24" style="height:24px">
wangyanjiao committed
419 420
      <el-form-item label="待还融资" class="messageLabel">
      </el-form-item>
421
    </c-col>
潘际乾 committed
422
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
423
      <el-divider></el-divider>
424
    </c-col>
潘际乾 committed
425
    <c-col :span="24" :offset="0">
wangyanjiao committed
426 427 428 429 430 431 432 433 434 435 436 437 438 439
      <div class="e-table-wrapper">
        <c-table :data="model.bptbck.bptbckg" style="width: 100%" :paginationShow="false">
          <el-table-column prop="ownref" label="Reference" width="auto">
          </el-table-column>
          <el-table-column prop="opncur" label="Cur." width="auto">
          </el-table-column>
          <el-table-column prop="opnamt" label="Open Amount" width="auto">
          </el-table-column>
          <el-table-column prop="bckamt" label="Amount Paid" width="auto">
          </el-table-column>
          <el-table-column prop="butcal" label="Cal." width="auto">
          </el-table-column>
        </c-table>
        <!-- <el-pagination
liuxin committed
440 441 442
                 layout="prev, pager, next"
                 :total="pager.bptbck_bptbckg.total">
              </el-pagination> -->
wangyanjiao committed
443 444
      </div>
    </c-col>
445

liuxin committed
446
    <div>
wangyanjiao committed
447
      <!-- <c-col :span="12">
liuxin committed
448 449 450 451 452 453 454
        <el-form-item label="Drag  Drop Sender" prop="bdtp.didget.sdamod.dadsnd">
            <c-input
            v-model="model.bdtp.didget.sdamod.dadsnd"
            placeholder="请输入Drag  Drop Sender"
            ></c-input>
        </el-form-item>
        </c-col>
455

liuxin committed
456 457 458 459 460 461 462 463
        <c-col :span="12">
        <el-form-item label="" prop="bdtp.didget.sdamod.seainf">
            <c-input
            v-model="model.bdtp.didget.sdamod.seainf"
            placeholder="请输入"
            ></c-input>
        </el-form-item>
        </c-col>
464

liuxin committed
465 466 467 468 469 470 471 472
        <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="bdtp.recget.sdamod.dadsnd">
            <c-input
            v-model="model.bdtp.recget.sdamod.dadsnd"
            placeholder="请输入Drag  Drop Sender"
            ></c-input>
        </el-form-item>
        </c-col>
473

liuxin committed
474 475 476 477 478 479 480 481
        <c-col :span="12">
        <el-form-item label="" prop="bdtp.recget.sdamod.seainf">
            <c-input
            v-model="model.bdtp.recget.sdamod.seainf"
            placeholder="请输入"
            ></c-input>
        </el-form-item>
        </c-col>
482

liuxin committed
483 484 485 486
        <c-col :span="12">
        <span v-text="model.bdtp.matp.mattxtlab" data-path=".bdtp.matp.mattxtlab">
        </span>
        </c-col>
487

liuxin committed
488 489 490 491 492 493 494 495
        <c-col :span="12">
        <el-form-item label="Tenor Stream" prop="liaall.tenstm">
            <c-input
            v-model="model.liaall.tenstm"
            placeholder="请输入Tenor Stream"
            ></c-input>
        </el-form-item>
        </c-col>
496

liuxin committed
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551
        <c-col :span="12">
        <el-form-item label="清算方式" prop="bddgrp.rec.clrmtd">
            <c-select
            v-model="model.bddgrp.rec.clrmtd"
            style="width: 100%"
            placeholder="请选择清算方式"
            >
            </c-select>
        </el-form-item>
        </c-col>

        <c-col :span="12">
        <el-form-item label="Number of bank" prop="bddgrp.prb.pts.bankno">
            <c-input
            v-model="model.bddgrp.prb.pts.bankno"
            maxlength="20"
            placeholder="请输入Number of bank"
            ></c-input>
        </el-form-item>
        </c-col>

        <c-col :span="12">
        <el-form-item label="联行名称  电证用" prop="bddgrp.prb.pts.jigomc">
            <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.jigomc"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称  电证用"
            ></c-input>
        </el-form-item>
        </c-col>

        <c-col :span="12">
        <el-form-item label="currency discount paid back" prop="bptbck.dscbckcur">
            <c-input
            v-model="model.bptbck.dscbckcur"
            maxlength="3"
            placeholder="请输入currency discount paid back"
            ></c-input>
        </el-form-item>
        </c-col>

        <c-col :span="12">
        <el-form-item label="地址  电证用" prop="bddgrp.prb.pts.dizhii">
            <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.dizhii"
            maxlength="35"
            show-word-limit
            placeholder="请输入地址  电证用"
            ></c-input>
        </el-form-item>
        </c-col> -->
    </div>
wangyanjiao committed
552

liushikai committed
553 554 555
  </div>
</template>
<script>
556
import Api from "~/service/Api";
wangren committed
557
import commonProcess from "~/mixin/commonProcess";
558 559 560
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtset/Event";
import PtapDome from "~/views/Public/PtapDome";
561
import Utils from "~/utils";
liushikai committed
562 563

export default {
564 565 566
  components: { "c-ptapdome": PtapDome },
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
567
  mixins: [commonProcess],
568 569 570 571 572 573 574 575 576
  data() {
    return {
      stmData: {
        columns: [
          '1 1 "Type" 0 ',
          '2 2 "Dbt" 0 ',
          '3 3 "Cdt" 0 ',
          '4 4 "Cur" 0 ',
          '5 5 "Amt" 0 ',
577
          '6 6 "Mat Dat" 0 ',
578 579 580
        ],
        data: [],
      },
lianyang committed
581
      clsflgFlg:false
582 583
    };
  },
liuxin committed
584
  computed: {
wangyanjiao committed
585 586 587 588 589 590 591 592 593
    crefinflg: {
      get() {
        
        if (this.model.bddgrp.rec.frepayflg == 'X' || this.model.paypsb =='X') {
          return false;
        }else{
          return this.model.trtcre.crefinflg != ''
        }
        
liuxin committed
594
      },
wangyanjiao committed
595 596 597 598 599 600 601 602 603 604
      set(val) {
      
        this.model.trtcre.crefinflg = val ? "X" : ""
        
         
        
      }
    },
    clsflg: {
      get() {
lianyang committed
605
        return this.model.mtabut.clsflg=='C'; 
liuxin committed
606
      },
wangyanjiao committed
607
      set(val) {
lianyang committed
608
        this.model.mtabut.clsflg = val ? "C" : "O"
wangyanjiao committed
609 610 611 612 613 614 615 616 617 618 619
      }
    },
    paypsb: {
      get() {
        
        if (this.model.bddgrp.rec.frepayflg == 'X'|| this.model.trtcre.crefinflg =='X' ) {
          return false;
        }else{
          return this.model.paypsb != ''
        }
        
liuxin committed
620
      },
wangyanjiao committed
621 622 623 624 625 626 627 628 629 630 631
      set(val) {
        if (this.model.bddgrp.rec.frepayflg == 'X'  || this.model.trtcre.crefinflg =='X') {
          this.model.paypsb = ""
        }else{
          this.model.paypsb = val ? "X" : ""
        }
      }
    },
    frepayflg: {
      get() {
        return this.model.bddgrp.rec.frepayflg != ''
liuxin committed
632
      },
wangyanjiao committed
633 634 635 636 637 638 639 640 641 642 643
      set(val) {
        if (this.model.bddgrp.rec.frepayflg == 'X' || this.model.paypsb =='X') {
          this.model.trtcre.crefinflg = ''
          this.model.paypsb = ''
        }
        this.model.bddgrp.rec.frepayflg = val ? "X" : ""
      }
    },
    dfflag: {
      get() {
        return this.model.dftcre.dfflag != ''
liuxin committed
644
      },
wangyanjiao committed
645 646 647 648
      set(val) {
        this.model.dftcre.dfflag = val ? "X" : ""
      }
    },
liuxin committed
649
  },
wangyanjiao committed
650 651
  methods: {
    ...Event,
lianyang committed
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667
        async multipleSelect(selection) {
      if (selection.length > 1) {
        this.$notify({
          title: "error",
          message: "You cannot select more than one tenor",
          type: "error",
        });
      } else {
        let chkIds;
        if (selection.length === 0) {
          chkIds = []
          // this.model.liaall.tensetstm.rows = []
          this.clsflgFlg= true
        } else {
          chkIds = [selection[0] + 1]
          this.clsflgFlg= false
wangyanjiao committed
668
        }
lianyang committed
669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706
        //
        console.log(this.model.liaall.tensetstm);
        let params = { chkDst: "liaall.tenstm", chkIds };
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
        if (rtnmsg.respCode == SUCCESS) {
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
        }
      }

      // console.log(selection);
      // if (selection) {
      //   let selIds = selection.map(x=>x+1);
      //   let params = {selDst:"liaall.tenstm",selIds}
      //   const rtnmsg = await this.executeRule("liaall.tenstm",params);
      //   if (rtnmsg.respCode == SUCCESS) {
      //       this.updateModel(rtnmsg.data)
      //   }
      //   else
      //           {
      //           this.$notify.error({title: '错误',message: '服务请求失败!'});
      //           }
      // }else{
      //   let selIds = selection.map(x=>x+1);
      //   let params = {selDst:"liaall.tenstm",selIds}
      //   const rtnmsg = await this.executeRule("liaall.tenstm",params);
      //   if (rtnmsg.respCode == SUCCESS) {
      //       this.updateModel(rtnmsg.data)
      //   }
      //   else
      //           {
      //           this.$notify.error({title: '错误',message: '服务请求失败!'});
      //           }
      //   // this.model.setmod.docamt = "";
      //   // this.model.setmod.setamt = "";
      //   // this.model.aamset.utlamt = "";
      // }
wangyanjiao committed
707
    },
wangyanjiao committed
708
    frepayflgDefault(){
709
      this.executeDefault("paypsb").then((res) => {
wangyanjiao committed
710 711 712 713 714 715
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    docprbrolChange() {
716
      this.executeRule("bddgrp.rec.docprbrol").then((res) => {
吴佳 committed
717
        if ((res.respCode == SUCCESS)) {
wangguangchao committed
718
          Utils.copyValueFromVO(this.model, res.data);
wangyanjiao committed
719
          this.stmData.data = res.data.liaall_tenstm.rows;
720
          this.$refs.bwxxIst.$refs.table.toggleAllSelection();
wangguangchao committed
721 722 723
        }
      });
    },
wangyanjiao committed
724 725
    commonExecuteRule(ruleName) {
      this.executeRule(ruleName).then((res) => {
吴佳 committed
726
        if ((res.respCode == SUCCESS)) {
727 728 729 730
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
lianyang committed
731
    clsflgOtherDefault(){
lianyang committed
732 733 734 735 736 737 738
      this.executeDefault("mtabut.clsflg").then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    
wangyanjiao committed
739
  },
liuxin committed
740 741
  created: function () {
  },
742
};
liushikai committed
743
</script>
liushikai committed
744
<style scoped>
wangyanjiao committed
745
.el-checkbox {
liuxin committed
746
  text-align: left;
wangyanjiao committed
747
  margin-right: 0;
liushikai committed
748
}
wangyanjiao committed
749 750 751 752

.formItemLabel>>>.el-form-item__label {
  text-align: left;
  font-weight: bold;
liushikai committed
753
}
wangyanjiao committed
754 755 756

.el-col>>>.el-divider--horizontal {
  margin-top: 1px;
liushikai committed
757
}
wangyanjiao committed
758 759 760 761 762

.messageLabel>>>.el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
liuxin committed
763
}
liushikai committed
764
</style>>
liushikai committed
765
</style>