Drv.vue 21.6 KB
Newer Older
jinqian committed
1
<template>
2 3
    <div class="eibs-tab">
        <!-- ============================顶部================================ -->
jinqian committed
4
    <c-col :span="24">
5 6 7 8 9
    <!-- Reference参考号 Export L/C Ref. -->
        <c-col :span="12">
          <el-form-item
            label="Export L/C Ref."
            prop="ledgrp.rec.ownref"
jinqian committed
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
            <c-fullbox>
              <c-input
                v-model="model.ledgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入Reference"
                style="width: 95%"
                :disabled="true"
              >
              </c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 0 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>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
<!--  Open Amt L/C 信用证余额-->
      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Open Amt.L/C" prop="ledgrp.cbs.opn1.cur">
              <c-select
                v-model="model.ledgrp.cbs.opn1.cur"
                maxlength="3"
                placeholder="请选择Currency"
                :code="codes.curtxt"
                disabled
              ></c-select>
            </el-form-item>
          </c-col>

          <c-col :span="12">
            <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
              <c-input
                v-model="model.ledgrp.cbs.opn1.amt"
                placeholder="请输入Balance"
                class="m-input-currency"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
jinqian committed
66 67
      </c-col>
    </c-col>
68

jinqian committed
69
    <c-col :span="24">
70 71 72 73 74
      <c-col :span="12">
      <!-- Bill Set Reference 单据参考号-->
        <el-form-item label="Bill Set Reference" prop="bedgrp.rec.ownref">
          <c-fullbox>
            <c-input
jinqian committed
75 76 77
            v-model="model.bedgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入单据参考号"
78 79
            style="width: 95%"
            disabled
jinqian committed
80
          ></c-input>
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
          <template slot="footer">
            <c-button
              style="margin: 0 0 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>
          </template>
          </c-fullbox>
jinqian committed
99 100
        </el-form-item>
      </c-col>
101 102 103
      <!-- Name   Externally Displayed Name to Identify the Contract-->
      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="bedgrp.rec.nam">
jinqian committed
104
          <c-input
105
            text-align="middle"
jinqian committed
106 107
            v-model="model.bedgrp.rec.nam"
            maxlength="40"
108 109 110 111
            placeholder="请输入Externally Displayed Name to Identify the Contract"
            disabled
          >
          </c-input>
jinqian committed
112 113 114 115
        </el-form-item>
      </c-col>
    </c-col>

116
      <!-- ============================第三行开始,金额日期 =========================-->
jinqian committed
117
    <c-col :span="24">
118
        <!-- 第三行开始-金额日期--左边- -->
jinqian committed
119
      <c-col :span="12">
120 121 122 123
          <!-- Document Amount -->
        <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Document Amount" prop="bedgrp.cbs.max.cur">
jinqian committed
124 125 126 127
            <c-select
              v-model="model.bedgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="请选择币种"
128 129 130
              @keyup.enter.native="maxCurEvent"
              :code="codes.curtxt"
              disabled
jinqian committed
131 132 133 134 135
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="8">
136
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
jinqian committed
137 138 139
            <c-input-currency
              v-model="model.bedgrp.cbs.max.amt"
              style="text-align: left; width: 100%"
140 141 142 143 144 145 146 147 148
              class="m-input-currency"
              placeholder="请输入Balance"
              @keyup.enter.native="
                defaultFunction(
                  'bedgrp.cbs.max.amt',
                  model.bedgrp.cbs.max.amt
                )
              "
              disabled
jinqian committed
149 150 151
            ></c-input-currency>
          </el-form-item>
        </c-col>
152 153 154 155 156 157 158
        <c-col :span="4">
          <c-checkbox
            v-model="model.betp.adaflg"
            style="margin-left: 10px"
            disabled
            >Add. Amount</c-checkbox
          >
jinqian committed
159
        </c-col>
160
      </c-col>
jinqian committed
161

162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
                <!-- Open Amount  单据余额-->
      <c-col :span="24">
        <c-col :span="12">
        <el-form-item label="Open Amount" prop="bedgrp.cbs.opn1.cur">
          <c-select
            v-model="model.bedgrp.cbs.opn1.cur"
            maxlength="3"
            placeholder="请输入Open Amount"
            style="width: 100%"
            disabled
            :code="codes.curtxt"
          ></c-select>
        </el-form-item>
      </c-col>
      <c-col :span="8">
        <el-form-item label="" label-width="5px" prop="bedgrp.cbs.opn1.amt">
          <c-input
            v-model="model.bedgrp.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="4">
      </c-col>
      </c-col>
