Ovwp1.vue 14.8 KB
Newer Older
WH committed
1 2 3
<template>
  <div class="eibs">
    <!-- ============左边================= -->
panziyi committed
4
    <c-col :span="12" style="padding-right: 20px">
WH committed
5
      <c-col :span="24">
panziyi committed
6 7 8 9 10
        <el-form-item
          label="出口信用证编号"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
WH committed
11
          <c-fullbox>
panziyi committed
12 13 14 15 16 17 18
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入编号"
              style="width: 95%"
              :disabled="true"
            >
WH committed
19 20
            </c-input>
            <template slot="footer">
panziyi committed
21 22 23 24 25 26
              <c-button
                style="margin: 0 10px 0 0; padding: 0 12px"
                size="small"
                type="primary"
              >
                <i class="el-icon-info" style="font-size: 15px"></i>
WH committed
27
              </c-button>
panziyi committed
28 29 30 31 32 33 34 35 36 37
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled="
                  model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref
                    ? false
                    : true
                "
              >
WH committed
38 39 40 41 42 43 44 45 46
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="信用证类型" prop="ledgrp.rec.lcrtyp">
panziyi committed
47 48 49 50 51 52
          <c-select
            v-model="model.ledgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="请选择类型"
            :code="codes.lcrtyp"
          >
WH committed
53 54 55 56 57 58 59 60
          </c-select>
        </el-form-item>
      </c-col>

      <!-- Responsible user -->
      <c-col :span="24">
        <el-form-item label="客户经理" prop="letp.usr.extkey">
          <c-fullbox>
panziyi committed
61 62 63 64 65 66
            <c-input
              v-model="model.letp.usr.extkey"
              maxlength="8"
              placeholder="请输入"
              disabled
            ></c-input>
WH committed
67
            <template slot="footer">
panziyi committed
68 69 70 71 72 73 74 75 76 77 78
              <c-button
                style="margin-left: 10px; padding: 0 10px"
                size="small"
                icon="el-icon-search"
                type="primary"
              ></c-button>
              <c-checkbox
                :disabled="true"
                style="margin-left: 5px"
                v-model="model.ledgrp.rec.collflg"
                >Collateralized L/C
WH committed
79 80 81 82 83 84 85 86 87 88
              </c-checkbox>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <!-- nominal amount -->
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
panziyi committed
89 90 91 92 93 94
            <c-select
              v-model="model.ledgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="请选择币种"
              :code="codes.curtxt1"
            >
WH committed
95 96 97 98 99
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="7">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
panziyi committed
100 101 102 103 104 105
            <c-input-currency
              v-model="model.ledgrp.cbs.nom1.amt"
              style="text-align: left; width: 95%"
              placeholder="请输入"
              @keyup.enter.native="$event.target.blur()"
            ></c-input-currency>
WH committed
106 107 108
          </el-form-item>
        </c-col>
        <c-col :span="5">
panziyi committed
109 110 111
          <c-checkbox v-model="addamtflg" style="margin-left: -1px"
            >附加金额</c-checkbox
          >
WH committed
112 113 114 115 116 117
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <c-form-item label="溢短装" prop="ledgrp.rec.nomtop">
panziyi committed
118 119 120 121 122 123 124
            <c-input
              v-model.number="model.ledgrp.rec.nomtop"
              maxlength="2"
              style="width: 100%"
              placeholder="请输入上浮比例"
              @change="cbsmax"
            ></c-input>
WH committed
125 126 127 128
          </c-form-item>
        </c-col>
        <c-col :span="7">
          <el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton">
panziyi committed
129 130 131 132 133 134 135
            <c-input
              v-model.number="model.ledgrp.rec.nomton"
              maxlength="2"
              style="width: 95%"
              placeholder="请输入下浮比例"
              @keyup.enter.native="$event.target.blur()"
            ></c-input>
