Drv.vue 15.5 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 28 29 30 31 32 33 34
          </c-button>
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
wangna committed
35
            获取
36
          </c-button>
37 38 39
        </template>
      </c-fullbox>
    </el-form-item>
40
      </c-col>
41

42
      <c-col :span="24">
43
        <c-col :span="10">
jianglong committed
44
        <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
45
            <c-select
46
              v-model="model.ledgrp.cbs.nom1.cur"
47
              style="width: 100%"
jianglong committed
48
              placeholder="请输入金额"
49
              disabled
50 51 52 53 54 55 56
              :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">
57 58
            <c-input
              v-model="model.ledgrp.cbs.nom1.amt"
59
              style="width: 100%"
jianglong committed
60
              placeholder="请输入金额"
61 62
              disabled
            ></c-input>
63 64 65 66 67
        </el-form-item>
        </c-col>

        <c-col :span="4">
        <el-form-item label="" prop="betp.aammod.addamtflg" style=" float:right;">
68 69 70
              <c-checkbox
                v-model="model.betp.aammod.addamtflg"
                disabled
jianglong committed
71
                >附加金额</c-checkbox
72 73 74
              >
        </el-form-item>
      </c-col>
75
      </c-col>
76 77

      <c-col :span="24">
78
        <c-col :span="10">
jianglong committed
79
        <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
80
            <c-select
81
              v-model="model.ledgrp.cbs.opn1.cur"
82
              style="width: 100%"
jianglong committed
83
              placeholder="请输入金额"
84
              disabled
85 86 87 88 89 90 91
              :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">
92 93
            <c-input
              v-model="model.ledgrp.cbs.opn1.amt"
94
              style="width: 100%"
jianglong committed
95
              placeholder="请输入金额"
96 97
              disabled
            ></c-input>
98 99 100 101 102
            </el-form-item>
            </c-col>

            <c-col :span="4">
        <el-form-item label="" prop="ledgrp.rec.revflg" style=" float:right;">
103 104 105
              <c-checkbox
                v-model="model.ledgrp.rec.revflg"
                disabled
jianglong committed
106
                >循环信用证</c-checkbox
107 108 109
              >
        </el-form-item>
      </c-col>
110
      </c-col>
111 112

      <c-col :span="24">
jianglong committed
113
        <c-form-item label="可用银行" prop="ledgrp.avbnam">
114 115 116
          <c-input
            v-model="model.ledgrp.avbnam"
            maxlength="40"
jianglong committed
117
            placeholder="请输入可用银行"
118 119 120 121 122 123
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

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

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
148
          <el-form-item label="开立日期" prop="ledgrp.rec.opndat">
149 150 151 152
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
              style="width: 100%"
jianglong committed
153
              placeholder="请选择日期"
154 155 156 157 158
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
jianglong committed
159
          <el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
160 161 162 163
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
              style="width: 100%"
jianglong committed
164
              placeholder="请选择日期"
165 166 167 168 169 170 171 172
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

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

195 196
      <c-col :span="24">
        <el-form-item
jianglong committed
197
          label="信用证种类"
198 199 200 201
          prop="ledgrp.rec.lcrtyp"
          style="width: 100%"
        >
          <c-select
202
            v-model="model.ledgrp.rec.lcrtyp"
203
            style="width: 100%"
jianglong committed
204
            placeholder="请选择种类"
205
            disabled
206 207
          >
            <el-option
208
              v-for="item in codes.lcrtyp1"
209 210 211 212 213 214 215 216 217
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

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

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

      <c-col :span="24">
        <c-col :span="12">
jianglong committed
306
          <el-form-item label="提取附加金额"  prop="bedgrp.cbs.opn2.cur">
307
            <c-select
308
              v-model="model.bedgrp.cbs.opn2.cur"
309
              style="width: 100%"
jianglong committed
310
              placeholder="请输入附加金额"
311
              disabled
312 313
              :code="codes.curtxt1"
            ></c-select>
314 315 316
          </el-form-item>
        </c-col>
        <c-col :span="12">
317
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
318
            <c-input
319
              v-model="model.bedgrp.cbs.max2.amt"
jianglong committed
320
              placeholder="请输入金额"
321 322 323 324 325 326 327 328
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

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

      <c-col :span="24">
jianglong committed
373
        <el-form-item label="到期期限" prop="bedgrp.blk.matper">
374 375 376 377 378
          <c-input
            type="textarea"
            v-model="model.bedgrp.blk.matper"
            maxlength="65"
            show-word-limit
jianglong committed
379
            placeholder="请输入期限"
380 381 382 383 384 385 386 387 388
          ></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
389
          >输入单据、不符点、指示信息</c-checkbox
390 391 392
        >
      </c-col>
      <c-col :span="24">
393
        <el-form-item
jianglong committed
394
          label="该信用证下前手图纸"
395 396
          prop="ledgrp.rec.utlnbr"
        >
397
          <c-input
398
            v-model.number="model.ledgrp.rec.utlnbr"
jianglong committed
399
            placeholder="请输入内容"
400 401 402 403 404 405
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

406 407
        <!-- ============右边================= -->
        <c-col :span="12" style="padding-left: 20px;">
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 451 452 453 454 455 456 457
      <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>

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

export default {
539
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
  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>