Utlp1.vue 15.9 KB
Newer Older
fanyanyan committed
1
<template>
jianglong committed
2
  <div class="eibs">
3
    <!-- left -->
jianglong committed
4
    <c-col :span="12" style="padding-right: 20px;">
5
      <c-col :span="24">
Wuyuqiu committed
6
        <el-form-item
wangna committed
7
          label="信用证编号"
Wuyuqiu committed
8 9 10 11
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
12 13
            <c-input
              v-model="model.ledgrp.rec.ownref"
Wuyuqiu committed
14
              maxlength="8"
wangna committed
15
              placeholder="请输入信用证编号"
Wuyuqiu committed
16
              :disabled="true"
fanyanyan committed
17
            ></c-input>
Wuyuqiu committed
18 19 20 21 22 23 24
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
jianglong committed
25 26 27 28 29 30 31 32
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
Wuyuqiu committed
33 34 35 36
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
37 38
      </c-col>
      <c-col :span="24">
Wuyuqiu committed
39
        <el-form-item
wangna committed
40
          label="转让信用证编号"
Wuyuqiu committed
41 42 43 44
          prop="ltdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
fanyanyan committed
45 46
            <c-input
              v-model="model.ltdgrp.rec.ownref"
Wuyuqiu committed
47
              maxlength="8"
wangna committed
48
              placeholder="请输入转让信用证编号"
Wuyuqiu committed
49
              :disabled="true"
fanyanyan committed
50
            ></c-input>
Wuyuqiu committed
51 52 53 54 55 56 57
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
jianglong committed
58 59 60 61 62 63 64 65
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
Wuyuqiu committed
66 67 68 69
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
70 71
      </c-col>
      <c-col :span="24">
jianglong committed
72 73 74 75
       
       <c-col :span="11" >
          <el-form-item label="信用证金额" prop="ltdgrp.cbs.nom1.cur">
            <c-select :disabled="true" 
fanyanyan committed
76
              v-model="model.ltdgrp.cbs.nom1.cur"
jianglong committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
              style="width: 100%"
              placeholder="币种"
              :code="codes.curtxt1"
             
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item
            style="text-align: left; margin-left: 5px"
            label-width="0px"
            prop="ltdgrp.cbs.nom1.amt"
          >
            <c-input-currency :disabled="true" 
fanyanyan committed
92
              v-model="model.ltdgrp.cbs.nom1.amt"
jianglong committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
              style="text-align: left; width: 90%"
              placeholder="请输入金额"
            ></c-input-currency>
          </el-form-item>
        </c-col>

        <c-col :span="4">
          <template>
            <c-checkbox :disabled="true" 
              @change="open"
              v-model="model.bttp.aammod.addamtflg"
              style="float: right; text-align: center"
              >附加金额</c-checkbox
            >
          </template>
        </c-col>
109 110 111
      </c-col>

      <c-col :span="24">
jianglong committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
        
          
             <c-col :span="11">
              <el-form-item label="余额" prop="ltdgrp.cbs.opn1.cur">
              <c-select
                 v-model="model.ltdgrp.cbs.opn1.cur"
                 maxlength="3"
                 style="width: 100%"
                 placeholder="币种"
                  :code="codes.curtxt1"
                 disabled
                ></c-select>
             </el-form-item>
        </c-col>
        <c-col :span="9">
           <el-form-item style="text-align: left; margin-left: 5px"
           label-width="0px"
           prop="ltdgrp.cbs.opn1.amt"
           >
            <c-input-currency
132
              v-model="model.ltdgrp.cbs.opn1.amt"
jianglong committed
133 134
             style="text-align: left; width: 90%"
              placeholder="请输入金额"
135
              disabled
jianglong committed
136 137 138 139 140
            ></c-input-currency>
             </el-form-item>
            </c-col>
          
       
141 142 143
      </c-col>

      <c-col :span="24">
jianglong committed
144
        <c-form-item label="可用银行" prop="ltdgrp.avbnam">
145 146 147
          <c-input
            v-model="model.ltdgrp.avbnam"
            maxlength="40"
jianglong committed
148
            placeholder="请输入可用银行"
149 150 151 152 153 154 155
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
156
          <el-form-item label="兑付方式" prop="ltdgrp.rec.avbby">
157 158 159 160 161
            <c-fullbox>
              <c-select
                v-model="model.ltdgrp.rec.avbby"
                maxlength="3"
                style="width: 100%"
162
                placeholder="请输入"
163 164 165 166
                disabled
                :code="codes.avbby"
              ></c-select>
            </c-fullbox>
fanyanyan committed
167 168
          </el-form-item>
        </c-col>
169
        <c-col :span="12">
wangna committed
170
          <el-form-item label="装运日期" prop="ltdgrp.rec.shpdat">
fanyanyan committed
171 172 173 174
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.shpdat"
              style="width: 100%"
wangna committed
175
              placeholder="请选择装运日期"
176
              disabled
