Ovwp.vue 15.4 KB
Newer Older
wuziqiang committed
1
<template>
wangna committed
2 3 4 5 6 7 8 9 10 11 12 13 14
  <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"
wangna committed
15
              placeholder="请输入信用证号码"
wangna committed
16 17 18 19 20 21 22 23 24 25 26 27
              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>
wuziqiang committed
43

wangna committed
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
      <c-col :span="24">
        <el-form-item label="是否可以转让" prop="dedgrp.rec.lcrtyp">
          <c-select
            v-model="model.dedgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="请选择"
          >
            <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>
wuziqiang committed
61

wangna committed
62 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
      <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>
88

wangna committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
      <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>
wuziqiang committed
108

wangna committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
      <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%"
            placeholder="请输入信用证金额"
            @keyup.enter.native="
              defaultFunction('dedgrp.cbs.nom1.amt', model.dedgrp.cbs.nom1.amt)
            "
          ></c-input-currency>
        </el-form-item>
      </c-col>
125

wangna committed
126 127 128 129 130 131 132 133 134 135
      <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>
136

wangna committed
137
      <c-col :span="24">
138
        <c-col :span="13">
wangna committed
139
          <c-form-item label="上下浮动限额" prop="dedgrp.rec.nomtop">
140 141
            <c-input
              v-model="model.dedgrp.rec.nomtop"
wangna committed
142
              maxlength="10"
Eivi committed
143
              style="width: 100%"
wangna committed
144
              placeholder="请输入浮动下限"
145
            ></c-input>
wangna committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159
          </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">
160 161
            <c-input
              v-model="model.dedgrp.rec.nomton"
wangna committed
162 163
              prop="dedgrp.rec.nomton"
              maxlength="10"
Eivi committed
164
              style="width: 100%"
wangna committed
165
              placeholder="请输入浮动上限"
wangna committed
166 167
            ></c-input
          ></c-form-item>
168
        </c-col>
wangna committed
169
      </c-col>
Eivi committed
170

wangna committed
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
      <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>
188

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

wangna committed
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
      <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>
wuziqiang committed
215
        </el-form-item>
wangna committed
216
      </c-col>
217

wuziqiang committed
218
      <c-col :span="24">
wangna committed
219 220 221 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
        <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>
wuziqiang committed
268 269 270 271
        </el-form-item>
      </c-col>

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

wuziqiang committed
283
      <c-col :span="24">
wangna committed
284 285 286 287 288 289 290 291 292
        <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>
wuziqiang committed
293 294 295
      </c-col>

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

      <c-col :span="24">
wangna committed
307 308 309 310 311 312 313 314 315 316
        <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>
wuziqiang committed
317
        </el-form-item>
wangna committed
318
      </c-col>
319

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

wangna committed
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
      <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>
wuziqiang committed
354
        </el-form-item>
wangna committed
355
      </c-col>
wuziqiang committed
356 357

      <c-col :span="24">
wangna committed
358 359 360 361 362 363
        <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>
wuziqiang committed
364 365 366
        </el-form-item>
      </c-col>

wangna committed
367 368 369 370 371 372 373 374 375 376 377 378
      <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>
wuziqiang committed
379
        </c-col>
wangna committed
380 381 382 383 384 385 386 387 388 389 390 391
      </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>
wuziqiang committed
392
        </c-col>
wangna committed
393 394
      </div>
    </c-col>
wuziqiang committed
395

wangna committed
396 397 398 399 400 401 402 403 404
    <!-- ========================右边======================= -->
    <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
wangna committed
405
            placeholder="请输入摘要"
wangna committed
406 407 408
          ></c-input>
        </el-form-item>
      </c-col>
liuxin committed
409

wangna committed
410 411 412 413 414 415 416 417 418 419 420 421 422 423
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '受益人',
            grp: 'dedgrp',
            rol: 'ben',
          }"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
liuxin committed
424

wangna committed
425 426 427 428 429 430 431 432 433
      <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>
liuxin committed
434
        </c-col>
wangna committed
435
      </c-col>
436

wangna committed
437 438 439 440 441 442 443 444
      <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>
wuziqiang committed
445
        </el-form-item>
wangna committed
446
      </c-col>
wuziqiang committed
447

wangna committed
448 449 450 451 452 453 454 455 456 457 458 459
      <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>
wuziqiang committed
460
        </el-form-item>
wangna committed
461
      </c-col>
wuziqiang committed
462

wangna committed
463 464 465 466 467 468 469 470 471 472 473 474 475 476
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'dedgrp',
            rol: 'apl',
          }"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
477

wangna committed
478 479 480 481 482 483 484 485 486
      <c-col :span="24">
        <el-form-item label="是否通知客户" prop="dedgrp.rec.rejflg">
          <c-select
            v-model="model.dedgrp.rec.rejflg"
            style="width: 100%"
            placeholder="请选择是否通知客户"
            :code="codes.ELC022"
          >
          </c-select>
wuziqiang committed
487
        </el-form-item>
wangna committed
488 489 490 491 492 493 494 495 496 497 498 499
      </c-col>

      <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="请输入拒绝通知理由"
            :disabled="model.dedgrp.rec.rejflg != 'ADRE'"
          ></c-input>
wuziqiang committed
500
        </el-form-item>
wangna committed
501 502 503 504 505 506 507 508 509 510 511
      </c-col>

      <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>
wuziqiang committed
512
        </el-form-item>
wangna committed
513 514 515
      </c-col>
    </c-col>
  </div>
wuziqiang committed
516 517
</template>
<script>
518
import Api from "~/service/Api";
wangren committed
519
import commonProcess from "~/mixin/commonProcess";
wuziqiang committed
520 521 522 523 524
import Event from "~/model/Detopn/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";

export default {
wangna committed
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
  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 == "";
wuziqiang committed
540
    },
wangna committed
541
  },
542
};
wuziqiang committed
543 544 545
</script>
<style>
</style>