Setp.vue 28 KB
Newer Older
1
<template>
2 3
  <div class="eibs-tab">
    <!-- left -->
4
    <c-col :span="11">
5 6 7 8
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="参考号"
9
            prop="dedgrp.rec.ownref"
10 11
            style="width: 100%"
          >
zhoubaojian committed
12
            <c-input
13
              v-model="model.dedgrp.rec.ownref"
14 15 16
              maxlength="16"
              placeholder="请输入参考号"
              style="width: 95%"
zhoubaojian committed
17
              disabled
zhoubaojian committed
18
            ></c-input>
zhoubaojian committed
19 20
          </el-form-item>
        </c-col>
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <span
              style="font-size: 15px; font-family: '宋体'; font-weight: bold"
              >i</span
            >
          </c-button>
          <!-- </el-form-item> -->
zhoubaojian committed
36
        </c-col>
37 38 39 40 41 42 43 44 45 46 47 48 49 50
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
zhoubaojian committed
51 52
      </c-col>

zhoubaojian committed
53
      <c-col :span="24">
54 55 56 57 58 59
        <c-col :span="20">
          <el-form-item
            label="单据参考号"
            prop="bfdgrp.rec.ownref"
            style="width: 100%"
          >
zhoubaojian committed
60 61 62 63
            <c-input
              v-model="model.bfdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入单据参考号"
64
              style="width: 95%"
zhoubaojian committed
65
              disabled
zhoubaojian committed
66
            ></c-input>
zhoubaojian committed
67 68
          </el-form-item>
        </c-col>
69 70 71
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
zhoubaojian committed
72
          <c-button
73
            style="margin: 0 10px 0 0; padding: 0 12px"
zhoubaojian committed
74 75
            size="small"
            type="primary"
76
            @click="onSeainf"
zhoubaojian committed
77 78 79 80 81 82
          >
            <span
              style="font-size: 15px; font-family: '宋体'; font-weight: bold"
              >i</span
            >
          </c-button>
83
          <!-- </el-form-item> -->
zhoubaojian committed
84
        </c-col>
85 86 87 88 89 90 91 92 93 94 95 96 97 98
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
zhoubaojian committed
99
      </c-col>
zhoubaojian committed
100 101 102
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
103
            <c-input
zhoubaojian committed
104
              v-model="model.bfdgrp.cbs.max.cur"
105 106
              maxlength="3"
              placeholder="请输入单据金额"
zhoubaojian committed
107
              disabled
108
            ></c-input>
zhoubaojian committed
109 110 111
          </el-form-item>
        </c-col>
        <c-col :span="12">
112
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.max.amt">
zhoubaojian committed
113 114
            <c-input
              v-model="model.bfdgrp.cbs.max.amt"
115
              placeholder="请输入Balance"
zhoubaojian committed
116 117 118 119
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
120
      </c-col>
zhoubaojian committed
121 122 123
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据余额" prop="bfdgrp.cbs.opn1.cur">
124
            <c-input
zhoubaojian committed
125
              v-model="model.bfdgrp.cbs.opn1.cur"
126 127
              maxlength="3"
              placeholder="请输入单据余额"
zhoubaojian committed
128
              disabled
129
            ></c-input>
zhoubaojian committed
130 131 132
          </el-form-item>
        </c-col>
        <c-col :span="12">
133
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
zhoubaojian committed
134 135 136 137 138 139 140
            <c-input
              v-model="model.bfdgrp.cbs.opn1.amt"
              placeholder="请输入Balance"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
141
      </c-col>
zhoubaojian committed
142
      <c-col :span="24">
143
        <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
144
          <c-select
145
            v-model="model.bfdgrp.rec.doctypcod"
146
            style="width: 100%"
147 148
            placeholder="请输入单据类型"
            disabled
149 150 151 152 153 154 155 156 157
          >
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
158 159 160 161 162 163 164 165 166 167 168 169
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="远期单据到期日" prop="bfdgrp.rec.matdat">
          <c-date-picker
            type="date"
            v-model="model.bfdgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择远期单据到期日"
            disabled
          ></c-date-picker>
        </el-form-item>
zhoubaojian committed
170
      </c-col>
