Ovwp.vue 27.8 KB
Newer Older
1
<template>
2
  <div class="eibs-tab">
Wuyuqiu committed
3
    <el-collapse v-model="activeNames" @change="handleChange">
Wuyuqiu committed
4 5
      <el-collapse-item title="概要" name="ovwp">
        <!-- ======================= 左边 ========================= -->
Wuyuqiu committed
6

潘际乾 committed
7
        <c-col :span="12" style="padding-right: 20px;">
Wuyuqiu committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
          <el-col :spam="24">
            <el-form-item
              label="信用证编号"
              prop="lidgrp.rec.ownref"
              style="width: 100%"
            >
              <c-fullbox>
                <c-input
                  v-model="model.lidgrp.rec.ownref"
                  maxlength="16"
                  disabled
                  placeholder=""
                ></c-input>
                <template slot="footer">
                  <c-button
Wuyuqiu committed
23
                    style="margin: 0 10px 0 10px; padding: 0 12px;height:32px;"
Wuyuqiu committed
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
                    size="small"
                    type="primary"
                    @click="onSeainf"
                    icon="el-icon-search"
                  >
                    <span style="font-family: '宋体'; font-weight: bold"></span>
                  </c-button>
                  <c-button
                    style="margin: 0 0"
                    size="small"
                    type="primary"
                    :disabled="this.flag1"
                    @click="onLitpButgetref"
                  >
                    获取
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </el-col>

          <c-col :span="24">
            <el-form-item label="信用证类型" prop="lidgrp.rec.lcrtyp">
              <c-select
                v-model="model.lidgrp.rec.lcrtyp"
                placeholder="请选择信用证类型"
                style="width: 100%"
                :code="codes.lcrtyp"
52
              >
Wuyuqiu committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item
              label="客户经理"
              prop="litp.usr.extkey"
              style="width: 100%"
            >
              <c-fullbox>
                <c-input
                  v-model="model.litp.usr.extkey"
                  maxlength="8"
                  disabled
                  placeholder="请输入客户经理"
                ></c-input>
                <template slot="footer">
                  <c-button
                    size="small"
                    style="margin-left: 10px; padding: 0 12px"
                    type="primary"
                    icon="el-icon-search"
                    @click="onExtkey"
                  >
                    <span style="font-family: '宋体'; font-weight: bold"></span>
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>

          <!-- LITPOP INFLID 显示-->
          <!--           
86 87 88
       <c-col :span="12">
	    <c-checkbox v-model="model.lidgrp.rec.resflg">Reserved Contract</c-checkbox>
       </c-col>
89
       -->
90

Wuyuqiu committed
91
          <el-col :span="24">
Wuyuqiu committed
92 93 94 95 96 97 98 99 100 101 102 103 104 105
              <c-col :span="11">
                <el-form-item label="名义金额" prop="lidgrp.cbs.nom1.cur">
                  <c-select
                    v-model="model.lidgrp.cbs.nom1.cur"
                    style="width: 100%"
                    placeholder="币种"
                    :code="codes.curtxt1"
                    @keyup.enter.native="nom1CurEvent"
                  >
                    <!-- <el-option
                v-for="item in codes.curtxt1"
                :key="item.value"
                :label="item.label"
                :value="item.value"
Wuyuqiu committed
106
              >
Wuyuqiu committed
107 108 109 110 111 112 113 114 115
              </el-option> -->
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="9">
                <el-form-item
                  style="text-align: left"
                  label-width="20px"
                  prop="lidgrp.cbs.nom1.amt"
Wuyuqiu committed
116
                >
Wuyuqiu committed
117 118 119 120 121 122 123 124 125
                  <c-input-currency
                    v-model="model.lidgrp.cbs.nom1.amt"
                    style="text-align: left; width: 100%"
                    placeholder="请输入金额"
                  ></c-input-currency>
                </el-form-item>
              </c-col>

              <c-col :span="4">
Wuyuqiu committed
126
                <template>
Wuyuqiu committed
127 128 129 130 131 132 133 134
                  <c-checkbox
                    @change="open"
                    v-model="model.litp.aamp.aammod.addamtflg"
                    style="padding-left: 5px"
                    >附加金额</c-checkbox
                  >
                </template>
              </c-col>
