Ovwp.vue 14.3 KB
Newer Older
zhengxiaokui committed
1
<template>
Eivi committed
2
  <div class="eibs-tab">
3 4 5 6 7 8 9 10 11
    <!-- 顶部 -->
    <c-col :span="24">
      <c-col :span="11">
        <el-form-item
          label="Reference"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
Eivi committed
12 13 14 15 16
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="Please input Reference"
              style="width: 95%"
17
              :disabled="true"
Eivi committed
18
            ></c-input>
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
            <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"
                :disabled="
                  model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref
                    ? false
                    : true
                "
                @click="onLetpButgetref"
              >
                Get
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
zhengxiaokui committed
51
      </c-col>
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

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

    <!-- left -->
    <c-col :span="11">
Eivi committed
67 68 69 70 71 72 73 74 75
      <c-col :span="24">
        <el-form-item label="Form of L/C" prop="ledgrp.rec.lcrtyp">
          <c-select
            v-model="model.ledgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="Please select Form of L/C"
            :code="codes.lcrtyp1"
          >
          </c-select>
zhengxiaokui committed
76 77 78
        </el-form-item>
      </c-col>

Eivi committed
79
      <c-col :span="24">
Wuyuqiu committed
80
        <c-col :span="19">
Eivi committed
81 82 83 84 85
          <el-form-item
            label="Responsible User"
            prop="letp.usr.extkey"
            style="width: 100%"
          >
Wuyuqiu committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
            <c-fullbox>
              <c-input
                v-model="model.letp.usr.extkey"
                maxlength="8"
                placeholder="Please input Reference"
                disabled
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin-left: 10px; padding: 0 10px"
                  size="small"
                  icon="el-icon-search"
                  type="primary"
                >
                </c-button>
              </template>
            </c-fullbox>
zhengxiaokui committed
103
          </el-form-item>
zhengxiaokui committed
104
        </c-col>
Wuyuqiu committed
105 106 107 108 109 110
        <c-col :span="5">
          <c-checkbox
            :disabled="true"
            v-model="model.ledgrp.rec.collflg"
            style="margin-left: 10px"
            >Collateralized L/C</c-checkbox
zhengxiaokui committed
111
          >
zhengxiaokui committed
112
        </c-col>
Eivi committed
113 114 115 116
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
zhengxiaokui committed
117 118 119 120
          <el-form-item label="Nominal Amount" prop="ledgrp.cbs.nom1.cur">
            <c-select
              v-model="model.ledgrp.cbs.nom1.cur"
              style="width: 100%"
Eivi committed
121
              placeholder="Please select cur"
Wuyuqiu committed
122
              @keyup.enter.native="nom1CurEvent"
Eivi committed
123
              :code="codes.curtxt1"
zhengxiaokui committed
124 125 126
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
127
        </c-col>
zhengxiaokui committed
128

Wuyuqiu committed
129
        <c-col :span="7">
Eivi committed
130
          <el-form-item label="" label-width="20px" prop="ledgrp.cbs.nom1.amt">
zhengxiaokui committed
131 132
            <c-input-currency
              v-model="model.ledgrp.cbs.nom1.amt"
Wuyuqiu committed
133
              style="text-align: left; width: 100%"
Eivi committed
134
              placeholder="Please input Nominal Amount"
Wuyuqiu committed
135
              @keyup.enter.native="
136 137 138 139 140
                defaultFunction(
                  'ledgrp.cbs.nom1.amt',
                  model.ledgrp.cbs.nom1.amt
                )
              "
zhengxiaokui committed
141 142
            ></c-input-currency>
          </el-form-item>
zhengxiaokui committed
143
        </c-col>
Wuyuqiu committed
144 145

        <c-col :span="5">
146 147 148 149 150
          <c-checkbox
            v-model="model.letp.aamp.aammod.addamtflg"
            style="margin-left: 10px"
            >Add. Amount</c-checkbox
          >
Wuyuqiu committed
151
        </c-col>
Eivi committed
152
      </c-col>
zhengxiaokui committed
153

