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

        <!-- 到期日 -->
35
        <c-col :span="24">
jianglong committed
36 37 38 39 40 41
          <el-form-item label="有效日期" prop="lidgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.lidgrp.rec.expdat"
              style="width: 100%"
              placeholder="请输入日期"
42
              value-format="yyyy-MM-dd"
jianglong committed
43 44
              disabled
            ></c-date-picker>
lianyang committed
45 46 47
          </el-form-item>
        </c-col>

48
        <!--  单据参考号 -->
lianyang committed
49
        <c-col :span="24">
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
          <el-form-item
            label="单据编号"
            prop="brdgrp.rec.ownref"
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
                v-model="model.brdgrp.rec.ownref"
                maxlength="8"
                disabled
                placeholder="请输入单据编号"
              ></c-input>
              <template slot="footer">
                <c-button
                  size="small"
                  style="margin-left: 10px; padding: 0 12px"
                  type="primary"
                  @click="onSeainf"
                  icon="el-icon-info"
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
lianyang committed
75

76
        <!--  单据金额 -->
lianyang committed
77 78
        <c-col :span="24">
          <c-col :span="13">
jianglong committed
79 80 81 82 83 84 85 86
            <el-form-item label="单据最大金额" prop="brdgrp.cbs.max.cur">
              <c-select
                v-model="model.brdgrp.cbs.max.cur"
                style="width: 100%"
                placeholder="请输入金额"
                :code="codes.curtxt1"
                disabled
              >
lianyang committed
87 88 89 90 91
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <c-form-item label="" label-width="5px" prop="brdgrp.cbs.max.amt">
jianglong committed
92 93 94 95 96 97
              <c-input
                v-model="model.brdgrp.cbs.max.amt"
                placeholder=""
                class="m-input-currency"
                disabled
              ></c-input>
lianyang committed
98 99 100 101 102 103 104
            </c-form-item>
          </c-col>
        </c-col>

        <!--  单据余额 -->
        <c-col :span="24">
          <c-col :span="13">
jianglong committed
105 106 107 108 109 110 111 112
            <c-form-item label="单据开立金额" prop="brdgrp.cbs.opn1.cur">
              <c-select
                v-model="model.brdgrp.cbs.opn1.cur"
                maxlength="3"
                placeholder="请输入金额"
                :code="codes.curtxt"
                disabled
              >
113
              </c-select>
lianyang committed
114 115 116 117
            </c-form-item>
          </c-col>
          <c-col :span="11">
            <c-form-item label="" label-width="5px" prop="brdgrp.cbs.opn1.amt">
jianglong committed
118 119 120
              <c-input
                v-model="model.brdgrp.cbs.opn1.amt"
                placeholder=""
121
                class="m-input-currency"
jianglong committed
122 123
                disabled
              ></c-input>
lianyang committed
124 125 126 127 128
            </c-form-item>
          </c-col>
        </c-col>
        <!--  到单日期 -->
        <c-col :span="12">
jianglong committed
129 130 131 132 133 134
          <el-form-item label="收单日期" prop="brdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择收单日期"
135
              value-format="yyyy-MM-dd"
jianglong committed
136 137
              disabled
            ></c-date-picker>
lianyang committed
138 139 140 141
          </el-form-item>
        </c-col>
        <!--  通知到单日期 -->
        <c-col :span="12">
jianglong committed
142 143 144 145 146 147
          <el-form-item label="通知日期" prop="brdgrp.rec.advdat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.advdat"
              style="width: 100%"
              placeholder="请输入日期"
148
              value-format="yyyy-MM-dd"
jianglong committed
149 150
              disabled
            ></c-date-picker>
lianyang committed
151 152 153 154 155
          </el-form-item>
        </c-col>

        <!--  Maturity Date -->
        <c-col :span="12">
jianglong committed
156 157 158 159 160 161
          <el-form-item label="付款期限" prop="brdgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.matdat"
              style="width: 100%"
              placeholder="请输入日期"
162
              value-format="yyyy-MM-dd"
jianglong committed
163 164
              :disabled="model.brdgrp.rec.mattxtflg == ''"
            ></c-date-picker>
lianyang committed
165 166 167 168
          </el-form-item>
        </c-col>
        <!--  Start Date -->
        <c-col :span="12">
