Ovwp.vue 15.5 KB
Newer Older
wuziqiang committed
1
<template>
wangna committed
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
  <div class="eibs-tab">
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="信用证号码"
            prop="dedgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.dedgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入信用证号码"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="1">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
nanrui committed
28
            <i class="el-icon-info" style="font-size:15px"></i>
wangna committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42
          </c-button>
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
        </c-col>
      </c-col>
43

wangna committed
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
      <c-col :span="24">
        <el-form-item label="是否可以转让" prop="dedgrp.rec.lcrtyp">
          <c-select
            v-model="model.dedgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="请选择"
            disabled
          >
            <el-option
              v-for="item in codes.lcrtyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
62

wangna committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
      <c-col :span="24">
        <el-form-item
          label="所属客户经理"
          prop="detp.usr.extkey"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.detp.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"
                @click="onExtkey"
              ></c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
89

wangna committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
      <c-col :span="13">
        <el-form-item label="信用证金额" prop="dedgrp.cbs.nom1.cur">
          <c-select
            disabled
            v-model="model.dedgrp.cbs.nom1.cur"
            style="width: 100%"
            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>
109

wangna committed
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
      <c-col :span="11">
        <el-form-item
          style="text-align: left"
          label-width="5px"
          prop="dedgrp.cbs.nom1.amt"
        >
          <c-input-currency
            v-model="model.dedgrp.cbs.nom1.amt"
            style="text-align: left; width: 100%"
            disabled
            placeholder="请输入信用证金额"
            @keyup.enter.native="
              defaultFunction('dedgrp.cbs.nom1.amt', model.dedgrp.cbs.nom1.amt)
            "
          ></c-input-currency>
        </el-form-item>
      </c-col>
127

wangna committed
128 129 130 131 132 133 134 135 136 137
      <c-col :span="24">
        <el-form-item label="大写金额" prop="detp.upamt">
          <c-input
            v-model="model.detp.upamt"
            maxlength="76"
            placeholder="请输入大写金额"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
138

wangna committed
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
      <c-col :span="24">
        <c-col :span="13">
          <c-form-item label="上下浮动限额" prop="dedgrp.rec.nomtop">
            <c-input
              v-model="model.dedgrp.rec.nomtop"
              maxlength="10"
              style="width: 100%"
              disabled
              placeholder="请输入浮动下限"
            ></c-input>
          </c-form-item>
        </c-col>
        <c-col :span="1" style="text-align: center">
          <label
            style="
              display: inline-block;
              width: calc(3% - 4px);
              text-align: center;
            "
            >-</label
          >
        </c-col>
        <c-col :span="10">
          <c-form-item label="" prop="dedgrp.rec.nomton" label-width="0">
            <c-input
              v-model="model.dedgrp.rec.nomton"
              prop="dedgrp.rec.nomton"
              maxlength="10"
              style="width: 100%"
              disabled
              placeholder="请输入浮动上限"
            ></c-input
          ></c-form-item>
        </c-col>
      </c-col>
174

wangna committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
      <c-col :span="13">
        <el-form-item label="信用证最大金额" prop="dedgrp.cbs.max.cur">
          <c-select
            v-model="model.dedgrp.cbs.max.cur"
            placeholder="请选择币种"
            disabled
          >
            <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>
liuxin committed
192

wangna committed
193 194 195 196 197 198 199 200 201
      <c-col :span="11">
        <el-form-item label="" label-width="5px" prop="dedgrp.cbs.max.amt">
          <c-input
            v-model="model.dedgrp.cbs.max.amt"
            placeholder="请输入信用证最大金额"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
202

wangna committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
      <c-col :span="24">
        <el-form-item label="贸易类型" prop="dedgrp.rec.mytype">
          <c-select
            v-model="model.dedgrp.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"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
221

