Ovwp.vue 18.5 KB
Newer Older
1
<template>
liushikai committed
2 3 4 5 6
  <c-row>
    <!-- =================顶部====================== -->
    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="20">
wangna committed
7 8 9 10 11 12 13 14 15 16 17 18
          <el-form-item
            label="信用证号码"
            prop="didgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.didgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入信用证号码"
              style="width: 95%"
              disabled
            ></c-input>
liushikai committed
19
          </el-form-item>
潘际乾 committed
20
        </c-col>
liushikai committed
21
        <!-- <c-col :span="1" style="text-align: right"> -->
wangyanjiao committed
22 23
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
wangna committed
24 25 26 27 28 29 30
          <c-button
            style="margin: 0 10px 0 0; padding: 0 10px"
            size="small"
            type="primary"
            icon="el-icon-search"
            @click="onSeainf"
          ></c-button>
wangyanjiao committed
31 32 33 34
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="3" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
wangna committed
35 36 37 38 39 40 41
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            disabled
            @click="onDitpButgetref"
          >
wangyanjiao committed
42 43 44 45
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
liushikai committed
46 47 48 49
        <!-- </c-col> -->
      </c-col>
      <c-col :span="11" :offset="1">
        <el-form-item label="摘要" prop="didgrp.rec.nam">
wangna committed
50 51 52 53 54 55 56
          <c-input
            text-align="middle"
            v-model="model.didgrp.rec.nam"
            maxlength="40"
            disabled
            placeholder="请输入摘要"
          ></c-input>
liushikai committed
57 58 59 60 61 62
        </el-form-item>
      </c-col>
    </c-col>
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="20">
wangna committed
63 64 65 66 67 68 69 70 71 72 73 74
        <el-form-item
          label="所属客户经理"
          prop="ditp.usr.extkey"
          style="width: 100%"
        >
          <c-input
            style="width: 95%"
            v-model="model.ditp.usr.extkey"
            maxlength="8"
            placeholder="请输入所属客户经理"
            disabled
          >
wangyanjiao committed
75
          </c-input>
liushikai committed
76 77
        </el-form-item>
      </c-col>
SunJie committed
78

liushikai committed
79 80
      <c-col :span="4">
        <!-- <el-form-item label="" label-width="17px"> -->
wangna committed
81 82 83 84 85 86 87
        <c-button
          style="margin: 0 10px 0 0; padding: 0 10px"
          size="small"
          icon="el-icon-search"
          type="primary"
          @click="onExtkey"
        ></c-button>
liushikai committed
88 89
        <!-- </el-form-item> -->
      </c-col>
SunJie committed
90

liushikai committed
91 92
      <c-col :span="13">
        <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
wangna committed
93 94 95 96 97 98 99 100 101 102 103 104 105
          <c-select
            disabled
            v-model="model.didgrp.cbs.nom1.cur"
            style="width: 95%"
            placeholder="请选择币种"
            @keyup.enter.native="nom1CurEvent"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
liushikai committed
106 107 108 109 110
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="11">
wangna committed
111 112 113 114 115 116 117 118 119 120 121 122 123 124
        <el-form-item
          style="text-align: left"
          label-width="0"
          prop="didgrp.cbs.nom1.amt"
        >
          <c-input-currency
            v-model="model.didgrp.cbs.nom1.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入信用证金额"
            disabled
            @keyup.enter.native="
              defaultFunction('didgrp.cbs.nom1.amt', model.didgrp.cbs.nom1.amt)
            "
          ></c-input-currency>
liushikai committed
125 126 127 128
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="大写金额" prop="ditp.amt">
wangna committed
129 130 131 132 133 134
          <c-input
            v-model="model.ditp.amt"
            maxlength="76"
            placeholder="请输入大写金额"
            disabled
          ></c-input>
liushikai committed
135 136 137
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangyanjiao committed
138 139
        <c-col :span="24">
          <el-form-item label="上下浮动限额" prop="didgrp.rec.nomtop">
