Drv.vue 18.7 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
    <!-- ============================顶部================================ -->
    <c-col :span="24">
      <c-col :span="12">
        <el-form-item label="Reference" prop="ledgrp.rec.ownref">
          <c-input
            v-model="model.ledgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            text-align="middle"
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          >
          </c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ========================上半部分的左边=========================== -->
    <c-col :span="12">
      <!-- L/C Amount -->
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="L/C Amount" prop="ledgrp.cbs.nom1.cur">
            <c-select
              v-model="model.ledgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="请选择币种"
              @keyup.enter.native="nom1CurEvent"
              :code="codes.curtxt1"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="7">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
            <c-input-currency
              v-model="model.ledgrp.cbs.nom1.amt"
              style="text-align: left; width: 100%"
              class="m-input-currency"
              placeholder="请输入信用证金额"
              @keyup.enter.native="
                defaultFunction(
                  'ledgrp.cbs.nom1.amt',
                  model.ledgrp.cbs.nom1.amt
                )
              "
              disabled
            ></c-input-currency>
          </el-form-item>
        </c-col>

        <c-col :span="5">
          <c-checkbox
            v-model="model.letp.aamp.aammod.addamtflg"
            style="margin-left: 10px"
            disabled
            >Add. Amount</c-checkbox
          >
        </c-col>
      </c-col>

                <!-- Open Amount -->
      <c-col :span="24">
        <c-col :span="12">
        <el-form-item label="Open Amount" prop="ledgrp.cbs.opn1.cur">
          <c-input
            v-model="model.ledgrp.cbs.opn1.cur"
            maxlength="3"
            placeholder="请输入Open Amount"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="7">
        <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
          <c-input
            v-model="model.ledgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
            class="m-input-currency"
            placeholder="请输入Balance"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="5">
        <c-checkbox v-model="model.ledgrp.rec.revflg"
        style="margin-left: 10px"
        disabled
          >Revolving L/C</c-checkbox
103
        >
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
      </c-col>
      </c-col>

      <c-row>
        <c-col :span="19">
          <el-form-item label="Available with" prop="ledgrp.avbnam">
            <c-input
              v-model="model.ledgrp.avbnam"
              maxlength="40"
              placeholder="请输入Available with"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-row>

      <c-col :span="24">
        <c-col :span="19">
        <el-form-item label="Available by [AVBBY0]" prop="ledgrp.rec.avbby">
          <c-select
            v-model="model.ledgrp.rec.avbby"
            style="width: 100%"
            placeholder="请选择Available by [AVBBY0]"
            disabled
          >
          </c-select>
        </el-form-item>
      </c-col>
        <c-col :span="5">
133
      <c-checkbox v-model="model.ledgrp.rec.redclsflg"
134 135
        style="margin-left: 10px"
        disabled
136 137 138
        >Red/Green Clause</c-checkbox
      >
    </c-col>
139 140 141 142
      </c-col>
      
      <c-col :span="24">
        <c-col :span="12">
143 144 145 146 147 148
      <el-form-item label="Date Issued" prop="ledgrp.rec.opndat">
        <c-date-picker
          type="date"
          v-model="model.ledgrp.rec.opndat"
          style="width: 100%"
          placeholder="请选择Date Issued"
149 150
          value-format="yyyy-MM-dd"
          disabled
151 152 153 154 155 156 157 158 159 160
        ></c-date-picker>
      </el-form-item>
    </c-col>
    <c-col :span="12">
      <el-form-item label="Shipment Date" prop="ledgrp.rec.shpdat">
        <c-date-picker
          type="date"
          v-model="model.ledgrp.rec.shpdat"
          style="width: 100%"
          placeholder="请选择Shipment Date"
161 162
          value-format="yyyy-MM-dd"
          disabled
163 164 165
        ></c-date-picker>
      </el-form-item>
    </c-col>
166
      </c-col>
167

168 169
    <c-col :span="24">
      <c-col :span="12">
170 171 172 173 174 175
      <el-form-item label="Date/Place of Expiry" prop="ledgrp.rec.expdat">
        <c-date-picker
          type="date"
          v-model="model.ledgrp.rec.expdat"
          style="width: 100%"
          placeholder="请选择Date/Place of Expiry"
176 177
          value-format="yyyy-MM-dd"
          disabled
178 179 180
        ></c-date-picker>
      </el-form-item>
    </c-col>
181 182
        <c-col :span="12">
      <el-form-item label="" label-width="5px" prop="ledgrp.rec.expplc">
183 184 185 186
        <c-input
          v-model="model.ledgrp.rec.expplc"
          maxlength="29"
          placeholder="请输入Date/Place of Expiry"
187 188
          value-format="yyyy-MM-dd"
          disabled
189 190 191 192 193
        ></c-input>
      </el-form-item>
    </c-col>
    </c-col>

194
        <c-col :span="24">
195 196 197 198 199
      <el-form-item label="Form of L/C" prop="ledgrp.rec.lcrtyp">
        <c-select
          v-model="model.ledgrp.rec.lcrtyp"
          style="width: 100%"
          placeholder="请选择Form of L/C"
