Drv.vue 22.2 KB
Newer Older
liumin committed
1
<template>
liuxin committed
2 3
    <div class="eibs-tab">
        <c-row>
liuxin committed
4 5 6 7 8 9 10 11 12 13 14 15 16
            <c-col :span="24">
                <!-- -------------------Left------------------- -->
                <c-col :span="12">
                    <c-col :span="24">
                        <el-form-item label="参考号" prop="dedgrp.rec.ownref">
                            <c-input
                                v-model="model.dedgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入参考号"
                                disabled
                            ></c-input>
                        </el-form-item>
                    </c-col>
liuxin committed
17

liuxin committed
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 45 46 47 48 49 50 51 52 53 54 55 56
                    <c-col :span="24">
                        <c-col :span="13">
                            <el-form-item
                                label="信用证金额"
                                prop="dedgrp.cbs.nom1.cur"
                            >
                                <c-select
                                    disabled
                                    v-model="model.dedgrp.cbs.nom1.cur"
                                    style="width: 100%"
                                    placeholder="请选择Currency"
                                    @keyup.enter.native="nom1CurEvent"
                                >
                                    <el-option
                                        v-for="item in codes.cur"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value"
                                    >
                                    </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>

                        <c-col :span="11">
                            <el-form-item
                                style="text-align: left"
                                label-width="5px"
                                prop="dedgrp.cbs.nom1.amt"
                            >
                                <c-input-currency
                                    v-model="model.dedgrp.cbs.nom1.amt"
                                    style="text-align: left; width: 100%"
                                    placeholder="请输入信用证金额"
                                    disabled
                                ></c-input-currency>
                            </el-form-item>
                        </c-col>
                    </c-col>
liuxin committed
57

liuxin committed
58 59 60 61 62
                    <c-col :span="24">
                        <c-col :span="13">
                            <el-form-item
                                label="信用证余额"
                                prop="dedgrp.cbs.opn1.cur"
liuxin committed
63
                            >
liuxin committed
64 65 66 67 68 69
                                <c-select
                                    v-model="model.dedgrp.cbs.opn1.cur"
                                    placeholder="请选择币种"
                                    :code="codes.cur"
                                    style="width: 100%"
                                    disabled
liuxin committed
70
                                >
liuxin committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
                                </c-select>
                            </el-form-item>
                        </c-col>

                        <c-col :span="11">
                            <el-form-item
                                label=""
                                label-width="5px"
                                prop="dedgrp.cbs.opn1.amt"
                            >
                                <c-input-currency
                                    v-model="model.dedgrp.cbs.opn1.amt"
                                    placeholder="请输入金额"
                                    disabled
                                ></c-input-currency>
                            </el-form-item>
                        </c-col>
                    </c-col>

                    <c-col :span="24">
                        <el-form-item label="开证日期" prop="dedgrp.rec.opndat">
                            <c-date-picker
                                type="date"
                                v-model="model.dedgrp.rec.opndat"
                                placeholder="请选择开证日期"
                                style="width: 100%"
                                disabled
                            ></c-date-picker>
liuxin committed
99
                        </el-form-item>
liuxin committed
100 101 102 103 104 105 106 107 108 109

                        <!-- <c-col :span="12">
                            <el-form-item label="" prop="dedgrp.rec.shpdat">
                                <c-date-picker
                                    type="date"
                                    v-model="model.dedgrp.rec.shpdat"
                                    placeholder="请选择Shipment Date"
                                ></c-date-picker>
                            </el-form-item>
                        </c-col> -->
liuxin committed
110 111
                    </c-col>

liuxin committed
112 113 114 115 116 117 118 119
                    <c-col :span="24">
                        <el-form-item label="指定银行" prop="dedgrp.avbnam">
                            <c-input
                                v-model="model.dedgrp.avbnam"
                                maxlength="40"
                                placeholder="请输入指定银行"
                                disabled
                            ></c-input>
liuxin committed
120 121 122
                        </el-form-item>
                    </c-col>

liuxin committed
123 124
                    <c-col :span="24">
                        <el-form-item label="兑付方式" prop="dedgrp.rec.avbby">
liuxin committed
125
                            <c-select
liuxin committed
126 127 128 129
                                v-model="model.dedgrp.rec.avbby"
                                style="width: 100%"
                                placeholder="请选择兑付方式"
                                disabled
liuxin committed
130 131 132 133 134
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>

liuxin committed
135
                    <c-col :span="24">
liuxin committed
136
                        <el-form-item