jianglong committed
169 170 171 172 173 174
          <el-form-item label="开始日期" prop="brdgrp.rec.stadat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.stadat"
              style="width: 100%"
              placeholder="请输入日期"
175
              value-format="yyyy-MM-dd"
jianglong committed
176 177
              disabled
            ></c-date-picker>
lianyang committed
178 179 180
          </el-form-item>
        </c-col>
        <!--  单据类型 -->
181
        <c-col :span="12">
jianglong committed
182 183 184 185 186 187 188 189
          <el-form-item label="单据类型" prop="brdgrp.rec.docflg">
            <c-select
              v-model="model.brdgrp.rec.docflg"
              style="width: 100%"
              placeholder="请输入单据类型"
              :code="codes.docflg"
              :disabled="model.brdgrp.rec.docflg != ''"
            >
lianyang committed
190 191 192 193
            </c-select>
          </el-form-item>
        </c-col>
        <!-- Tenor -->
194
        <c-col :span="12">
jianglong committed
195 196 197 198 199 200 201 202 203
          <c-form-item
            label="远期最大期限"
            prop="brdgrp.rec.tenmaxday"
          >
            <c-input
              v-model="model.brdgrp.rec.tenmaxday"
              placeholder="请输入天数"
              disabled
            ></c-input>
lianyang committed
204 205
          </c-form-item>
        </c-col>
206
        <!--  单据状态 -->
lianyang committed
207
        <c-col :span="24">
jianglong committed
208 209 210 211 212
          <el-form-item label="单据状态" prop="brdgrp.rec.docsta">
            <c-select
              v-model="model.brdgrp.rec.docsta"
              style="width: 100%"
              placeholder="请选择单据状态"
huangxin committed
213
              :code="codes.docsta2"
jianglong committed
214 215
              disabled
            >
lianyang committed
216 217 218 219 220
            </c-select>
          </el-form-item>
        </c-col>
        <!-- Document Condition -->
        <c-col :span="24">
jianglong committed
221 222 223 224 225 226 227 228
          <el-form-item label="单据类型" prop="brdgrp.rec.docflg">
            <c-select
              v-model="model.brdgrp.rec.docflg"
              style="width: 100%"
              placeholder="请选择类型"
              :code="codes.brdtyp"
              :disabled="model.brdgrp.rec.docflg != ''"
            >
lianyang committed
229 230 231 232
            </c-select>
          </el-form-item>
        </c-col>

233
        <!--  Received on -->
lianyang committed
234
        <c-col :span="12">
jianglong committed
235 236 237 238 239 240 241 242
          <el-form-item label="收单日期" prop="brdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择日期"
              value-format="yyyy-MM-dd"
            ></c-date-picker>
lianyang committed
243 244
          </el-form-item>
        </c-col>
245
        <!--  Presentation Date -->
lianyang committed
246
        <c-col :span="12">
jianglong committed
247 248 249 250 251 252 253 254
          <el-form-item label="交单日期" prop="brdgrp.rec.predat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.predat"
              style="width: 100%"
              placeholder="请选择寄单日期"
              value-format="yyyy-MM-dd"
            ></c-date-picker>
lianyang committed
255 256
          </el-form-item>
        </c-col>
257
        <!-- Accept Amount -->
lianyang committed
258
        <c-col :span="13">
jianglong committed
259 260 261 262
          <el-form-item label="承兑金额" prop="setmod.doccur">
            <c-input
              v-model="model.setmod.doccur"
              style="width: 100%"
wangna committed
263
              placeholder="请输入承兑金额"
jianglong committed
264 265
              disabled
            >
lianyang committed
266 267 268 269 270
            </c-input>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="" label-width="5px" prop="setmod.docamt">
271
            <c-input v-model="model.setmod.docamt" placeholder=""></c-input>
lianyang committed
272 273 274 275 276
          </el-form-item>
        </c-col>

        <!-- Dco.Amount.Part 单据金额 -->
        <c-col :span="13">
jianglong committed
277 278 279 280
          <el-form-item label="单据金额" prop="brdgrp.cbs.opn2.cur">
            <c-select
              v-model="model.brdgrp.cbs.opn2.cur"
              style="width: 100%"
wangna committed
281
              placeholder="请选择币种"
jianglong committed
282 283 284
              :code="codes.curtxt1"
              disabled
            >