jinqian committed
190

191 192 193
          <!-- Document Type -->
        <c-col :span="24">
          <el-form-item label="Document Type" prop="bedgrp.rec.doctypcod">
jinqian committed
194 195 196
            <c-select
              v-model="model.bedgrp.rec.doctypcod"
              style="width: 100%"
197 198 199
              placeholder="请选择Document Type"
              :code="codes.doctypcod1"
              disabled
jinqian committed
200 201 202 203
            >
            </c-select>
          </el-form-item>
        </c-col>
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
        <c-col :span="24">
            <!-- Maturity Date -->
          <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"
                disabled
              ></c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="12"></c-col>
        </c-col>

        <c-col :span="24">
          <!-- Received on -->
          <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%"
                placeholder="请选择Received on"
                value-format="yyyy-MM-dd"
                :disabled="model.bedgrp.rec.doctypcod=='E'"
              ></c-date-picker>
            </el-form-item>
          </c-col>
              <!-- Presented on 到单日期 -->
          <c-col :span="12">
            <el-form-item label="Presented on" prop="bedgrp.rec.predat">
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.predat"
                style="width: 100%"
                placeholder="请选择到单日期"
                value-format="yyyy-MM-dd"
                disabled
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

            <!-- Document Status单据状态 -->
        <c-col :span="24">
          <el-form-item label="Document Status" prop="bedgrp.rec.docsta">
            <c-select
jinqian committed
254 255
              v-model="model.bedgrp.rec.docsta"
              maxlength="40"
256
              style="width: 100%"
jinqian committed
257
              placeholder="请输入单据状态"
258 259 260
              :code="codes.docsta"
              disabled
            ></c-select>
jinqian committed
261 262
          </el-form-item>
        </c-col>
263

jinqian committed
264 265
      </c-col>

266 267 268 269 270
        <!-- ========================第三行开始金额日期的右边Presented by======================= -->
      <c-col :span="11" :offset="1">
          <!--Presented by 交单人 -->
        <c-col :span="24">
          <el-form-item label="Presented by" prop="bedgrp.prb.pts.ref">
jinqian committed
271 272 273 274
            <c-input
              v-model="model.bedgrp.prb.pts.ref"
              maxlength="16"
              placeholder="请输入交单人"
275
              disabled
jinqian committed
276 277 278 279
            ></c-input>
          </el-form-item>
        </c-col>

280 281
        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.prb.pts.nam">
jinqian committed
282 283 284
            <c-input
              v-model="model.bedgrp.prb.pts.nam"
              maxlength="40"
285 286
              placeholder="请输入Name of Party"
              disabled
jinqian committed
287 288 289 290
            ></c-input>
          </el-form-item>
        </c-col>

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
          <!-- 开证行 Issuing Bank Ref. -->
          <c-col :span="24">
            <el-form-item label="Issuing Bank Ref." prop="bedgrp.iss.pts.ref">
              <c-input
                v-model="model.bedgrp.iss.pts.ref"
                maxlength="16"
                placeholder="请输入开证行"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="" prop="bedgrp.iss.pts.nam">
              <c-input
                v-model="model.bedgrp.iss.pts.nam"
                maxlength="40"
                placeholder="请输入Name of Party"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>

                    <!--Applicant Ref.  申请人-->
          <c-col :span="24">
            <el-form-item label="Applicant Ref." prop="bedgrp.apl.pts.ref">
              <c-input
                v-model="model.bedgrp.apl.pts.ref"
                maxlength="16"
                placeholder="请输入申请人"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="" prop="bedgrp.apl.pts.nam">
              <c-input
                v-model="model.bedgrp.apl.pts.nam"
                maxlength="40"
                placeholder="请输入Name of Party"
              ></c-input>
            </el-form-item>
          </c-col>
      
jinqian committed
334 335 336
      </c-col>
    </c-col>

337
    <!-- =================================上下两部分 分割线 ============================-->
jinqian committed
338
    <c-col :span="24">
339 340 341 342
      <el-form-item style="margin-left: -150px">
        <el-divider />
      </el-form-item>
    </c-col>
jinqian committed
343

344 345 346 347 348 349 350
      <!-- =========================================下半部分=============================== -->
    <c-col :span="24">
              <!-- ===============================下半部分-左边========================== -->
      <c-col :span="12">
              <!-- Document Type -->
        <c-col :span="24">
          <el-form-item label="Document Type" prop="bedgrp.rec.doctypcod">
