Davp.vue 16.6 KB
Newer Older
1
<template>
huangxin committed
2
  <div class="eibs">
lianyang committed
3
    <c-row>
huangxin committed
4 5 6 7
      <!-- ========================上半部分的左边=========================== -->
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
        <c-col :span="24">
8
          <el-form-item
wangna committed
9
            label="编号"
10 11 12 13 14 15 16
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
                v-model="model.ledgrp.rec.ownref"
                maxlength="16"
jianglong committed
17
                placeholder="请输入编号"
18 19 20 21 22 23 24 25 26 27 28
                style="width: 95%"
                :disabled="true"
              >
              </c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 0 0 0; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
nanrui committed
29
                  <i class="el-icon-info" style="font-size:15px"></i>
30 31 32 33 34 35 36 37 38
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

        <!-- L/C Amount -->
        <c-col :span="24">
          <c-col :span="12">
jianglong committed
39
            <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
40 41 42 43 44 45 46
              <c-select
                v-model="model.ledgrp.cbs.nom1.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.cur"
                disabled
              >
47
              </c-select>
48 49 50 51 52 53 54 55 56
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
              <c-input-currency
                v-model="model.ledgrp.cbs.nom1.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="请输入信用证金额"
57
                @keyup.enter.native="$event.target.blur()"
58 59
                disabled
              ></c-input-currency>
60 61
            <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
          </el-form-item>
62 63 64 65 66 67 68
          </c-col>

          <c-col :span="5">
            <c-checkbox
              v-model="model.betp.aammod.addamtflg"
              style="margin-left: 10px"
              disabled
jianglong committed
69
              >附加金额</c-checkbox
70 71 72 73
            >
          </c-col>
        </c-col>

lianyang committed
74
        <!-- Open Amount  信用证余额-->
75 76
        <c-col :span="24">
          <c-col :span="12">
jianglong committed
77
            <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
lianyang committed
78 79 80 81 82 83 84 85 86 87 88 89 90 91
              <c-input
                v-model="model.ledgrp.cbs.opn1.cur"
                maxlength="3"
                placeholder="请输入信用证余额"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
              <c-input
                v-model="model.ledgrp.cbs.opn1.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
92
                placeholder="请输入金额"
lianyang committed
93 94 95 96 97 98 99 100
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="5">
            <c-checkbox
              v-model="model.ledgrp.rec.revflg"
              style="margin-left: 10px"
101
              disabled
jianglong committed
102
              >循环信用证</c-checkbox
lianyang committed
103 104
            >
          </c-col>
105 106
        </c-col>

lianyang committed
107 108
        <c-col :span="24">
          <!-- Available with指定银行 -->
109
          <c-col :span="19">
jianglong committed
110
            <el-form-item label="可用银行" prop="ledgrp.avbnam">
111 112 113
              <c-input
                v-model="model.ledgrp.avbnam"
                maxlength="40"
jianglong committed
114
                placeholder="请输入可用银行"
115 116 117 118
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
lianyang committed
119
        </c-col>
120 121 122

        <c-col :span="24">
          <c-col :span="19">
jianglong committed
123
            <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
lianyang committed
124 125 126
              <c-select
                v-model="model.ledgrp.rec.avbby"
                style="width: 100%"
jianglong committed
127
                placeholder="请选择兑付方式"
lianyang committed
128 129 130 131 132 133 134 135 136 137
                :code="codes.avbby"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="5">
            <c-checkbox
              v-model="model.ledgrp.rec.redclsflg"
              style="margin-left: 10px"
138
              disabled
jianglong committed
139
              >红/绿条款</c-checkbox
140
            >
lianyang committed
141
          </c-col>
142
        </c-col>
lianyang committed
143

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

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

lianyang committed
197
        <c-col :span="24">
jianglong committed
198
          <el-form-item label="信用证类型" prop="ledgrp.rec.lcrtyp">
lianyang committed
199 200 201
            <c-select
              v-model="model.ledgrp.rec.lcrtyp"
              style="width: 100%"
jianglong committed
202
              placeholder="请选择类型"
lianyang committed
203 204 205 206 207 208
              disabled
              :code="codes.lcrtyp"
            >
            </c-select>
          </el-form-item>
        </c-col>
huangxin committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240

        <c-col :span="24">
          <el-form-item label="单据编号" prop="bedgrp.rec.ownref">
            <c-fullbox>
              <c-input
                v-model="model.bedgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入单据编号"
                style="width: 95%"
                disabled
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 10px 0 0; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
                  <i class="el-icon-info" style="font-size:15px"></i>
                </c-button>
                <c-button
                  style="margin: 0 0"
                  size="small"
                  type="primary"
                  @click="onBetmodButgetref"
                >
                  获取
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
241
      </c-col>
lianyang committed
242
      <!-- ========================上半部分的右边======================= -->