zhoubaojian committed
171 172 173 174 175 176 177 178 179 180 181 182
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="到单日期" prop="bfdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择到单日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
183
        <c-col :span="12">
zhoubaojian committed
184 185 186 187 188 189 190 191 192 193
          <el-form-item label="提示日期" prop="bfdgrp.rec.predat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.predat"
              style="width: 100%"
              placeholder="请选择提示日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
zhoubaojian committed
194
      </c-col>
zhoubaojian committed
195
      <c-col :span="24">
196
        <el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
197
          <c-select
zhoubaojian committed
198
            v-model="model.bfdgrp.rec.docsta"
199
            style="width: 100%"
200
            placeholder="请输入单据状态"
zhoubaojian committed
201
            disabled
202 203 204 205 206 207 208 209 210
          >
            <el-option
              v-for="item in codes.docsta"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
211
        </el-form-item>
zhoubaojian committed
212
      </c-col>
zhoubaojian committed
213
    </c-col>
214 215

    <!-- right -->
216
    <c-col :span="11" :offset="1">
zhoubaojian committed
217
      <c-col :span="24">
218
        <c-col :span="12">
Eivi committed
219
          <el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
220
            <c-input
Eivi committed
221
              v-model="model.dedgrp.cbs.opn1.cur"
222 223 224 225 226 227 228
              maxlength="3"
              placeholder="请输入信用证余额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
Eivi committed
229
          <el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
230
            <c-input
Eivi committed
231
              v-model="model.dedgrp.cbs.opn1.amt"
232 233 234 235 236
              placeholder="请输入Balance"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
237 238 239
      </c-col>

      <c-col :span="24">
240
        <el-form-item label="摘要" prop="bfdgrp.rec.nam">
zhoubaojian committed
241
          <c-input
242
            v-model="model.bfdgrp.rec.nam"
zhoubaojian committed
243
            maxlength="40"
244
            placeholder="请输入摘要"
zhoubaojian committed
245
            disabled
zhoubaojian committed
246 247 248 249
          ></c-input>
        </el-form-item>
      </c-col>

zhoubaojian committed
250
      <c-col :span="24">
251 252 253
        <c-ptsmsg
          :model="model"
          :argadr="{
Eivi committed
254
            title: '交单人',
255 256 257 258 259
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :disabled="true"
        ></c-ptsmsg>
zhoubaojian committed
260
      </c-col>
Eivi committed
261
      <!-- <c-col :span="24">
262 263 264 265 266 267 268 269 270
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '开证行',
            grp: 'bfdgrp',
            rol: 'iss',
          }"
          :disabled="true"
        ></c-ptsmsg>
Eivi committed
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
      </c-col> -->
      <c-col :span="24">
        <el-form-item label="开证行编号" prop="dedgrp.rec.kzref">
          <c-input
            v-model="model.dedgrp.rec.kzref"
            maxlength="16"
            placeholder="'请输入开证行编号'"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="开证行名称" prop="bfdgrp.iss.pts.nam">
          <c-input
            v-model="model.bfdgrp.iss.pts.nam"
            maxlength="40"
            placeholder="'请输入开证行名称'"
            disabled
          ></c-input>
        </el-form-item>
zhoubaojian committed
292
      </c-col>
zhoubaojian committed
293
      <c-col :span="24">
294 295 296 297 298 299 300 301 302
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bfdgrp',
            rol: 'apl',
          }"
          :disabled="true"
        ></c-ptsmsg>
zhoubaojian committed
303
      </c-col>
304 305
    </c-col>
    <!-- next part -->
306 307
    <c-col :span="24" style="margin-bottom: 35px">
      <c-istream-table
308
        ref="table"
309 310 311 312
        :list="model.liaall.tenstm.rows || []"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
313
        prop="liaall.tenstm"
314 315 316
      >
      </c-istream-table>
    </c-col>
317
    <!-- left -->
318
    <c-col :span="11">
319
      <c-col :span="24">
zhoubaojian committed
320
        <c-col :span="12">
321
          <el-form-item label="付款金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
322
            <c-input
323
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
324
              maxlength="3"
325
              placeholder="请输入付款金额"