WH committed
136 137 138 139 140 141 142 143 144 145
          </el-form-item>
        </c-col>
        <c-col :span="5">
          <!-- <c-checkbox v-model="model.ledgrp.preadvflg" style="margin-left:10px;">预先通知</c-checkbox> -->
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="19">
          <el-form-item label="金额限额表述" prop="ledgrp.rec.nomspc">
panziyi committed
146 147 148 149 150 151 152
            <c-select
              v-model="model.ledgrp.rec.nomspc"
              style="width: 97%"
              placeholder="请选择"
              :code="codes.nomspc"
              disabled
            >
WH committed
153 154 155 156 157
            </c-select>
          </el-form-item>
        </c-col>
        <!-- Incoming Transfer -->
        <c-col :span="5">
panziyi committed
158 159 160 161 162
          <c-checkbox
            v-model="model.ledgrp.rec.inctrf"
            style="margin-left: -1px"
            disabled
            >Incoming Transfer
WH committed
163 164 165 166 167 168 169
          </c-checkbox>
        </c-col>
      </c-col>

      <!-- Maximum Amount -->
      <c-col :span="12">
        <el-form-item label="最大金额" prop="ledgrp.cbs.max.cur">
panziyi committed
170 171 172 173 174 175 176
          <c-select
            v-model="model.ledgrp.cbs.max.cur"
            style="width: 100%"
            placeholder="请选择币种"
            :code="codes.curtxt1"
            disabled
          >
WH committed
177 178 179 180 181
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt">
panziyi committed
182 183 184 185 186 187
          <c-input-currency
            disabled
            v-model="model.ledgrp.cbs.max.amt"
            placeholder="请输入最大金额"
            class="m-input-currency"
          ></c-input-currency>
WH committed
188 189 190 191 192 193
        </el-form-item>
      </c-col>

      <!-- Issued on -->
      <c-col :span="12">
        <el-form-item label="开证日期" prop="ledgrp.rec.opndat">
panziyi committed
194 195 196 197 198 199 200
          <c-date-picker
            type="date"
            v-model="model.ledgrp.rec.opndat"
            style="width: 100%"
            value-format="yyyy-MM-dd"
            placeholder="请选择开证日期"
          >
WH committed
201 202 203 204
          </c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="11" :offset="1">
panziyi committed
205 206 207 208 209 210 211 212 213 214 215 216 217
        <el-form-item
          label="预通知日期"
          label-width="120px"
          prop="ledgrp.rec.preadvdt"
        >
          <c-date-picker
            type="date"
            v-model="model.ledgrp.rec.preadvdt"
            style="width: 100%"
            value-format="yyyy-MM-dd"
            placeholder="请选择日期"
            disabled
          >
WH committed
218 219 220 221 222 223
          </c-date-picker>
        </el-form-item>
      </c-col>
      <!-- shipment date -->
      <c-col :span="12">
        <el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
panziyi committed
224 225 226 227 228 229 230
          <c-date-picker
            type="date"
            v-model="model.ledgrp.rec.shpdat"
            style="width: 100%"
            placeholder="请选择装运日期"
            value-format="yyyy-MM-dd"
          >
WH committed
231 232 233 234
          </c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="11" :offset="1">
panziyi committed
235 236 237 238 239 240 241 242 243 244 245 246 247
        <el-form-item
          label="复核日期"
          label-width="120px"
          prop="ledgrp.rec.advdat"
        >
          <c-date-picker
            disabled
            type="date"
            v-model="model.ledgrp.rec.advdat"
            style="width: 100%"
            placeholder="请选择通知日期"
            value-format="yyyy-MM-dd"
          >
WH committed
248 249 250 251 252 253 254
          </c-date-picker>
        </el-form-item>
      </c-col>

      <!-- expiring on -->
      <c-col :span="24">
        <el-form-item label="生效日期" prop="ledgrp.rec.expdat">
