Gitsetp1.vue 17.5 KB
Newer Older
panziyi committed
1
<template>
huangxin committed
2
  <div class="eibs">
3
    <c-col :span="12" style="padding-right: 20px;">
wangna committed
4 5 6 7
      <c-col
        :span="16"
        v-if="model.gidgrp.rec.expflg == 'X' || model.gidgrp.rec.expdat != ''"
      >
panziyi committed
8
        <el-form-item
wangna committed
9
          label="保函编号"
panziyi committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
          prop="gidgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.gidgrp.rec.ownref"
              maxlength="8"
              placeholder="请输入"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 0 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
nanrui committed
27
                <i class="el-icon-info"></i>
panziyi committed
28 29 30 31 32
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
wangna committed
33 34 35 36
      <c-col
        :span="24"
        v-if="model.gidgrp.rec.expflg != 'X' && model.gidgrp.rec.expdat == ''"
      >
panziyi committed
37
        <el-form-item
wangna committed
38
          label="保函编号"
panziyi committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
          prop="gidgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.gidgrp.rec.ownref"
              maxlength="8"
              placeholder="请输入"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                v-model="model.gctp.gidget.sdamod.seainf"
                style="margin: 0 0 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
nanrui committed
57
                <i class="el-icon-info"></i>
panziyi committed
58 59 60 61 62
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
wangna committed
63 64 65

      <c-col :span="8" v-if="model.gidgrp.rec.expflg == 'X'">
        <el-form-item style="margin-left: 20px" label="我行责任敞口">
panziyi committed
66 67 68
        </el-form-item>
      </c-col>

wangna committed
69
      <c-col :span="8" v-if="model.gidgrp.rec.expdat != ''">
panziyi committed
70
        <el-form-item
wangna committed
71
          label="保函效期"
panziyi committed
72
          label-width="50px"
wangna committed
73
          prop="gidgrp.rec.expdat"
panziyi committed
74
        >
panziyi committed
75 76 77 78 79
          <c-date-picker
            type="date"
            v-model="model.gidgrp.rec.expdat"
            disabled
            style="width: 100%"
wangna committed
80
            placeholder="请选择保函效期"
panziyi committed
81 82 83 84 85 86
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
wangna committed
87
          label="索赔编号"
panziyi committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
          prop="gcdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.gcdgrp.rec.ownref"
              maxlength="8"
              placeholder="请输入"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 0 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
nanrui committed
105
                <i class="el-icon-info"></i>
panziyi committed
106
              </c-button>
panziyi committed
107 108 109 110 111 112
              <c-button
                size="small"
                type="primary"
                :disabled="this.flag"
                @click="onGctpGetrefbut"
              >
wangna committed
113
                获取
panziyi committed
114 115 116 117 118 119 120 121
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="10">
        <c-form-item
wangna committed
122
          label="索赔金额"
panziyi committed
123 124 125
          prop="gcdgrp.cbs.max.cur"
          previewLabel="信用证币种"
        >
126
          <c-select
panziyi committed
127 128 129
            v-model="model.gcdgrp.cbs.max.cur"
            maxlength="3"
            disabled
wangna committed
130
            placeholder="请输入索赔金额"
131 132
            :code="codes.cur"
          ></c-select>
panziyi committed
133 134 135 136 137 138 139 140 141
        </c-form-item>
      </c-col>
      <c-col :span="9">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gcdgrp.cbs.max.amt"
        >
142
          <c-input
panziyi committed
143
            disabled
panziyi committed
144
            v-model="model.gcdgrp.cbs.max.amt"
wangna committed
145
            placeholder="请输入"
146 147
            class="m-input-currency"
          ></c-input>
panziyi committed
148 149
        </c-form-item>
      </c-col>
wangna committed
150

panziyi committed
151 152
      <c-col :span="5">
        <c-checkbox
panziyi committed
153
          v-model="model.gctp.adaflg"
wangna committed
154
          disabled
155
          style=" float:right;"
wangna committed
156
          >附加金额</c-checkbox
panziyi committed
157 158
        >
      </c-col>
wangna committed
159

panziyi committed
160 161
      <c-col :span="10">
        <c-form-item
wangna committed
162
          label="保函余额"
