Ovwp.vue 32 KB
Newer Older
孟冬雪 committed
1
<template>
2
  <div class="eibs-tab">
Wuyuqiu committed
3 4 5 6 7 8 9 10 11 12 13
    <!-- 顶部 -->
    <c-col :span="24">
      <c-col :span="11">
        <el-form-item
          label="Reference of L/C"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.rec.ownref"
14
              maxlength="8"
Wuyuqiu committed
15 16 17 18 19
              placeholder="Please input Reference"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
Wuyuqiu committed
20
                style="margin-left: 10px; padding: 0 12px"
Wuyuqiu committed
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
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <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="11" :offset="1">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="Please input Name"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="11">
        <el-form-item
          label="Reference"
          prop="ltdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.rec.ownref"
              maxlength="16"
              placeholder="Please input Reference"
              style="width: 95%"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <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>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
86
                :disabled="
Wuyuqiu committed
87 88 89 90 91
                  !model.ltdgrp.rec.ownref && model.ltdgrp.be1.pta.inr
                    ? false
                    : true
                "
                @click="onLttpButgetref"
Wuyuqiu committed
92 93 94 95 96 97 98 99 100 101 102 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 133 134 135 136 137 138 139 140
              >
                Get
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="ltdgrp.rec.nam">
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
            placeholder="Please input Name"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="Form of Transfer" prop="ltdgrp.rec.lcrtyp">
          <c-select
            v-model="model.ltdgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="Please select Form of L/C"
            :code="codes.lcrtyp1"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Responsible User"
          prop="lttp.usr.extkey"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.lttp.usr.extkey"
              maxlength="8"
              placeholder="Please input Reference"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
Wuyuqiu committed
141
                style="margin-left: 10px; padding: 0 12px"
Wuyuqiu committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <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="24">
        <c-col :span="12">
          <el-form-item label="Nominal Amount" prop="ltdgrp.cbs.nom1.cur">
            <c-select
              v-model="model.ltdgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="Please select cur"
              @keyup.enter.native="nom1CurEvent"
              :code="codes.curtxt1"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="7">
Wuyuqiu committed
176
          <el-form-item label="" label-width="20px" prop="ltdgrp.cbs.nom1.amt">
Wuyuqiu committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
            <c-input-currency
              v-model="model.ltdgrp.cbs.nom1.amt"
              style="text-align: left; width: 100%"
              placeholder="Please input Nominal Amount"
              @keyup.enter.native="
                defaultFunction(
                  'ltdgrp.cbs.nom1.amt',
                  model.ltdgrp.cbs.nom1.amt
                )
              "
            ></c-input-currency>
          </el-form-item>
        </c-col>

        <c-col :span="5">
          <c-checkbox
            v-model="model.lttp.aamp.aammod.addamtflg"
            style="margin-left: 10px"
Wuyuqiu committed
195 196
            :disabled="model.ltdgrp.cbs.max2.amt == ''"
            @change="openAddDetails"
Wuyuqiu committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
            >Add. Amount</c-checkbox
          >
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="15">
          <el-form-item label="Amount Tolerance +/-" prop="ltdgrp.rec.nomtop">
            <c-input
              v-model.number="model.ltdgrp.rec.nomtop"
              maxlength="2"
              style="width: 100%"
              placeholder="Please input Amount Tolerance +/-"
              class="m-input-currency"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="" label-width="20px" prop="ltdgrp.rec.nomton">
            <c-input
              v-model.number="model.ltdgrp.rec.nomton"
              maxlength="2"
              style="width: 100%"
              placeholder="Please input Amount Tolerance - Negative"
              class="m-input-currency"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Amount Specification" prop="ltdgrp.rec.nomspc">
          <c-select
            v-model="model.ltdgrp.rec.nomspc"
            style="width: 100%"
            placeholder="Please select Amount Specification"
            :code="codes.nomspc"
            :disabled="true"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Maximum Amount" prop="ltdgrp.cbs.max.cur">
            <c-select
              v-model="model.ltdgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="Please select cur"
              disabled
              :code="codes.curtxt1"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="" label-width="20px" prop="ltdgrp.cbs.max.amt">
            <c-input
              v-model="model.ltdgrp.cbs.max.amt"
              placeholder="Please input Maximum Amount"
              class="m-input-currency"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