panziyi committed
255 256 257 258 259 260 261
          <c-date-picker
            type="date"
            v-model="model.ledgrp.rec.expdat"
            style="width: 100%"
            value-format="yyyy-MM-dd"
            placeholder="请选择到期日"
          >
WH committed
262 263 264 265 266 267
          </c-date-picker>
        </el-form-item>
      </c-col>
      <!-- in (place)/counters of -->
      <c-col :span="24">
        <el-form-item label="生效地点" prop="ledgrp.rec.expplc">
panziyi committed
268 269 270 271 272
          <c-input
            v-model="model.ledgrp.rec.expplc"
            maxlength="29"
            placeholder="有效地点"
          ></c-input>
WH committed
273 274 275 276 277
        </el-form-item>
      </c-col>
      <!-- Confirmation Instruct.Received -->
      <c-col :span="24">
        <el-form-item label="保兑指示" prop="ledgrp.rec.cnfdet">
panziyi committed
278 279 280 281 282 283
          <c-select
            v-model="model.ledgrp.rec.cnfdet"
            style="width: 100%"
            placeholder="请选择确认接收指示"
            :code="codes.cnfflg1"
          >
WH committed
284 285 286 287 288 289
          </c-select>
        </el-form-item>
      </c-col>
      <!-- Applicable rules -->
      <c-col :span="24">
        <el-form-item label="适用规则" prop="ledgrp.rec.apprul">
panziyi committed
290 291 292 293 294 295 296
          <c-select
            v-model="model.ledgrp.rec.apprul"
            style="width: 100%"
            placeholder="请选择适用规则"
            :code="codes.apprul"
            @change="apprulChange(model.ledgrp.rec.apprul)"
          >
WH committed
297 298 299 300 301 302
          </c-select>
        </el-form-item>
      </c-col>
      <!-- Other Applicable rules -->
      <c-col :span="24">
        <el-form-item label="其他适用规则" prop="ledgrp.rec.apprultxt">
panziyi committed
303 304 305 306 307 308
          <c-input
            v-model="model.ledgrp.rec.apprultxt"
            maxlength="35"
            placeholder="请输入其他规则"
            :disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
          ></c-input>
WH committed
309 310 311 312 313
        </el-form-item>
      </c-col>
      <!-- Partial shipment -->
      <c-col :span="24">
        <el-form-item label="分批装运" prop="ledgrp.rec.shppar">
panziyi committed
314 315 316 317 318 319
          <c-select
            v-model="model.ledgrp.rec.shppar"
            style="width: 100%"
            placeholder="请选择分批装运"
            :code="codes.shptrss18"
          >
WH committed
320 321 322 323 324 325
          </c-select>
        </el-form-item>
      </c-col>
      <!-- Transshipment -->
      <c-col :span="24">
        <el-form-item label="转运" prop="ledgrp.rec.shptrs">
panziyi committed
326 327 328 329 330 331
          <c-select
            v-model="model.ledgrp.rec.shptrs"
            style="width: 100%"
            placeholder="请选择"
            :code="codes.shptrss18"
          >
WH committed
332 333 334 335 336 337
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ============右边================= -->
panziyi committed
338
    <c-col :span="12" style="padding-left: 20px">
WH committed
339 340
      <c-col :span="24">
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
panziyi committed
341 342 343 344 345 346 347
          <c-input
            text-align="middle"
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          >
WH committed
348 349 350 351 352
          </c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
panziyi committed
353 354 355
        <c-ptap
          :model="model"
          :argadr="{
WH committed
356 357 358
            title: '受益人',
            grp: 'ledgrp',
            rol: 'ben',
panziyi committed
359 360 361 362 363
          }"
          :disabled="true"
          disabledRef
          disabledExtkey
        >
WH committed
364 365 366 367
        </c-ptap>
      </c-col>

      <c-col :span="24">
