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

      <c-col :span="24">
jianglong committed
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
        
          
             <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
119
              v-model="model.ltdgrp.cbs.opn1.amt"
jianglong committed
120 121
             style="text-align: left; width: 90%"
              placeholder="请输入金额"
122
              disabled
jianglong committed
123 124 125 126 127
            ></c-input-currency>
             </el-form-item>
            </c-col>
          
       
128 129 130
      </c-col>

      <c-col :span="24">
jianglong committed
131
        <c-form-item label="可用银行" prop="ltdgrp.avbnam">
132 133 134
          <c-input
            v-model="model.ltdgrp.avbnam"
            maxlength="40"
jianglong committed
135
            placeholder="请输入可用银行"
136 137 138 139 140 141 142
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
143
          <el-form-item label="兑付方式" prop="ltdgrp.rec.avbby">
144 145 146 147 148
            <c-fullbox>
              <c-select
                v-model="model.ltdgrp.rec.avbby"
                maxlength="3"
                style="width: 100%"
149
                placeholder="请输入"
150 151 152 153
                disabled
                :code="codes.avbby"
              ></c-select>
            </c-fullbox>
fanyanyan committed
154 155
          </el-form-item>
        </c-col>
156
        <c-col :span="12">
wangna committed
157
          <el-form-item label="装运日期" prop="ltdgrp.rec.shpdat">
fanyanyan committed
158 159 160 161
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.shpdat"
              style="width: 100%"
wangna committed
162
              placeholder="请选择装运日期"
163
              disabled
fanyanyan committed
164 165 166
            ></c-date-picker>
          </el-form-item>
        </c-col>
167 168 169 170
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
171
          <el-form-item label="开证日期及其形式" prop="ltdgrp.rec.opndat">
fanyanyan committed
172 173 174 175
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.opndat"
              style="width: 100%"
wangna committed
176
              placeholder="请选择开证日期及其形式"
177
              disabled
fanyanyan committed
178 179 180
            ></c-date-picker>
          </el-form-item>
        </c-col>
181
        <c-col :span="12">
jianglong committed
182
          <el-form-item label="" label-width="5px" prop="ltdgrp.rec.lcrtyp">
183 184 185
          <c-input
            v-model="model.ltdgrp.rec.lcrtyp"
            maxlength="40"
186
            placeholder="请输入"
jianglong committed
187
            
188 189 190
            disabled
            :code="codes.lcrtyp1"
          ></c-input>
jianglong committed
191
          </el-form-item>
fanyanyan committed
192
        </c-col>
193 194 195 196
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
197
          <el-form-item label="到期日及其到期地点" prop="ltdgrp.rec.expdat">
fanyanyan committed
198 199 200 201
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.expdat"
              style="width: 100%"
202
              placeholder="请选择到期日"
203
              disabled
fanyanyan committed
204 205 206 207
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
208
          <el-form-item label="" label-width="5px" prop="ltdgrp.rec.lcrtyp">
209 210 211
          <c-input
            v-model="model.ltdgrp.rec.expplc"
            maxlength="40"
jianglong committed
212
             
213
            placeholder="请输入到期地点"
214 215
            disabled
          ></c-input>
jianglong committed
216
          </el-form-item>
217 218 219 220
        </c-col>
      </c-col>
    </c-col>
    <!-- right -->
jianglong committed
221
    <c-col :span="12" style="padding-left: 20px;" >
222
      <c-col :span="24">
wangna committed
223
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
224 225 226
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
wangna committed
227
            placeholder="请输入简略信息"
228 229 230 231 232
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
233
        <el-form-item label="简略信息" prop="ltdgrp.rec.nam">
234 235 236
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
wangna committed
237
            placeholder="请输入简略信息"
238 239 240 241 242 243 244 245
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
246
            title: '第一受益人',
247 248 249 250 251
            grp: 'btdgrp',
            rol: 'be1',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
252 253
          :disabled="false"
          :disabled1="true"
254 255 256 257 258 259
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
260
            title: '第二受益人',
261 262 263 264 265
            grp: 'btdgrp',
            rol: 'be2',
          }"
          :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: 'prb',
          }"
          :enRef="true"
          :enNam="true"
Wuyuqiu committed
280 281
          :disabled="false"
          :disabled1="true"
282 283 284 285
        ></c-ptsmsg>
      </c-col>
    </c-col>

286 287 288 289 290 291 292
    </c-row>
   
    

    

    <!-- <c-col :span="24">