Eivi committed
154
      <c-col :span="24">
Wuyuqiu committed
155
        <c-col :span="12">
zhengxiaokui committed
156 157
          <el-form-item label="Amount Tolerance +/-" prop="ledgrp.rec.nomtop">
            <c-input
158
              v-model.number="model.ledgrp.rec.nomtop"
Wuyuqiu committed
159
              maxlength="2"
160
              style="width: 100%"
Eivi committed
161
              placeholder="Please input Amount Tolerance +/-"
Wuyuqiu committed
162
              class="m-input-currency"
zhengxiaokui committed
163 164
            ></c-input>
          </el-form-item>
zhengxiaokui committed
165
        </c-col>
Wuyuqiu committed
166
        <c-col :span="7">
Eivi committed
167
          <el-form-item label="" label-width="20px" prop="ledgrp.rec.nomton">
zhengxiaokui committed
168
            <c-input
169
              v-model.number="model.ledgrp.rec.nomton"
Wuyuqiu committed
170
              maxlength="2"
Eivi committed
171 172
              style="width: 100%"
              placeholder="Please input Amount Tolerance - Negative"
Wuyuqiu committed
173
              class="m-input-currency"
zhengxiaokui committed
174 175
            ></c-input>
          </el-form-item>
zhengxiaokui committed
176
        </c-col>
Wuyuqiu committed
177
        <c-col :span="5">
178 179 180 181 182 183
          <c-checkbox
            v-model="model.ledgrp.rec.inctrf"
            disabled
            style="margin-left: 10px"
            >Incoming Transfer</c-checkbox
          >
Wuyuqiu committed
184
        </c-col>
Eivi committed
185
      </c-col>
zhengxiaokui committed
186

Eivi committed
187
      <c-col :span="24">
Wuyuqiu committed
188 189
        <c-col :span="19">
          <el-form-item label="Amount Specification" prop="ledgrp.rec.nomspc">
190 191 192 193 194 195 196 197 198
            <c-select
              v-model="model.ledgrp.rec.nomspc"
              style="width: 100%"
              placeholder="Please select Amount Specification"
              :code="codes.nomspc"
              :disabled="true"
            >
            </c-select>
          </el-form-item>
Wuyuqiu committed
199 200
        </c-col>
        <c-col :span="5">
201 202 203
          <c-checkbox v-model="resflg" style="margin-left: 10px"
            >Reserved Contract</c-checkbox
          >
Wuyuqiu committed
204
        </c-col>
Eivi committed
205
      </c-col>
zhengxiaokui committed
206

Eivi committed
207
      <c-col :span="24">
zhengxiaokui committed
208 209 210 211 212
        <c-col :span="12">
          <el-form-item label="Maximum Amount" prop="ledgrp.cbs.max.cur">
            <c-select
              v-model="model.ledgrp.cbs.max.cur"
              style="width: 100%"
Eivi committed
213 214 215
              placeholder="Please select cur"
              disabled
              :code="codes.curtxt1"
zhengxiaokui committed
216 217 218
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
219
        </c-col>
zhengxiaokui committed
220 221 222

        <c-col :span="12">
          <el-form-item label="" label-width="20px" prop="ledgrp.cbs.max.amt">
Wuyuqiu committed
223
            <c-input
zhengxiaokui committed
224
              v-model="model.ledgrp.cbs.max.amt"
Eivi committed
225
              placeholder="Please input Maximum Amount"
Wuyuqiu committed
226
              class="m-input-currency"
Eivi committed
227
              disabled
Wuyuqiu committed
228
            ></c-input>
zhengxiaokui committed
229 230
          </el-form-item>
        </c-col>
Eivi committed
231
      </c-col>
zhengxiaokui committed
232

Eivi committed
233 234
      <c-col :span="24">
        <c-col :span="12">
zhengxiaokui committed
235 236 237 238
          <el-form-item label="Issued on" prop="ledgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
Eivi committed
239 240
              style="width: 100%"
              placeholder="Please select Issued on"
zhengxiaokui committed
241 242 243
            ></c-date-picker>
          </el-form-item>
        </c-col>