Wuyuqiu committed
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
          </el-col>
          <c-col :span="14">
            <el-form-item label="溢短装" prop="lidgrp.rec.nomtop">
              <c-input
                v-model="model.lidgrp.rec.nomtop"
                maxlength="2"
                placeholder="0"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="10" style="text-align: left">
            <el-form-item
              label="-"
              style="text-align: left; margin-left: 12px"
              label-width="20px"
              prop="lidgrp.rec.nomton"
151
            >
Wuyuqiu committed
152 153 154 155 156 157 158 159 160 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 190 191 192 193 194
              <c-input
                v-model="model.lidgrp.rec.nomton"
                maxlength="2"
                placeholder="0"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="金额限额表述" prop="lidgrp.rec.nomspc">
              <c-select
                v-model="model.lidgrp.rec.nomspc"
                style="width: 100%"
                disabled
                placeholder="请选择"
                :code="codes.nomspc"
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="13">
            <el-form-item label="最大金额" prop="lidgrp.cbs.max.cur">
              <c-select
                v-model="model.lidgrp.cbs.max.cur"
                style="width: 100%"
                disabled
                placeholder="请选择币种"
                @keyup.enter.native="nom1CurEvent"
              >
                <el-option
                  v-for="item in codes.cur"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="lidgrp.cbs.max.amt">
195
              <c-input-currency
Wuyuqiu committed
196 197 198
                v-model="model.lidgrp.cbs.max.amt"
                disabled
                placeholder="请输入信用证最大金额"
199
              ></c-input-currency>
Wuyuqiu committed
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
            </el-form-item>
          </c-col>

          <c-col :span="13">
            <el-form-item label="开证日期" prop="lidgrp.rec.opndat">
              <c-date-picker
                type="date"
                v-model="model.lidgrp.rec.opndat"
                style="width: 100%"
                placeholder="请选择日期"
                value-format="yyyy-MM-dd"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="11">
            <el-form-item label="预先通知日期" prop="lidgrp.rec.preadvdt">
              <c-date-picker
                type="date"
                v-model="model.lidgrp.rec.preadvdt"
                style="width: 100%"
                disabled
                placeholder="请选择日期"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="19">
            <el-form-item label="最迟装船日期" prop="lidgrp.rec.shpdat">
              <c-date-picker
                type="date"
“yanyuxin” committed
231 232 233 234
                :disabled="
                  model.lidgrp.blk.shpper != '' &&
                  model.lidgrp.blk.shpper != null
                "
Wuyuqiu committed
235 236 237 238 239 240 241 242 243 244 245 246 247
                v-model="model.lidgrp.rec.shpdat"
                style="width: 100%"
                placeholder="请选择日期"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="5" class="centerLable">
            <c-checkbox
              v-model="model.lidgrp.rec.dkflg"
              style="margin-left: 17px; padding: 0 10px"
              disabled
              >是否代开</c-checkbox
248
            >
Wuyuqiu committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
          </c-col>

          <c-col :span="24">
            <el-form-item label="有效日期" prop="lidgrp.rec.expdat">
              <c-date-picker
                type="date"
                v-model="model.lidgrp.rec.expdat"
                style="width: 100%"
                placeholder="请选择日期"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="交单地点" prop="lidgrp.rec.expplc">
              <c-input
                v-model="model.lidgrp.rec.expplc"
                maxlength="29"
                placeholder="请输入地址"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="分批装运条款" prop="lidgrp.rec.shppar">
              <c-select
                v-model="model.lidgrp.rec.shppar"
                style="width: 100%"
                placeholder="请选择分批装运条款"
                :code="codes.shptrss18"
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="转运条款" prop="lidgrp.rec.shptrss18">
              <c-select
                v-model="model.lidgrp.rec.shptrss18"
                style="width: 100%"
                placeholder="请选择转运条款"
                :code="codes.shptrss18"
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="适用规则" prop="lidgrp.rec.apprul">
              <c-select
                v-model="model.lidgrp.rec.apprul"
                style="width: 100%"
                placeholder="请选择适用规则"
“yanyuxin” committed
302
                :code="codes.apprul1"
