Drv.vue 15.9 KB
Newer Older
1
<template>
huangxin committed
2
  <div class="eibs">
3 4
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
5 6
      <c-col :span="24">
          <el-form-item
jianglong committed
7
            label="信用证编号"
8 9
            prop="ledgrp.rec.ownref"
            style="width: 100%"
10
          >
11
          <c-fullbox>
12 13 14
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
jianglong committed
15
              placeholder="请输入编号"
16 17 18
              style="width: 95%"
              disabled
            ></c-input>
19
        <template slot="footer">
20 21 22 23 24 25
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
nanrui committed
26
            <i class="el-icon-info" style="font-size:15px"></i>
27
          </c-button>
28

29 30 31
        </template>
      </c-fullbox>
    </el-form-item>
32
      </c-col>
33

34
      <c-col :span="24">
35
        <c-col :span="10">
jianglong committed
36
        <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
37
            <c-select
38
              v-model="model.ledgrp.cbs.nom1.cur"
39
              style="width: 100%"
jianglong committed
40
              placeholder="请输入金额"
41
              disabled
42 43 44 45 46 47 48
              :code="codes.curtxt1"
            ></c-select>
          </el-form-item>
        </c-col>

        <c-col :span="10">
        <el-form-item label="" prop="ledgrp.cbs.nom1.amt" label-width="5px">
49
            <c-input-currency
50
              v-model="model.ledgrp.cbs.nom1.amt"
51
              style="width: 100%"
jianglong committed
52
              placeholder="请输入金额"
53
              disabled
54
            ></c-input-currency>
55 56 57 58 59
        </el-form-item>
        </c-col>

        <c-col :span="4">
        <el-form-item label="" prop="betp.aammod.addamtflg" style=" float:right;">
60 61 62
              <c-checkbox
                v-model="model.betp.aammod.addamtflg"
                disabled
jianglong committed
63
                >附加金额</c-checkbox
64 65 66
              >
        </el-form-item>
      </c-col>
67
      </c-col>
68 69

      <c-col :span="24">
70
        <c-col :span="10">
jianglong committed
71
        <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
72
            <c-select
73
              v-model="model.ledgrp.cbs.opn1.cur"
74
              style="width: 100%"
jianglong committed
75
              placeholder="请输入金额"
76
              disabled
77 78 79 80 81 82 83
              :code="codes.curtxt1"
            ></c-select>
          </el-form-item>
          </c-col>

          <c-col :span="10">
        <el-form-item label="" prop="ledgrp.cbs.opn1.amt" label-width="5px">
84
            <c-input-currency
85
              v-model="model.ledgrp.cbs.opn1.amt"
86
              style="width: 100%"
jianglong committed
87
              placeholder="请输入金额"
88
              disabled
89
            ></c-input-currency>
90 91 92 93 94
            </el-form-item>
            </c-col>

            <c-col :span="4">
        <el-form-item label="" prop="ledgrp.rec.revflg" style=" float:right;">
95 96 97
              <c-checkbox
                v-model="model.ledgrp.rec.revflg"
                disabled
jianglong committed
98
                >循环信用证</c-checkbox
99 100 101
              >
        </el-form-item>
      </c-col>
102
      </c-col>
103 104

      <c-col :span="24">
jianglong committed
105
        <c-form-item label="可用银行" prop="ledgrp.avbnam">
106 107 108
          <c-input
            v-model="model.ledgrp.avbnam"
            maxlength="40"
jianglong committed
109
            placeholder="请输入可用银行"
110 111 112 113 114 115
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
jianglong committed
116
        <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
117
          <c-fullbox>
118
            <c-select
119 120 121
              v-model="model.ledgrp.rec.avbby"
              maxlength="3"
              style="width: 100%"
jianglong committed
122
              placeholder="请输入金额"
123
              disabled
124 125
              :code="codes.avbby"
            ></c-select>
126 127 128 129 130
            <template slot="footer">
              <c-checkbox
                v-model="model.ledgrp.rec.revflg"
                style="margin-left: 10px"
                disabled
jianglong committed
131
                >红/绿条款</c-checkbox
132 133 134 135 136 137 138 139
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
140
          <el-form-item label="开立日期" prop="ledgrp.rec.opndat">
141 142 143 144
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
              style="width: 100%"
jianglong committed
145
              placeholder="请选择日期"
146 147 148 149 150
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
151
          <el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
152 153 154 155
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
              style="width: 100%"
jianglong committed
156
              placeholder="请选择日期"