zhoubaojian committed
326 327 328 329
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
330 331
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.docamt">
zhoubaojian committed
332 333 334
            <c-input
              v-model="model.setmod.docamt"
              placeholder="请输入付款金额"
335 336 337
              @change="eventFunction(
                    'setmod.docamt'
                  )"
zhoubaojian committed
338 339 340
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
341
      </c-col>
342

zhoubaojian committed
343 344
      <c-col :span="24">
        <c-col :span="12">
345
          <el-form-item label="扣费后付款金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
346
            <c-input
347
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
348
              maxlength="3"
349
              placeholder="请输入扣费后付款金额"
zhoubaojian committed
350 351 352 353 354
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
355
          <el-form-item label="" label-width="5px" prop="setmod.setamt">
zhoubaojian committed
356
            <c-input
357 358 359
              v-model="model.setmod.setamt"
              placeholder="请输入扣费后付款金额"
              disabled
360 361 362
              @change="eventFunction(
                    'setmod.setamt'
                  )"
zhoubaojian committed
363 364 365
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
366
      </c-col>
367

zhoubaojian committed
368 369
      <c-col :span="24">
        <c-col :span="12">
370
          <el-form-item label="单据金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
371
            <c-input
372
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
373
              maxlength="3"
374
              placeholder="请输入单据金额"
zhoubaojian committed
375 376 377 378 379
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
380
          <el-form-item label="" label-width="5px" prop="aamset.utlamt">
zhoubaojian committed
381
            <c-input
382 383
              v-model="model.aamset.utlamt"
              placeholder="请输入单据金额"
zhoubaojian committed
384
              disabled
385 386 387
              @change="eventFunction(
                    'aamset.utlamt'
                  )"
zhoubaojian committed
388 389 390
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
391
      </c-col>
392

zhoubaojian committed
393 394
      <c-col :span="24">
        <c-col :span="12">
395
          <el-form-item label="附加金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
396
            <c-input
397
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
398
              maxlength="3"
399
              placeholder="请输入附加金额"
zhoubaojian committed
400 401 402 403 404
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
405
          <el-form-item label="" label-width="5px" prop="aamset.utlamt2">
zhoubaojian committed
406
            <c-input
407 408
              v-model="model.aamset.utlamt2"
              placeholder="请输入附加金额"
zhoubaojian committed
409 410 411 412 413
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
414
    </c-col>
415

416
    <!-- right -->
417
    <c-col :span="11" :offset="1">
418
      <c-col :span="24">
Eivi committed
419
        <el-form-item label="" prop="mtabut.clsflg">
420
          <c-checkbox v-model="clsflg">闭卷</c-checkbox>
Eivi committed
421
        </el-form-item>
422
      </c-col>
Eivi committed
423

424
      <c-col :span="24">
425
        <el-form-item label="" prop="bfdgrp.rec.frepayflg">
426
          <c-checkbox v-model="frepayflg" >无偿放单</c-checkbox>
Eivi committed
427 428 429 430
        </el-form-item>
      </c-col>

      <!-- <c-col :span="24">
431 432 433 434 435
        <c-checkbox
          v-model="model.bfdgrp.rec.frepayflg"
          style="margin-left: 150px"
          >无偿放单</c-checkbox
        >
Eivi committed
436
      </c-col> -->
437

zhoubaojian committed
438 439
      <c-col :span="24">
        <c-col :span="12">
440
          <el-form-item label="扣减金额" prop="bfdgrp.cbs.opn1.cur">
zhoubaojian committed
441
            <c-input
442
              v-model="model.bfdgrp.cbs.opn1.cur"
zhoubaojian committed
443
              maxlength="3"
444
              placeholder="请输入扣减金额"
zhoubaojian committed
445 446 447 448 449
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
450
          <el-form-item label="" label-width="5px" prop="setmod.redamt">
zhoubaojian committed
451
            <c-input
452 453
              v-model="model.setmod.redamt"
              placeholder="请输入扣减金额"
Eivi committed
454
              :disabled="frepayflg"
455
              @change="selectOrCheckboxRule('setmod.redamt')"
zhoubaojian committed
456 457 458
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
459
      </c-col>
460