Wuyuqiu committed
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
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="其他适用规则" prop="lidgrp.rec.apprultxt">
              <c-input
                v-model="model.lidgrp.rec.apprultxt"
                maxlength="35"
                :disabled="this.flag"
                placeholder="请输入其他适用规则"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="保兑指示" prop="lidgrp.rec.cnfdet">
              <c-select
                v-model="model.lidgrp.rec.cnfdet"
                style="width: 100%"
                placeholder="请选择保兑指示"
                :code="codes.cnfflg1"
              >
              </c-select>
            </el-form-item>
          </c-col>
          <!--
331 332 333
            <c-col :span="12">
                <span  v-text="model.litp.oppbnkl"   data-path=".litp.oppbnkl" > </span>
            </c-col>
334
            -->
Wuyuqiu committed
335 336 337 338 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
          <c-col :span="12">
            <el-form-item
              label="对手行代码"
              prop="lidgrp.rec.oppbnk"
              v-if="zmqflg"
            >
              <!--自贸区标志 -->
              <c-input
                v-model="model.lidgrp.rec.oppbnk"
                maxlength="12"
                placeholder="请输入对手行代码"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="货押标志" prop="lidgrp.rec.guaflg">
              <c-select
                v-model="model.lidgrp.rec.guaflg"
                style="width: 100%"
                placeholder="请选择货押标志"
                :code="codes.guaflg"
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="注册编码" prop="lidgrp.rec.regref">
              <c-input
                v-model="model.lidgrp.rec.regref"
                maxlength="16"
                disabled
                placeholder="请输入注册编码"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <!-- ======================右边====================== -->
潘际乾 committed
375
        <c-col :span="12" style="padding-left: 20px;">
Wuyuqiu committed
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
          <c-col :span="24">
            <el-form-item label="简略信息" prop="lidgrp.rec.nam">
              <c-input
                v-model="model.lidgrp.rec.nam"
                maxlength="40"
                disabled
                placeholder="请输入简略信息"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="申请人参考号" prop="lidgrp.apl.pts.ref">
              <c-input
                v-model="model.lidgrp.apl.pts.ref"
                maxlength="16"
                style="width: 100%"
                placeholder="请输入申请人参考号"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="申请人" prop="lidgrp.apl.pts.extkey">
              <c-fullbox>
                <c-input
                  v-model="model.lidgrp.apl.pts.extkey"
                  maxlength="50"
                  placeholder="请输入申请人地址编码"
                  @keyup.enter.native="
                    showGridPromptDialog('lidgrp.apl.pts.extkey')
                  "
                ></c-input>
                <template slot="footer">
                  <c-button
                    style="margin: 0 10px 0 10px; padding: 0 12px"
                    size="small"
                    type="primary"
                    @click="onSeainf('lidgrp.apl.pts.extkey')"
                    icon="el-icon-search"
                  >
                    <span style="font-family: '宋体'; font-weight: bold"></span>
                  </c-button>
                  <c-button
                    style="margin: 0 0"
                    size="small"
                    type="primary"
                    @click="onAplpDet"
                    icon="el-icon-info"
                  >
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>

          <!-- <c-col :span="8">
432 433 434 435 436 437 438 439 440 441 442 443 444
        <el-form-item label="" label-width="15px">
          <c-button
            size="small"
            type="primary;width:10%"
            @click="onSeainf('lidgrp.apl.pts.extkey')"
            >i</c-button
          >
          <c-button size="small" type="primary" @click="onAplpDet">
            Details
          </c-button>
        </el-form-item>
      </c-col> -->

Wuyuqiu committed
445 446 447 448 449 450
          <c-col :span="24">
            <el-form-item label="申请人名称地址" prop="lidgrp.apl.pts.adrblk">
              <c-input
                type="textarea"
                :rows="4"
                v-model="model.lidgrp.apl.pts.adrblk"
Wuyuqiu committed
451
                maxlength="50"
Wuyuqiu committed
452 453 454 455 456 457 458
                disabled
                show-word-limit
                placeholder="请输入名称地址"
              ></c-input>
            </el-form-item>
          </c-col>
          <!-- 需要处理            
459 460 461 462 463 464 465
            <c-col :span="12">
                <el-form-item label="Chinese address" prop="lidgrp.apl.dbfadrblkcn">
                    <c-input type="textarea" v-model="model.lidgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
                </el-form-item>
            </c-col>
            -->