Eivi committed
244
        <c-col :span="12">
zhengxiaokui committed
245 246 247 248 249 250 251 252 253
          <el-form-item
            label="Date Pre-advised"
            label-width="130px"
            prop="ledgrp.rec.preadvdt"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.preadvdt"
              style="width: 100%"
Eivi committed
254 255
              placeholder="Please select Date Pre-advised"
              disabled
zhengxiaokui committed
256 257 258
            ></c-date-picker>
          </el-form-item>
        </c-col>
Eivi committed
259
      </c-col>
zhengxiaokui committed
260

Eivi committed
261 262
      <c-col :span="24">
        <c-col :span="12">
zhengxiaokui committed
263 264 265 266
          <el-form-item label="Shipment Date" prop="ledgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
Eivi committed
267 268
              style="width: 100%"
              placeholder="Please select Shipment Date"
zhengxiaokui committed
269 270 271 272
            ></c-date-picker>
          </el-form-item>
        </c-col>

Eivi committed
273
        <c-col :span="12">
zhengxiaokui committed
274 275 276 277 278 279 280 281 282
          <el-form-item
            label="Released on"
            label-width="130px"
            prop="ledgrp.rec.advdat"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.advdat"
              style="width: 100%"
Eivi committed
283 284
              placeholder="Please select Released on"
              disabled
zhengxiaokui committed
285 286 287
            ></c-date-picker>
          </el-form-item>
        </c-col>
Eivi committed
288
      </c-col>
zhengxiaokui committed
289

Eivi committed
290 291 292 293 294 295 296 297 298 299
      <c-col :span="24">
        <el-form-item label="Expiring on" prop="ledgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.ledgrp.rec.expdat"
            style="width: 100%"
            placeholder="Please select Expiring on"
          ></c-date-picker>
        </el-form-item>
      </c-col>
zhengxiaokui committed
300

Eivi committed
301 302 303 304 305 306 307 308 309
      <c-col :span="24">
        <el-form-item label="in (Place)/counters of" prop="ledgrp.rec.expplc">
          <c-input
            v-model="model.ledgrp.rec.expplc"
            maxlength="29"
            placeholder="Please input in (Place)/counters of"
          ></c-input>
        </el-form-item>
      </c-col>
zhengxiaokui committed
310

Eivi committed
311
      <c-col :span="24">
312 313 314 315
        <el-form-item
          label="Confirmation Instruct. Received"
          prop="ledgrp.rec.cnfdet"
        >
Eivi committed
316 317 318
          <c-select
            v-model="model.ledgrp.rec.cnfdet"
            style="width: 100%"
319 320
            placeholder="Please select Confirmation Instruct. Received"
            :code="codes.cnfflg1"
Eivi committed
321 322 323 324
          >
          </c-select>
        </el-form-item>
      </c-col>
zhengxiaokui committed
325

Eivi committed
326 327 328 329 330 331
      <c-col :span="24">
        <el-form-item label="Applicable Rules" prop="ledgrp.rec.apprul">
          <c-select
            v-model="model.ledgrp.rec.apprul"
            style="width: 100%"
            placeholder="Please select Applicable Rules"
Wuyuqiu committed
332 333
            :code="codes.apprul1"
            @change="apprulChange"
Eivi committed
334 335 336 337
          >
          </c-select>
        </el-form-item>
      </c-col>
zhengxiaokui committed
338

Eivi committed
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
      <c-col :span="24">
        <el-form-item
          label="Other Applicable Rules"
          prop="ledgrp.rec.apprultxt"
        >
          <c-input
            v-model="model.ledgrp.rec.apprultxt"
            maxlength="35"
            placeholder="Please input Other Applicable Rules"
            :disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Partial Shipment" prop="ledgrp.rec.shppar">
          <c-select
            v-model="model.ledgrp.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="ledgrp.rec.shptrss18">
          <c-select
            v-model="model.ledgrp.rec.shptrss18"
            style="width: 100%"
            placeholder="Please select Transshipment"
            :code="codes.shptrss18"
          >
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
zhengxiaokui committed
376