wangna committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
            <c-input
              v-model="model.didgrp.rec.nomtop"
              maxlength="9"
              style="width: 48%"
              disabled
              placeholder="请输入浮动下限"
            ></c-input>
            <label
              style="
                display: inline-block;
                width: calc(3% - 4px);
                text-align: center;
              "
              >-</label
            >
            <c-input
              v-model="model.didgrp.rec.nomton"
              maxlength="9"
              style="width: 48%"
              disabled
              placeholder="请输入浮动上限"
            ></c-input>
wangyanjiao committed
162 163
          </el-form-item>
        </c-col>
liushikai committed
164
      </c-col>
wangna committed
165

liushikai committed
166 167
      <c-col :span="13">
        <el-form-item label="信用证最大金额" prop="didgrp.cbs.max.cur">
wangna committed
168 169 170 171 172 173 174 175 176 177 178 179
          <c-select
            v-model="model.didgrp.cbs.max.cur"
            style="width: 95%"
            placeholder="请选择币种"
            disabled
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
liushikai committed
180 181
            </el-option>
          </c-select>
182
        </el-form-item>
liushikai committed
183
      </c-col>
SunJie committed
184

liushikai committed
185 186
      <c-col :span="11">
        <el-form-item label="" label-width="0" prop="didgrp.cbs.max.amt">
wangna committed
187 188 189 190 191
          <c-input
            v-model="model.didgrp.cbs.max.amt"
            placeholder="请输入信用证最大金额"
            disabled
          ></c-input>
192
        </el-form-item>
liushikai committed
193 194 195
      </c-col>
      <c-col :span="24">
        <el-form-item label="贸易类型" prop="didgrp.rec.mytype">
wangna committed
196 197 198 199 200 201 202 203 204 205 206 207 208
          <c-select
            v-if="model.didgrp.rec.elcflg == 'N'"
            v-model="model.didgrp.rec.mytype"
            style="width: 100%"
            placeholder="请选择贸易类型"
            @change="mytypeChange"
          >
            <el-option
              v-for="item in codes.mylx"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
liushikai committed
209 210
            </el-option>
          </c-select>
wangna committed
211 212 213 214 215 216 217 218 219 220 221 222 223
          <c-select
            v-else
            v-model="model.didgrp.rec.mytype"
            style="width: 100%"
            placeholder="请选择贸易类型"
            @change="mytypeChange"
          >
            <el-option
              v-for="item in codes.mytype"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
liushikai committed
224 225 226 227
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
SunJie committed
228

liushikai committed
229
      <c-col :span="24">
wangyanjiao committed
230 231
        <c-col :span="24">
          <el-form-item label="开证日期" prop="didgrp.rec.opndat">
wangna committed
232 233 234 235 236 237 238 239
            <c-date-picker
              type="date"
              v-model="model.didgrp.rec.opndat"
              value-format="yyyy-MM-dd"
              style="width: 100%"
              placeholder="请选择开证日期"
              disabled
            ></c-date-picker>
wangyanjiao committed
240 241
          </el-form-item>
        </c-col>
liushikai committed
242
      </c-col>
243
      <c-col :span="24">
wangyanjiao committed
244
        <c-col :span="24">
wangna committed
245 246 247 248 249 250 251 252 253 254 255 256 257
          <el-form-item
            v-if="model.didgrp.rec.mytype == 'H'"
            label="最迟货物装运日"
            prop="didgrp.rec.shpdat"
          >
            <c-date-picker
              type="date"
              v-model="model.didgrp.rec.shpdat"
              value-format="yyyy-MM-dd"
              style="width: 100%"
              placeholder="请选择最迟货物装运日"
              disabled
            ></c-date-picker>
wangyanjiao committed
258
          </el-form-item>
wangna committed
259 260 261 262 263 264 265 266 267 268 269 270 271
          <el-form-item
            v-if="model.didgrp.rec.mytype == 'F'"
            label="最迟服务提供日"
            prop="didgrp.rec.shpdat"
          >
            <c-date-picker
              type="date"
              v-model="model.didgrp.rec.shpdat"
              value-format="yyyy-MM-dd"
              style="width: 100%"
              placeholder="请选择最迟服务提供日"
              disabled
            ></c-date-picker>