liuxin committed
137 138
                            label="最迟交单日期/交单地"
                            prop="dedgrp.rec.expdat"
liuxin committed
139
                        >
liuxin committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
                            <c-date-picker
                                type="date"
                                v-model="model.dedgrp.rec.expdat"
                                style="width: 100%"
                                placeholder="请选择最迟交单日期/交单地"
                                disabled
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>
                    <c-col :span="24">
                        <el-form-item label="" prop="dedgrp.rec.expplc">
                            <c-input
                                type="textarea"
                                v-model="model.dedgrp.rec.expplc"
                                maxlength="35"
                                show-word-limit
                                placeholder="请输入最迟交单日期/交单地"
                                disabled
                            ></c-input>
liuxin committed
159 160 161
                        </el-form-item>
                    </c-col>
                </c-col>
liuxin committed
162
                <!-- -------------------Right------------------- -->
liuxin committed
163

liuxin committed
164 165 166 167 168 169 170 171 172
                <c-col :span="12">
                    <c-col :span="24">
                        <el-form-item label="概要" prop="dedgrp.rec.nam">
                            <c-input
                                v-model="model.dedgrp.rec.nam"
                                maxlength="40"
                                placeholder="请输入概要"
                                disabled
                            ></c-input>
liuxin committed
173
                        </el-form-item>
liuxin committed
174
                    </c-col>
liuxin committed
175

liuxin committed
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
                    <c-col :span="24">
                        <c-ptsmsg
                            :model="model"
                            :argadr="{
                                title: '申请人',
                                grp: 'bfdgrp',
                                rol: 'apl',
                            }"
                            :disabled="true"
                        ></c-ptsmsg>
                    </c-col>

                    <!-- <c-col :span="24">
                        <el-form-item label="开证行" prop="bfdgrp.iss.pts.ref">
                            <c-input
                                v-model="model.bfdgrp.iss.pts.ref"
                                maxlength="16"
                                placeholder="请输入开证行"
                            ></c-input>
                        </el-form-item>
                    </c-col>
                    <c-col :span="24">
                        <el-form-item label="" prop="bfdgrp.iss.pts.nam">
                            <c-input
                                v-model="model.bfdgrp.iss.pts.nam"
                                maxlength="40"
                                placeholder="请输入开证行"
                            ></c-input>
liuxin committed
204 205
                        </el-form-item>
                    </c-col> -->
liuxin committed
206 207 208
                    <c-ptsmsg
                        :model="model"
                        :argadr="{
209
                            title: '开证行',
liuxin committed
210 211 212 213 214
                            grp: 'bfdgrp',
                            rol: 'iss',
                        }"
                        :disabled="true"
                    ></c-ptsmsg>
liuxin committed
215

liuxin committed
216 217 218 219 220 221 222 223 224 225 226
                    <c-col :span="24">
                        <c-ptsmsg
                            :model="model"
                            :argadr="{
                                title: '交单人',
                                grp: 'bfdgrp',
                                rol: 'prb',
                            }"
                            :disabled="true"
                        ></c-ptsmsg>
                    </c-col>
liuxin committed
227

liuxin committed
228 229 230 231
                    <c-col :span="24">
                        <el-form-item
                            label="信用证类型"
                            prop="dedgrp.rec.lcrtyp"
liuxin committed
232
                        >
liuxin committed
233 234 235 236 237 238 239 240 241
                            <c-select
                                v-model="model.dedgrp.rec.lcrtyp"
                                style="width: 100%"
                                placeholder="请选择信用证类型"
                                disabled
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>
liuxin committed
242
                </c-col>
liuxin committed
243
            </c-col>
liuxin committed
244

liuxin committed
245 246
            <!-- -------------------Left------------------- -->
            <c-col :span="12">
liuxin committed
247 248 249
                <c-col :span="24">
                    <el-form-item label="单据编号" prop="bfdgrp.rec.ownref">
                        <c-fullbox>
liuxin committed
250
                            <c-input
liuxin committed
251 252 253
                                v-model="model.bfdgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入单据编号"
liuxin committed
254
                                disabled
liuxin committed
255 256 257 258 259 260 261 262 263
                            ></c-input>
                            <template slot="footer">
                                <c-button
                                    size="small"
                                    type="primary"
                                    @click="onBftmodButgetref"
                                >
                                    获取
                                </c-button>
liuxin committed
264
                            </template>
liuxin committed
265 266 267 268 269
                        </c-fullbox>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
liuxin committed
270
                    <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