Wuyuqiu committed
266 267 268 269 270 271 272 273 274 275
      <c-col :span="24">
        <el-form-item label="Issued on" prop="ltdgrp.rec.opndat">
          <c-date-picker
            type="date"
            v-model="model.ltdgrp.rec.opndat"
            style="width: 100%"
            placeholder="Please select Issued on"
          ></c-date-picker>
        </el-form-item>
      </c-col>
Wuyuqiu committed
276

Wuyuqiu committed
277 278 279 280 281 282 283 284 285 286
      <c-col :span="24">
        <el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
          <c-date-picker
            type="date"
            v-model="model.ltdgrp.rec.shpdat"
            style="width: 100%"
            placeholder="Please select Shipment Date"
          ></c-date-picker>
        </el-form-item>
      </c-col>
Wuyuqiu committed
287 288 289 290 291 292 293 294 295 296 297 298 299 300

      <c-col :span="24">
        <el-form-item label="Expiring on" prop="ltdgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.ltdgrp.rec.expdat"
            style="width: 100%"
            placeholder="Please select Expiring on"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="in" prop="ltdgrp.rec.expplc">
Wuyuqiu committed
301
          <c-select
Wuyuqiu committed
302
            v-model="model.ltdgrp.rec.expplc"
Wuyuqiu committed
303
            style="width: 100%"
Wuyuqiu committed
304
            placeholder="Please input in"
Wuyuqiu committed
305
            :code="codes.expplc"
Wuyuqiu committed
306
          ></c-select>
Wuyuqiu 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
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Partial Shipment" prop="ltdgrp.rec.shppar">
          <c-select
            v-model="model.ltdgrp.rec.shppar"
            style="width: 100%"
            placeholder="Please select Partial Shipment"
            :code="codes.shptrss18"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Transshipment" prop="ltdgrp.rec.shptrss18">
          <c-select
            v-model="model.ltdgrp.rec.shptrss18"
            style="width: 100%"
            placeholder="Please select Transshipment"
            :code="codes.shptrss18"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Applicable Rules" prop="ltdgrp.rec.apprul">
          <c-select
            v-model="model.ltdgrp.rec.apprul"
            style="width: 100%"
            placeholder="Please select Applicable Rules"
            :code="codes.apprul1"
            @change="apprulChange"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Other Applicable Rules"
          prop="ltdgrp.rec.apprultxt"
        >
          <c-input
            v-model="model.ltdgrp.rec.apprultxt"
            maxlength="35"
            placeholder="Please input Other Applicable Rules"
            :disabled="model.ltdgrp.rec.apprul === 'OTHR' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
Wuyuqiu committed
362
        <el-form-item label="Confirmation Instruct." prop="ltdgrp.rec.cnfins">
Wuyuqiu committed
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
          <c-select
            v-model="model.ltdgrp.rec.cnfins"
            style="width: 100%"
            placeholder="Please select Confirmation Instruct. Received"
            :code="codes.cnfflg1"
          >
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-ptap
        :model="model"
        :argadr="{
Wuyuqiu committed
379
          title: '1st Beneficiary',
Wuyuqiu committed
380 381 382 383 384 385
          grp: 'ltdgrp',
          rol: 'be1',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
Wuyuqiu committed
386
        :onlySearch="true"
Wuyuqiu committed
387
        :disabledExtkey="true"
Wuyuqiu committed
388 389
      >
      </c-ptap>
Wuyuqiu committed
390
      <c-col :span="24">
Wuyuqiu committed
391
        <el-form-item label="" prop="ltdgrp.be1.pts.nam">
Wuyuqiu committed
392 393 394 395 396 397 398 399
          <c-input
            v-model="model.ltdgrp.be1.pts.nam"
            maxlength="40"
            placeholder="Please input nam"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
Wuyuqiu committed
400 401 402 403

      <c-ptap
        :model="model"
        :argadr="{
Wuyuqiu committed
404
          title: 'Advising Bank',
Wuyuqiu committed
405 406 407 408 409 410 411 412 413 414 415 416
          grp: 'ltdgrp',
          rol: 'adt',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onIsspDet"
      >
      </c-ptap>

      <c-ptap
        :model="model"
        :argadr="{