huangxin committed
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
        <!-- ============右边================= -->
        <c-col :span="12" style="padding-left: 20px;">
        <c-col :span="24">
          <el-form-item label="简略信息" prop="ledgrp.rec.nam">
            <c-input
              text-align="middle"
              v-model="model.ledgrp.rec.nam"
              maxlength="40"
              placeholder="请输入"
              disabled
            >
            </c-input>
          </el-form-item>
        </c-col>

lianyang committed
258
        <!-- Applicant Ref. 申请人 -->
259
        <c-col :span="24">
jianglong committed
260
          <el-form-item label="申请人参考号" prop="bedgrp.apl.pts.ref">
lianyang committed
261 262 263
            <c-input
              v-model="model.bedgrp.apl.pts.ref"
              maxlength="16"
jianglong committed
264
              placeholder="请输入参考号"
lianyang committed
265 266 267 268 269 270 271 272 273
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.apl.pts.nam">
            <c-input
              v-model="model.bedgrp.apl.pts.nam"
              maxlength="40"
wangna committed
274
              placeholder="请输入"
lianyang committed
275 276 277 278
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
279

lianyang committed
280
        <c-col :span="24">
jianglong committed
281
          <el-form-item label="开证行参考号"  prop="bedgrp.iss.pts.ref">
lianyang committed
282 283 284
            <c-input
              v-model="model.bedgrp.iss.pts.ref"
              maxlength="16"
jianglong committed
285
              placeholder="请输入参考号"
lianyang committed
286 287 288 289 290 291 292 293 294
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.iss.pts.nam">
            <c-input
              v-model="model.bedgrp.iss.pts.nam"
              maxlength="40"
wangna committed
295
              placeholder="请输入"
lianyang committed
296 297 298 299
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
300

jianglong committed
301
        <!-- 交单行参考号 -->
lianyang committed
302
        <c-col :span="24">
jianglong committed
303
          <el-form-item label="交单行参考号" prop="bedgrp.prb.pts.ref">
lianyang committed
304 305 306
            <c-input
              v-model="model.bedgrp.prb.pts.ref"
              maxlength="16"
wangna committed
307
              placeholder="请输入"
lianyang committed
308 309 310 311 312 313 314 315 316
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.prb.pts.nam">
            <c-input
              v-model="model.bedgrp.prb.pts.nam"
              maxlength="40"
wangna committed
317
              placeholder="请输入"
lianyang committed
318 319 320 321 322 323 324
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop=""> </el-form-item>
        </c-col>
325

huangxin committed
326
        <c-col :span="24">
lianyang committed
327
          <!-- Name -->
jianglong committed
328
          <el-form-item label="简略信息" text-align="middle" prop="bedgrp.rec.nam">
lianyang committed
329 330 331
            <c-input
              v-model="model.bedgrp.rec.nam"
              maxlength="40"
wangna committed
332
              placeholder="请输入"
lianyang committed
333 334 335 336 337 338 339 340
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-row>

    <!-- ========================下半部分的上半部分(左边,右边是空白的)======================= -->
huangxin committed
341 342
      <c-row>
        <c-col :span="12" style="padding-right: 20px;">
lianyang committed
343
          <c-col :span="24">
jianglong committed
344
            <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
lianyang committed
345 346 347
              <c-select
                v-model="model.bedgrp.rec.doctypcod"
                style="width: 100%"
jianglong committed
348
                placeholder="请选择单据类型"
lianyang committed
349 350 351
                :code="codes.doctypcod1"
              >
              </c-select>
352 353
            </el-form-item>
          </c-col>
lianyang committed
354 355
          <!--  Received on-->
          <c-col :span="24">
jianglong committed
356
            <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
lianyang committed
357 358 359 360 361
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.rcvdat"
                style="width: 100%"
                value-format="yyyy-MM-dd"
jianglong committed
362
                placeholder="请选择收到日期"
lianyang committed
363
              ></c-date-picker>
364 365
            </el-form-item>
          </c-col>
lianyang committed
366
          <c-col :span="24">
jianglong committed
367
            <el-form-item label="通知类型" prop="bedgrp.rec.advtyp">
lianyang committed
368 369 370
              <c-select
                v-model="model.bedgrp.rec.advtyp"
                style="width: 100%"
jianglong committed
371
                placeholder="请选择通知类型"
lianyang committed
372 373 374 375 376 377 378 379
                :code="codes.advtyp"
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <!-- Payment advised on -->
            <c-col :span="12">
jianglong committed
380
              <el-form-item label="付款通知日期" prop="bedgrp.rec.advdat">
lianyang committed
381 382 383 384 385
                <c-date-picker
                  type="date"
                  v-model="model.bedgrp.rec.advdat"
                  style="width: 100%"
                  value-format="yyyy-MM-dd"
jianglong committed
386
                  placeholder="请选择付款通知日期"