Wuyuqiu committed
466
          <!--           
467 468 469 470 471 472 473 474 475 476 477 478 479
            <c-col :span="12">
                <el-form-item label="名称" prop="lidgrp.apl.namelc">
                    <c-input type="textarea" v-model="model.lidgrp.apl.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
                </el-form-item>
            </c-col>
                                            
            <c-col :span="12">
                <el-form-item label="地址" prop="lidgrp.apl.adrelc">
                    <c-input type="textarea" v-model="model.lidgrp.apl.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>
            -->

Wuyuqiu committed
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
          <c-col :span="24">
            <el-form-item label="通知行参考号" prop="lidgrp.adv.pts.ref">
              <c-input
                v-model="model.lidgrp.adv.pts.ref"
                maxlength="16"
                style="width: 100%"
                placeholder="请输入参考号"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item
              label="通知行"
              prop="lidgrp.adv.pts.extkey"
              style="width: 100%"
            >
              <c-fullbox>
                <c-input
                  v-model="model.lidgrp.adv.pts.extkey"
                  maxlength="50"
                  style="width: 100%"
                  placeholder="请输入通知行地址编码"
                  @keyup.enter.native="
                    showGridPromptDialog('lidgrp.adv.pts.extkey')
                  "
                ></c-input>
                <template slot="footer">
                  <c-button
                    style="margin: 0 10px 0 10px; padding: 0 12px"
                    size="small"
                    type="primary"
                    @click="onSeainf('lidgrp.adv.pts.extkey')"
                    icon="el-icon-search"
                  >
                    <span style="font-family: '宋体'; font-weight: bold"></span>
                  </c-button>
                  <c-button
                    style="margin: 0 0"
                    size="small"
                    type="primary"
                    @click="onAdvpDet"
                    icon="el-icon-info"
                  >
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>

          <!-- <c-col :span="8">
531 532 533 534 535 536 537 538 539 540 541 542 543
        <el-form-item label="" label-width="15px">
          <c-button
            size="small"
            type="primary;width:10%"
            @click="onSeainf('lidgrp.adv.pts.extkey')"
            >i</c-button
          >
          <c-button size="small" type="primary" @click="onAdvpDet">
            Details
          </c-button>
        </el-form-item>
      </c-col> -->

Wuyuqiu committed
544 545 546 547 548 549
          <c-col :span="24">
            <el-form-item label="通知行名称地址" prop="lidgrp.adv.pts.adrblk">
              <c-input
                type="textarea"
                :rows="4"
                v-model="model.lidgrp.adv.pts.adrblk"
Wuyuqiu committed
550
                maxlength="80"
Wuyuqiu committed
551 552 553 554 555 556 557
                disabled
                show-word-limit
                placeholder="请输入名称地址"
              ></c-input>
            </el-form-item>
          </c-col>
          <!--需要处理           
558 559 560 561 562 563 564
            <c-col :span="12">
                <el-form-item label="Chinese address" prop="lidgrp.adv.dbfadrblkcn">
                    <c-input type="textarea" v-model="model.lidgrp.adv.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
                </el-form-item>
            </c-col>
            -->

Wuyuqiu committed
565
          <!--
566 567 568 569 570 571 572 573 574 575 576 577 578
            <c-col :span="12">
                <el-form-item label="名称" prop="lidgrp.adv.namelc">
                    <c-input type="textarea" v-model="model.lidgrp.adv.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
                </el-form-item>
            </c-col>
                
            <c-col :span="12">
                <el-form-item label="地址" prop="lidgrp.adv.adrelc">
                    <c-input type="textarea" v-model="model.lidgrp.adv.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>
            -->

