Ovwp.vue 17.3 KB
Newer Older
zhengxiaokui committed
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  <div class="eibs-tab">
    <c-row>
      <!-- =================顶部====================== -->
      <c-col :span="24">
        <c-col :span="11">
          <el-form-item
            label="信用证号码"
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
                v-model="model.ledgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入Reference"
                style="width: 95%"
                :disabled="true"
              >
              </c-input>
              <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"
                >
                  获取
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
        <c-col :span="11" :offset="1">
          <el-form-item label="摘要" prop="ledgrp.rec.nam">
            <c-input
              text-align="middle"
              v-model="model.ledgrp.rec.nam"
              maxlength="40"
              placeholder="请输入"
              disabled
            >
            </c-input>
          </el-form-item>
        </c-col>
zhengxiaokui committed
66 67
      </c-col>

68
      <!-- ====================左边======================= -->
zhengxiaokui committed
69
      <c-col :span="11">
70
        <!-- Form of L/C -->
zhengxiaokui committed
71
        <c-col :span="24">
72
          <el-form-item label="是否可以转让" prop="ledgrp.rec.lcrtyp">
zhengxiaokui committed
73 74 75
            <c-select
              v-model="model.ledgrp.rec.lcrtyp"
              style="width: 100%"
76
              placeholder="请选择"
zhengxiaokui committed
77
              :code="codes.lcrtyp"
zhengxiaokui committed
78 79 80
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
81
        </c-col>
zhengxiaokui committed
82

83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
        <!-- responsible user -->
        <c-col :span="24">
          <c-col :span="20">
            <el-form-item label="所属客户经理" prop="letp.usr.extkey">
              <c-fullbox>
                <c-input
                  v-model="model.letp.usr.extkey"
                  maxlength="8"
                  placeholder="请输入所属客户经理"
                  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>
            </el-form-item>
          </c-col>
          <c-col :span="4">
            <c-checkbox
zhengxiaokui committed
107
              :disabled="true"
108 109 110
              v-model="model.ledgrp.rec.collflg"
              style="margin-left: 10px"
              >抵押信用证</c-checkbox
zhengxiaokui committed
111
            >
112
          </c-col>
zhengxiaokui committed
113 114
        </c-col>

115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
        <!-- nominal amount -->
        <c-col :span="24">
          <c-col :span="13">
            <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
              <c-select
                v-model="model.ledgrp.cbs.nom1.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.curtxt1"
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
              <c-input-currency
                v-model="model.ledgrp.cbs.nom1.amt"
                style="text-align: left; width: 100%"
                placeholder="请输入信用证金额"
134
                @keyup.enter.native="$event.target.blur()"
135 136 137 138 139
              ></c-input-currency>
              <!-- <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
              placeholder="请输入信用证金额"></c-input-currency> -->
            </el-form-item>
          </c-col>
zhengxiaokui committed
140

141
          <!-- <c-amtpanl
zhengxiaokui committed
142
          :model="model"
zhengxiaokui committed
143
          :span="20"
zhengxiaokui committed
144 145 146 147 148
          :message="{
            title: '开证金额',
            cur: 'ledgrp.cbs.nom1.cur',
            amt: 'ledgrp.cbs.nom1.amt',
          }"
zhengxiaokui committed
149
        ></c-amtpanl> -->
150 151 152
          <c-col :span="4">
            <c-checkbox
              v-model="model.letp.aamp.aammod.addamtflg"
153
              @change="openAddAmount"
154 155 156 157
              style="margin-left: 10px"
              >附加金额</c-checkbox
            >
          </c-col>
zhengxiaokui committed
158
        </c-col>
zhengxiaokui committed
159

160 161 162 163 164 165 166 167
        <c-col :span="24">
          <c-col :span="13">
            <c-form-item label="金额浮动 +/-" prop="ledgrp.rec.nomtop">
              <c-input
                v-model.number="model.ledgrp.rec.nomtop"
                maxlength="2"
                style="width: 100%"
                placeholder="请输入Amount Tolerance - Positive"