lianyang committed
285 286 287 288 289
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt">
jianglong committed
290 291 292 293 294
            <c-input
              v-model="model.aamset.utlamt"
              placeholder="请输入单据金额"
              :disabled="model.brdgrp.rec.acpnowflg == ''"
            ></c-input>
lianyang committed
295 296
          </el-form-item>
        </c-col>
297
        <!-- Add.Amount.Part 附加金额 -->
lianyang committed
298
        <c-col :span="13">
jianglong committed
299 300 301 302
          <el-form-item label="附加金额" prop="brdgrp.cbs.opn2.cur">
            <c-select
              v-model="model.brdgrp.cbs.opn2.cur"
              style="width: 100%"
wangna committed
303
              placeholder="请选择币种"
jianglong committed
304 305 306
              :code="codes.curtxt1"
              disabled
            >
lianyang committed
307 308 309 310 311
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt2">
jianglong committed
312 313 314 315 316
            <c-input
              v-model="model.aamset.utlamt2"
              placeholder="请输入附加金额"
              :disabled="model.brdgrp.rec.acpnowflg == ''"
            ></c-input>
lianyang committed
317 318 319 320
          </el-form-item>
        </c-col>

        <c-col :span="24">
jianglong committed
321 322 323 324 325
          <el-form-item label="发报类型" prop="sftmt">
            <c-select
              v-model="model.sftmt"
              style="width: 100%"
              placeholder="请选择类型"
huangxin committed
326
              :code="paysmt"
jianglong committed
327
            >
lianyang committed
328 329 330
            </c-select>
          </el-form-item>
        </c-col>
331
        <!-- TAG72 -->
lianyang committed
332
        <c-col :span="24">
333
          <el-form-item label="" prop="brdgrp.tag72add">
334
            <c-fullbox>
jianglong committed
335 336 337 338 339
              <c-input
                type="textarea"
                v-model="model.brdgrp.tag72add"
                maxlength="1750"
                show-word-limit
wangna committed
340
                placeholder="请输入"
jianglong committed
341 342 343
                :disabled="model.sftmt == '' ? true : false"
                :rows="4"
              ></c-input>
344
              <template slot="footer">
345
                <!-- @click="onAcctagButtxmsel" -->
jianglong committed
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
                <c-button
                  size="small"
                  type="primary"
                  icon="el-icon-more"
                  @click="
                    showGridPromptDialog(
                      'brtp.acctag.buttxmsel',
                      null,
                      null,
                      { TXT: 'brdgrp.tag72add' },
                      { TXT: false },
                      'doxpDialog'
                    )
                  "
                  :disabled="model.sftmt == '' ? true : false"
                >
362 363 364
                </c-button>
              </template>
            </c-fullbox>
lianyang committed
365 366 367 368
          </el-form-item>
        </c-col>
      </c-col>

369
      <!-- ====================================右边 ======================================-->
370
      <c-col :span="12" style="padding-left: 20px">
371
        <!--  信用证余额 -->
Wuyuqiu committed
372
        <c-col :span="13">
jianglong committed
373 374 375 376
          <c-form-item label="信用证余额" prop="lidgrp.cbs.opn1.cur">
            <c-input
              v-model="model.lidgrp.cbs.opn1.cur"
              maxlength="3"
377
              placeholder="请输入信用证余额"
jianglong committed
378 379
              disabled
            ></c-input>
lianyang committed
380 381
          </c-form-item>
        </c-col>
Wuyuqiu committed
382 383
        <c-col :span="11">
          <c-form-item label="" label-width="5px" prop="lidgrp.cbs.opn1.amt">
jianglong committed
384 385 386 387 388 389
            <c-input
              v-model="model.lidgrp.cbs.opn1.amt"
              placeholder=""
              class="m-input-currency"
              disabled
            ></c-input>
lianyang committed
390 391 392 393 394
          </c-form-item>
        </c-col>

        <c-col :span="24">
          <!--label="Name of Bill Contract"  -->
jianglong committed
395 396 397 398 399 400 401
          <el-form-item label="单据简略信息" prop="brdgrp.rec.nam">
            <c-input
              v-model="model.brdgrp.rec.nam"
              maxlength="40"
              placeholder=""
              disabled
            >
402
            </c-input>
lianyang committed
403 404 405 406
          </el-form-item>
        </c-col>

        <c-col :span="24">
jianglong committed
407 408
          <c-ptsmsg
            :model="model"
