Drv.vue 15.3 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
3 4 5 6 7
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
jianglong committed
8
            label="信用证编号"
9 10
            prop="ledgrp.rec.ownref"
            style="width: 100%"
11
          >
12 13 14
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
jianglong committed
15
              placeholder="请输入编号"
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
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="1">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <span
              style="font-size: 15px; font-family: '宋体'; font-weight: bold"
              >i</span
            >
          </c-button>
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
            Get
          </c-button>
        </c-col>
45 46
      </c-col>
      <c-col :span="24">
jianglong committed
47
        <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
48 49 50 51 52
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.cbs.nom1.cur"
              maxlength="3"
              style="width: 50%"
jianglong committed
53
              placeholder="请输入金额"
54 55 56 57 58
              disabled
            ></c-input>
            <c-input
              v-model="model.ledgrp.cbs.nom1.amt"
              style="width: 50%"
jianglong committed
59
              placeholder="请输入金额"
60 61 62 63 64 65 66
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.betp.aammod.addamtflg"
                style="margin-left: 10px"
                disabled
jianglong committed
67
                >附加金额</c-checkbox
68 69 70 71 72 73 74
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
jianglong committed
75
        <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
76 77 78 79 80
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.cbs.opn1.cur"
              maxlength="3"
              style="width: 50%"
jianglong committed
81
              placeholder="请输入金额"
82 83 84 85 86
              disabled
            ></c-input>
            <c-input
              v-model="model.ledgrp.cbs.opn1.amt"
              style="width: 50%"
jianglong committed
87
              placeholder="请输入金额"
88 89 90 91 92 93 94
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.ledgrp.rec.revflg"
                style="margin-left: 10px"
                disabled
jianglong committed
95
                >循环信用证</c-checkbox
96 97 98 99 100 101 102
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

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

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

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

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
163
          <el-form-item label="生效日期" prop="ledgrp.rec.expdat">
164 165 166 167
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
              style="width: 100%"
jianglong committed
168
              placeholder="请选择日期"
169 170 171 172 173 174 175 176
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <c-input
            v-model="model.ledgrp.rec.expplc"
            maxlength="40"
jianglong committed
177
            placeholder="请输入地点"
178 179 180 181 182 183
            disabled
          ></c-input>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item
jianglong committed
184
          label="信用证种类"
185 186 187 188
          prop="ledgrp.rec.lcrtyp"
          style="width: 100%"
        >
          <c-select
189
            v-model="model.ledgrp.rec.lcrtyp"
190
            style="width: 100%"
jianglong committed
191
            placeholder="请选择种类"
192
            disabled
193 194
          >
            <el-option
195
              v-for="item in codes.lcrtyp1"
196 197 198 199 200 201 202 203 204 205 206
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
207 208
    <c-col :span="11" :offset="1">
      <c-col :span="24">
jianglong committed
209
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
210 211 212
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
jianglong committed
213
            placeholder="请输入简略信息"
214 215 216 217 218
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
219 220 221
        <c-ptsmsg
          :model="model"
          :argadr="{
jianglong committed
222
            title: '申请人',
223 224 225
            grp: 'bedgrp',
            rol: 'apl',
          }"
jianglong committed
226 227
          :enRef="false"
          :enNam="false"
228 229 230 231 232 233 234
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
jianglong committed
235
            title: '开证银行',
236 237 238
            grp: 'bedgrp',
            rol: 'iss',
          }"
jianglong committed
239 240
          :enRef="false"
          :enNam="false"
241 242 243 244 245 246 247
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
jianglong committed
248
            title: '交单银行',
249 250 251
            grp: 'bedgrp',
            rol: 'prb',
          }"
jianglong committed
252 253
          :enRef="false"
          :enNam="false"
254 255 256 257 258 259
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
    </c-col>

    <c-col :span="24">
260
      <el-form-item style="margin-left: -150px">
261 262 263 264
        <el-divider />
      </el-form-item>
    </c-col>

265 266 267 268
    <!-- next part -->
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
269 270
      <c-col :span="20">
        <el-form-item
jianglong committed
271
          label="单据编号"
272 273 274 275 276 277
          prop="bedgrp.rec.ownref"
          style="width: 100%"
        >
          <c-input
            v-model="model.bedgrp.rec.ownref"
            maxlength="16"
jianglong committed
278
            placeholder="请输入编号"
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
            style="width: 95%"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="1">
        <c-button
          style="margin: 0 10px 0 0; padding: 0 12px"
          size="small"
          type="primary"
          @click="onSeainf"
        >
          <span style="font-size: 15px; font-family: '宋体'; font-weight: bold"
            >i</span
          >
        </c-button>
      </c-col>
      <c-col :span="2" :offset="1" style="text-align: right">
        <c-button
          style="margin: 0 0"
          size="small"
          type="primary"