Wuyuqiu committed
417
          title: '2nd Beneficiary',
Wuyuqiu committed
418 419 420 421 422 423 424 425 426 427 428
          grp: 'ltdgrp',
          rol: 'be2',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onAplpDet"
      >
      </c-ptap>
    </c-col>

    <!-- <c-col :span="12">
429 430 431
        <c-form-item label="Drag  Drop Sender" prop="lttp.ledget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.ledget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
孟冬雪 committed
432
       </c-col>
Wuyuqiu committed
433
                 SF000216 : Reference of L/C
434
                  
孟冬雪 committed
435
       <c-col :span="12">
436 437 438
        <c-form-item :label="$t('letp0.SF000158')" prop="ledgrp.rec.ownref">
            <c-input  v-model="model.ledgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('letp0.SF000158')"></c-input>
        </c-form-item>
孟冬雪 committed
439 440 441
       </c-col>
                  
       <c-col :span="12">
442 443 444
        <c-form-item :label="$t('lttp.SF000216')" prop="lttp.ledget.sdamod.seainf">
            <c-input  v-model="model.lttp.ledget.sdamod.seainf"  :placeholder="$t('other.please_enter')+$t('lttp.SF000216')"></c-input>
        </c-form-item>
孟冬雪 committed
445
       </c-col>
Wuyuqiu committed
446
                 SF000217 : Name
447 448 449 450 451
                  
       <c-col :span="12">
        <c-form-item :label="$t('letp0.SF000168')" prop="ledgrp.rec.nam">
            <c-input  v-model="model.ledgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('letp0.SF000168')"></c-input>
        </c-form-item>
孟冬雪 committed
452
       </c-col>
453 454 455 456 457 458
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.recget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.recget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
Wuyuqiu committed
459
                 SF000191 : Reference
460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000191')" prop="ltdgrp.rec.ownref">
            <c-input  v-model="model.ltdgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000191')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="lttp.recget.sdamod.seainf">
            <c-input  v-model="model.lttp.recget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onLttpButgetref">
             {{$t('lttp.CG000370')}}
        </c-button>
       </c-col>
Wuyuqiu committed
478
                 SF000195 : Name
479 480 481 482 483 484
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000195')" prop="ltdgrp.rec.nam">
            <c-input  v-model="model.ltdgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('lttp.SF000195')"></c-input>
        </c-form-item>
       </c-col>
Wuyuqiu committed
485
                 SF000192 : Form of Transfer
486 487 488 489
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000192')" prop="ltdgrp.rec.lcrtyp">
            <c-select v-model="model.ltdgrp.rec.lcrtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000192')">
孟冬雪 committed
490 491
              </c-select>
        </el-form-item>
492
       </c-col>
Wuyuqiu committed
493
                 SF000215 : 1st Beneficiary   Ref.
494
                  
孟冬雪 committed
495
       <c-col :span="12">
496 497 498 499
        <c-form-item :label="$t('lttp.SF000215')" prop="ltdgrp.be1.pts.ref">
            <c-input  v-model="model.ltdgrp.be1.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000215')"></c-input>
        </c-form-item>
       </c-col>
孟冬雪 committed
500 501
                  
       <c-col :span="12">
502 503 504
        <c-form-item label="Drag  Drop Sender" prop="lttp.be1p.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.be1p.ptsget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
孟冬雪 committed
505
       </c-col>
Wuyuqiu committed
506
                 SF000213 : Responsible User
507
                  
孟冬雪 committed
508
       <c-col :span="12">
509 510 511
        <c-form-item :label="$t('lttp.SF000213')" prop="lttp.usr.extkey">
            <c-input  v-model="model.lttp.usr.extkey" maxlength="8"  :placeholder="$t('other.please_enter')+$t('lttp.SF000213')"></c-input>
        </c-form-item>
孟冬雪 committed
512 513 514
       </c-col>
                  
       <c-col :span="12">
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
        <c-form-item label="" prop="lttp.usrget.sdamod.seainf">
            <c-input  v-model="model.lttp.usrget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="External Key of Address" prop="ltdgrp.be1.pts.extkey">
            <c-input  v-model="model.ltdgrp.be1.pts.extkey" maxlength="16"  :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="lttp.be1p.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.be1p.ptsget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