Wuyuqiu committed
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625
          <c-col :span="24">
            <el-form-item label="受益人参考号" prop="lidgrp.ben.pts.ref">
              <c-input
                v-model="model.lidgrp.ben.pts.ref"
                maxlength="16"
                style="width: 100%"
                placeholder="请输入参考号"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
            <el-form-item label="受益人地址编码" prop="lidgrp.ben.pts.extkey">
              <c-fullbox>
                <c-input
                  v-model="model.lidgrp.ben.pts.extkey"
                  style="width: 100%"
                  maxlength="16"
                  placeholder="请输入地址编码"
                  @keyup.enter.native="
                    showGridPromptDialog('lidgrp.ben.pts.extkey')
                  "
                ></c-input>
                <template slot="footer">
                  <c-button
                    style="margin: 0 10px 0 10px; padding: 0 12px"
                    size="small"
                    type="primary"
                    @click="onSeainf('lidgrp.ben.pts.extkey')"
                    icon="el-icon-search"
                  >
                    <span style="font-family: '宋体'; font-weight: bold"></span>
                  </c-button>
                  <c-button
                    style="margin: 0 0"
                    size="small"
                    type="primary"
                    @click="onBenpDet"
                    icon="el-icon-info"
                  >
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>

          <!-- <c-col :span="8">
626 627 628 629 630 631 632 633 634 635 636 637 638
        <el-form-item label="" label-width="15px">
          <c-button
            size="small"
            type="primary;width:10%"
            @click="onSeainf('lidgrp.ben.pts.extkey')"
            >i</c-button
          >
          <c-button size="small" type="primary" @click="onBenpDet">
            Details
          </c-button>
        </el-form-item>
      </c-col> -->

Wuyuqiu committed
639 640 641 642 643 644
          <c-col :span="24">
            <el-form-item label="受益人名称地址" prop="lidgrp.ben.pts.adrblk">
              <c-input
                type="textarea"
                :rows="4"
                v-model="model.lidgrp.ben.pts.adrblk"
Wuyuqiu committed
645
                maxlength="80"
Wuyuqiu committed
646 647 648 649 650
                show-word-limit
                placeholder="请输入名称地址"
              ></c-input>
            </el-form-item>
          </c-col>
651
          <!--
652 653 654 655 656 657
            <c-col :span="12">
                <el-form-item label="Chinese address" prop="lidgrp.ben.dbfadrblkcn">
                    <c-input type="textarea" v-model="model.lidgrp.ben.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
                </el-form-item>
            </c-col>
            -->
Wuyuqiu committed
658
          <!--
659 660 661 662 663 664 665 666 667 668 669 670 671
            <c-col :span="12">
                <el-form-item label="名称" prop="lidgrp.ben.namelc">
                    <c-input type="textarea" v-model="model.lidgrp.ben.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="12">
                <el-form-item label="地址" prop="lidgrp.ben.adrelc">
                    <c-input type="textarea" v-model="model.lidgrp.ben.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>
            -->

Wuyuqiu committed
672 673 674
          <c-col :span="24" class="centerLable marginLable">
            <c-checkbox
              v-model="model.lidgrp.rec.rmbflg"
675 676
              true-label="Y"
              false-label=""
“yanyuxin” committed
677
              disabled
Wuyuqiu committed
678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701
              style="margin-left: 9px; padding: 0 10px"
              >偿付行信息</c-checkbox
            >
          </c-col>
          <c-col :span="24" class="centerLable marginLable">
            <c-checkbox
              v-model="model.lidgrp.rec.revflg"
              disabled
              style="margin-left: 9px; padding: 0 10px"
              >循环信用证</c-checkbox
            >
          </c-col>

          <c-col :span="24">
            <el-form-item label="合同编号" prop="lidgrp.rec.rptref">
              <c-input
                v-model="model.lidgrp.rec.rptref"
                maxlength="25"
                placeholder="请输入合同编号"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
      </el-collapse-item>
Wuyuqiu committed
702
      <el-collapse-item title="详情" name="detp">
Wuyuqiu committed
703 704 705
        <!-- 详情 -->
        <m-detp :model="model" :codes="codes" />
      </el-collapse-item>
Wuyuqiu committed
706
      <el-collapse-item title="当事人" name="ptyp">
Wuyuqiu committed
707 708 709
        <!-- 当事人 -->
        <m-ptyp :model="model" :codes="codes" />
      </el-collapse-item>
Wuyuqiu committed
710
      <el-collapse-item title="货物" name="dogp">
Wuyuqiu committed
711 712 713
        <!-- 货物 -->
        <m-doxp :model="model" :codes="codes" :dtyp="'dogp'" :rec="'lid'" />
      </el-collapse-item>
