Amep.vue 15.5 KB
Newer Older
zhengxiaokui committed
1
<template>
LiRui committed
2 3 4
  <div class="eibs">
    <c-col :span="12" style="padding-right: 20px;">
      <!-- ======================= 左边 ========================= -->
5
      <c-col :span="24">
LiRui committed
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
        <el-form-item
          label="信用证编号"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入编号"
              style="width: 95%"
              :disabled="true"
            >
            </c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 0 0 0; padding: 0 10px"
                size="small"
                type="primary"
                @click="onSeainf"
                icon="el-icon-search"
              >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="修改日期" prop="trnmod.swiadd.amedat">
            <c-date-picker
              type="date"
              v-model="model.trnmod.swiadd.amedat"
              style="width: 100%"
              placeholder="请选择日期"
            ></c-date-picker>
          </el-form-item>
      </c-col>
      <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"
              maxlength="3"
              style="width: 100%"
              placeholder="请选择币种"
              :code="codes.curtxt1"
              disabled
            ></c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item
            label=""
            label-width="5px"
            prop="oldledgrp.cbs.nom1.amt"
          >
            <c-input
              v-model="model.oldledgrp.cbs.nom1.amt"
              placeholder="请输入金额"
              style="width: 100%"
              @keyup.enter.native="$event.target.blur()"
              class="m-input-currency"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="名义金额(改)" prop="trnmod.swiadd.amecur">
            <c-select
              v-model="model.trnmod.swiadd.amecur"
              style="width: 100%"
              :code="codes.curtxt1"
              placeholder="请选择币种"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
86 87
        <c-col :span="11">
          <el-form-item
LiRui committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
            label=""
            label-width="5px"
            prop="trnmod.swiadd.ameamt"
          >
            <c-input
              v-model="model.trnmod.swiadd.ameamt"
              placeholder="请输入金额"
              @keyup.enter.native="$event.target.blur()"
              @blur="ameamtOtherDefault"
              style="width: 100%"
              class="m-input-currency"
            ></c-input>
          <!-- 回车失去焦点,失去焦点会自动触发默认事件:@keyup.enter.native="$event.target.blur()" -->
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="名义金额(新)" prop="trnmod.swiadd.newcur">
            <c-select
              v-model="model.trnmod.swiadd.newcur"
              style="width: 100%"
              :code="codes.curtxt1"
              disabled
              placeholder="请选择币种"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item
            label=""
            label-width="5px"
            prop="trnmod.swiadd.newamt"
          >
            <c-input
              v-model="model.trnmod.swiadd.newamt"
              placeholder="请输入金额"
              @keyup.enter.native="
                eventFunction(
                  'trnmod.swiadd.newamt'
                )
              "
              style="width: 100%"
              class="m-input-currency"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="金额限额表述" prop="trnmod.swiadd.nomspc">
          <c-select
            v-model="model.trnmod.swiadd.nomspc"
141
            style="width: 100%"
LiRui committed
142 143 144
            placeholder="请选择金额限额表述"
            :code="codes.nomspc"
            disabled
145
          >
LiRui committed
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 174 175 176 177 178 179 180
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="生效日期(原)" prop="oldledgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.oldledgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择生效日期"
            disabled
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="生效日期(新)" prop="trnmod.swiadd.newexpdat">
          <c-date-picker
            type="date"
            v-model="model.trnmod.swiadd.newexpdat"
            style="width: 100%"
            placeholder="请选择生效日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item
            label="交单期限"
            prop="oldledgrp.rec.prepers18"
          >
            <c-input
              v-model.number="model.oldledgrp.rec.prepers18"
              placeholder="请输入交单期限(天)"
              disabled
            ></c-input>
181 182
          </el-form-item>
        </c-col>
LiRui committed
183 184 185 186 187 188 189 190 191
        <c-col :span="11">
          <el-form-item
            label=""
            label-width="5px"
            prop="oldledgrp.rec.prepertxts18"
          >
            <c-input
              v-model="model.oldledgrp.rec.prepertxts18"
              maxlength="35"
wangna committed
192
              placeholder="请输入"
LiRui committed
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 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
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="装船/发运地" prop="trnmod.swiadd.shpfro">
          <c-input
            v-model="model.trnmod.swiadd.shpfro"
            maxlength="65"
            placeholder="请输入装船/发运地"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="空运/装货港"
          prop="trnmod.swiadd.porloa"
        >
          <c-input
            v-model="model.trnmod.swiadd.porloa"
            maxlength="65"
            placeholder="请输入空运/装货港"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="空运/卸货港"
          prop="trnmod.swiadd.pordis"
        >
          <c-input
            v-model="model.trnmod.swiadd.pordis"
            maxlength="65"
            placeholder="请输入空运/卸货港"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="最终目的地" prop="trnmod.swiadd.shpto">
          <c-input
            v-model="model.trnmod.swiadd.shpto"
            maxlength="65"
            placeholder="请输入地址"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ======================= 右边 ========================= -->
    <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