孟冬雪 committed
530 531 532 533
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onBe1pDet">
534
             {{$t('ptsp.CF000082')}}
孟冬雪 committed
535 536
        </c-button>
       </c-col>
Wuyuqiu committed
537
                 SF000196 : Nominal Amount
538
                  
孟冬雪 committed
539
       <c-col :span="12">
540 541 542
        <el-form-item :label="$t('lttp.SF000196')" prop="ltdgrp.cbs.nom1.cur">
            <c-select v-model="model.ltdgrp.cbs.nom1.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000196')">
              </c-select>
孟冬雪 committed
543
        </el-form-item>
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560
       </c-col>
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000196')" prop="ltdgrp.cbs.nom1.amt">
            <c-input  v-model="model.ltdgrp.cbs.nom1.amt"  :placeholder="$t('other.please_enter')+$t('lttp.SF000196')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.lttp.aamp.aammod.addamtflg">{{$t('lttp.CF000325')}}</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="ltdgrp.be1.pts.nam">
            <c-input  v-model="model.ltdgrp.be1.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
Wuyuqiu committed
561
                 SF000197 : Amount Tolerance +/-
562 563 564 565 566 567 568 569 570 571 572 573
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000197')" prop="ltdgrp.rec.nomtop">
            <c-input  v-model="model.ltdgrp.rec.nomtop"  :placeholder="$t('other.please_enter')+$t('lttp.SF000197')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Amount Tolerance - Negative" prop="ltdgrp.rec.nomton">
            <c-input  v-model="model.ltdgrp.rec.nomton"  :placeholder="$t('other.please_enter')+'Amount Tolerance - Negative'"></c-input>
        </c-form-item>
       </c-col>
Wuyuqiu committed
574
                 SF000193 : Advising Bank     Ref.
575
                  
孟冬雪 committed
576
       <c-col :span="12">
577 578 579 580
        <c-form-item :label="$t('lttp.SF000193')" prop="ltdgrp.adt.pts.ref">
            <c-input  v-model="model.ltdgrp.adt.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000193')"></c-input>
        </c-form-item>
       </c-col>
Wuyuqiu committed
581
                 SF000198 : Amount Specification
582 583 584 585 586
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000198')" prop="ltdgrp.rec.nomspc">
            <c-select v-model="model.ltdgrp.rec.nomspc" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000198')">
              </c-select>
孟冬雪 committed
587 588 589
        </el-form-item>
       </c-col>
                  
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.adtp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.adtp.ptsget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="External Key of Address" prop="ltdgrp.adt.pts.extkey">
            <c-input  v-model="model.ltdgrp.adt.pts.extkey" maxlength="16"  :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="lttp.adtp.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.adtp.ptsget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
孟冬雪 committed
608 609
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onAdtpDet">
610
             {{$t('ptsp.CF000081')}}
孟冬雪 committed
611
        </c-button>
612
       </c-col>
Wuyuqiu committed
613
                 SF000199 : Maximum Amount
614
                  
孟冬雪 committed
615
       <c-col :span="12">
616 617
        <el-form-item :label="$t('lttp.SF000017')" prop="ltdgrp.cbs.max.cur">
            <c-select v-model="model.ltdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000017')">
孟冬雪 committed
618 619 620 621 622
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644
        <c-form-item :label="$t('lttp.SF000199')" prop="ltdgrp.cbs.max.amt">
            <c-input  v-model="model.ltdgrp.cbs.max.amt"  :placeholder="$t('other.please_enter')+$t('lttp.SF000199')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="名称" prop="ltdgrp.adt.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.adt.namelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'名称'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Address Block" prop="ltdgrp.adt.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.adt.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Chinese address" prop="ltdgrp.adt.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.adt.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
        </c-form-item>
        </c-col>
Wuyuqiu committed
645
                 SF000200 : Issued on
646 647 648 649
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000200')" prop="ltdgrp.rec.opndat">
            <c-date-picker type="date"  v-model="model.ltdgrp.rec.opndat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('lttp.SF000200')"></c-date-picker>
孟冬雪 committed
650
        </el-form-item>
651 652
       </c-col>
                  
孟冬雪 committed
653
       <c-col :span="12">