LiRui committed
387
                  :disabled="model.bedgrp.rec.advtyp=='750'"
lianyang committed
388 389 390 391 392 393
                ></c-date-picker>
              </el-form-item>
            </c-col>
            <!-- Discrep. advised on -->
            <c-col :span="12">
              <el-form-item
jianglong committed
394
                label="不符点通知日期"
lianyang committed
395 396 397 398 399 400 401
                prop="bedgrp.rec.disdat"
              >
                <c-date-picker
                  type="date"
                  v-model="model.bedgrp.rec.disdat"
                  style="width: 100%"
                  value-format="yyyy-MM-dd"
jianglong committed
402
                  placeholder="请选择不符点通知日期"
LiRui committed
403
                  :disabled="model.bedgrp.rec.advtyp=='754'"
lianyang committed
404 405 406 407 408
                ></c-date-picker>
              </el-form-item>
            </c-col>
          </c-col>
        </c-col>
409
    </c-row>
lianyang committed
410 411
    <!-- ========================下半部分的下半边的左边=Presented by-====================== -->
    <c-row>
huangxin committed
412
      <c-col :span="12" style="padding-right: 20px;">
413
        <c-col :span="24">
jianglong committed
414
          <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
415
            <c-select
lianyang committed
416
              v-model="model.bedgrp.rec.docprbrol"
417
              style="width: 100%"
jianglong committed
418
              placeholder="请选择交单行"
lianyang committed
419 420
              :code="codes.docprbrol0"
              @change="eventFunction('bedgrp.rec.docprbrol')"
421 422 423
            >
            </c-select>
          </el-form-item>
424
        </c-col>
425

lianyang committed
426
        <c-col :span="24">
jianglong committed
427
          <el-form-item label="参考号" prop="bedgrp.prb.pts.ref">
lianyang committed
428 429 430
            <c-input
              v-model="model.bedgrp.prb.pts.ref"
              maxlength="16"
wangna committed
431
              placeholder="请输入"
lianyang committed
432 433 434
            ></c-input>
          </el-form-item>
        </c-col>
435 436 437 438 439 440 441 442 443 444 445

        <c-col :span="24">
          <c-ptap1
            :model="model"
            :argadr="{
              title: '',
              grp: 'bedgrp',
              rol: 'prb',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onPrbpDet"
lianyang committed
446
            :disabled1="model.bedgrp.rec.docprbrol == 'BEN' ? true : false"
447 448
          >
          </c-ptap1>
449
        </c-col>
450 451
      </c-col>
      <!-- ========================下半部分的下半边的右边Payer-======================= -->
huangxin committed
452
        <c-col :span="12" style="padding-left: 20px;">
lianyang committed
453
        <c-col :span="24">
jianglong committed
454
          <el-form-item label="付款人" prop="bedgrp.rec.payrol">
lianyang committed
455 456 457
            <c-select
              v-model="model.bedgrp.rec.payrol"
              style="width: 100%"
jianglong committed
458
              placeholder="请选择"
lianyang committed
459 460 461 462 463 464
              :code="codes.payrol"
              @change="eventFunction('bedgrp.rec.payrol')"
            >
            </c-select>
          </el-form-item>
        </c-col>
465

lianyang committed
466
        <c-col :span="24">
jianglong committed
467
          <el-form-item label="参考号" prop="betp.oth.pts.ref">
lianyang committed
468 469 470
            <c-input
              v-model="model.betp.oth.pts.ref"
              maxlength="16"
jianglong committed
471
              placeholder="请输入参考号"
lianyang committed
472 473 474 475
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
476 477 478 479 480 481 482 483 484 485 486 487 488 489

        <c-col :span="24">
          <c-ptap1
            :model="model"
            :argadr="{
              title: '',
              grp: 'bedgrp',
              rol: 'oth',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onOthpDet"
            :disabled1="docprbrolFlag"
          >
          </c-ptap1>
490
        </c-col>
lianyang committed
491
      </c-col>
492 493
    </c-row>

jianglong committed
494
   
495 496 497
  </div>
</template>
<script>
498 499 500 501 502
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdav/Event'
import Ptap1 from '~/views/Public/Ptap1'
503 504

export default {
505 506 507 508 509
  components: { 'c-ptap1': Ptap1 },
  inject: ['root'],
  props: ['model', 'codes'],
  mixins: [commonProcess],
  data() {
510 511
    return {
    }
512
  },
lianyang committed
513
  methods: {
514
    ...Event,
lianyang committed
515
    onSeainf() {},
516 517 518 519 520 521
  },
  computed: {
    docprbrolFlag: {
      get() {
        return (
          this.model.bedgrp.rec.payrol == 'AVB' ||
lianyang committed
522
          this.model.bedgrp.rec.payrol == 'ISS'
523 524
        )
      },
525
    },
526 527
  },
  created: function () {},
528 529
}
</script>
530
<style></style>