301
          @click="onBetmodButgetref"
302
          :disabled=" 
303
                    model.ledgrp.rec.inr &&!model.bedgrp.rec.ownref
304 305 306
                      ? false
                      : true
                  "
307
        >
308
          Get
309 310 311
        </c-button>
      </c-col>
    </c-col>
312 313
      <c-col :span="24">
        <el-form-item
jianglong committed
314
          label="单据类型"
315 316 317 318 319 320
          prop="bedgrp.rec.doctypcod"
          style="width: 100%"
        >
          <c-select
            v-model="model.bedgrp.rec.doctypcod"
            style="width: 100%"
jianglong committed
321
            placeholder="请选择单据类型"
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
            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
337
          <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
338 339 340
            <c-input
              v-model="model.bedgrp.cbs.max.cur"
              maxlength="3"
341
              placeholder="请输入单据金额"
342 343 344 345 346 347 348 349
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
            <c-input
              v-model="model.bedgrp.cbs.max.amt"
350
              placeholder="请输入金额"
351 352 353 354 355 356 357
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
358
          <el-form-item label="提取附加金额"  prop="bedgrp.cbs.opn2.cur">
359
            <c-input
360
              v-model="model.bedgrp.cbs.opn2.cur"
361
              maxlength="3"
jianglong committed
362
              placeholder="请输入附加金额"
363 364 365 366 367
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
368
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
369
            <c-input
370
              v-model="model.bedgrp.cbs.max2.amt"
jianglong committed
371
              placeholder="请输入金额"
372 373 374 375 376 377 378 379
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
380
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
381 382 383 384
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.rcvdat"
              style="width: 100%"
jianglong committed
385
              placeholder="请选择收到日期"
386 387 388 389
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
390
          <el-form-item label="订单日期" prop="bedgrp.rec.orddat">
391 392 393 394
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.orddat"
              style="width: 100%"
jianglong committed
395
              placeholder="请选择订单日期"
396 397 398 399 400 401
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
jianglong committed
402
          <el-form-item label="到期日" prop="bedgrp.rec.matdat">
403 404 405 406
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.matdat"
              style="width: 100%"
jianglong committed
407
              placeholder="请选择到期日"
408 409 410 411
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
412
          <el-form-item label="装运日期" prop="bedgrp.rec.shpdat">
413 414 415 416
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.shpdat"
              style="width: 100%"
jianglong committed
417
              placeholder="请选择装运日期"
418 419 420 421 422 423
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
jianglong committed
424
        <el-form-item label="到期期限" prop="bedgrp.blk.matper">
425 426 427 428 429
          <c-input
            type="textarea"
            v-model="model.bedgrp.blk.matper"
            maxlength="65"
            show-word-limit
jianglong committed
430
            placeholder="请输入期限"
431 432 433 434 435 436 437 438 439
          ></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
440
          >输入单据、不符点、指示信息</c-checkbox
441 442 443
        >
      </c-col>
      <c-col :span="24">
444
        <el-form-item
jianglong committed
445
          label="该信用证下前手图纸"
446 447
          prop="ledgrp.rec.utlnbr"
        >
448
          <c-input
449
            v-model.number="model.ledgrp.rec.utlnbr"
jianglong committed
450
            placeholder="请输入内容"
451 452 453 454 455 456 457
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
458 459
    <c-col :span="11" :offset="1">
      <c-col :span="24">
jianglong committed
460
      <el-form-item label="简略信息" prop="bedgrp.rec.nam">
461 462 463
        <c-input
          v-model="model.bedgrp.rec.nam"
          maxlength="40"
jianglong committed
464
          placeholder="请输入简略信息"
465 466 467 468 469
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
      <c-col :span="24">
jianglong committed
470
        <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
471 472 473
          <c-select
            v-model="model.bedgrp.rec.docprbrol"
            style="width: 100%"
jianglong committed
474
            placeholder="请输入交单行"
475
            @change="selectOrCheckboxRule('bedgrp.rec.docprbrol')"
476 477
          >
            <el-option
478
              v-for="item in codes.docprbrol0"
479 480 481 482 483 484 485 486 487 488 489 490 491 492
              :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: '',
493 494
            grp: 'bedgrp',
            rol: 'prb',
495 496
          }"
          :noRef="false"
497
          :disabled="!(model.bedgrp.rec.docprbrol=='PRB')"
498
          :isAdrblk="true"
499
          :disabledExtkey="model.bedgrp.rec.docprbrol=='BEN'"
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
          @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
518
              v-for="item in codes.invtyp1"
519 520 521 522 523 524 525 526 527
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
528

jianglong committed
529
    
530 531 532 533 534 535 536 537
  </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";
538
import Ptap from "~/views/Public/Ptap";
539 540

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