zhoubaojian committed
461
      <c-col :span="24">
462
        <el-form-item label="福费廷转卖类型" prop="bpdgrp.rec.ffttyp">
Eivi committed
463
          <c-input
464 465
            v-model="model.bpdgrp.rec.ffttyp"
            maxlength="40"
466
            placeholder="请输入福费廷转卖类型"
467 468
            disabled
          ></c-input>
469
        </el-form-item>
zhoubaojian committed
470
      </c-col>
471
    </c-col>
Eivi committed
472

473
    <c-col :span="24" style="height: 24px; margin-top: 20px">
474
      <el-form-item label="融资信息" class="messageLabel"> </el-form-item>
zhoubaojian committed
475
    </c-col>
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
    <c-col :span="24" style="height: 0px; margin-top: 5px">
      <el-divider></el-divider>
    </c-col>
    <c-col :span="24">
      <c-table :data="model.bptbck.bptbckg" style="width: 100%">
        <el-table-column prop="ownref" label="Reference" width="389px">
        </el-table-column>
        <el-table-column prop="opncur" label="Cur" width="389px">
        </el-table-column>
        <el-table-column prop="opnamt" label="Open amount" width="389px">
        </el-table-column>
        <el-table-column prop="bckamt" label="Pay back now" width="389px">
        </el-table-column>
      </c-table>
    </c-col>

492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508
    <!-- <c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="bftp.dedget.sdamod.dadsnd">
        <c-input
          v-model="model.bftp.dedget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="参考号" prop="dedgrp.rec.ownref">
        <c-input
          v-model="model.dedgrp.rec.ownref"
          maxlength="16"
          placeholder="请输入参考号"
        ></c-input>
      </el-form-item>
zhoubaojian committed
509
    </c-col>
510 511 512 513 514 515 516 517

    <c-col :span="12">
      <el-form-item label="" prop="bftp.dedget.sdamod.seainf">
        <c-input
          v-model="model.bftp.dedget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
zhoubaojian committed
518
    </c-col>
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 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570

    <c-col :span="12">
      <el-form-item label="Currency" prop="dedgrp.cbs.opn1.cur">
        <c-input
          v-model="model.dedgrp.cbs.opn1.cur"
          maxlength="3"
          placeholder="请输入Currency"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Balance" prop="dedgrp.cbs.opn1.amt">
        <c-input
          v-model="model.dedgrp.cbs.opn1.amt"
          placeholder="请输入Balance"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="bftp.recget.sdamod.dadsnd">
        <c-input
          v-model="model.bftp.recget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据参考号" prop="bfdgrp.rec.ownref">
        <c-input
          v-model="model.bfdgrp.rec.ownref"
          maxlength="16"
          placeholder="请输入单据参考号"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="" prop="bftp.recget.sdamod.seainf">
        <c-input
          v-model="model.bftp.recget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item
        label="Externally Displayed Name to Identify the Contract"
        prop="bfdgrp.rec.nam"
zhoubaojian committed
571
      >
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626
        <c-input
          v-model="model.bfdgrp.rec.nam"
          maxlength="40"
          placeholder="请输入Externally Displayed Name to Identify the Contract"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
        <c-select
          v-model="model.bfdgrp.cbs.max.cur"
          style="width: 100%"
          placeholder="请选择单据金额"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据金额" prop="bfdgrp.cbs.max.amt">
        <c-input
          v-model="model.bfdgrp.cbs.max.amt"
          placeholder="请输入单据金额"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="交单人" prop="bfdgrp.prb.pts.ref">
        <c-input
          v-model="model.bfdgrp.prb.pts.ref"
          maxlength="16"
          placeholder="请输入交单人"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据余额" prop="bfdgrp.cbs.opn1.cur">
        <c-input
          v-model="model.bfdgrp.cbs.opn1.cur"
          maxlength="3"
          placeholder="请输入单据余额"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Balance" prop="bfdgrp.cbs.opn1.amt">
        <c-input
          v-model="model.bfdgrp.cbs.opn1.amt"
          placeholder="请输入Balance"
        ></c-input>
      </el-form-item>
zhoubaojian committed
627
    </c-col>