654 655 656 657
        <c-form-item label="地址" prop="ltdgrp.adt.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.adt.adrelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'地址'" ></c-input>
        </c-form-item>
        </c-col>
Wuyuqiu committed
658
                 SF000202 : Shipment Date
659 660 661 662
                  
       <c-col :span="12">
        <el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
            <c-date-picker type="date"  v-model="model.ltdgrp.rec.shpdat" style="width:100%"  :placeholder="$t('other.please_enter')+'Shipment Date'"></c-date-picker>
孟冬雪 committed
663
        </el-form-item>
664
       </c-col>
Wuyuqiu committed
665
                 SF000205 : Expiring on
666
                  
孟冬雪 committed
667
       <c-col :span="12">
668 669
        <el-form-item label="Date of Expiry" prop="ltdgrp.rec.expdat">
            <c-date-picker type="date"  v-model="model.ltdgrp.rec.expdat" style="width:100%"  :placeholder="$t('other.please_enter')+'Date of Expiry'"></c-date-picker>
孟冬雪 committed
670
        </el-form-item>
671
       </c-col>
Wuyuqiu committed
672
                 SF000194 : 2nd Beneficiary   Ref.
673 674 675 676 677 678
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000194')" prop="ltdgrp.be2.pts.ref">
            <c-input  v-model="model.ltdgrp.be2.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000194')"></c-input>
        </c-form-item>
       </c-col>
Wuyuqiu committed
679
                 SF000206 : in
680
                  
孟冬雪 committed
681
       <c-col :span="12">
682 683 684
        <el-form-item label="Place of Expiry" prop="ltdgrp.rec.expplc">
            <c-select v-model="model.ltdgrp.rec.expplc" style="width:100%" :placeholder="$t('other.please_enter')+'Place of Expiry'">
              </c-select>
孟冬雪 committed
685
        </el-form-item>
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.be2p.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.be2p.ptsget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="External Key of Address" prop="ltdgrp.be2.pts.extkey">
            <c-input  v-model="model.ltdgrp.be2.pts.extkey" maxlength="16"  :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="lttp.be2p.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.be2p.ptsget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
孟冬雪 committed
706 707
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onBe2pDet">
708
             {{$t('ptsp.CF000081')}}
孟冬雪 committed
709
        </c-button>
710
       </c-col>
Wuyuqiu committed
711
                 SF000207 : Partial Shipment
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
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000207')" prop="ltdgrp.rec.shppar">
            <c-select v-model="model.ltdgrp.rec.shppar" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000207')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000207')" prop="ltdgrp.rec.shppars18">
            <c-select v-model="model.ltdgrp.rec.shppars18" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000207')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="名称" prop="ltdgrp.be2.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.be2.namelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'名称'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Address Block" prop="ltdgrp.be2.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.be2.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Chinese address" prop="ltdgrp.be2.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.be2.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
        </c-form-item>
        </c-col>
Wuyuqiu committed
744
                 SF000209 : Transhipment
745
                  
孟冬雪 committed
746
       <c-col :span="12">
747 748
        <el-form-item :label="$t('lttp.SF000209')" prop="ltdgrp.rec.shptrs">
            <c-select v-model="model.ltdgrp.rec.shptrs" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000209')">
孟冬雪 committed
749 750
              </c-select>
        </el-form-item>
751 752
       </c-col>
                  
孟冬雪 committed
753
       <c-col :span="12">
754 755 756
        <el-form-item :label="$t('lttp.SF000209')" prop="ltdgrp.rec.shptrss18">
            <c-select v-model="model.ltdgrp.rec.shptrss18" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000209')">
              </c-select>
孟冬雪 committed
757
        </el-form-item>
758 759 760 761 762 763
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="地址" prop="ltdgrp.be2.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.be2.adrelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'地址'" ></c-input>
        </c-form-item>
孟冬雪 committed
764
        </c-col>
Wuyuqiu committed
765
                 SF000359 : Applicable Rules
孟冬雪 committed
766 767
                  
       <c-col :span="12">
768 769 770
        <el-form-item :label="$t('lttp.SF000359')" prop="ltdgrp.rec.apprul">
            <c-select v-model="model.ltdgrp.rec.apprul" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000359')">
              </c-select>
孟冬雪 committed
771
        </el-form-item>