168
                @keyup.enter.native="$event.target.blur()"
169 170
                class="m-input-currency"
              ></c-input>
171
              <!-- @keyup.enter.native="$event.target.blur()"回车触发失去焦点后触发的事件 -->
172 173 174 175 176 177 178 179 180
            </c-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton">
              <c-input
                v-model.number="model.ledgrp.rec.nomton"
                maxlength="2"
                style="width: 100%"
                placeholder="请输入Amount Tolerance - Negative"
181
                @keyup.enter.native="$event.target.blur()"
182 183 184 185 186 187 188 189 190 191 192
                class="m-input-currency"
              ></c-input>
            </el-form-item>
          </c-col>
          <!-- <c-col :span="4">
          <c-checkbox v-model="model.ledgrp.preadvflg">PreAdvice or Notification</c-checkbox>
        </c-col> -->
          <c-col :span="4">
            <!-- <c-checkbox v-model="model.ledgrp.preadvflg" style="margin-left:10px;">预先通知</c-checkbox>
        </c-col> -->
          </c-col>
zhengxiaokui committed
193
        </c-col>
zhengxiaokui committed
194

195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
        <c-col :span="24">
          <c-col :span="20">
            <el-form-item label="适用金额规范" prop="ledgrp.rec.nomspc">
              <c-select
                v-model="model.ledgrp.rec.nomspc"
                style="width: 100%"
                placeholder="请选择适用金额规范"
                :code="codes.nomspc"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>

          <!-- Incoming Transfer -->
          <c-col :span="4">
            <c-checkbox
              v-model="model.ledgrp.rec.inctrf"
              style="margin-left: 10px"
              >传入传输</c-checkbox
zhengxiaokui committed
215
            >
216
          </c-col>
zhengxiaokui committed
217 218
        </c-col>

219 220 221
        <!-- Maximum Amount -->
        <c-col :span="13">
          <el-form-item label="信用证最大金额" prop="ledgrp.cbs.max.cur">
zhengxiaokui committed
222 223 224 225
            <c-select
              v-model="model.ledgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="请选择币种"
226
              :code="codes.curtxt1"
zhengxiaokui committed
227
              disabled
zhengxiaokui committed
228 229 230 231
            >
            </c-select>
          </el-form-item>
        </c-col>
232 233 234 235
        <c-col :span="11">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt">
            <c-input
              disabled
zhengxiaokui committed
236 237
              v-model="model.ledgrp.cbs.max.amt"
              placeholder="请输入最大金额"
238 239
              class="m-input-currency"
            ></c-input>
zhengxiaokui committed
240 241 242 243 244 245 246 247
          </el-form-item>
        </c-col>

        <c-col :span="14">
          <el-form-item label="开证日期" prop="ledgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
zhengxiaokui committed
248
              style="width: 90%"
zhengxiaokui committed
249 250 251 252 253 254 255
              placeholder="请选择开证日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="10">
          <el-form-item
            label="预通知日期"
zhengxiaokui committed
256
            label-width="80px"
zhengxiaokui committed
257 258 259 260 261 262 263
            prop="ledgrp.rec.preadvdt"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.preadvdt"
              style="width: 100%"
              placeholder="请选择日期"
264
              disabled
zhengxiaokui committed
265 266 267 268 269 270 271 272 273
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="14">
          <el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
zhengxiaokui committed
274
              style="width: 90%"
zhengxiaokui committed
275 276 277 278 279 280 281 282
              placeholder="请选择装运日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="10">
          <el-form-item
            label="通知日期"
zhengxiaokui committed
283
            label-width="80px"
zhengxiaokui committed
284 285 286 287 288 289 290
            prop="ledgrp.rec.advdat"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.advdat"
              style="width: 100%"
              placeholder="请选择通知日期"
291
              disabled
zhengxiaokui committed
292 293 294 295 296 297 298 299 300
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="14">
          <el-form-item label="到期日" prop="ledgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