jinqian committed
351
            <c-select
352
              v-model="model.bedgrp.rec.doctypcod"
jinqian committed
353
              style="width: 100%"
354 355 356
              placeholder="请选择Document Type"
              :code="codes.doctypcod1"
              disabled
jinqian committed
357 358 359 360 361
            >
            </c-select>
          </el-form-item>
        </c-col>

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
          <!--下半部分的 Document Amount -->
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Document Amount" prop="bedgrp.cbs.max.cur">
              <c-select
                v-model="model.bedgrp.cbs.max.cur"
                maxlength="3"
                placeholder="请输入币种"
                style="width: 100%"
                @keyup.enter.native="maxCurEvent"
                :code="codes.curtxt"
                disabled
              ></c-select>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
              <c-input-currency
                v-model="model.bedgrp.cbs.max.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="请输入Balance"
                @keyup.enter.native="
                  defaultFunction(
                    'bedgrp.cbs.max.amt',
                    model.bedgrp.cbs.max.amt
                  )
                "
              ></c-input-currency>
            </el-form-item>
          </c-col>
        </c-col>

    <!-- <c-col :span="12">
      <span v-text="model.oridoclab" data-path=".oridoclab"> </span>
    </c-col>
jinqian committed
398

399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
    <c-col :span="12">
      <el-form-item label="Balance" prop="oldbedgrp.cbs.max.amt">
        <c-input
          v-model="model.oldbedgrp.cbs.max.amt"
          placeholder="请输入Balance"
        ></c-input>
      </el-form-item>
    </c-col> -->
    <!-- <c-col :span="24" v-show="model.oldbedgrp.cbs.max.amt!= model.bedgrp.cbs.max.amt"> -->
      <c-col :span="24">
        <c-col :span="12">
          <span v-text="model.oridoclab" data-path=".oridoclab"
            class="span_oridoclab"
            style="width: 100%;"    
          > </span>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="oldbedgrp.cbs.max.amt">
jinqian committed
417
            <c-input
418
              v-model="model.oldbedgrp.cbs.max.amt"
jinqian committed
419
              style="width: 100%"
420 421 422 423 424
              class="m-input-currency"
              placeholder="请输入Balance"
              disabled
              v-show="model.oldbedgrp.cbs.max.amt!= model.bedgrp.cbs.max.amt"
            ></c-input>
jinqian committed
425 426
          </el-form-item>
        </c-col>
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 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
    </c-col>
            <!-- Drawn Add.Amount附加金额 -->
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Drawn Add.Amount" prop="bedgrp.cbs.opn2.cur">
              <c-select
                v-model="model.bedgrp.cbs.opn2.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.curtxt"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
              <c-input
                v-model="model.bedgrp.cbs.max2.amt"
                placeholder="请输入附加金额"
                class="m-input-currency"
                :disabled="model.bedgrp.cbs.opn2.amt==0"
              ></c-input>
              <!-- :disabled="model.betp.adaflg==''" 
              :disabled="model.bedgrp.cbs.opn2.amt==0"-->
            </el-form-item>
          </c-col>
        </c-col>

        <!-- <c-col :span="24" v-show="model.bedgrp.cbs.max2.amt!=model.oldbedgrp.cbs.max2.amt"> -->
        <c-col :span="24">
        <!-- =====================================当附加金额没变时隐藏====================================================== -->
          <c-col :span="12">
            <span v-text="model.oriaddlab" data-path=".oriaddlab"
              class="span_oridoclab"
              style="width: 100%;"
            > </span>
          </c-col>
          <c-col :span="12">
            <el-form-item label="" label-width="5px" prop="oldbedgrp.cbs.max2.amt">
              <c-input
                v-model="model.oldbedgrp.cbs.max2.amt"
                placeholder="请输入Balance"
                class="m-input-currency"
                style="width: 100%"
                disabled
                v-show="model.bedgrp.cbs.max2.amt!=model.oldbedgrp.cbs.max2.amt"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

            <!-- Received on -->
        <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%"
                placeholder="请选择Received on"
                value-format="yyyy-MM-dd"
                :disabled="model.bedgrp.rec.doctypcod=='E'"
              ></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%"
                placeholder="请选择Order Date"
                value-format="yyyy-MM-dd"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
              <!-- Maturity Date -->
          <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"
                :disabled="model.bedgrp.blk.matper!=''||model.bedgrp.rec.doctypcod=='P'"
              ></c-date-picker>
            </el-form-item>
          </c-col>
          <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"
                :disabled="model.bedgrp.rec.doctypcod=='E'"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

                  <!-- Maturity Period -->
        <c-col :span="24">
          <el-form-item label="Maturity Period" prop="bedgrp.blk.matper">
