Utlp1.vue 15.8 KB
Newer Older
fanyanyan committed
1 2
<template>
  <div class="eibs-tab">
3 4 5
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
Wuyuqiu committed
6 7 8 9 10 11
        <el-form-item
          label="L/C Reference"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
12 13
            <c-input
              v-model="model.ledgrp.rec.ownref"
Wuyuqiu committed
14 15 16
              maxlength="8"
              placeholder="Please input L/C Reference"
              :disabled="true"
fanyanyan committed
17
            ></c-input>
Wuyuqiu committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
            <template slot="footer">
              <c-button
                style="margin-left: 10px; 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>
37 38
      </c-col>
      <c-col :span="24">
Wuyuqiu committed
39 40 41 42 43 44
        <el-form-item
          label="Transfer Reference"
          prop="ltdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
45 46
            <c-input
              v-model="model.ltdgrp.rec.ownref"
Wuyuqiu committed
47 48 49
              maxlength="8"
              placeholder="Please input Transfer Reference"
              :disabled="true"
fanyanyan committed
50
            ></c-input>
Wuyuqiu committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
            <template slot="footer">
              <c-button
                style="margin-left: 10px; 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>
70 71 72 73 74
      </c-col>
      <c-col :span="24">
        <el-form-item label="L/C Amount" prop="ltdgrp.cbs.nom1.cur">
          <c-fullbox>
            <c-input
fanyanyan committed
75 76
              v-model="model.ltdgrp.cbs.nom1.cur"
              maxlength="3"
77 78 79 80
              style="width: 50%"
              placeholder="请输入L/C Amount"
              disabled
            ></c-input>
fanyanyan committed
81 82
            <c-input
              v-model="model.ltdgrp.cbs.nom1.amt"
83 84 85
              style="width: 50%"
              placeholder="请输入Balance"
              disabled
fanyanyan committed
86
            ></c-input>
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
            <template slot="footer">
              <c-checkbox
                v-model="model.bttp.aammod.addamtflg"
                style="margin-left: 10px"
                disabled
                >Add. Amount</c-checkbox
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Open Amount" prop="ltdgrp.cbs.opn1.cur">
          <c-fullbox>
            <c-input
fanyanyan committed
103 104
              v-model="model.ltdgrp.cbs.opn1.cur"
              maxlength="3"
105 106 107
              style="width: 50%"
              placeholder="请输入Open Amount"
              disabled
fanyanyan committed
108 109
            ></c-input>
            <c-input
110 111 112 113
              v-model="model.ltdgrp.cbs.opn1.amt"
              style="width: 50%"
              placeholder="请输入Balance"
              disabled
fanyanyan committed
114
            ></c-input>
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 141 142
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-form-item label="Available with" prop="ltdgrp.avbnam">
          <c-input
            v-model="model.ltdgrp.avbnam"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="by" prop="ltdgrp.rec.avbby">
            <c-fullbox>
              <c-select
                v-model="model.ltdgrp.rec.avbby"
                maxlength="3"
                style="width: 100%"
                placeholder="Please input Open Amount"
                disabled
                :code="codes.avbby"
              ></c-select>
            </c-fullbox>
fanyanyan committed
143 144
          </el-form-item>
        </c-col>
145
        <c-col :span="12">
fanyanyan committed
146 147 148 149 150
          <el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.shpdat"
              style="width: 100%"
151 152
              placeholder="Please select Shipment Date"
              disabled
fanyanyan committed
153 154 155
            ></c-date-picker>
          </el-form-item>
        </c-col>
156 157 158 159
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
fanyanyan committed
160 161 162 163 164
          <el-form-item label="Date Issued/Form" prop="ltdgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.opndat"
              style="width: 100%"
165 166
              placeholder="Please select Date Issued/Form"
              disabled
fanyanyan committed
167 168 169
            ></c-date-picker>
          </el-form-item>
        </c-col>