fanyanyan committed
177 178 179
            ></c-date-picker>
          </el-form-item>
        </c-col>
180 181 182 183
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
184
          <el-form-item label="开证日期及其形式" prop="ltdgrp.rec.opndat">
fanyanyan committed
185 186 187 188
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.opndat"
              style="width: 100%"
wangna committed
189
              placeholder="请选择开证日期及其形式"
190
              disabled
fanyanyan committed
191 192 193
            ></c-date-picker>
          </el-form-item>
        </c-col>
194
        <c-col :span="12">
jianglong committed
195
          <el-form-item label="" label-width="5px" prop="ltdgrp.rec.lcrtyp">
196 197 198
          <c-input
            v-model="model.ltdgrp.rec.lcrtyp"
            maxlength="40"
199
            placeholder="请输入"
jianglong committed
200
            
201 202 203
            disabled
            :code="codes.lcrtyp1"
          ></c-input>
jianglong committed
204
          </el-form-item>
fanyanyan committed
205
        </c-col>
206 207 208 209
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
210
          <el-form-item label="到期日及其到期地点" prop="ltdgrp.rec.expdat">
fanyanyan committed
211 212 213 214
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.expdat"
              style="width: 100%"
215
              placeholder="请选择到期日"
216
              disabled
fanyanyan committed
217 218 219 220
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
221
          <el-form-item label="" label-width="5px" prop="ltdgrp.rec.lcrtyp">
222 223 224
          <c-input
            v-model="model.ltdgrp.rec.expplc"
            maxlength="40"
jianglong committed
225
             
226
            placeholder="请输入到期地点"
227 228
            disabled
          ></c-input>
jianglong committed
229
          </el-form-item>
230 231 232 233 234
        </c-col>
      </c-col>
    </c-col>

    <!-- right -->
jianglong committed
235
    <c-col :span="12" style="padding-left: 20px;" >
236
      <c-col :span="24">
wangna committed
237
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
238 239 240
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
wangna committed
241
            placeholder="请输入简略信息"
242 243 244 245 246
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
247
        <el-form-item label="简略信息" prop="ltdgrp.rec.nam">
248 249 250
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
wangna committed
251
            placeholder="请输入简略信息"
252 253 254 255 256 257 258 259
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
260
            title: '第一受益人',
261 262 263 264 265
            grp: 'btdgrp',
            rol: 'be1',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
266 267
          :disabled="false"
          :disabled1="true"
268 269 270 271 272 273
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
274
            title: '第二受益人',
275 276 277 278 279
            grp: 'btdgrp',
            rol: 'be2',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
280 281
          :disabled="false"
          :disabled1="true"
282 283 284 285 286 287
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
288
            title: '寄单行',
289 290 291 292 293
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
294 295
          :disabled="false"
          :disabled1="true"
296 297 298 299 300
        ></c-ptsmsg>
      </c-col>
    </c-col>

    <c-col :span="24">
jianglong committed
301
      <el-form-item style="margin: 0 0">
302 303 304 305 306 307
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- next part -->
    <!-- left -->
jianglong committed
308
    <c-col :span="12" style="padding-right: 20px;">
309
      <c-col :span="24">
jianglong committed
310 311
        
        <el-form-item
312
            label="单据编号"
313 314 315
            prop="btdgrp.rec.ownref"
            style="width: 100%"
          >
jianglong committed
316
          <c-fullbox>
fanyanyan committed
317 318 319
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="16"
320
              placeholder="请输入单据编号"
321
              disabled
fanyanyan committed
322
            ></c-input>
jianglong committed
323
        <template slot="footer">
324
          <c-button
jianglong committed
325
            style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px"
326 327 328
            size="small"
            type="primary"
            @click="onSeainf"
jianglong committed
329
            icon="el-icon-search"
330
          >
fanyanyan committed
331
          </c-button>
332 333 334 335 336 337 338 339 340
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            @click="onBttmodButgetref"
            :disabled="
              model.ltdgrp.rec.inr && !model.btdgrp.rec.ownref ? false : true
            "
          >
341
            获取
342
          </c-button>
jianglong committed
343 344 345
          </template>
          </c-fullbox>
        </el-form-item>
346 347 348
      </c-col>
      <c-col :span="24">
        <el-form-item
349
          label="单据类型"
350 351 352 353 354 355
          prop="btdgrp.rec.doctypcod"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.doctypcod"
            style="width: 100%"
356
            placeholder="请选择单据类型"
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371
            disabled
          >
            <el-option
              v-for="item in codes.doctypcod1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
372
          <el-form-item label="到单单据本金" prop="btdgrp.cbs.max.cur">
373
            <c-input
fanyanyan committed
374
              v-model="model.btdgrp.cbs.max.cur"
375
              maxlength="3"
376
              placeholder="请输入"
377 378
              disabled
            ></c-input>
fanyanyan committed
379 380
          </el-form-item>
        </c-col>
381 382
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max.amt">
fanyanyan committed
383 384
            <c-input
              v-model="model.btdgrp.cbs.max.amt"