jinqian committed
537 538 539 540 541
            <c-input
              type="textarea"
              v-model="model.bedgrp.blk.matper"
              maxlength="65"
              show-word-limit
542 543
              placeholder="请输入Maturity Period"
              :disabled="model.bedgrp.rec.matdat!=''||model.bedgrp.rec.doctypcod=='P'"
jinqian committed
544 545 546 547
            ></c-input>
          </el-form-item>
        </c-col>

548 549 550 551 552 553 554 555 556 557 558 559 560
          <!-- Enter Documents, Discrepancies and Instructions -->
        <c-col :span="18" :offset="6">
          <c-checkbox v-model="model.bedgrp.rec.dscinsflg"
          disabled
            >Enter Documents, Discrepancies and Instructions</c-checkbox
          >
        </c-col>

        <c-col :span="24">
          <el-form-item
            label="Previous Drawings under this L/C"
            prop="ledgrp.rec.utlnbr"
          >
jinqian committed
561
            <c-input
562
              v-model.number="model.ledgrp.rec.utlnbr"
563 564
              placeholder="请输入No. of Existing and not Completely Processed  Document Sets"
              disabled
jinqian committed
565 566 567 568 569
            ></c-input>
          </el-form-item>
        </c-col>

      </c-col>
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
      
              <!-- ===============================下半部分-右边========================== -->
      <c-col :span="11" :offset="1">
              <!-- Payer -->
        <c-col :span="24">
          <el-form-item label="Payer" prop="bedgrp.rec.payrol">
            <c-select
              v-model="model.bedgrp.rec.payrol"
              style="width: 100%"
              placeholder="请选择Payer"
              :code="codes.rolall"
              @change="eventFunction(
                    'bedgrp.rec.payrol'
                  )"
            >
            </c-select>
          </el-form-item>
        </c-col>
jinqian committed
588

589 590
        <c-col :span="24">
          <c-ptap1
jinqian committed
591 592
            :model="model"
            :argadr="{
593
              title: '',
jinqian committed
594 595 596 597
              grp: 'bedgrp',
              rol: 'oth',
            }"
            @onSeainf="onSeainf"
598 599
            @onAplpDet="onOthpDet"
            :disabled1="model.bedgrp.rec.payrol!='OTH'"
jinqian committed
600
          >
601
          </c-ptap1>
jinqian committed
602 603
        </c-col>

604 605 606 607 608 609 610 611 612 613 614 615 616 617 618
            <!-- Presented by -->
        <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"
              :code="codes.docprbrol0"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap1
jinqian committed
619 620
            :model="model"
            :argadr="{
621
              title: '',
jinqian committed
622 623 624 625
              grp: 'bedgrp',
              rol: 'prb',
            }"
            @onSeainf="onSeainf"
626 627
            @onAplpDet="onPrbpDet"
            :disabled1="model.bedgrp.rec.docprbrol=='BEN'"
jinqian committed
628
          >
629
          </c-ptap1>
jinqian committed
630
        </c-col>
631

jinqian committed
632
      </c-col>
633

jinqian committed
634
    </c-col>
635
  </div>
jinqian committed
636 637 638
</template>
<script>
import Api from "~/service/Api";
639
import commonProcess from "~/mixin/commonProcess";
jinqian committed
640 641
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betdrv/Event";
642 643
import Utils from '~/utils'
import Ptap1 from "~/views/Public/Ptap1";
jinqian committed
644 645

export default {
646
  components: { "c-ptap1": Ptap1 },
jinqian committed
647 648
  inject: ["root"],
  props: ["model", "codes"],
649
  mixins: [commonProcess],
jinqian committed
650 651 652
  data() {
    return {};
  },
653 654 655 656 657 658 659 660 661 662 663
  methods: {
    ...Event,
    onSeainf(){},
    maxCurEvent() {
      this.executeDefault('bedgrp.cbs.max.cur').then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data)
        }
      })
    },
  },
jinqian committed
664 665 666 667
  created: function () {},
};
</script>
<style>
668 669 670 671 672 673 674 675 676
.span_oridoclab {
  margin-right: 30px;
  height: 24px;
  color: #606266;
  line-height: 24px;
  font-size: 12px;
  float: right; 
  text-align: right;
}
jinqian committed
677
</style>