200
          disabled
201 202 203 204
        >
        </c-select>
      </el-form-item>
    </c-col>
205
      
206 207
    </c-col>

208 209 210 211
        <!-- ========================上半部分的右边======================= -->
    <c-col :span="11" :offset="1">
          <c-col :span="24">
      <el-form-item label="Applicant Ref." prop="ledgrp.apl.pts.ref">
212
        <c-input
213
          v-model="model.ledgrp.apl.pts.ref"
214
          maxlength="16"
215 216
          placeholder="请输入Applicant"
          disabled
217 218 219
        ></c-input>
      </el-form-item>
    </c-col>
220 221
        <c-col :span="24">
      <el-form-item label="" prop="ledgrp.apl.pts.nam">
222
        <c-input
223
          v-model="model.ledgrp.apl.pts.nam"
224
          maxlength="40"
225 226
          placeholder="请输入Name of Party"
          disabled
227 228 229 230
        ></c-input>
      </el-form-item>
    </c-col>

231 232
        <c-col :span="24">
      <el-form-item label="Iss. Bank Original LC No" prop="ledgrp.iss.pts.ref">
233
        <c-input
234 235 236 237
          v-model="model.ledgrp.iss.pts.ref"
          maxlength="16"
          placeholder="请输入Iss. Bank"
          disabled
238 239 240
        ></c-input>
      </el-form-item>
    </c-col>
241 242
        <c-col :span="24">
      <el-form-item label="" prop="ledgrp.iss.pts.nam">
243
        <c-input
244 245 246 247
          v-model="model.ledgrp.iss.pts.nam"
          maxlength="40"
          placeholder="请输入Name of Party"
          disabled
248 249 250 251
        ></c-input>
      </el-form-item>
    </c-col>

252 253 254 255 256 257 258 259
        <c-col :span="24">
      <el-form-item label="Beneficiary Ref." prop="ledgrp.ben.pts.ref">
        <c-input
          v-model="model.ledgrp.ben.pts.ref"
          maxlength="16"
          placeholder="请输入Beneficiary"
          disabled
        ></c-input>
260 261
      </el-form-item>
    </c-col>
262 263 264 265 266 267 268 269
        <c-col :span="24">
      <el-form-item label="" prop="ledgrp.ben.pts.nam">
        <c-input
          v-model="model.ledgrp.ben.pts.nam"
          maxlength="40"
          placeholder="请输入Name of Party"
          disabled
        ></c-input>
270 271
      </el-form-item>
    </c-col>
272 273 274 275 276 277 278 279
        <c-col :span="24">
      <el-form-item label="Confirmation text" prop="letp.letp0.cnftxt">
        <c-input
          v-model="model.letp.letp0.cnftxt"
          maxlength="40"
          placeholder="请输入Confirmation text"
          disabled
        ></c-input>
280 281 282 283
      </el-form-item>
    </c-col>
    </c-col>

284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 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 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
        <!-- ========================中部======================= -->
    <c-row>
      <c-col :span="24">
        <c-col :span="12">
            <el-form-item label="Document Reference" prop="bedgrp.rec.ownref">
              <c-fullbox>
                <c-input
                v-model="model.bedgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入Document Reference"
                disabled
                ></c-input>
                <template slot="footer">
                  <c-button size="small" type="primary" @click="onBetmodButgetref"
                  disabled>
                    Get Ref
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>
        <c-col :span="11" :offset="1">
        <!-- Externally Displayed Name to Identify the Contract -->
            <el-form-item
              label="Name"
              text-align="middle"
              prop="bedgrp.rec.nam"
            >
              <c-input
                v-model="model.bedgrp.rec.nam"
                maxlength="40"
                placeholder="请输入Externally Displayed Name to Identify the Contract"
              ></c-input>
            </el-form-item>
          </c-col>
      </c-col>
    </c-row>

    <c-col :span="24">
          <!-- ========================下半部分的左边======================= -->
      <c-col :span="12">
        <c-col :span="24">
          <el-form-item label="Document Type" prop="bedgrp.rec.doctypcod">
            <c-select
              v-model="model.bedgrp.rec.doctypcod"
              style="width: 100%"
              placeholder="请选择Document Type"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Maturity Date" prop="bedgrp.rec.matdat">
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.matdat"
                style="width: 100%"
                placeholder="请选择Maturity Date"
                value-format="yyyy-MM-dd"
              ></c-date-picker>
            </el-form-item>
          </c-col>
                <!-- Date of Shipment -->
          <c-col :span="12">
            <el-form-item label="Shipped on" prop="bedgrp.rec.shpdat">
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.shpdat"
                style="width: 100%"
                placeholder="请选择Date of Shipment"
                value-format="yyyy-MM-dd"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Received on" prop="bedgrp.rec.rcvdat">
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.rcvdat"
                style="width: 100%"
                value-format="yyyy-MM-dd"
                placeholder="请选择Received on"
              ></c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="Order Date" prop="bedgrp.rec.orddat">
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.orddat"
                style="width: 100%"
                value-format="yyyy-MM-dd"
                placeholder="请选择Order Date"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-checkbox v-model="model.bedgrp.rec.dscinsflg"
            style="width: 100%; margin-left: 150px"
            >Enter Docs, Discrep. and Instructions</c-checkbox
          >
        </c-col>

        <c-col :span="24">
          <!-- <el-form-item
            label="No. of Existing and not Completely Processed  Document Sets"
            prop="ledgrp.rec.utlnbr"
          > -->
          <el-form-item
            label="Previous Drawings under this L/C"
            prop="ledgrp.rec.utlnbr"
          >
            <c-input
              v-model="model.ledgrp.rec.utlnbr"
              placeholder="请输入No. of Existing and not Completely Processed  Document Sets"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      
      </c-col>
          <!-- ========================下半部分的右边======================= -->
      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <c-col :span="13">
            <el-form-item label="Document Amount" prop="bedgrp.cbs.max.cur">
              <c-input
                v-model="model.bedgrp.cbs.max.cur"
                maxlength="3"
                placeholder="请输入Currency"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
              <c-input
                v-model="model.bedgrp.cbs.max.amt"
                class="m-input-currency"
                placeholder="请输入Balance"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-col :span="13">
            <el-form-item label="Drawn Additional Amount" prop="bedgrp.cbs.opn2.cur">
              <c-select
                v-model="model.bedgrp.cbs.opn2.cur"
                style="width: 100%"
                placeholder="请选择Currency"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
              <c-input
                v-model="model.bedgrp.cbs.max2.amt"
                class="m-input-currency"
                placeholder="请输入Balance"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Presented by" prop="bedgrp.rec.docprbrol">
            <c-select
              v-model="model.bedgrp.rec.docprbrol"
              style="width: 100%"
              placeholder="请选择Presented by"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '',
              grp: 'bedgrp',
              rol: 'prb',
            }"
            :disabled="true"
            @onSeainf="onSeainf"
            @onAplpDet="onPrbpDet"
          >
          </c-ptap>
        </c-col>
      </c-col>
    </c-col>

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