772
       </c-col>
Wuyuqiu committed
773
                 SF000360 : Other Applicable Rules
774 775 776 777 778
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000360')" prop="ltdgrp.rec.apprultxt">
            <c-input type="textarea" v-model="model.ltdgrp.rec.apprultxt" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('lttp.SF000360')" ></c-input>
        </c-form-item>
孟冬雪 committed
779
        </c-col>
780 781 782 783
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.ltdgrp.rec.rmbflg">{{$t('lttp.CF000187')}}</c-checkbox>
       </c-col>
Wuyuqiu committed
784
                 S0000329 : Confirmation Instruct.
785
                  
孟冬雪 committed
786
       <c-col :span="12">
787 788
        <el-form-item :label="$t('lttp.S0000329')" prop="ltdgrp.rec.cnfins">
            <c-select v-model="model.ltdgrp.rec.cnfins" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.S0000329')">
孟冬雪 committed
789 790
              </c-select>
        </el-form-item>
Wuyuqiu committed
791
       </c-col> -->
792
  </div>
孟冬雪 committed
793 794
</template>
<script>
Wuyuqiu committed
795
import Api from "~/service/Api";
wangren committed
796
import commonProcess from "~/mixin/commonProcess";
Wuyuqiu committed
797 798 799 800
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttopn/Event";
import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
孟冬雪 committed
801 802

export default {
Wuyuqiu committed
803
  components: { "c-ptap": Ptap },
Wuyuqiu committed
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
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
    // resflg: {
    //   get() {
    //     return this.model.ltdgrp.rec.resflg != "";
    //   },
    //   set(val) {
    //     this.model.ltdgrp.rec.resflg = val ? "X" : "";
    //   },
    // },
  },
  methods: {
    ...Event,
    nom1CurEvent() {
      this.executeDefault("ltdgrp.cbs.nom1.cur").then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data);
829
        }
Wuyuqiu committed
830
      });
831
    },
Wuyuqiu committed
832 833 834 835 836
    apprulChange(v) {
      if (v !== "OTHR") {
        this.model.ltdgrp.rec.apprultxt = "";
      }
    },
Wuyuqiu committed
837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865
    openAddDetails(val) {
      if (
        val === "" &&
        !(
          this.model.ltdgrp.cbs.max2.amt == "0" &&
          this.model.ltdgrp.cbs.opn2.amt == "0" &&
          this.model.ltdgrp.blk.addamtcov === ""
        )
      ) {
        this.$confirm(
          "Do you really want to delete the additional amount of this contract?",
          "提示",
          {
            confirmButtonText: "Yes",
            cancelButtonText: "No",
            type: "warning",
            showClose: false,
          }
        )
          .then(() => {
            //yes的执行在这里写
            this.executeRule("lttp.aamp.aammod.addamtflg").then((res) => {
              if (res.respCode == SUCCESS) {
                this.model.ltdgrp.cbs.max2.amt = "0";
                this.model.ltdgrp.cbs.opn2.amt == "0"
                this.model.ltdgrp.blk.addamtcov = "";
                this.updateModel(res.data);
              }
            });
866 867 868 869 870 871 872 873 874 875
            // this.model.ledgrp.rec.revtyp ='';
            // this.model.ledgrp.rec.revtimes = '0';
            // this.model.ledgrp.rec.revdat ='';
            // this.model.ledgrp.rec.revcum ='';
            // this.model.ledgrp.blk.revcls ='';
            // this.model.ledgrp.blk.revnotes ='';
            // this.$message({
            //       type: 'success',
            //       message: '删除成功!'
            // });
Wuyuqiu committed
876 877 878 879 880 881 882 883 884 885 886
          })
          .catch(() => {
            //No的功能在这里写
            this.model.lttp.aamp.aammod.addamtflg = "X";
            // this.$message({
            //   type: 'info',
            //   message: '已取消'
            // });
          });
      }
    },
Wuyuqiu committed
887 888 889
  },
  created: function () {},
};
孟冬雪 committed
890 891
</script>
<style>
Wuyuqiu committed
892 893 894 895 896 897 898 899 900
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
  padding-bottom: 2px;
}
.marginLable {
  padding-left: 160px;
}
孟冬雪 committed
901
</style>