panziyi committed
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 190 191 192 193 194 195 196 197
          prop="gcdgrp.cbs.opn1.cur"
          previewLabel="信用证币种"
        >
          <c-select
            v-model="model.gcdgrp.cbs.opn1.cur"
            placeholder=""
            style="width: 100%"
            disabled
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </c-form-item>
      </c-col>
      <c-col :span="9">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gcdgrp.cbs.opn1.amt"
        >
          <c-input-currency
            v-model="model.gcdgrp.cbs.opn1.amt"
            placeholder="请输入"
            disabled
          ></c-input-currency>
        </c-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
198
        <el-form-item label="保函种类" prop="gidgrp.rec.gartyp">
panziyi committed
199
          <c-select
panziyi committed
200
            disabled
panziyi committed
201 202
            v-model="model.gidgrp.rec.gartyp"
            style="width: 100%"
wangna committed
203
            placeholder="请选择保函种类"
panziyi committed
204
            :code="codes.typgar2"
panziyi committed
205 206 207 208
          >
          </c-select>
        </el-form-item>
      </c-col>
panziyi committed
209

wangna committed
210 211
      <c-col :span="24" v-if="model.gidgrp.rec.liadat == 'X'">
        <el-form-item label="我行责任敞口"> </el-form-item>
panziyi committed
212
      </c-col>
wangna committed
213 214

      <c-col :span="24" v-if="model.gidgrp.rec.liadat != ''">
wangna committed
215
        <el-form-item label="责任截至日" prop="gidgrp.rec.liadat">
wangna committed
216 217 218 219 220 221 222
          <c-date-picker
            type="date"
            v-model="model.gidgrp.rec.liadat"
            disabled
            style="width: 100%"
            placeholder="请选择责任截至日"
          ></c-date-picker>
panziyi committed
223
        </el-form-item>
wangna committed
224
      </c-col>
panziyi committed
225

panziyi committed
226
      <c-col :span="24">
wangna committed
227
        <el-form-item label="索赔日期" prop="gcdgrp.rec.clmdat">
panziyi committed
228 229 230 231
          <c-input
            v-model="model.gcdgrp.rec.clmdat"
            maxlength="40"
            disabled
wangna committed
232
            placeholder="请输入索赔日期"
panziyi committed
233 234 235 236 237 238
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <c-form-item
wangna committed
239
          label="索赔金额"
panziyi committed
240 241 242
          prop="gcdgrp.cbs.max.cur"
          previewLabel="信用证币种"
        >
243
          <c-select
panziyi committed
244 245 246
            v-model="model.gcdgrp.cbs.max.cur"
            maxlength="3"
            disabled
wangna committed
247
            placeholder="请输入索赔金额"
248 249
            :code="codes.cur"
          ></c-select>
panziyi committed
250 251 252 253 254 255 256 257 258 259 260 261
        </c-form-item>
      </c-col>
      <c-col :span="12">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gcdgrp.cbs.max.amt"
        >
          <c-input-currency
            v-model="model.gcdgrp.cbs.max.amt"
            placeholder="请输入信用证金额"
262
            @keyup.enter.native="$event.target.blur()"
panziyi committed
263 264 265
          ></c-input-currency>
        </c-form-item>
      </c-col>
wangna committed
266
    
panziyi committed
267 268
      <c-col :span="12">
        <c-form-item
wangna committed
269
          label="附加金额"
panziyi committed
270 271 272
          prop="gcdgrp.cbs.opn2.cur"
          previewLabel="信用证币种"
        >
273
          <c-select
panziyi committed
274 275 276
            v-model="model.gcdgrp.cbs.opn2.cur"
            maxlength="3"
            disabled
wangna committed
277
            placeholder="请输入"
278 279
            :code="codes.cur"
          ></c-select>
panziyi committed
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
        </c-form-item>
      </c-col>
      <c-col :span="12">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gcdgrp.cbs.max2.amt"
        >
          <c-input-currency
            v-model="model.gcdgrp.cbs.max2.amt"
            placeholder="请输入信用证金额"
            disabled
          ></c-input-currency>
        </c-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
298
        <el-form-item label="索赔日期" prop="gcdgrp.rec.clmdat">
panziyi committed
299 300 301 302
          <c-date-picker
            type="date"
            v-model="model.gcdgrp.rec.clmdat"
            style="width: 100%"
wangna committed
303
            placeholder="请选择索赔日期"
panziyi committed
304 305 306 307 308
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
309
        <el-form-item label="后续处理" prop="nxtflg">
panziyi committed
310 311 312
          <c-select
            v-model="model.nxtflg"
            style="width: 100%"
wangna committed
313
            placeholder="请选择后续处理"