wangna committed
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 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
      <c-col :span="24">
        <c-form-item label="开证日期" prop="dedgrp.rec.opndat">
          <c-date-picker
            type="date"
            v-model="model.dedgrp.rec.opndat"
            value-format="yyyy-MM-dd"
            placeholder="请选择开证日期"
            style="width: 100%"
          ></c-date-picker>
        </c-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          v-if="model.dedgrp.rec.mytype == 'H'"
          label="最迟货物装运日"
          prop="dedgrp.rec.shpdat"
        >
          <c-date-picker
            type="date"
            v-model="model.dedgrp.rec.shpdat"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择最迟货物装运日"
          ></c-date-picker>
        </el-form-item>
        <el-form-item
          v-if="model.dedgrp.rec.mytype == 'F'"
          label="最迟服务提供日"
          prop="dedgrp.rec.shpdat"
        >
          <c-date-picker
            type="date"
            v-model="model.dedgrp.rec.shpdat"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择最迟服务提供日"
          ></c-date-picker>
        </el-form-item>
        <el-form-item
          label="最迟货物装运日/服务提供日"
          v-if="model.dedgrp.rec.mytype == '3'"
          prop="dedgrp.rec.shpdat"
        >
          <c-date-picker
            type="date"
            v-model="model.dedgrp.rec.shpdat"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择"
          ></c-date-picker>
        </el-form-item>
      </c-col>
274

wangna committed
275 276 277 278 279 280 281 282 283 284 285 286
      <c-col :span="24">
        <c-form-item label="有效日期" prop="dedgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.dedgrp.rec.expdat"
            value-format="yyyy-MM-dd"
            disabled
            placeholder="请选择有效日期"
            style="width: 100%"
          ></c-date-picker>
        </c-form-item>
      </c-col>
287

wangna committed
288 289 290 291 292 293 294 295 296 297 298
      <c-col :span="24">
        <c-form-item label="开证行开证类型" prop="dedgrp.rec.dkflg">
          <c-select
            v-model="model.dedgrp.rec.dkflg"
            style="width: 100%"
            placeholder="请选择"
            :code="codes.dkflg"
            disabled
          ></c-select>
        </c-form-item>
      </c-col>
299

wangna committed
300 301 302 303 304 305 306 307 308 309
      <c-col :span="24">
        <el-form-item label="有效地点" prop="dedgrp.rec.expplc">
          <c-input
            v-model="model.dedgrp.rec.expplc"
            maxlength="35"
            placeholder="请输入有效地点"
          >
          </c-input>
        </el-form-item>
      </c-col>
liuxin committed
310

wangna committed
311 312 313 314 315 316 317 318 319 320 321 322 323
      <c-col :span="24">
        <el-form-item label="转运" prop="dedgrp.rec.shptrs">
          <c-select
            v-model="model.dedgrp.rec.shptrs"
            style="width: 100%"
            placeholder="请选择"
            :disabled="model.dedgrp.rec.mytype == 'F'"
          >
            <el-option label="不允许" value="禁止"></el-option>
            <el-option label="允许" value="允许"></el-option>
          </c-select>
        </el-form-item>
      </c-col>
324

wangna committed
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
      <c-col :span="24">
        <el-form-item label="是否通过电证系统" prop="dedgrp.rec.elcflg">
          <c-select
            v-model="model.dedgrp.rec.elcflg"
            style="width: 100%"
            placeholder="请选择是否通过电证系统"
            disabled
          >
            <el-option
              v-for="item in codes.elcflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
343

wangna committed
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
      <c-col :span="24">
        <el-form-item label="信用证兑付方式" prop="dedgrp.rec.avbby">
          <c-select
            v-model="model.dedgrp.rec.avbby"
            style="width: 100%"
            @change="avbbykeyEvent"
            placeholder="请选择"
          >
            <el-option
              v-for="item in codes.avbbyDetopn"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
362

wangna committed
363 364 365 366 367 368 369 370 371
      <c-col :span="24">
        <el-form-item label="天数" prop="dedgrp.rec.tenmaxday">
          <c-input
            v-model.number="model.dedgrp.rec.tenmaxday"
            placeholder="请输入天数"
            :disabled="model.dedgrp.rec.avbby == 'P'"
          ></c-input>
        </el-form-item>
      </c-col>
liuxin committed
372