246 247 248 249 250 251 252 253 254
            <c-input
              text-align="middle"
              v-model="model.ledgrp.rec.nam"
              maxlength="40"
              placeholder="请输入"
              disabled
            >
            </c-input>
          </el-form-item>
zhengxiaokui committed
255
      </c-col>
256
      <c-col :span="24">
LiRui committed
257
        <c-col :span="12">
LiRui committed
258
          <el-form-item
jianglong committed
259
              label="收到修改日期"
260 261 262 263
              prop="trnmod.swiadd.amenbr"
            >
              <c-input
                v-model.number="model.trnmod.swiadd.amenbr"
LiRui committed
264
                style="width: 100%"
265 266
              ></c-input>
            </el-form-item>
LiRui committed
267
        </c-col>
LiRui committed
268
        <c-col :span="12">
LiRui committed
269
          <el-form-item label="实际修改次数" prop="letamep.amenbr">
270 271
              <c-input
                v-model.number="model.letamep.amenbr"
jianglong committed
272
                placeholder="请输入实际修改次数"
273 274 275 276 277
                style="width: 100%"
                disabled
              ></c-input>
            </el-form-item>
        </c-col>
zhengxiaokui committed
278
      </c-col>
279
      <c-col :span="24">
LiRui committed
280 281
        <c-col :span="12">
          <c-col :span="17">
zhengxiaokui committed
282
            <el-form-item
LiRui committed
283
              label="浮动(+/-)"
zhengxiaokui committed
284 285 286
              prop="oldledgrp.rec.nomtop"
            >
              <c-input
287
                v-model.number="model.oldledgrp.rec.nomtop"
jianglong committed
288
                placeholder="请输入上浮比例"
289 290
                style="width: 100%"
                disabled
zhengxiaokui committed
291 292 293
              ></c-input>
            </el-form-item>
          </c-col>
LiRui committed
294
          <c-col :span="7">
zhengxiaokui committed
295 296
            <el-form-item
              label=""
297
              label-width="5px"
zhengxiaokui committed
298 299 300
              prop="oldledgrp.rec.nomton"
            >
              <c-input
301
                v-model.number="model.oldledgrp.rec.nomton"
jianglong committed
302
                placeholder="请输入下浮比例"
303 304
                style="width: 100%"
                disabled
zhengxiaokui committed
305 306 307
              ></c-input>
            </el-form-item>
          </c-col>
LiRui committed
308 309
        </c-col>

LiRui committed
310
        <c-col :span="12">
LiRui committed
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
          <el-form-item
            label="最大金额"
            prop="oldledgrp.cbs.max.amt"
          >
            <c-input
              v-model="model.oldledgrp.cbs.max.amt"
              placeholder="请输入金额"
              style="width: 100%"
              disabled
              class="m-input-currency"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="最大金额" prop="letamep.engamt">
          <c-input
            v-model="model.letamep.engamt"
            placeholder="请输入金额"
            disabled
            class="m-input-currency"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
LiRui committed
336 337
        <c-col :span="12">
          <c-col :span="17">
zhengxiaokui committed
338
            <el-form-item
LiRui committed
339
              label="浮动(+/-)"
zhengxiaokui committed
340 341 342
              prop="trnmod.swiadd.newnomtop"
            >
              <c-input
343
                v-model.number="model.trnmod.swiadd.newnomtop"
jianglong committed
344
                placeholder="请输入内容"
345
                style="width: 100%"
346
                @keyup.enter.native="$event.target.blur()"
zhengxiaokui committed
347 348 349
              ></c-input>
            </el-form-item>
          </c-col>
LiRui committed
350
          <c-col :span="7">
zhengxiaokui committed
351 352
            <el-form-item
              label=""
353
              label-width="5px"
zhengxiaokui committed
354 355 356
              prop="trnmod.swiadd.newnomton"
            >
              <c-input
357
                v-model.number="model.trnmod.swiadd.newnomton"
jianglong committed
358
                placeholder="请输入内容"
359
                style="width: 100%"
360
                @keyup.enter.native="$event.target.blur()"
zhengxiaokui committed
361 362 363 364
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
LiRui committed
365
        <c-col :span="12">
LiRui committed
366
          <el-form-item label="最大金额" prop="letamep.maxamt">
367
              <c-input
zhengxiaokui committed
368
                v-model="model.letamep.maxamt"
jianglong committed
369
                placeholder="请输入金额"
zhengxiaokui committed
370
                disabled
371 372
                class="m-input-currency"
              ></c-input>
zhengxiaokui committed
373 374 375
            </el-form-item>
        </c-col>
      </c-col>
LiRui committed
376 377 378 379 380
      <c-col :span="24">
        <el-form-item label="装运日期(原)" prop="oldledgrp.rec.shpdat">
          <c-date-picker
            type="date"
            v-model="model.oldledgrp.rec.shpdat"