wangyanjiao committed
272
          </el-form-item>
wangna committed
273 274 275 276 277 278 279 280 281 282 283 284 285
          <el-form-item
            label="最迟货物装运日/服务提供日"
            v-if="model.didgrp.rec.mytype == '3'"
            prop="didgrp.rec.shpdat"
          >
            <c-date-picker
              type="date"
              v-model="model.didgrp.rec.shpdat"
              value-format="yyyy-MM-dd"
              style="width: 100%"
              placeholder="请选择"
              disabled
            ></c-date-picker>
wangyanjiao committed
286 287
          </el-form-item>
        </c-col>
liushikai committed
288 289
      </c-col>
      <c-col :span="24">
wangyanjiao committed
290 291
        <c-col :span="24">
          <el-form-item label="有效日期" prop="didgrp.rec.expdat">
wangna committed
292 293 294 295 296 297 298 299
            <c-date-picker
              type="date"
              v-model="model.didgrp.rec.expdat"
              value-format="yyyy-MM-dd"
              style="width: 100%"
              placeholder="请选择有效日期"
              disabled
            ></c-date-picker>
wangyanjiao committed
300 301
          </el-form-item>
        </c-col>
liushikai committed
302 303 304
      </c-col>
      <c-col :span="24">
        <el-form-item label="有效地点" prop="didgrp.rec.expplc">
wangna committed
305 306 307 308 309
          <c-input
            v-model="model.didgrp.rec.expplc"
            maxlength="35"
            placeholder="请输入有效地点"
          ></c-input>
liushikai committed
310 311 312
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangyanjiao committed
313 314
        <c-col :span="13">
          <el-form-item label="是否通过电证系统" prop="didgrp.rec.elcflg">
wangna committed
315 316 317 318 319 320 321 322 323 324 325 326
            <c-select
              v-model="model.didgrp.rec.elcflg"
              style="width: 95%"
              placeholder="请选择是否通过电证系统"
              disabled
            >
              <el-option
                v-for="item in codes.elcflg"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
wangyanjiao committed
327 328 329 330 331 332
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="报文类型" label-width="80px">
wangna committed
333 334 335 336 337 338 339 340 341 342 343 344 345
            <c-select
              v-if="model.didgrp.rec.elcflg == 'N'"
              style="width: 100%"
              v-model="model.ditp.msgtyp"
              placeholder="请选择报文类型"
              disabled
            >
              <el-option
                v-for="item in codes.msgtyp"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
wangyanjiao committed
346 347
              </el-option>
            </c-select>
wangna committed
348 349 350 351 352 353 354 355 356 357 358 359
            <c-select
              v-else
              v-model="model.ditp.msgtyp"
              placeholder="请选择报文类型"
              disabled
            >
              <el-option
                v-for="item in codes.msgtyp"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
wangyanjiao committed
360 361 362 363
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
364
      </c-col>
liushikai committed
365 366
      <c-col :span="24">
        <el-form-item label="开证类型" prop="didgrp.rec.dkflg">
wangna committed
367 368 369 370 371 372 373 374 375 376 377 378 379
          <c-select
            v-model="model.didgrp.rec.dkflg"
            style="width: 100%"
            disabled
            placeholder="请选择开证类型"
          >
            <el-option
              v-for="item in codes.dkflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
              disabled
            >
liushikai committed
380 381 382 383 384 385
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="申请人统一社会信用代码" prop="didgrp.rec.idcode">
wangna committed
386 387 388 389 390
          <c-input
            v-model="model.didgrp.rec.idcode"
            maxlength="18"
            placeholder="请输入申请人统一社会信用代码"
          ></c-input>
liushikai committed
391 392 393 394
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="货押标识" prop="didgrp.rec.guaflg">
wangna committed
395 396 397 398 399 400 401 402 403 404 405
          <c-select
            v-model="model.didgrp.rec.guaflg"
            style="width: 100%"
            placeholder="请选择货押标识"
          >
            <el-option
              v-for="item in codes.guaflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