628 629 630 631 632 633 634 635 636

    <c-col :span="12">
      <el-form-item label="Name of Party" prop="bfdgrp.prb.pts.nam">
        <c-input
          v-model="model.bfdgrp.prb.pts.nam"
          maxlength="40"
          placeholder="请输入Name of Party"
        ></c-input>
      </el-form-item>
zhoubaojian committed
637
    </c-col>
638 639 640 641 642 643 644 645 646

    <c-col :span="12">
      <el-form-item label="信用证编号" prop="dedgrp.rec.kzref">
        <c-input
          v-model="model.dedgrp.rec.kzref"
          maxlength="35"
          placeholder="请输入信用证编号"
        ></c-input>
      </el-form-item>
zhoubaojian committed
647
    </c-col>
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662

    <c-col :span="12">
      <el-form-item label="开证行" prop="bfdgrp.iss.pts.ref">
        <c-input
          v-model="model.bfdgrp.iss.pts.ref"
          maxlength="16"
          placeholder="请输入开证行"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
        <c-select
          v-model="model.bfdgrp.rec.doctypcod"
zhoubaojian committed
663
          style="width: 100%"
664
          placeholder="请选择单据类型"
zhoubaojian committed
665
        >
666 667 668 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
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Name of Party" prop="bfdgrp.iss.pts.nam">
        <c-input
          v-model="model.bfdgrp.iss.pts.nam"
          maxlength="40"
          placeholder="请输入Name of Party"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="远期单据到期日" prop="bfdgrp.rec.matdat">
        <c-date-picker
          type="date"
          v-model="model.bfdgrp.rec.matdat"
          style="width: 100%"
          placeholder="请选择远期单据到期日"
        ></c-date-picker>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="到单日期" prop="bfdgrp.rec.rcvdat">
        <c-date-picker
          type="date"
          v-model="model.bfdgrp.rec.rcvdat"
          style="width: 100%"
          placeholder="请选择到单日期"
        ></c-date-picker>
      </el-form-item>
zhoubaojian committed
700
    </c-col>
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841

    <c-col :span="12">
      <el-form-item label="Presentation Date" prop="bfdgrp.rec.predat">
        <c-date-picker
          type="date"
          v-model="model.bfdgrp.rec.predat"
          style="width: 100%"
          placeholder="请选择Presentation Date"
        ></c-date-picker>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="申请人" prop="bfdgrp.apl.pts.ref">
        <c-input
          v-model="model.bfdgrp.apl.pts.ref"
          maxlength="16"
          placeholder="请输入申请人"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
        <c-input
          v-model="model.bfdgrp.rec.docsta"
          maxlength="40"
          placeholder="请输入单据状态"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Name of Party" prop="bfdgrp.apl.pts.nam">
        <c-input
          v-model="model.bfdgrp.apl.pts.nam"
          maxlength="40"
          placeholder="请输入Name of Party"
        ></c-input>
      </el-form-item>
    </c-col>

    <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>

    <c-col :span="12">
      <c-checkbox v-model="model.trtcre.crefinflg">Create Financing</c-checkbox>
    </c-col>

    <c-col :span="12">
      <c-checkbox v-model="model.mtabut.clsflg">Close Flag</c-checkbox>
    </c-col>

    <c-col :span="12">
      <c-checkbox v-model="model.bfdgrp.rec.frepayflg"
        >Free of Payment</c-checkbox
      >
    </c-col>

    <c-col :span="12">
      <el-form-item label="document currency" prop="setmod.doccur">
        <c-input
          v-model="model.setmod.doccur"
          maxlength="3"
          placeholder="请输入document currency"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="扣减金额" prop="setmod.redamt">
        <c-input
          v-model="model.setmod.redamt"
          placeholder="请输入扣减金额"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="document amount" prop="setmod.docamt">
        <c-input
          v-model="model.setmod.docamt"
          placeholder="请输入document amount"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="扣费后付款金额" prop="setmod.setamt">
        <c-input
          v-model="model.setmod.setamt"
          placeholder="请输入扣费后付款金额"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="福费廷转卖类型" prop="bpdgrp.rec.ffttyp">
        <c-select
          v-model="model.bpdgrp.rec.ffttyp"
          style="width: 100%"
          placeholder="请选择福费廷转卖类型"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="附加金额" prop="bfdgrp.cbs.opn2.cur">
        <c-select
          v-model="model.bfdgrp.cbs.opn2.cur"
          style="width: 100%"
          placeholder="请选择附加金额"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="单据金额" prop="aamset.utlamt">
        <c-input
          v-model="model.aamset.utlamt"
          placeholder="请输入单据金额"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="附加金额" prop="aamset.utlamt2">
        <c-input
          v-model="model.aamset.utlamt2"
          placeholder="请输入附加金额"
        ></c-input>
      </el-form-item>
    </c-col> -->