501 502
    <!-- <c-col :span="12">
      <el-form-item label="Reference" prop="ledgrp.rec.ownref">
503
        <c-input
504 505 506
          v-model="model.ledgrp.rec.ownref"
          maxlength="16"
          placeholder="请输入Reference"
507 508 509 510 511
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
512 513 514 515 516 517
      <el-form-item label="Name" prop="ledgrp.rec.nam">
        <c-input
          v-model="model.ledgrp.rec.nam"
          maxlength="40"
          placeholder="请输入Name"
        ></c-input>
518
      </el-form-item>
519
    </c-col> 
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 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

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

    <c-col :span="12">
      <el-form-item
        label="External Key of Address"
        prop="bedgrp.prb.pts.extkey"
      >
        <c-input
          v-model="model.bedgrp.prb.pts.extkey"
          maxlength="16"
          placeholder="请输入External Key of Address"
        ></c-input>
      </el-form-item>
    </c-col>

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

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onPrbpDet">
        Details
      </c-button>
    </c-col>

    <c-col :span="12">
      <el-form-item label="名称" prop="bedgrp.prb.namelc">
        <c-input
          type="textarea"
          v-model="model.bedgrp.prb.namelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入名称"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Address Block" prop="bedgrp.prb.pts.adrblk">
        <c-input
          type="textarea"
          v-model="model.bedgrp.prb.pts.adrblk"
          maxlength="35"
          show-word-limit
          placeholder="请输入Address Block"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Chinese address" prop="bedgrp.prb.dbfadrblkcn">
        <c-input
          type="textarea"
          v-model="model.bedgrp.prb.dbfadrblkcn"
          maxlength="35"
          show-word-limit
          placeholder="请输入Chinese address"
        ></c-input>
      </el-form-item>
    </c-col>

597

598 599 600 601 602 603 604 605 606 607 608 609

    <c-col :span="12">
      <el-form-item label="地址" prop="bedgrp.prb.adrelc">
        <c-input
          type="textarea"
          v-model="model.bedgrp.prb.adrelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入地址"
        ></c-input>
      </el-form-item>
    </c-col>
610
-->
611 612 613 614 615 616 617 618

  </div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdrw/Event'
619 620
import Utils from '~/utils'
import Ptap from '~/views/Public/Ptap'
621 622

export default {
623
  components: { 'c-ptap': Ptap },
624 625 626 627 628 629
  inject: ['root'],
  props: ['model', 'codes'],
  mixins: [commonProcess],
  data() {
    return {}
  },
630 631 632 633 634 635 636 637 638 639 640 641 642 643 644
  methods: {
    ...Event,
    nom1CurEvent() {
      this.executeDefault('ledgrp.cbs.nom1.cur').then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data)
        }
      })
    },
    apprulChange(v) {
      if (v !== 'OTHR') {
        this.model.ledgrp.rec.apprultxt = ''
      }
    },
  },
645 646 647 648
  created: function () {},
}
</script>
<style></style>