jianglong committed
293
      <el-form-item style="margin: 0 0">
294 295
        <el-divider />
      </el-form-item>
296
    </c-col> -->
297 298

    <!-- next part -->
299 300
  <c-row>
     <!-- left -->
jianglong committed
301
    <c-col :span="12" style="padding-right: 20px;">
302
      <c-col :span="24">
jianglong committed
303
        <el-form-item
304
            label="单据编号"
305 306 307
            prop="btdgrp.rec.ownref"
            style="width: 100%"
          >
jianglong committed
308
          <c-fullbox>
fanyanyan committed
309 310 311
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="16"
312
              placeholder="请输入单据编号"
313
              disabled
fanyanyan committed
314
            ></c-input>
jianglong committed
315
        <template slot="footer">
316
          <c-button
jianglong committed
317
            style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px"
318 319 320
            size="small"
            type="primary"
            @click="onSeainf"
jianglong committed
321
            icon="el-icon-search"
322
          >
fanyanyan committed
323
          </c-button>
324 325 326 327 328 329 330 331 332
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            @click="onBttmodButgetref"
            :disabled="
              model.ltdgrp.rec.inr && !model.btdgrp.rec.ownref ? false : true
            "
          >
333
            获取
334
          </c-button>
jianglong committed
335 336 337
          </template>
          </c-fullbox>
        </el-form-item>
338 339 340
      </c-col>
      <c-col :span="24">
        <el-form-item
341
          label="单据类型"
342 343 344 345 346 347
          prop="btdgrp.rec.doctypcod"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.doctypcod"
            style="width: 100%"
348
            placeholder="请选择单据类型"
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
            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">
364
          <el-form-item label="到单单据本金" prop="btdgrp.cbs.max.cur">
365
            <c-input
fanyanyan committed
366
              v-model="model.btdgrp.cbs.max.cur"
367
              maxlength="3"
368
              placeholder="请输入"
369 370
              disabled
            ></c-input>
fanyanyan committed
371 372
          </el-form-item>
        </c-col>
373 374
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max.amt">
fanyanyan committed
375 376
            <c-input
              v-model="model.btdgrp.cbs.max.amt"
wangna committed
377
              placeholder="请输入"
fanyanyan committed
378 379 380
            ></c-input>
          </el-form-item>
        </c-col>
381 382 383 384
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
385
          <el-form-item label="到单附加金额" prop="btdgrp.cbs.opn2.cur">
386
            <c-input
fanyanyan committed
387
              v-model="model.btdgrp.cbs.opn2.cur"
388
              maxlength="3"
389
              placeholder="请输入"
390 391
              disabled
            ></c-input>
fanyanyan committed
392 393
          </el-form-item>
        </c-col>
394 395
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max2.amt">
fanyanyan committed
396 397
            <c-input
              v-model="model.btdgrp.cbs.max2.amt"
wangna committed
398
              placeholder="请输入"
fanyanyan committed
399 400 401
            ></c-input>
          </el-form-item>
        </c-col>
402 403 404
      </c-col>

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

452
      <c-col :span="24">
453
        <el-form-item label="到单付款期限" prop="btdgrp.blk.matper">
454 455 456 457 458
          <c-input
            type="textarea"
            v-model="model.btdgrp.blk.matper"
            maxlength="65"
            show-word-limit
459
            placeholder="请输入到单付款期限"
460 461 462
          ></c-input>
        </el-form-item>
      </c-col>
fanyanyan committed
463

464 465
      <c-col :span="24">
        <el-form-item
466
          label="此笔转让证的原始到单金额"
467 468 469 470
          prop="ltdgrp.rec.utlnbr"
        >
          <c-input
            v-model.number="model.ltdgrp.rec.utlnbr"
471
            placeholder="请输入此笔转让证的原始到单金额"
472 473 474 475 476
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
fanyanyan committed
477

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

509 510 511 512 513 514 515 516 517 518
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="!(model.btdgrp.rec.docprbrol == 'PRB')"
Wuyuqiu committed
519
          :disabledExtkey="model.btdgrp.rec.docprbrol == 'ADT'||model.btdgrp.rec.docprbrol == 'BE2'"
520 521 522 523 524
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
fanyanyan committed
525
    </c-col>
526 527 528 529
  </c-row>
     


fanyanyan committed
530 531 532 533
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
534
import commonProcess from "~/mixin/commonProcess";
fanyanyan committed
535 536
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdck/Event";
537 538
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap";
fanyanyan committed
539 540

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