liushikai committed
406 407 408 409 410 411
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="假远期信用证" prop="didgrp.rec.jyqflg">
wangna committed
412 413 414 415 416 417 418 419 420 421 422
          <c-select
            v-model="model.didgrp.rec.jyqflg"
            style="width: 100%"
            placeholder="请选择假远期信用证"
          >
            <el-option
              v-for="item in jyqflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
liushikai committed
423 424 425 426 427 428 429 430
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- ========================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
wangna committed
431 432 433 434 435 436 437 438 439 440 441 442
        <c-ptap
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'didgrp',
            rol: 'apl',
          }"
          :disabled="true"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
wangyanjiao committed
443
        </c-ptap>
liushikai committed
444
      </c-col>
wangna committed
445

liushikai committed
446 447
      <c-col :span="14">
        <c-form-item label="邮编" prop="didgrp.apl.pts.youzbm">
wangna committed
448 449 450 451 452
          <c-input
            v-model="model.didgrp.apl.pts.youzbm"
            maxlength="6"
            placeholder="请输入邮编"
          ></c-input>
liushikai committed
453 454 455
        </c-form-item>
      </c-col>
      <c-col :span="10">
wangna committed
456 457 458 459 460 461 462 463 464 465 466
        <c-form-item
          label="电话"
          label-width="40px"
          style="margin-left: 12px"
          prop="didgrp.apl.pts.dihdig"
        >
          <c-input
            v-model="model.didgrp.apl.pts.dihdig"
            maxlength="16"
            placeholder="请输入电话"
          ></c-input>
liushikai committed
467 468
        </c-form-item>
      </c-col>
SunJie committed
469

liushikai committed
470 471
      <c-col :span="24">
        <el-form-item label="申请人账号" prop="didgrp.apl.pts.extact">
wangna committed
472 473 474 475 476
          <c-select
            v-model="model.didgrp.apl.pts.extact"
            style="width: 100%"
            placeholder="请选择申请人账号"
          >
liushikai committed
477 478 479 480
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
481 482 483 484 485 486 487 488 489 490
        <el-form-item
          label="申请人开户行    联行行号"
          prop="didgrp.apb.pts.bankno"
        >
          <c-input
            v-model="model.didgrp.apb.pts.bankno"
            maxlength="20"
            placeholder="请输入申请人开户行 联行行号"
            @keyup.enter.native="showGridPromptDialog('didgrp.apb.pts.bankno')"
          ></c-input>
liushikai committed
491 492
        </el-form-item>
      </c-col>
SunJie committed
493

liushikai committed
494 495
      <c-col :span="24">
        <el-form-item label="联行名称 " prop="didgrp.apb.pts.jigomc">
wangna committed
496 497 498 499 500 501 502
          <c-input
            type="textarea"
            v-model="model.didgrp.apb.pts.jigomc"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称  电证用"
          ></c-input>
liushikai committed
503 504
        </el-form-item>
      </c-col>
SunJie committed
505

liushikai committed
506
      <c-col :span="24">
wangna committed
507 508 509 510 511 512 513 514 515 516 517 518
        <c-ptap
          :model="model"
          :argadr="{
            title: '受益人',
            grp: 'didgrp',
            rol: 'ben',
          }"
          :disabled="true"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
liushikai committed
519 520 521 522 523
        </c-ptap>
      </c-col>

      <c-col :span="14">
        <el-form-item label="邮编" prop="didgrp.ben.pts.youzbm">
wangna committed
524 525 526 527 528
          <c-input
            v-model="model.didgrp.ben.pts.youzbm"
            maxlength="6"
            placeholder="请输入邮编  电证用"
          ></c-input>
liushikai committed
529 530 531
        </el-form-item>
      </c-col>
      <c-col :span="10">