157 158 159 160 161 162 163 164
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
165
          <el-form-item label="生效日期" prop="ledgrp.rec.expdat">
166 167 168 169
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
              style="width: 100%"
jianglong committed
170
              placeholder="请选择日期"
171 172 173 174 175
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
176
          <el-form-item label="" prop="ledgrp.rec.expplc" label-width="5px">
177 178 179
          <c-input
            v-model="model.ledgrp.rec.expplc"
            maxlength="40"
jianglong committed
180
            placeholder="请输入地点"
181 182
            disabled
          ></c-input>
183
        </el-form-item>
184 185
        </c-col>
      </c-col>
186

187 188
      <c-col :span="24">
        <el-form-item
jianglong committed
189
          label="信用证种类"
190 191 192 193
          prop="ledgrp.rec.lcrtyp"
          style="width: 100%"
        >
          <c-select
194
            v-model="model.ledgrp.rec.lcrtyp"
195
            style="width: 100%"
jianglong committed
196
            placeholder="请选择种类"
197
            disabled
198 199
          >
            <el-option
200
              v-for="item in codes.lcrtyp1"
201 202 203 204 205 206 207 208 209
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

210
      <c-col :span="24">
211
        <el-form-item
jianglong committed
212
          label="单据编号"
213 214 215
          prop="bedgrp.rec.ownref"
          style="width: 100%"
        >
216
        <c-fullbox>
217 218 219
          <c-input
            v-model="model.bedgrp.rec.ownref"
            maxlength="16"
jianglong committed
220
            placeholder="请输入编号"
221 222 223
            style="width: 95%"
            disabled
          ></c-input>
224
          <template slot="footer">
225 226 227 228 229 230
        <c-button
          style="margin: 0 10px 0 0; padding: 0 12px"
          size="small"
          type="primary"
          @click="onSeainf"
        >
nanrui committed
231
          <i class="el-icon-info" style="font-size:15px"></i>
232 233 234 235 236
        </c-button>
        <c-button
          style="margin: 0 0"
          size="small"
          type="primary"
237
          @click="onBetmodButgetref"
238
          :disabled=" 
239
                    model.ledgrp.rec.inr &&!model.bedgrp.rec.ownref
240 241 242
                      ? false
                      : true
                  "
243
        >
wangna committed
244
          获取
245
        </c-button>
246 247 248
        </template>
        </c-fullbox>
        </el-form-item>
249
      </c-col>
250

251 252
      <c-col :span="24">
        <el-form-item
jianglong committed
253
          label="单据类型"
254 255 256 257 258 259
          prop="bedgrp.rec.doctypcod"
          style="width: 100%"
        >
          <c-select
            v-model="model.bedgrp.rec.doctypcod"
            style="width: 100%"
jianglong committed
260
            placeholder="请选择单据类型"
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
            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">
jianglong committed
276
          <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
277
            <c-select
278
              v-model="model.bedgrp.cbs.max.cur"
279
              style="width: 100%"
280
              placeholder="请输入单据金额"
281
              disabled
282 283
              :code="codes.curtxt1"
            ></c-select>
284 285 286 287
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
288
            <c-input-currency
289
              v-model="model.bedgrp.cbs.max.amt"
290
              placeholder="请输入金额"
291
            ></c-input-currency>
292 293 294 295 296 297
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
298
          <el-form-item label="提取附加金额"  prop="bedgrp.cbs.opn2.cur">
299
            <c-select
300
              v-model="model.bedgrp.cbs.opn2.cur"
301
              style="width: 100%"
jianglong committed
302
              placeholder="请输入附加金额"
303 304
              :code="codes.curtxt1"
            ></c-select>
305 306 307
          </el-form-item>
        </c-col>
        <c-col :span="12">
308
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
309
            <c-input-currency
310
              v-model="model.bedgrp.cbs.max2.amt"
jianglong committed
311
              placeholder="请输入金额"
312
              disabled
313
            ></c-input-currency>
314 315 316 317 318 319
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
320
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
321 322 323 324
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.rcvdat"
              style="width: 100%"
jianglong committed
325
              placeholder="请选择收到日期"
326 327 328 329
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
330
          <el-form-item label="订单日期" prop="bedgrp.rec.orddat">
331 332 333 334
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.orddat"
              style="width: 100%"
jianglong committed
335
              placeholder="请选择订单日期"
336 337 338 339 340 341
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
jianglong committed
342
          <el-form-item label="到期日" prop="bedgrp.rec.matdat">