wangna committed
409
            :argadr="{ title: '申请人', grp: 'brdgrp', rol: 'apl' }"
jianglong committed
410 411
            disabled
          >
lianyang committed
412 413 414
          </c-ptsmsg>
        </c-col>

415
        <!-- eneficiary Ref -->
lianyang committed
416
        <c-col :span="24">
jianglong committed
417 418
          <c-ptsmsg
            :model="model"
wangna committed
419
            :argadr="{ title: '受益人', grp: 'brdgrp', rol: 'ben' }"
jianglong committed
420 421
            disabled
          >
lianyang committed
422 423 424
          </c-ptsmsg>
        </c-col>

425
        <!-- Presenting Bank Ref 交单行编号-->
lianyang committed
426
        <c-col :span="24">
jianglong committed
427 428 429
          <c-ptsmsg
            :model="model"
            :argadr="{
wangna committed
430
              title: '交单行',
jianglong committed
431 432 433 434 435
              grp: 'brdgrp',
              rol: 'prb',
            }"
            disabled
          >
lianyang committed
436 437 438
          </c-ptsmsg>
        </c-col>

439
        <!-- Presented by -->
lianyang committed
440
        <c-col :span="24">
wangna committed
441
          <el-form-item label="交单行" prop="brdgrp.rec.docprbrol">
jianglong committed
442 443 444
            <c-select
              v-model="model.brdgrp.rec.docprbrol"
              style="width: 100%"
wangna committed
445
              placeholder="请输入交单行"
jianglong committed
446 447 448
              :code="codes.docprbrol"
              disabled
            >
lianyang committed
449 450 451 452
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
453 454 455 456 457 458 459 460 461 462 463 464
          <c-ptap1
            :model="model"
            :argadr="{
              title: '',
              grp: 'brdgrp',
              rol: 'prb',
            }"
            :disabled="model.brdgrp.prb.pts.extkey != ''"
            :isAdrblk="false"
            @onSeainf="onSeainf"
            @onAplpDet="onPrbpDet"
          >
lianyang committed
465 466 467 468 469
          </c-ptap1>
        </c-col>

        <!--  Payer -->
        <c-col :span="24">
jianglong committed
470 471 472 473 474 475 476 477
          <el-form-item label="付款人" prop="brdgrp.rec.payrol">
            <c-select
              v-model="model.brdgrp.rec.payrol"
              style="width: 100%"
              placeholder="请选择"
              :code="codes.payrol"
              disabled
            >
lianyang committed
478 479 480
            </c-select>
          </el-form-item>
        </c-col>
481
        <c-col :span="24">
jianglong committed
482 483 484 485 486 487 488 489 490 491 492 493 494
          <c-ptap1
            :model="model"
            :argadr="{
              title: '',
              grp: 'brtp',
              rol: 'oth',
            }"
            :disabled="true"
            :isAdrblk="false"
            disabled1
            @onSeainf="onSeainf"
            @onAplpDet="onOthpDet"
          >
495 496
          </c-ptap1>
        </c-col>
lianyang committed
497 498 499 500
      </c-col>
    </c-row>
  </div>
</template>
jianglong committed
501

lianyang committed
502 503 504 505 506 507 508
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtudp/Event";
import Ptap1 from "~/views/Public/Ptap1";
import Ptsmsg from "~/views/Public/Ptsmsg";
jianglong committed
509
import Fullbox from "../../../components/Fullbox.vue";
lianyang committed
510 511

export default {
512
  components: {
lianyang committed
513 514 515 516 517 518 519 520
    "c-ptap1": Ptap1,
    // "c-ptap": Ptap,
    "c-ptsmsg": Ptsmsg,
  },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
huangxin committed
521 522 523 524
    return {
      paysmt: [
        { label: "MT 732 Advise of Discharge", value: "732" },
        { label: "MT x99 Information B by Free Massage", value: "x99" },
525
      ],
huangxin committed
526
    };
lianyang committed
527
  },
jianglong committed
528 529 530 531 532
  methods: {
    ...Event,
    onSeainf() {},
  },
  created: function () {},
lianyang committed
533 534 535 536 537 538 539
  computed: {
    flag() {
      return this.model.brdgrp.prb.pts.extkey == "";
    },
  },
};
</script>
jianglong committed
540

lianyang committed
541 542
<style>
</style>