170 171 172 173 174 175 176 177
        <c-col :span="12">
          <c-input
            v-model="model.ltdgrp.rec.lcrtyp"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
            :code="codes.lcrtyp1"
          ></c-input>
fanyanyan committed
178
        </c-col>
179 180 181 182 183
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Date/Place of Expiry" prop="ltdgrp.rec.expdat">
fanyanyan committed
184 185 186 187
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.expdat"
              style="width: 100%"
188 189
              placeholder="Please select Shipment Date"
              disabled
fanyanyan committed
190 191 192 193
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
194 195 196 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
          <c-input
            v-model="model.ltdgrp.rec.expplc"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
          ></c-input>
        </c-col>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Name" prop="ltdgrp.rec.nam">
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '1st Beneficiary',
            grp: 'btdgrp',
            rol: 'be1',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
236 237
          :disabled="false"
          :disabled1="true"
238 239 240 241 242 243 244 245 246 247 248 249
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '2nd Beneficiary',
            grp: 'btdgrp',
            rol: 'be2',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
250 251
          :disabled="false"
          :disabled1="true"
252 253 254 255 256 257 258 259 260 261 262 263
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: 'Presenting Bank',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
264 265
          :disabled="false"
          :disabled1="true"
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
        ></c-ptsmsg>
      </c-col>
    </c-col>

    <c-col :span="24">
      <el-form-item style="margin-left: -150px">
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- next part -->
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="Document Set Ref."
            prop="btdgrp.rec.ownref"
            style="width: 100%"
          >
fanyanyan committed
286 287 288
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="16"
289 290 291
              placeholder="请输入Reference"
              style="width: 95%"
              disabled
fanyanyan committed
292 293 294
            ></c-input>
          </el-form-item>
        </c-col>
295 296 297 298 299 300 301 302 303 304 305
        <c-col :span="1">
          <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
            >
fanyanyan committed
306 307
          </c-button>
        </c-col>
308 309 310 311 312 313 314 315 316 317 318 319
        <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            @click="onBttmodButgetref"
            :disabled="
              model.ltdgrp.rec.inr && !model.btdgrp.rec.ownref ? false : true
            "
          >
            Get
          </c-button>
fanyanyan committed
320
        </c-col>
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
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Document Type"
          prop="btdgrp.rec.doctypcod"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="Please select Document Type"
            disabled
          >
            <el-option
              v-for="item in codes.doctypcod1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
fanyanyan committed
347
          <el-form-item label="Document Amount" prop="btdgrp.cbs.max.cur">
348
            <c-input
fanyanyan committed
349
              v-model="model.btdgrp.cbs.max.cur"
350 351 352 353
              maxlength="3"
              placeholder="Please input Document Amount"
              disabled
            ></c-input>
fanyanyan committed
354 355
          </el-form-item>
        </c-col>
356 357
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max.amt">
fanyanyan committed
358 359
            <c-input
              v-model="model.btdgrp.cbs.max.amt"
360
              placeholder="Please input Balance"
fanyanyan committed
361 362 363
            ></c-input>
          </el-form-item>
        </c-col>
364 365 366 367 368 369
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Drawn Add. Amount" prop="btdgrp.cbs.opn2.cur">
            <c-input
fanyanyan committed
370
              v-model="model.btdgrp.cbs.opn2.cur"
371 372 373 374
              maxlength="3"
              placeholder="Please input Drawn Add. Amount"
              disabled
            ></c-input>
fanyanyan committed
375 376
          </el-form-item>
        </c-col>
377 378
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max2.amt">
fanyanyan committed
379 380
            <c-input
              v-model="model.btdgrp.cbs.max2.amt"
381
              placeholder="Please input Balance"
fanyanyan committed
382 383 384
            ></c-input>
          </el-form-item>
        </c-col>
385 386 387
      </c-col>

      <c-col :span="24">