wangna committed
532 533 534 535 536 537 538 539 540 541 542
        <el-form-item
          label="电话"
          label-width="40px"
          style="margin-left: 12px"
          prop="didgrp.ben.pts.dihdig"
        >
          <c-input
            v-model="model.didgrp.ben.pts.dihdig"
            maxlength="16"
            placeholder="请输入电话"
          ></c-input>
liushikai committed
543 544
        </el-form-item>
      </c-col>
SunJie committed
545

liushikai committed
546
      <c-col :span="24">
hulei committed
547
        <el-form-item label="受益人账号" prop="didgrp.ben.pts.extact">
wangna committed
548 549 550 551 552
          <c-input
            v-model="model.didgrp.ben.pts.extact"
            maxlength="34"
            placeholder="请输入受益人账号"
          ></c-input>
liushikai committed
553 554
        </el-form-item>
      </c-col>
SunJie committed
555

liushikai committed
556
      <c-col :span="24">
wangna committed
557 558 559 560 561 562 563 564 565 566
        <el-form-item
          label="受益人开户行   联行行号"
          prop="didgrp.beb.pts.bankno"
        >
          <c-input
            v-model="model.didgrp.beb.pts.bankno"
            maxlength="20"
            placeholder="请输入受益人开户行   联行行号"
            @keyup.enter.native="showGridPromptDialog('didgrp.beb.pts.bankno')"
          ></c-input>
liushikai committed
567 568
        </el-form-item>
      </c-col>
SunJie committed
569

liushikai committed
570 571
      <c-col :span="24">
        <el-form-item label="联行名称 " prop="didgrp.beb.pts.jigomc">
wangna committed
572 573 574 575 576 577 578 579
          <c-input
            type="textarea"
            v-model="model.didgrp.beb.pts.jigomc"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称  电证用"
            :disabled="this.jigomcFlag"
          ></c-input>
liushikai committed
580 581 582 583
        </el-form-item>
      </c-col>
    </c-col>
  </c-row>
584 585
</template>
<script>
SunJie committed
586
import Api from "~/service/Api";
wangren committed
587
import commonProcess from "~/mixin/commonProcess";
SunJie committed
588 589
import Event from "~/model/Ditopn/Event";
import Utils from "~/utils";
liushikai committed
590
import Ptap from "~/views/Public/Ptap";
591
import Ptap1 from "./Ptap";
592 593

export default {
wangyanjiao committed
594 595 596 597
  components: {
    "c-ptap": Ptap,
    "c-ptap1": Ptap1,
  },
liushikai committed
598 599
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
600
  mixins: [commonProcess],
liushikai committed
601 602
  data() {
    return {
wangyanjiao committed
603 604 605 606
      jyqflg: [
        { label: "否", value: "" },
        { label: "是", value: "X" },
      ],
607
      jigomcFlag: true,
liushikai committed
608 609 610 611 612 613 614 615 616 617 618 619 620 621
      trade: "",
    };
  },
  methods: {
    ...Event,
    mytypeChange() {
      if (this.model.didgrp.rec.mytype == "F") {
        this.model.didgrp.rec.tratyp = "";
        this.model.didgrp.rec.sdsrfs = "";
        this.model.didgrp.rec.shptrs = "";
        this.model.didgrp.rec.shpfro = "";
        this.model.didgrp.rec.shpto = "";
        this.model.didgrp.rec.shppro = "";
      }
SunJie committed
622
    },
liushikai committed
623 624
    nom1CurEvent() {
      this.executeDefault("didgrp.cbs.nom1.cur").then((res) => {
wangna committed
625
        if (res.respCode == SUCCESS) {
liushikai committed
626
          Utils.copyValueFromVO(this.model, res.data);
627
        }
liushikai committed
628
      });
629
    },
liushikai committed
630 631 632 633 634 635 636
  },
  created: function () {
    console.log(this.root);
  },
  computed: {
    flag() {
      return this.model.didgrp.apl.pts.extkey == "";
SunJie committed
637
    },
liushikai committed
638 639
  },
  watch: {
wangna committed
640
    declareParams() {},
liushikai committed
641
  },
SunJie committed
642
};
643
</script>