zhengxiaokui committed
301
              style="width: 90%"
zhengxiaokui committed
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
              placeholder="请选择到期日"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="10"></c-col>

        <c-col :span="24">
          <el-form-item label="有效地点" prop="ledgrp.rec.expplc">
            <c-input
              v-model="model.ledgrp.rec.expplc"
              maxlength="29"
              placeholder="有效地点"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="确认接收指示" prop="ledgrp.rec.cnfdet">
            <c-select
              v-model="model.ledgrp.rec.cnfdet"
              style="width: 100%"
              placeholder="请选择确认接收指示"
zhengxiaokui committed
324
              :code="codes.cnfins"
zhengxiaokui committed
325 326 327 328 329 330 331 332 333 334 335
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="适用规则" prop="ledgrp.rec.apprul">
            <c-select
              v-model="model.ledgrp.rec.apprul"
              style="width: 100%"
              placeholder="请选择适用规则"
lianyang committed
336
              :code="codes.apprul1"
zhengxiaokui committed
337
              @change="apprulChange"
zhengxiaokui committed
338 339 340 341 342 343 344 345 346 347 348
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="其他规则" prop="ledgrp.rec.apprultxt">
            <c-input
              v-model="model.ledgrp.rec.apprultxt"
              maxlength="35"
              placeholder="请输入其他规则"
zhengxiaokui committed
349
              :disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
zhengxiaokui committed
350 351 352 353 354 355 356 357 358
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="分批装运" prop="ledgrp.rec.shppar">
            <c-select
              v-model="model.ledgrp.rec.shppar"
              style="width: 100%"
              placeholder="请选择分批装运"
lianyang committed
359
              :code="codes.shptrss18"
zhengxiaokui committed
360 361 362 363 364 365 366 367 368 369 370
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="转运" prop="ledgrp.rec.shptrss18">
            <c-select
              v-model="model.ledgrp.rec.shptrss18"
              style="width: 100%"
              placeholder="请选择是否转运"
zhengxiaokui committed
371
              :code="codes.shptrss18"
zhengxiaokui committed
372 373 374 375 376
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>
zhengxiaokui committed
377

378
      <!-- ========================右边======================= -->
zhengxiaokui committed
379
      <c-col :span="11" :offset="1">
380 381 382 383 384 385 386 387 388 389 390 391 392 393
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '受益人',
              grp: 'ledgrp',
              rol: 'ben',
            }"
            :disabled="true"
            @onSeainf="onSeainf"
            @onAplpDet="onBenpDet"
          >
          </c-ptap>
        </c-col>
zhengxiaokui committed
394

395 396 397 398 399 400 401 402 403 404 405 406 407 408
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '开证行',
              grp: 'ledgrp',
              rol: 'iss',
            }"
            :disabled="true"
            @onSeainf="onSeainf"
            @onAplpDet="onIsspDet"
          >
          </c-ptap>
        </c-col>
zhengxiaokui committed
409

410 411 412 413 414 415 416 417 418 419 420 421 422
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '申请人',
              grp: 'ledgrp',
              rol: 'apl',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onAplpDet"
          >
          </c-ptap>
        </c-col>
zhengxiaokui committed
423 424

        <c-col :span="12" class="centerLable marginLable">
425
          <c-checkbox v-model="model.ledgrp.rec.revflg" @change="openRevolvingDetails"
426
            >Revolving L/C</c-checkbox
zhengxiaokui committed
427 428 429 430
          >
        </c-col>

        <!-- Authorization to Debit -->
zhengxiaokui committed
431
        <c-col :span="12" class="centerLable marginLable">
zhengxiaokui committed
432 433 434 435
          <c-checkbox v-model="model.ledgrp.rec.dbtflg">借记授权书</c-checkbox>
        </c-col>

        <!-- Non-Bank Issuer -->
436
        <c-col :span="24" class="centerLable marginLable">