zhoubaojian committed
842
  </div>
843 844
</template>
<script>
zhoubaojian committed
845
import Api from "~/service/Api";
wangren committed
846
import commonProcess from "~/mixin/commonProcess";
zhoubaojian committed
847 848
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftset/Event";
849
import Ptsmsg from "~/views/Public/Ptsmsg";
850
import Utils from "~/utils/index";
851 852
// import PtapDome from "~/views/Public/PtapDome";
// import Ptap from "~/views/Public/Ptap";   "c-ptapdome": PtapDome, "c-ptap": Ptap
853 854

export default {
855
  components: { "c-ptsmsg": Ptsmsg },
zhoubaojian committed
856 857
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
858
  mixins: [commonProcess],
zhoubaojian committed
859
  data() {
zhoubaojian committed
860 861 862
    return {
      stmData: {
        columns: [
863 864 865 866 867
          '1 1 "Type" 250',
          '2 2 "Dbt" 250',
          '3 3 "Cdt" 250',
          '4 4 "Cur" 250',
          '5 5 "Amt" 250 2 8 1 4',
868
          // '6 6 "Mat.Dat." 250 4 7 1',
869 870 871 872 873 874 875 876 877 878 879
          {
            index: 6,
            position: 6,
            width: 250,
            render: (item, scope) => {
              return scope.row[item.prop] === "null"
                ? ""
                : scope.row[item.prop];
            },
            label: "Mat.Dat.",
          },
zhoubaojian committed
880 881 882 883 884
        ],
        data: [],
      },
    };
  },
885
  computed: {
Eivi committed
886 887 888 889 890 891 892 893
    clsflg: {
      get() {
        return this.model.mtabut.clsflg === "C";
      },
      set(val) {
        this.model.mtabut.clsflg = val ? "C" : "O";
      },
    },
894
    frepayflg: {
Eivi committed
895
      get() {
896
        return this.model.bfdgrp.rec.frepayflg === "X";
Eivi committed
897 898
      },
      set(val) {
899 900
        this.model.bfdgrp.rec.frepayflg = val ? "X" : "";
        this.model.setmod.redamt = "";
Eivi committed
901 902 903 904 905 906
      },
    },
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
907 908
  mounted() {
    this.$nextTick(() => {});
909
  },
910
  methods: {
Eivi committed
911
    ...Event,
912
    async multipleSelect(selection) {
Wuyuqiu committed
913
      if (selection.length > 1) {
914
        this.$notify({
915
          title: "error",
916 917 918
          message: "You cannot select more than one tenor",
          type: "error",
        });
Wuyuqiu committed
919
      } else {
920
        let chkIds;
Wuyuqiu committed
921
        if (selection.length === 0) {
922 923
          chkIds = []
          // this.model.liaall.tensetstm.rows = []
924
          // this.model.liaall.tenstm.rows = []
Wuyuqiu committed
925
        } else {
926
          chkIds = [selection[0] + 1]
Wuyuqiu committed
927 928
        }
        //
929
        console.log(this.model.liaall.tensetstm);
930
        let params = { chkDst: "liaall.tenstm", chkIds };
931
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
932
        if (rtnmsg.respCode == SUCCESS) {
933 934 935
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
Wuyuqiu committed
936
        }
Eivi committed
937
      }
Wuyuqiu committed
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965

      // 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 = "";
      // }
966 967
    },
  },
968

zhoubaojian committed
969 970
  created: function () {},
};
971
</script>
972
<style>
zhoubaojian committed
973 974 975 976 977
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
978
</style>