fanyanyan committed
388 389
        <c-col :span="12">
          <el-form-item
390
            label="Received on(2nd Ben)"
fanyanyan committed
391 392 393 394 395 396
            prop="btdgrp.rec.rcvdatbe2"
          >
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.rcvdatbe2"
              style="width: 100%"
397
              placeholder="Please select Received on(2nd Ben)"
fanyanyan committed
398 399 400 401
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
402
          <el-form-item label="Order Date" prop="btdgrp.rec.orddatbe2">
fanyanyan committed
403 404 405 406
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.orddatbe2"
              style="width: 100%"
407
              placeholder="Please select Order Date"
fanyanyan committed
408 409 410
            ></c-date-picker>
          </el-form-item>
        </c-col>
411 412
      </c-col>
      <c-col :span="24">
fanyanyan committed
413 414 415 416 417 418
        <c-col :span="12">
          <el-form-item label="Maturity Date" prop="btdgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.matdat"
              style="width: 100%"
419
              placeholder="Please select Maturity Date"
fanyanyan committed
420 421 422 423
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
424
          <el-form-item label="Shipped on" prop="btdgrp.rec.shpdat">
fanyanyan committed
425 426 427 428
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.shpdat"
              style="width: 100%"
429
              placeholder="Please select Shipped on"
fanyanyan committed
430 431 432 433 434
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

435 436 437 438 439 440 441 442 443 444 445
      <c-col :span="24">
        <el-form-item label="Maturity Period" prop="btdgrp.blk.matper">
          <c-input
            type="textarea"
            v-model="model.btdgrp.blk.matper"
            maxlength="65"
            show-word-limit
            placeholder="Please input Maturity Period"
          ></c-input>
        </el-form-item>
      </c-col>
fanyanyan committed
446

447 448 449 450 451 452 453 454 455 456 457 458 459
      <c-col :span="24">
        <el-form-item
          label="Previous Drawings under this L/C"
          prop="ltdgrp.rec.utlnbr"
        >
          <c-input
            v-model.number="model.ltdgrp.rec.utlnbr"
            placeholder="Please input Previous Drawings under this L/C"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
fanyanyan committed
460

461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Description" prop="btdgrp.rec.nam">
          <c-input
            v-model="model.btdgrp.rec.nam"
            maxlength="40"
            placeholder="Please input Description"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Presented by" prop="btdgrp.rec.docprbrol">
          <c-select
            v-model="model.btdgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="Please select Presented by"
            @change="selectOrCheckboxRule('btdgrp.rec.docprbrol')"
          >
            <el-option
Wuyuqiu committed
482
              v-for="item in codes.docprbrol2"
483 484 485 486 487 488 489 490
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
fanyanyan committed
491

492 493 494 495 496 497 498 499 500 501
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="!(model.btdgrp.rec.docprbrol == 'PRB')"
Wuyuqiu committed
502
          :disabledExtkey="model.btdgrp.rec.docprbrol == 'ADT'||model.btdgrp.rec.docprbrol == 'BE2'"
503 504 505 506 507
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
fanyanyan committed
508

509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
      <!-- <c-col :span="24">
        <el-form-item
          label="发票类型"
          prop="btdgrp.rec.invtyp"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.invtyp"
            style="width: 100%"
            placeholder="请选择发票类型"
          >
            <el-option
              v-for="item in codes.invtyp1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col> -->
fanyanyan committed
530 531 532 533 534
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
535
import commonProcess from "~/mixin/commonProcess";
fanyanyan committed
536 537
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdck/Event";
538 539
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap";
fanyanyan committed
540 541

export default {
542
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
fanyanyan committed
543 544
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
545
  mixins: [commonProcess],
fanyanyan committed
546 547 548 549
  data() {
    return {};
  },
  methods: { ...Event },
550 551 552 553 554
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
fanyanyan committed
555 556 557 558 559
  created: function () {},
};
</script>
<style>
</style>