panziyi committed
368 369 370 371 372 373 374 375 376 377 378
        <c-ptap
          :model="model"
          :argadr="{
            title: '开证行',
            grp: 'ledgrp',
            rol: 'iss',
          }"
          :disabled="true"
          disabledRef
          disabledExtkey
        >
WH committed
379 380 381 382
        </c-ptap>
      </c-col>

      <c-col :span="24">
panziyi committed
383 384 385 386 387 388 389 390 391 392 393
        <c-ptap
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'ledgrp',
            rol: 'apl',
          }"
          :disabled="true"
          disabledRef
          disabledExtkey
        >
WH committed
394 395 396 397 398
        </c-ptap>
      </c-col>

      <!-- Revolving Flag -->
      <c-col :span="12">
panziyi committed
399 400 401 402 403 404
        <el-form-item
          label=" "
          prop="ledgrp.rec.revflg"
          label-width="120px"
          style="float: left"
        >
WH committed
405 406 407 408 409
          <c-checkbox v-model="model.ledgrp.rec.revflg">循环信用证</c-checkbox>
        </el-form-item>
      </c-col>
      <!-- Authorization to Debit 借记授权书-->
      <c-col :span="12">
panziyi committed
410 411 412 413 414 415
        <el-form-item
          label=" "
          prop="ledgrp.rec.dbtflg"
          label-width="120px"
          style="float: right"
        >
WH committed
416 417 418 419 420 421
          <c-checkbox v-model="model.ledgrp.rec.dbtflg">借记授权</c-checkbox>
        </el-form-item>
      </c-col>

      <!-- Non-Bank Issuer  非银行发行人-->
      <c-col :span="24">
panziyi committed
422 423 424 425 426 427 428 429 430
        <el-form-item
          label=" "
          prop="ledgrp.rec.nonban"
          label-width="120px"
          style="float: right"
        >
          <c-checkbox v-model="model.ledgrp.rec.nonban"
            >非银行发行人</c-checkbox
          >
WH committed
431 432 433 434 435
        </el-form-item>
      </c-col>

      <!-- Test Key Unconfirmity -->
      <c-col :span="24">
panziyi committed
436 437 438 439 440 441 442 443 444
        <el-form-item
          label=" "
          prop="ledgrp.rec.teskeyunc"
          label-width="120px"
          style="float: right"
        >
          <c-checkbox v-model="model.ledgrp.rec.teskeyunc"
            >测试密钥不确定</c-checkbox
          >
WH committed
445 446 447 448 449 450 451 452 453 454
        </el-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import event from "../event";
import Ptap from "~/views/Public/Ptap";

export default {
panziyi committed
455 456
  components: { "c-ptap": Ptap },
  inject: ["root"],
WH committed
457 458 459
  props: ["model", "codes"],
  mixins: [event],
  data() {
panziyi committed
460
    return {};
WH committed
461 462 463 464
  },
  computed: {
    addamtflg: {
      get() {
panziyi committed
465
        return this.model.letp.aamp.aammod.addamtflg != "";
WH committed
466 467
      },
      set(val) {
panziyi committed
468 469
        this.model.letp.aamp.aammod.addamtflg = val ? "X" : "";
      },
WH committed
470 471 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
    },
  },
  methods: {
    apprulChange(v) {
      if (v !== "OTHR") {
        this.model.ledgrp.rec.apprultxt = "";
      }
    },
    /*openAddAmount(val){*/
    /*  if(val ==='' && !(this.model.ledgrp.cbs.max2.amt =='0.000'&& this.model.ledgrp.blk.addamtcov === '') ){*/
    /*    this.$confirm('是否确定要删除此合同的附加金额?','提示',{*/
    /*        confirmButtonText: '是',*/
    /*        cancelButtonText: '否',*/
    /*        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: '已取消'
    //             // });
    //       });
    //   }
    // },
  },
panziyi committed
507 508
  created: function () {},
};
WH committed
509 510 511 512 513 514
</script>
<style>
.marginLable {
  padding-left: 150px;
}
</style>