zhengxiaokui committed
437 438 439 440 441 442
          <c-checkbox v-model="model.ledgrp.rec.nonban"
            >非银行发行人</c-checkbox
          >
        </c-col>

        <!-- Test Key Unconfirmity -->
443
        <c-col :span="24" class="centerLable marginLable">
zhengxiaokui committed
444 445 446
          <c-checkbox v-model="model.ledgrp.rec.teskeyunc">测试密钥</c-checkbox>
        </c-col>
      </c-col>
447 448
    </c-row>
  </div>
zhengxiaokui committed
449 450
</template>
<script>
Wuyuqiu committed
451 452 453 454 455 456
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";
zhengxiaokui committed
457
// import Amtpanl from "~/views/Public/Amtpanl";
zhengxiaokui committed
458 459

export default {
Wuyuqiu committed
460 461 462
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
463
  mixins: [commonProcess],
zhengxiaokui committed
464
  data() {
Wuyuqiu committed
465
    return {};
zhengxiaokui committed
466
  },
zhengxiaokui committed
467 468 469
  methods: {
    ...Event,
    apprulChange(v) {
Wuyuqiu committed
470 471
      if (v !== "OTHR") {
        this.model.ledgrp.rec.apprultxt = "";
zhengxiaokui committed
472 473
      }
    },
474 475 476 477 478 479 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 531 532 533 534
    openAddAmount(val){
      if(val ==='' && !(this.model.ledgrp.cbs.max2.amt =='0.000'&& this.model.ledgrp.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.executeRule('letp.aamp.aammod.addamtflg').then(res => {
                if (res.respCode == SUCCESS) {
                    this.updateModel(res.data)
                }
            })
            // this.model.ledgrp.cbs.max2.amt ='0.000';
            // this.model.ledgrp.blk.addamtcov = '';
            // this.$message({
            //       type: 'success',
            //       message: '删除成功!'
            // });
          }).catch(() => {//No的功能在这里写
            this.model.letp.aamp.aammod.addamtflg ='X'
                // this.$message({
                //   type: 'info',
                //   message: '已取消'
                // });  
          }); 
      }
    },
    openRevolvingDetails(val){
    if(val ==='' && !(this.model.ledgrp.rec.revtyp ===''&& this.model.ledgrp.rec.revtimes == '0' && this.model.ledgrp.rec.revdat ===''
      &&this.model.ledgrp.rec.revcum ===''&&this.model.ledgrp.blk.revcls ===''&&this.model.ledgrp.blk.revnotes ==='') ){
        this.$confirm('Are you sure you want to delete the entered Revolving Details?','提示',{
            confirmButtonText: 'Yes',
            cancelButtonText: 'No',
            type: 'warning',
            showClose:false
          }).then(() => {//yes的执行在这里写
            this.executeRule('ledgrp.rec.revflg').then(res => {
                if (res.respCode == SUCCESS) {
                    this.updateModel(res.data)
                }
            })
            // this.model.ledgrp.rec.revtyp ='';
            // this.model.ledgrp.rec.revtimes = '0';
            // this.model.ledgrp.rec.revdat ='';
            // this.model.ledgrp.rec.revcum ='';
            // this.model.ledgrp.blk.revcls ='';
            // this.model.ledgrp.blk.revnotes ='';
            // this.$message({
            //       type: 'success',
            //       message: '删除成功!'
            // });
          }).catch(() => {//No的功能在这里写
            this.model.ledgrp.rec.revflg ='X'
                // this.$message({
                //   type: 'info',
                //   message: '已取消'
                // });  
          }); 
    }
  }
zhengxiaokui committed
535
  },
zhengxiaokui committed
536
  created: function () {},
Wuyuqiu committed
537
};
zhengxiaokui committed
538 539
</script>
<style>
zhengxiaokui committed
540 541 542 543
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
zhengxiaokui committed
544
  padding-bottom: 2px;
zhengxiaokui committed
545 546
}
.marginLable {
Wuyuqiu committed
547
  padding-left: 160px;
zhengxiaokui committed
548
}
zhengxiaokui committed
549
</style>