Wuyuqiu committed
714
      <el-collapse-item title="单据" name="dorp">
Wuyuqiu committed
715 716 717
        <!-- 单据 -->
        <m-doxp :model="model" :codes="codes" :dtyp="'dorp'" :rec="'lid'" />
      </el-collapse-item>
Wuyuqiu committed
718
      <el-collapse-item title="附加条件" name="adcp">
Wuyuqiu committed
719 720 721
        <!-- 附加条款 -->
        <m-doxp :model="model" :codes="codes" :dtyp="'adcp'" :rec="'lid'" />
      </el-collapse-item>
Wuyuqiu committed
722 723 724 725
      <el-collapse-item title="附加金额" name="aamp" v-if="model.litp.aamp.aammod.addamtflg">
        <!-- 附加金额 -->
        <m-aamp :model="model" :codes="codes" />
      </el-collapse-item>
Wuyuqiu committed
726
    </el-collapse>
727
  </div>
728 729 730
</template>
<script>
import Api from "~/service/Api";
wangren committed
731
import commonProcess from "~/mixin/commonProcess";
732 733
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litopn/Event";
Wuyuqiu committed
734 735 736 737 738 739
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Dogp from "./Dogp";
import Dorp from "./Dorp";
import Adcp from "./Adcp";
import Doxp from "~/views/Public/Doxp";
Wuyuqiu committed
740
import Aamp from "./Aamp";
741 742

export default {
Wuyuqiu committed
743 744 745 746 747 748 749
  components: {
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-dogp": Dogp,
    "m-dorp": Dorp,
    "m-adcp": Adcp,
    "m-doxp": Doxp,
Wuyuqiu committed
750
    "m-aamp": Aamp,
Wuyuqiu committed
751
  },
752
  inject: ["root"],
753
  props: ["model", "codes"],
wangren committed
754
  mixins: [commonProcess],
755
  data() {
756 757
    return {
      zmqflg: null,
Wuyuqiu committed
758
      flag: true,
Wuyuqiu committed
759
      activeNames: ["ovwp"],
760
    };
761
  },
Wuyuqiu committed
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787
  methods: {
    ...Event,
    open(val) {
      if (
        val === "" &&
        !(
          this.model.lidgrp.cbs.max2.amt == "0.000" &&
          this.model.lidgrp.cbs.opn2.amt == "0.000" &&
          this.model.lidgrp.blk.addamtcov === ""
        )
      ) {
        this.$confirm(
          "Do you really want to delete the additional amount of this contract?",
          "提示",
          {
            confirmButtonText: "Yes",
            cancelButtonText: "No",
            type: "warning",
            showClose: false,
          }
        )
          .then(() => {
            //yes的执行在这里写
            this.model.lidgrp.cbs.max2.amt = "0.000";
            this.model.lidgrp.blk.addamtcov = "";
            this.model.lidgrp.cbs.opn2.amt = "0.000";
wangren committed
788
            this.$message({
Wuyuqiu committed
789 790
              type: "success",
              message: "删除成功!",
wangren committed
791
            });
Wuyuqiu committed
792 793 794 795
          })
          .catch(() => {
            //No的功能在这里写
            this.model.litp.aamp.aammod.addamtflg = "X";
wangren committed
796
            this.$message({
Wuyuqiu committed
797 798
              type: "info",
              message: "已取消删除",
wangren committed
799
            });
Wuyuqiu committed
800 801 802 803 804 805
          });
      }
    },
    handleChange(val) {
      console.log(val);
    },
wangren committed
806
  },
807
  created: function () {},
Wuyuqiu committed
808 809 810 811 812 813 814 815
  watch: {
    "model.lidgrp.rec.apprul": {
      immediate: true,
      handler(val, oldVal) {
        if (val == "OTHR") {
          this.flag = false;
        } else {
          this.flag = true;
816
        }
Wuyuqiu committed
817 818
      },
    },
819
  },
820
  computed: {
wangren committed
821
    flag1() {
822 823 824
      return this.model.lidgrp.apl.pts.extkey == "";
    },
  },
825 826 827 828 829 830 831 832 833 834 835 836
};
</script>
<style>
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
}
.marginLable {
  padding-left: 160px;
}
</style>