panziyi committed
314 315 316 317 318 319
            :code="codes.nxtflg"
          >
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
320
        <el-form-item label="索赔条款" prop="clmtxt">
panziyi committed
321 322 323 324 325 326
          <c-input
            type="textarea"
            rows="4"
            v-model="model.clmtxt"
            maxlength="50"
            show-word-limit
wangna committed
327
            placeholder="请输入索赔条款"
panziyi committed
328 329 330
          ></c-input>
        </el-form-item>
      </c-col>
331
      <c-col :span="24" >
panziyi committed
332 333
        <c-checkbox
          v-model="model.extpay"
panziyi committed
334
          @change="change"
panziyi committed
335 336 337 338 339 340
          style="
            margin-left: 11px;
            height: 32px;
            line-height: 32px;
            padding-bottom: 2px;
          "
wangna committed
341
          >延期或付款</c-checkbox
panziyi committed
342 343 344
        >
      </c-col>
      <c-col :span="24">
wangna committed
345
        <el-form-item label="保函请求效期" prop="gcdgrp.rec.newexpdat">
panziyi committed
346 347 348 349 350
          <c-date-picker
            type="date"
            v-model="model.gcdgrp.rec.newexpdat"
            :disabled="!model.extpay"
            style="width: 100%"
wangna committed
351
            placeholder="请选择保函请求效期"
panziyi committed
352 353 354 355 356
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </c-col>

357 358 359 360 361 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 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
    <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="12">
        <c-form-item
          label="保函余额"
          prop="gidgrp.cbs.opn1.cur"
          previewLabel="信用证币种"
        >
          <c-select
            v-model="model.gidgrp.cbs.opn1.cur"
            placeholder=""
            style="width: 100%"
            disabled
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </c-form-item>
      </c-col>
      <c-col :span="12">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gidgrp.cbs.opn1.amt"
        >
          <c-input-currency
            v-model="model.gidgrp.cbs.opn1.amt"
            placeholder="请输入信用证金额"
            disabled
          ></c-input-currency>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="简略信息" prop="gcdgrp.rec.nam">
          <c-input
            v-model="model.gcdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入简略信息"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="申请人参考号" prop="gcdgrp.apl.pts.ref">
          <c-input
            v-model="model.gcdgrp.apl.pts.ref"
            maxlength="16"
            placeholder="请输入申请人参考号"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="" prop="gcdgrp.apl.pts.nam">
          <c-input
            v-model="model.gcdgrp.apl.pts.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="受益人参考号" prop="gcdgrp.ben.pts.ref">
          <c-input
            v-model="model.gcdgrp.ben.pts.ref"
            maxlength="16"
            placeholder="请输入受益人参考号"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="" prop="gcdgrp.ben.pts.nam">
          <c-input
            v-model="model.gcdgrp.ben.pts.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

panziyi committed
446
      <c-col :span="24">
wangna committed
447
        <el-form-item label="索赔当事人" prop="gcdgrp.rec.docprbrol">
panziyi committed
448 449 450
          <c-select
            v-model="model.gcdgrp.rec.docprbrol"
            style="width: 100%"
wangna committed
451
            placeholder="请选择索赔当事人"
wangna committed
452
            @change="eventFunction('gcdgrp.rec.docprbrol')"
panziyi committed
453
          >
wangna committed
454
            <el-option
panziyi committed
455 456 457 458 459 460
              v-for="item in codes.docprbrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
panziyi committed
461
          </c-select>
panziyi committed
462
        </el-form-item>
panziyi committed
463 464
      </c-col>
      <c-col :span="24">
wangna committed
465
        <el-form-item label="保函编号" prop="gcdgrp.prb.pts.ref">
panziyi committed
466 467 468
          <c-input
            v-model="model.gcdgrp.prb.pts.ref"
            maxlength="16"
wangna committed
469
            placeholder="请输入保函编号"
panziyi committed
470
          ></c-input>
panziyi committed
471
        </el-form-item>
panziyi committed
472 473
      </c-col>
      <c-col :span="24">
panziyi committed
474
        <el-form-item label="" prop="gcdgrp.prb.pts.extkey">
panziyi committed
475 476 477
          <c-fullbox>
            <c-input
              v-model="model.gcdgrp.prb.pts.extkey"
wangna committed
478
              :disabled="model.gcdgrp.rec.docprbrol != 'PRB'"
panziyi committed
479
              maxlength="16"
wangna committed
480
              placeholder="请输入"