343 344
            <c-date-picker
              type="date"
345
              :disabled="this.flag1"
346 347
              v-model="model.bedgrp.rec.matdat"
              style="width: 100%"
jianglong committed
348
              placeholder="请选择到期日"
349 350 351 352
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
353
          <el-form-item label="装运日期" prop="bedgrp.rec.shpdat">
354 355 356 357
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.shpdat"
              style="width: 100%"
jianglong committed
358
              placeholder="请选择装运日期"
359 360 361 362 363 364
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
jianglong committed
365
        <el-form-item label="到期期限" prop="bedgrp.blk.matper">
366 367
          <c-input
            type="textarea"
368
            :disabled="this.flag2"
369 370 371
            v-model="model.bedgrp.blk.matper"
            maxlength="65"
            show-word-limit
jianglong committed
372
            placeholder="请输入期限"
373 374 375 376 377 378 379 380 381
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-checkbox
          v-model="model.bedgrp.rec.dscinsflg"
          style="margin-left: 150px"
          disabled
jianglong committed
382
          >输入单据、不符点、指示信息</c-checkbox
383 384 385
        >
      </c-col>
      <c-col :span="24">
386
        <el-form-item
jianglong committed
387
          label="该信用证下前手图纸"
388 389
          prop="ledgrp.rec.utlnbr"
        >
390
          <c-input
391
            v-model.number="model.ledgrp.rec.utlnbr"
jianglong committed
392
            placeholder="请输入内容"
393 394 395 396 397 398
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

399 400
        <!-- ============右边================= -->
        <c-col :span="12" style="padding-left: 20px;">
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
      <c-col :span="24">
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入简略信息"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bedgrp',
            rol: 'apl',
          }"
          :enRef="false"
          :enNam="false"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '开证银行',
            grp: 'bedgrp',
            rol: 'iss',
          }"
          :enRef="false"
          :enNam="false"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '交单银行',
            grp: 'bedgrp',
            rol: 'prb',
          }"
          :enRef="false"
          :enNam="false"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>

451
      <c-col :span="24">
jianglong committed
452
      <el-form-item label="简略信息" prop="bedgrp.rec.nam">
453 454 455
        <c-input
          v-model="model.bedgrp.rec.nam"
          maxlength="40"
jianglong committed
456
          placeholder="请输入简略信息"
457 458 459 460 461
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
      <c-col :span="24">
jianglong committed
462
        <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
463 464 465
          <c-select
            v-model="model.bedgrp.rec.docprbrol"
            style="width: 100%"
jianglong committed
466
            placeholder="请输入交单行"
467
            @change="selectOrCheckboxRule('bedgrp.rec.docprbrol')"
468 469
          >
            <el-option
470
              v-for="item in codes.docprbrol0"
471 472 473 474 475 476 477 478 479 480 481 482 483 484
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
485 486
            grp: 'bedgrp',
            rol: 'prb',
487 488
          }"
          :noRef="false"
489
          :disabled="!(model.bedgrp.rec.docprbrol=='PRB')"
490
          :isAdrblk="true"
491
          :disabledExtkey="model.bedgrp.rec.docprbrol=='BEN'"
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="发票类型"
          prop="bedgrp.rec.invtyp"
          style="width: 100%"
        >
          <c-select
            v-model="model.bedgrp.rec.invtyp"
            style="width: 100%"
            placeholder="请选择发票类型"
          >
            <el-option
LiRui committed
510
              v-for="item in codes.invtyp"
511 512 513 514 515 516 517 518 519
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
jianglong committed
520
    
521 522 523 524 525 526 527 528
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import Ptsmsg from "~/views/Public/Ptsmsg";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letdrv/Event";
529
import Ptap from "~/views/Public/Ptap";
530 531

export default {
532
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
533 534 535 536
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
    return {
      flag1: false,
      flag2: false,
    };
  },
  watch: {
    "model.bedgrp.rec.matdat": {
      immediate: true,
      handler(val, oldval) {
        if (this.model.bedgrp.rec.matdat != "") {
          this.flag2 = true;
        } else {
          this.flag2 = false;
        }
      },
    },
    "model.bedgrp.blk.matper": {
      immediate: true,
      handler(val, oldval) {
        if (this.model.bedgrp.blk.matper != "") {
          this.flag1 = true;
        } else {
          this.flag1 = false;
        }
      },
    },
563 564 565 566 567 568 569 570 571 572 573 574
  },
  methods: { ...Event },
  created: function () {},
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
};
</script>
<style>
</style>