liuxin committed
271 272 273 274
                        <c-select
                            v-model="model.bfdgrp.rec.doctypcod"
                            style="width: 100%"
                            placeholder="请选择单据类型"
liuxin committed
275
                            disabled
liuxin committed
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
                        >
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <c-col :span="13">
                        <el-form-item
                            label="单据金额"
                            prop="bfdgrp.cbs.max.cur"
                        >
                            <c-select
                                v-model="model.bfdgrp.cbs.max.cur"
                                style="width: 100%"
                                placeholder="请选择币种"
                                :code="codes.cur"
liuxin committed
292
                                disabled
liuxin committed
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>

                    <c-col :span="11">
                        <el-form-item
                            label=""
                            label-width="5px"
                            prop="bfdgrp.cbs.max.amt"
                        >
                            <c-input-currency
                                v-model="model.bfdgrp.cbs.max.amt"
                                placeholder="请输入金额"
                            ></c-input-currency>
                        </el-form-item>
                    </c-col>
                </c-col>

                <c-col :span="24">
                    <c-col :span="13">
                        <el-form-item label="收单日期" prop="bfdgrp.rec.rcvdat">
                            <c-date-picker
                                type="date"
                                v-model="model.bfdgrp.rec.rcvdat"
                                style="width: 100%"
                                placeholder="请选择收单日期"
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>

                    <c-col :span="11">
liuxin committed
325 326 327 328 329
                        <el-form-item
                            label="寄单日期"
                            prop="bfdgrp.rec.orddat"
                            label-width="100px"
                        >
liuxin committed
330 331 332 333 334 335 336 337 338
                            <c-date-picker
                                type="date"
                                v-model="model.bfdgrp.rec.orddat"
                                style="width: 100%"
                                placeholder="请选择寄单日期"
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-col>
liuxin committed
339

liuxin committed
340 341 342 343 344 345 346 347 348 349 350 351 352
                <c-col :span="24">
                    <c-col :span="13">
                        <el-form-item label="到期日" prop="bfdgrp.rec.matdat">
                            <c-date-picker
                                type="date"
                                v-model="model.bfdgrp.rec.matdat"
                                style="width: 100%"
                                placeholder="请选择到期日"
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>

                    <c-col :span="11">
liuxin committed
353 354 355 356 357
                        <el-form-item
                            label="装船日期"
                            prop="bfdgrp.rec.shpdat"
                            label-width="100px"
                        >
liuxin committed
358 359 360 361
                            <c-date-picker
                                type="date"
                                v-model="model.bfdgrp.rec.shpdat"
                                style="width: 100%"
liuxin committed
362 363
                                placeholder="请选择装船日期"
                                disabled
liuxin committed
364 365 366 367 368 369 370
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-col>

                <c-col :span="24">
                    <el-form-item
liuxin committed
371
                        label="远期单据到期时间"
liuxin committed
372 373 374 375 376 377 378 379
                        prop="bfdgrp.blk.matper"
                    >
                        <c-input
                            type="textarea"
                            v-model="model.bfdgrp.blk.matper"
                            maxlength="65"
                            show-word-limit
                            placeholder="请输入Maturity Period"
liuxin committed
380
                            disabled
liuxin committed
381 382 383 384 385
                        ></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
liuxin committed
386 387
                    <c-fullbox>
                        <el-form-item label="发票类型" prop="bfdgrp.rec.invtyp">
liuxin committed
388 389 390 391 392
                            <c-select
                                v-model="model.bfdgrp.rec.invtyp"
                                style="width: 100%"
                                placeholder="请选择发票类型"
                            >
liuxin committed
393 394 395 396 397
                                <el-option
                                    v-for="item in codes.invtyp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
liuxin committed
398
                                >
liuxin committed
399 400 401 402 403 404 405 406 407 408 409
                                </el-option>
                            </c-select>
                        </el-form-item>
                        <template slot="footer">
                            <c-checkbox
                                v-model="dscinsflg_flag"
                                style="margin-left: 10px"
                                >输入单据不符点指示</c-checkbox
                            >
                        </template>
                    </c-fullbox>
liuxin committed
410 411 412
                </c-col>

                <c-col :span="24">
liuxin committed
413
                    <el-form-item label="已交单次数" prop="dedgrp.rec.utlnbr">
liuxin committed
414 415 416
                        <c-input
                            v-model="model.dedgrp.rec.utlnbr"
                            placeholder="请输入已交单次数"
liuxin committed
417
                            disabled