Eivi committed
377 378 379 380 381 382 383 384 385 386 387 388 389 390
    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-ptap
        :model="model"
        :argadr="{
          title: 'Beneficiary',
          grp: 'ledgrp',
          rol: 'ben',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
      >
      </c-ptap>
zhengxiaokui committed
391

Eivi committed
392 393 394 395 396 397 398 399 400 401 402 403
      <c-ptap
        :model="model"
        :argadr="{
          title: 'Issuer',
          grp: 'ledgrp',
          rol: 'iss',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onIsspDet"
      >
      </c-ptap>
zhengxiaokui committed
404

Eivi committed
405 406 407 408 409 410 411 412 413 414 415 416 417
      <c-ptap
        :model="model"
        :argadr="{
          title: 'Applicant',
          grp: 'ledgrp',
          rol: 'apl',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onAplpDet"
      >
      </c-ptap>

418 419 420
      <c-col :span="12" class="centerLable marginLable">
        <c-checkbox v-model="model.ledgrp.rec.revflg">Revolving L/C</c-checkbox>
      </c-col>
zhengxiaokui committed
421

422 423 424 425
      <!-- Authorization to Debit -->
      <c-col :span="12" class="centerLable marginLable">
        <c-checkbox v-model="dbtflg">Authorization to Debit</c-checkbox>
      </c-col>
zhengxiaokui committed
426

427 428 429
      <c-col :span="24" class="centerLable marginLable">
        <c-checkbox v-model="nonban">Non-Bank Issuer</c-checkbox>
      </c-col>
zhengxiaokui committed
430

431 432 433 434
      <!-- Test Key Unconfirmity -->
      <c-col :span="24" class="centerLable marginLable">
        <c-checkbox v-model="teskeyunc">Test Key Unconfirmity</c-checkbox>
      </c-col>
zhengxiaokui committed
435
    </c-col>
Eivi committed
436
  </div>
zhengxiaokui committed
437 438
</template>
<script>
zhengxiaokui committed
439
import Api from "~/service/Api";
wangren committed
440
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
441 442 443
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import Ptap from "~/views/Public/Ptap";
Wuyuqiu committed
444
import Utils from "~/utils";
zhengxiaokui committed
445
// import Amtpanl from "~/views/Public/Amtpanl";
zhengxiaokui committed
446 447

export default {
zhengxiaokui committed
448 449 450
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
451
  mixins: [commonProcess],
zhengxiaokui committed
452 453 454
  data() {
    return {};
  },
Eivi committed
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
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
    resflg: {
      get() {
        return this.model.ledgrp.rec.resflg != "";
      },
      set(val) {
        this.model.ledgrp.rec.resflg = val ? "X" : "";
      },
    },
    dbtflg: {
      get() {
        return this.model.ledgrp.rec.dbtflg != "";
      },
      set(val) {
        this.model.ledgrp.rec.dbtflg = val ? "X" : "";
      },
    },
    nonban: {
      get() {
        return this.model.ledgrp.rec.nonban != "";
      },
      set(val) {
        this.model.ledgrp.rec.nonban = val ? "X" : "";
      },
    },
Eivi committed
483
    teskeyunc: {
Eivi committed
484 485 486 487 488 489
      get() {
        return this.model.ledgrp.rec.teskeyunc != "";
      },
      set(val) {
        this.model.ledgrp.rec.teskeyunc = val ? "X" : "";
      },
Eivi committed
490
    },
Eivi committed
491
  },
zhengxiaokui committed
492 493
  methods: {
    ...Event,
Wuyuqiu committed
494 495 496 497 498 499 500 501 502 503 504 505
    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 = "";
      }
    },
zhengxiaokui committed
506 507 508
  },
  created: function () {},
};
zhengxiaokui committed
509 510
</script>
<style>
Wuyuqiu committed
511 512 513 514 515 516 517 518 519
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
  padding-bottom: 2px;
}
.marginLable {
  padding-left: 160px;
}
zhengxiaokui committed
520
</style>