Ovwp.vue 15.8 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
  <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="请输入Reference"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <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>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
      </c-col>
wuziqiang committed
52

wangna committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
      <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
70

wangna committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
      <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>
97

wangna committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
      <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
117

wangna committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
      <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>
134

wangna committed
135 136 137 138 139 140 141 142 143 144
      <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>
145

wangna committed
146
      <c-col :span="24">
147
        <c-col :span="13">
wangna committed
148
          <c-form-item label="上下浮动限额" prop="dedgrp.rec.nomtop">
149 150
            <c-input
              v-model="model.dedgrp.rec.nomtop"
wangna committed
151
              maxlength="10"
Eivi committed
152
              style="width: 100%"
153 154
              placeholder="请输入Amount Tolerance - Positive"
            ></c-input>
wangna committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168
          </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">
169 170
            <c-input
              v-model="model.dedgrp.rec.nomton"
wangna committed
171 172
              prop="dedgrp.rec.nomton"
              maxlength="10"
Eivi committed
173
              style="width: 100%"
174
              placeholder="请输入Amount Tolerance - Negative"
wangna committed
175 176
            ></c-input
          ></c-form-item>
177
        </c-col>
wangna committed
178
      </c-col>
Eivi committed
179

wangna committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
      <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>
197

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

wangna committed
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
      <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
224
        </el-form-item>
wangna committed
225
      </c-col>
226

wuziqiang committed
227
      <c-col :span="24">
wangna committed
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 274 275 276
        <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
277 278 279 280
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
281 282 283 284 285 286 287 288 289
        <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
290
      </c-col>
wangna committed
291

wuziqiang committed
292
      <c-col :span="24">
wangna committed
293 294 295 296 297 298 299 300 301
        <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
302 303 304
      </c-col>

      <c-col :span="24">
wangna committed
305 306 307 308 309 310 311
        <el-form-item label="有效地点" prop="dedgrp.rec.expplc">
          <c-input
            v-model="model.dedgrp.rec.expplc"
            maxlength="35"
            placeholder="请输入有效地点"
          >
          </c-input>
wuziqiang committed
312 313 314 315
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
316 317 318 319 320 321 322 323 324 325
        <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
326
        </el-form-item>
wangna committed
327
      </c-col>
328

wuziqiang committed
329
      <c-col :span="24">
wangna committed
330 331 332 333 334 335 336 337 338 339 340 341 342 343
        <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
344 345 346
        </el-form-item>
      </c-col>

wangna committed
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
      <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
363
        </el-form-item>
wangna committed
364
      </c-col>
wuziqiang committed
365 366

      <c-col :span="24">
wangna committed
367 368 369 370 371 372
        <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
373 374 375
        </el-form-item>
      </c-col>

wangna committed
376 377 378 379 380 381 382 383 384 385 386 387
      <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
388
        </c-col>
wangna committed
389 390 391 392 393 394 395 396 397 398 399 400
      </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
401
        </c-col>
wangna committed
402 403
      </div>
    </c-col>
wuziqiang committed
404

wangna committed
405 406 407 408 409 410 411 412 413 414 415 416 417
    <!-- ========================右边======================= -->
    <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="请输入Externally Displayed Name to Identify the Contract"
          ></c-input>
        </el-form-item>
      </c-col>
liuxin committed
418

wangna committed
419 420 421 422 423 424 425 426 427 428 429 430 431 432
      <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
433

wangna committed
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>
liuxin committed
443
        </c-col>
wangna committed
444
      </c-col>
445

wangna committed
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>
wuziqiang committed
454
        </el-form-item>
wangna committed
455
      </c-col>
wuziqiang committed
456

wangna committed
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>
wuziqiang committed
469
        </el-form-item>
wangna committed
470
      </c-col>
wuziqiang committed
471

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

wangna committed
487 488 489 490 491 492 493 494 495
      <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
496
        </el-form-item>
wangna committed
497 498 499 500 501 502 503 504 505 506 507 508
      </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
509
        </el-form-item>
wangna committed
510 511 512 513 514 515 516 517 518 519 520
      </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
521
        </el-form-item>
wangna committed
522 523 524
      </c-col>
    </c-col>
  </div>
wuziqiang committed
525 526
</template>
<script>
527
import Api from "~/service/Api";
wangren committed
528
import commonProcess from "~/mixin/commonProcess";
wuziqiang committed
529 530 531 532 533
import Event from "~/model/Detopn/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";

export default {
wangna committed
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
  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
549
    },
wangna committed
550
  },
551
};
wuziqiang committed
552 553 554
</script>
<style>
</style>