liuxin committed
418 419 420 421 422 423 424 425
                        ></c-input>
                    </el-form-item>
                </c-col>
            </c-col>

            <!-- -------------------Right------------------- -->
            <c-col :span="12">
                <c-col :span="24">
liuxin committed
426
                    <el-form-item label="摘要" prop="bfdgrp.rec.nam">
liuxin committed
427
                        <c-input
liuxin committed
428
                            v-model="model.bfdgrp.rec.nam"
liuxin committed
429
                            maxlength="40"
liuxin committed
430 431
                            placeholder="请输入摘要"
                            disabled
liuxin committed
432 433 434 435
                        ></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
liuxin committed
436
                    <el-form-item label="交单人" prop="bfdgrp.rec.docprbrol">
liuxin committed
437
                        <c-select
liuxin committed
438
                            v-model="model.bfdgrp.rec.docprbrol"
liuxin committed
439
                            style="width: 100%"
liuxin committed
440
                            placeholder="请选择交单人"
liuxin committed
441 442 443 444 445
                        >
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
liuxin committed
446
                    <el-form-item label="单据编号" prop="bfdgrp.prb.pts.ref">
liuxin committed
447
                        <c-input
liuxin committed
448
                            v-model="model.bfdgrp.prb.pts.ref"
liuxin committed
449
                            maxlength="16"
liuxin committed
450
                            placeholder="请输入单据编号"
liuxin committed
451 452 453 454 455 456 457
                        ></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-ptap
                        :model="model"
                        :argadr="{
liuxin committed
458
                            title: '联行行号',
liuxin committed
459 460 461 462 463 464 465 466 467
                            grp: 'bfdgrp',
                            rol: 'prb',
                        }"
                        :disabled="true"
                    >
                    </c-ptap>
                </c-col>
            </c-col>

liuxin committed
468
            <!-- <c-col :span="24">
liuxin committed
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486
                        <el-form-item label="申请人" prop="bfdgrp.apl.pts.ref">
                            <c-input
                                v-model="model.bfdgrp.apl.pts.ref"
                                maxlength="16"
                                placeholder="请输入申请人"
                            ></c-input>
                        </el-form-item>
                    </c-col>
                    <c-col :span="24">
                        <el-form-item label="" prop="bfdgrp.apl.pts.nam">
                            <c-input
                                v-model="model.bfdgrp.apl.pts.nam"
                                maxlength="40"
                                placeholder="请输入申请人"
                            ></c-input>
                        </el-form-item>
                    </c-col> -->

liuxin committed
487
            <!-- <c-col :span="24">
liuxin committed
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506
                        <el-form-item label="交单人" prop="bfdgrp.prb.pts.ref">
                            <c-input
                                v-model="model.bfdgrp.prb.pts.ref"
                                maxlength="16"
                                placeholder="请输入交单人"
                            ></c-input>
                        </el-form-item>
                    </c-col>
                    <c-col :span="24">
                        <el-form-item label="" prop="bfdgrp.prb.pts.nam">
                            <c-input
                                v-model="model.bfdgrp.prb.pts.nam"
                                maxlength="40"
                                placeholder="请输入交单人"
                            ></c-input>
                        </el-form-item>
                    </c-col> -->
        </c-row>
    </div>
liumin committed
507 508
</template>
<script>
liuxin committed
509
import Api from "~/service/Api";
wangren committed
510
import commonProcess from "~/mixin/commonProcess";
liuxin committed
511 512 513
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Detdrv/Event";
import Ptap from "~/views/Public/Ptap";
liuxin committed
514
import Ptsmsg from "~/views/Public/Ptsmsg";
liumin committed
515 516

export default {
liuxin committed
517 518
    inject: ["root"],
    props: ["model", "codes"],
wangren committed
519
    mixins: [commonProcess],
liuxin committed
520
    components: { "c-ptap": Ptap, "c-ptsmsg": Ptsmsg },
liuxin committed
521 522
    data() {
        return {};
liumin committed
523
    },
liuxin committed
524 525 526 527 528 529 530 531 532 533 534
    methods: { ...Event, dscinsflgChange() {} },
    computed: {
        dscinsflg_flag: {
            get: function () {
                return this.model.bfdgrp.rec.dscinsflg === "X";
            },
            set(val) {
                this.model.bfdgrp.rec.dscinsflg = val ? "X" : "";
            },
        },
    },
liuxin committed
535 536
    created: function () {},
};
liumin committed
537 538 539
</script>
<style>
</style>