panziyi committed
481 482 483
              @keyup.enter.native="
                showGridPromptDialog('gcdgrp.prb.pts.extkey')
              "
panziyi committed
484 485 486 487 488 489
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
panziyi committed
490
                @click="model.gctp.prbp.ptsget.sdamod.seainf"
panziyi committed
491
              >
nanrui committed
492
                <i class="el-icon-info"></i>
panziyi committed
493 494
              </c-button>
              <c-button
panziyi committed
495
                style="margin: 0 0"
panziyi committed
496 497
                size="small"
                type="primary"
panziyi committed
498
                @click="onPrbpDet"
panziyi committed
499
              >
wangna committed
500
                详情
panziyi committed
501
              </c-button>
panziyi committed
502
            </template>
panziyi committed
503
          </c-fullbox>
panziyi committed
504
        </el-form-item>
panziyi committed
505
      </c-col>
panziyi committed
506

panziyi committed
507
      <c-col :span="24">
panziyi committed
508
        <el-form-item label="" prop="gcdgrp.prb.pts.adrblk">
panziyi committed
509
          <c-input
panziyi committed
510
            :rows="4"
panziyi committed
511 512
            type="textarea"
            v-model="model.gcdgrp.prb.pts.adrblk"
wangna committed
513
            :disabled="model.gcdgrp.rec.docprbrol != 'PRB'"
panziyi committed
514 515
            maxlength="300"
            show-word-limit
wangna committed
516
            placeholder="请输入"
panziyi committed
517
          ></c-input>
panziyi committed
518
        </el-form-item>
panziyi committed
519
      </c-col>
panziyi committed
520 521

      <c-col :span="24">
wangna committed
522
        <c-form-item label="向索人" prop="gcdgrp.rec.payrol">
panziyi committed
523 524 525 526
          <c-select
            v-model="model.gcdgrp.rec.payrol"
            placeholder="请选择"
            style="width: 100%"
wangna committed
527
            @change="eventFunction('gcdgrp.rec.payrol')"
panziyi committed
528
          >
wangna committed
529
            <el-option
panziyi committed
530 531 532 533 534 535
              v-for="item in codes.payrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
panziyi committed
536 537 538
          </c-select>
        </c-form-item>
      </c-col>
wangna committed
539
      
panziyi committed
540
      <c-col :span="24">
panziyi committed
541
        <el-form-item label="" prop="gcdgrp.oth.pts.extkey">
panziyi committed
542 543 544 545
          <c-fullbox>
            <c-input
              v-model="model.gcdgrp.oth.pts.extkey"
              maxlength="16"
wangna committed
546
              placeholder="请输入"
wangna committed
547
              :disabled="model.gcdgrp.rec.payrol != 'OTH'"
panziyi committed
548 549 550 551 552 553 554 555 556 557
              @keyup.enter.native="
                showGridPromptDialog('gcdgrp.oth.pts.extkey')
              "
            >
            </c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
panziyi committed
558
                @click="model.gctp.othp.ptsget.sdamod.seainf"
panziyi committed
559
              >
nanrui committed
560
                <i class="el-icon-info"></i>
panziyi committed
561 562 563 564 565
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
panziyi committed
566
                @click="onOthpDet"
panziyi committed
567
              >
wangna committed
568
                详情
panziyi committed
569 570 571 572 573
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
panziyi committed
574 575 576 577 578 579 580 581 582

      <c-col :span="24">
        <el-form-item label="" prop="gcdgrp.oth.pts.adrblk">
          <c-input
            type="textarea"
            rows="4"
            v-model="model.gcdgrp.oth.pts.adrblk"
            maxlength="100"
            show-word-limit
wangna committed
583
            placeholder="请输入"
wangna committed
584
            :disabled="model.gcdgrp.rec.payrol != 'OTH'"
panziyi committed
585 586 587 588
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
589
   
panziyi committed
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getcrq/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";

export default {
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
panziyi committed
606 607 608 609 610 611
    return {};
  },
  computed: {
    flag() {
      return this.model.gcdgrp.prb.pts.extkey == "";
    },
panziyi committed
612 613 614 615
  },

  methods: {
    ...Event,
wangna committed
616 617
    change() {
      if (this.model.extpay == "X") {
panziyi committed
618
        this.model.nxtflg = "FP";
wangna committed
619
      } else {
panziyi committed
620 621
        this.model.nxtflg = "SN";
      }
wangna committed
622
    },
panziyi committed
623 624 625 626 627 628
  },
  created: function () {},
};
</script>
<style>
</style>