wangna committed
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
      <div v-if="model.dedgrp.rec.avbby != 'D'">
        <c-col :span="24">
          <el-form-item label="远期付款指示" prop="dedgrp.blk.dftat">
            <c-input
              type="textarea"
              v-model="model.dedgrp.blk.dftat"
              maxlength="35"
              show-word-limit
              placeholder="请输入远期付款指示"
              :disabled="!model.dedgrp.rec.avbby"
            ></c-input>
          </el-form-item>
        </c-col>
      </div>
      <div v-else>
        <c-col :span="24">
          <el-form-item label="远期付款指示" prop="dedgrp.blk.defdet">
            <c-input
              type="textarea"
              v-model="model.dedgrp.blk.defdet"
              maxlength="35"
              show-word-limit
              placeholder="请输入远期付款指示"
            ></c-input>
          </el-form-item>
liuxin committed
398
        </c-col>
wangna committed
399 400
      </div>
    </c-col>
401

wangna committed
402 403 404 405 406 407 408 409 410 411 412 413 414
    <!-- ========================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="摘要" prop="dedgrp.rec.nam">
          <c-input
            text-align="middle"
            v-model="model.dedgrp.rec.nam"
            maxlength="40"
            disabled
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>
415

wangna committed
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '受益人',
            grp: 'dedgrp',
            rol: 'ben',
          }"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
          :disabledRef="true"
        >
        </c-ptap>
      </c-col>
431

wangna committed
432 433 434 435 436 437 438 439 440 441 442
      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="受益人账号" prop="dedgrp.ben.pts.extact">
            <c-input
              v-model="model.dedgrp.ben.pts.extact"
              maxlength="16"
              placeholder="请输入受益人账号"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
443

wangna committed
444 445 446 447 448 449 450 451 452 453
      <c-col :span="24">
        <el-form-item label="受益人开户行联行行号" prop="dedgrp.beb.pts.bankno">
          <c-input
            v-model="model.dedgrp.beb.pts.bankno"
            maxlength="20"
            placeholder="请输入受益人开户行联行行号"
          >
          </c-input>
        </el-form-item>
      </c-col>
454

wangna committed
455 456 457 458 459 460 461 462 463 464 465 466 467 468
      <c-col :span="24">
        <el-form-item
          label="受益人开户行联行名称 电证用"
          prop="dedgrp.beb.pts.jigomc"
        >
          <c-input
            type="textarea"
            v-model="model.dedgrp.beb.pts.jigomc"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称  电证用"
          ></c-input>
        </el-form-item>
      </c-col>
469

wangna committed
470 471 472 473 474 475 476 477 478 479 480 481 482 483
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'dedgrp',
            rol: 'apl',
          }"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
484

wangna committed
485 486 487 488 489 490 491 492 493 494
      <c-col :span="24">
        <el-form-item label="是否通知客户" prop="dedgrp.rec.rejflg">
          <c-select
            v-model="model.dedgrp.rec.rejflg"
            style="width: 100%"
            placeholder="请选择是否通知客户"
          >
          </c-select>
        </el-form-item>
      </c-col>
liuxin committed
495

wangna committed
496 497 498 499 500 501 502 503 504 505 506
      <c-col :span="24">
        <el-form-item label="拒绝通知理由" prop="dedgrp.blk.rejadvrsn">
          <c-input
            type="textarea"
            v-model="model.dedgrp.blk.rejadvrsn"
            maxlength="35"
            show-word-limit
            placeholder="请输入拒绝通知理由"
          ></c-input>
        </el-form-item>
      </c-col>
liuxin committed
507

wangna committed
508 509 510 511 512 513 514 515 516 517 518 519 520
      <c-col :span="24">
        <el-form-item label="交单期限" prop="dedgrp.blk.preper">
          <c-input
            type="textarea"
            v-model="model.dedgrp.blk.preper"
            maxlength="35"
            show-word-limit
            placeholder="请输入交单期限"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
  </div>
wuziqiang committed
521 522
</template>
<script>
523
import Api from "~/service/Api";
wangren committed
524
import commonProcess from "~/mixin/commonProcess";
525 526 527
import Event from "~/model/Detopn/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";
wuziqiang committed
528 529

export default {
wangna committed
530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      jigomcFlag: false,
      trade: "",
    };
  },
  methods: { ...Event },
  created: function () {},
  computed: {
    flag() {
      return this.model.dedgrp.ben.pts.extkey == "";
545
    },
wangna committed
546
  },
547
};
wuziqiang committed
548 549 550
</script>
<style>
</style>