Drv.vue 22.4 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
                                :code="codes.avbby0"
liuxin committed
131 132 133 134 135
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>

liuxin committed
136
                    <c-col :span="24">
liuxin committed
137
                        <el-form-item
liuxin committed
138 139
                            label="最迟交单日期/交单地"
                            prop="dedgrp.rec.expdat"
liuxin committed
140
                        >
liuxin committed
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
                            <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
160 161 162
                        </el-form-item>
                    </c-col>
                </c-col>
liuxin committed
163
                <!-- -------------------Right------------------- -->
liuxin committed
164

liuxin committed
165 166 167 168 169 170 171 172 173
                <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
174
                        </el-form-item>
liuxin committed
175
                    </c-col>
liuxin committed
176

liuxin committed
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 204
                    <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
205 206
                        </el-form-item>
                    </c-col> -->
liuxin committed
207 208 209
                    <c-ptsmsg
                        :model="model"
                        :argadr="{
210
                            title: '开证行',
liuxin committed
211 212 213 214 215
                            grp: 'bfdgrp',
                            rol: 'iss',
                        }"
                        :disabled="true"
                    ></c-ptsmsg>
liuxin committed
216

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

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

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

                <c-col :span="24">
liuxin committed
272
                    <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
liuxin committed
273 274 275 276
                        <c-select
                            v-model="model.bfdgrp.rec.doctypcod"
                            style="width: 100%"
                            placeholder="请选择单据类型"
liuxin committed
277
                            disabled
liuxin committed
278
                            :code="codes.bedtyp"
liuxin committed
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
                        >
                        </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
295
                                disabled
liuxin committed
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 325 326 327
                            >
                            </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
328 329 330 331 332
                        <el-form-item
                            label="寄单日期"
                            prop="bfdgrp.rec.orddat"
                            label-width="100px"
                        >
liuxin committed
333 334 335 336 337 338 339 340 341
                            <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
342

liuxin committed
343 344 345 346 347 348 349 350 351 352 353 354 355
                <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
356 357 358 359 360
                        <el-form-item
                            label="装船日期"
                            prop="bfdgrp.rec.shpdat"
                            label-width="100px"
                        >
liuxin committed
361 362 363 364
                            <c-date-picker
                                type="date"
                                v-model="model.bfdgrp.rec.shpdat"
                                style="width: 100%"
liuxin committed
365 366
                                placeholder="请选择装船日期"
                                disabled
liuxin committed
367 368 369 370 371 372 373
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-col>

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

                <c-col :span="24">
liuxin committed
389 390
                    <c-fullbox>
                        <el-form-item label="发票类型" prop="bfdgrp.rec.invtyp">
liuxin committed
391 392 393 394 395
                            <c-select
                                v-model="model.bfdgrp.rec.invtyp"
                                style="width: 100%"
                                placeholder="请选择发票类型"
                            >
liuxin committed
396 397 398 399 400
                                <el-option
                                    v-for="item in codes.invtyp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
liuxin committed
401
                                >
liuxin committed
402 403 404 405 406 407 408 409 410 411 412
                                </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
413 414 415
                </c-col>

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

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

liuxin committed
472
            <!-- <c-col :span="24">
liuxin committed
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490
                        <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
491
            <!-- <c-col :span="24">
liuxin committed
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
                        <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
511 512
</template>
<script>
liuxin committed
513
import Api from "~/service/Api";
wangren committed
514
import commonProcess from "~/mixin/commonProcess";
liuxin committed
515 516 517
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Detdrv/Event";
import Ptap from "~/views/Public/Ptap";
liuxin committed
518
import Ptsmsg from "~/views/Public/Ptsmsg";
liumin committed
519 520

export default {
liuxin committed
521 522
    inject: ["root"],
    props: ["model", "codes"],
wangren committed
523
    mixins: [commonProcess],
liuxin committed
524
    components: { "c-ptap": Ptap, "c-ptsmsg": Ptsmsg },
liuxin committed
525 526
    data() {
        return {};
liumin committed
527
    },
liuxin committed
528 529 530 531 532 533 534 535 536 537 538
    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
539 540
    created: function () {},
};
liumin committed
541 542 543
</script>
<style>
</style>