381
            style="width: 100%"
LiRui committed
382
            placeholder="请选择日期"
zhengxiaokui committed
383
            disabled
LiRui committed
384
          ></c-date-picker>
zhengxiaokui committed
385 386
        </el-form-item>
      </c-col>
LiRui committed
387 388 389 390 391 392 393 394 395 396 397 398
      <c-col :span="24">
        <el-form-item
          label="装运日期(新)"
          prop="trnmod.swiadd.newshpdat"
        >
          <c-date-picker
            type="date"
            v-model="model.trnmod.swiadd.newshpdat"
            style="width: 100%"
            placeholder="请选择日期"
          ></c-date-picker>
        </el-form-item>
399
      </c-col>
LiRui committed
400
      <c-col :span="24">
jianglong committed
401
        <el-form-item label="装运期限" prop="trnmod.swiadd.shpper">
402 403
          <c-input
            type="textarea"
LiRui committed
404
            :rows="3"
405 406 407
            v-model="model.trnmod.swiadd.shpper"
            maxlength="390"
            show-word-limit
jianglong committed
408
            placeholder="请输入内容"
409
          ></c-input>
zhengxiaokui committed
410 411
        </el-form-item>
      </c-col>
LiRui committed
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
      <c-col :span="24">
        <el-form-item label="金额覆盖" prop="trnmod.swiadd.addamtcov">
          <c-input
            type="textarea"
            :rows="4"
            v-model="model.trnmod.swiadd.addamtcov"
            maxlength="140"
            show-word-limit
            placeholder="请输入内容"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="5">
          <c-checkbox v-model="model.letp.aamp.aammod.addamtflg"
          disabled
            >附加金额</c-checkbox
429 430
          >
        </c-col>
LiRui committed
431
        <c-col :span="7">
432 433
          <el-form-item
            label=""
LiRui committed
434 435 436
            label-width="7px"
            prop="ledgrp.cbs.max2.cur"
            width="100%"
437
          >
LiRui committed
438 439 440 441 442 443
            <c-select
              v-model="model.ledgrp.cbs.max2.cur"
              maxlength="3"
              placeholder="请输入附加金额"
             
              :code="codes.cur"
444
              disabled
LiRui committed
445
            ></c-select>
446 447
          </el-form-item>
        </c-col>
LiRui committed
448
        <c-col :span="12">
449
          <el-form-item
LiRui committed
450 451 452 453
            label=""
            label-width="5px"
            prop="trnmod.swiadd.addamt"
            width="100%"
454
          >
LiRui committed
455 456 457 458
            <c-input-currency
              v-model="model.trnmod.swiadd.addamt"
              placeholder="请输入金额" 
            ></c-input-currency>
459 460
          </el-form-item>
        </c-col>
zhengxiaokui committed
461
      </c-col>
LiRui committed
462 463 464
      <c-col :span="24">
        <c-col :span="12">
          <c-checkbox v-model="model.letamep.benaccflg" class="checkbox-left" style="margin-left:120px"
jianglong committed
465
            >受益人接受修改</c-checkbox
466 467
          >
        </c-col>
LiRui committed
468 469
        <c-col :span="12">
          <c-checkbox v-model="model.letamep.cre707flg" class="checkbox-left" style="margin-left:120px"
jianglong committed
470
            >创建修改报文707</c-checkbox
471 472 473
          >
        </c-col>
      </c-col>
LiRui committed
474
    </c-col>
475
  </div>
zhengxiaokui committed
476 477
</template>
<script>
478 479 480 481
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letame/Event'
482
import Utils from "~/utils"
zhengxiaokui committed
483 484

export default {
485 486
  inject: ['root'],
  props: ['model', 'codes'],
wangren committed
487
  mixins: [commonProcess],
zhengxiaokui committed
488
  data() {
489 490 491 492 493
    return {}
  },
  methods: { 
    ...Event,
    onSeainf(){},
lianyang committed
494 495
    ameamtOtherDefault(){
      this.executeDefault('letamep.swiadd.newamt').then((res) => {
496
        if ((res.respCode == SUCCESS)) {
lianyang committed
497 498 499 500
          Utils.copyValueFromVO(this.model, res.data)
        }
      })
    },
zhengxiaokui committed
501 502
  },
  created: function () {},
503
}
zhengxiaokui committed
504 505
</script>
<style>
506
.letame_amep_amt {
zhengxiaokui committed
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
  margin-left: 150px;
  height: 16px;
  color: #606266;
  line-height: 16px;
  font-size: 12px;
}
.letame_amed_nomtx {
  margin-left: 20px;
  height: 16px;
  color: #606266;
  line-height: 16px;
  font-size: 12px;
}
.letame_amed_newnomtx {
  margin-left: 20px;
  height: 34px;
  line-height: 34px;
  color: #606266;
  font-size: 12px;
}
zhengxiaokui committed
527
</style>