wangna committed
385
              placeholder="请输入"
fanyanyan committed
386 387 388
            ></c-input>
          </el-form-item>
        </c-col>
389 390 391 392
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
393
          <el-form-item label="到单附加金额" prop="btdgrp.cbs.opn2.cur">
394
            <c-input
fanyanyan committed
395
              v-model="model.btdgrp.cbs.opn2.cur"
396
              maxlength="3"
397
              placeholder="请输入"
398 399
              disabled
            ></c-input>
fanyanyan committed
400 401
          </el-form-item>
        </c-col>
402 403
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max2.amt">
fanyanyan committed
404 405
            <c-input
              v-model="model.btdgrp.cbs.max2.amt"
wangna committed
406
              placeholder="请输入"
fanyanyan committed
407 408 409
            ></c-input>
          </el-form-item>
        </c-col>
410 411 412
      </c-col>

      <c-col :span="24">
fanyanyan committed
413 414
        <c-col :span="12">
          <el-form-item
415
            label="收单日期(第二受益人)"
fanyanyan committed
416 417 418 419 420 421
            prop="btdgrp.rec.rcvdatbe2"
          >
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.rcvdatbe2"
              style="width: 100%"
422
              placeholder="请选择收单日期"
fanyanyan committed
423 424 425 426
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
427
          <el-form-item label="交单日期" prop="btdgrp.rec.orddatbe2">
fanyanyan committed
428 429 430 431
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.orddatbe2"
              style="width: 100%"
432
              placeholder="请选择交单日期"
fanyanyan committed
433 434 435
            ></c-date-picker>
          </el-form-item>
        </c-col>
436 437
      </c-col>
      <c-col :span="24">
fanyanyan committed
438
        <c-col :span="12">
439
          <el-form-item label="到单付款到期日" prop="btdgrp.rec.matdat">
fanyanyan committed
440 441 442 443
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.matdat"
              style="width: 100%"
444
              placeholder="请选择到单付款到期日"
fanyanyan committed
445 446 447 448
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
449
          <el-form-item label="最迟装船日期" prop="btdgrp.rec.shpdat">
fanyanyan committed
450 451 452 453
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.shpdat"
              style="width: 100%"
454
              placeholder="请选择最迟装船日期"
fanyanyan committed
455 456 457 458 459
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

460
      <c-col :span="24">
461
        <el-form-item label="到单付款期限" prop="btdgrp.blk.matper">
462 463 464 465 466
          <c-input
            type="textarea"
            v-model="model.btdgrp.blk.matper"
            maxlength="65"
            show-word-limit
467
            placeholder="请输入到单付款期限"
468 469 470
          ></c-input>
        </el-form-item>
      </c-col>
fanyanyan committed
471

472 473
      <c-col :span="24">
        <el-form-item
474
          label="此笔转让证的原始到单金额"
475 476 477 478
          prop="ltdgrp.rec.utlnbr"
        >
          <c-input
            v-model.number="model.ltdgrp.rec.utlnbr"
479
            placeholder="请输入此笔转让证的原始到单金额"
480 481 482 483 484
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
fanyanyan committed
485

486
    <!-- right -->
jianglong committed
487
    <c-col :span="12" style="padding-left: 20px;">
488
      <c-col :span="24">
jianglong committed
489
        <el-form-item label="摘要信息" prop="btdgrp.rec.nam">
490 491 492
          <c-input
            v-model="model.btdgrp.rec.nam"
            maxlength="40"
jianglong committed
493
            placeholder="请输入摘要信息"
494 495 496 497 498
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
499
        <el-form-item label="交单行" prop="btdgrp.rec.docprbrol">
500 501 502
          <c-select
            v-model="model.btdgrp.rec.docprbrol"
            style="width: 100%"
wangna committed
503
            placeholder="请选择交单行"
504 505 506
            @change="selectOrCheckboxRule('btdgrp.rec.docprbrol')"
          >
            <el-option
Wuyuqiu committed
507
              v-for="item in codes.docprbrol2"
508 509 510 511 512 513 514 515
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
fanyanyan committed
516

517 518 519 520 521 522 523 524 525 526
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="!(model.btdgrp.rec.docprbrol == 'PRB')"
Wuyuqiu committed
527
          :disabledExtkey="model.btdgrp.rec.docprbrol == 'ADT'||model.btdgrp.rec.docprbrol == 'BE2'"
528 529 530 531 532
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
fanyanyan committed
533 534 535 536 537
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
538
import commonProcess from "~/mixin/commonProcess";
fanyanyan committed
539 540
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdck/Event";
541 542
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap";
fanyanyan committed
543 544

export default {
545
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
fanyanyan committed
546 547
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
548
  mixins: [commonProcess],
fanyanyan committed
549 550 551 552
  data() {
    return {};
  },
  methods: { ...Event },
553 554 555 556 557
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
fanyanyan committed
558 559 560 561 562
  created: function () {},
};
</script>
<style>
</style>