Drv.vue 19.3 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
                    <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%"
wangna committed
28
                                    placeholder="请选择币种"
liuxin committed
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
                                    @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 100 101
                        </el-form-item>
                    </c-col>

liuxin committed
102 103 104 105 106 107 108 109
                    <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
110 111 112
                        </el-form-item>
                    </c-col>

liuxin committed
113 114
                    <c-col :span="24">
                        <el-form-item label="兑付方式" prop="dedgrp.rec.avbby">
liuxin committed
115
                            <c-select
liuxin committed
116 117 118 119
                                v-model="model.dedgrp.rec.avbby"
                                style="width: 100%"
                                placeholder="请选择兑付方式"
                                disabled
liuxin committed
120
                                :code="codes.avbby0"
liuxin committed
121 122 123 124 125
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>

liuxin committed
126
                    <c-col :span="24">
liuxin committed
127
                        <el-form-item
liuxin committed
128 129
                            label="最迟交单日期/交单地"
                            prop="dedgrp.rec.expdat"
liuxin committed
130
                        >
liuxin committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
                            <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
wangna committed
147
                                placeholder="请输入"
liuxin committed
148 149
                                disabled
                            ></c-input>
liuxin committed
150 151 152
                        </el-form-item>
                    </c-col>
                </c-col>
liuxin committed
153
                <!-- -------------------Right------------------- -->
liuxin committed
154

liuxin committed
155 156 157 158 159 160 161 162 163
                <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
164
                        </el-form-item>
liuxin committed
165
                    </c-col>
liuxin committed
166

liuxin committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
                    <c-col :span="24">
                        <c-ptsmsg
                            :model="model"
                            :argadr="{
                                title: '申请人',
                                grp: 'bfdgrp',
                                rol: 'apl',
                            }"
                            :disabled="true"
                        ></c-ptsmsg>
                    </c-col>

                    <c-ptsmsg
                        :model="model"
                        :argadr="{
182
                            title: '开证行',
liuxin committed
183 184 185 186 187
                            grp: 'bfdgrp',
                            rol: 'iss',
                        }"
                        :disabled="true"
                    ></c-ptsmsg>
liuxin committed
188

liuxin committed
189 190 191 192 193 194 195 196 197 198 199
                    <c-col :span="24">
                        <c-ptsmsg
                            :model="model"
                            :argadr="{
                                title: '交单人',
                                grp: 'bfdgrp',
                                rol: 'prb',
                            }"
                            :disabled="true"
                        ></c-ptsmsg>
                    </c-col>
liuxin committed
200

liuxin committed
201 202 203 204
                    <c-col :span="24">
                        <el-form-item
                            label="信用证类型"
                            prop="dedgrp.rec.lcrtyp"
liuxin committed
205
                        >
liuxin committed
206 207 208 209 210
                            <c-select
                                v-model="model.dedgrp.rec.lcrtyp"
                                style="width: 100%"
                                placeholder="请选择信用证类型"
                                disabled
liuxin committed
211
                                :code="codes.lcrtyp"
liuxin committed
212 213 214 215
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>
liuxin committed
216
                </c-col>
liuxin committed
217
            </c-col>
liuxin committed
218

liuxin committed
219 220
            <!-- -------------------Left------------------- -->
            <c-col :span="12">
liuxin committed
221 222 223
                <c-col :span="24">
                    <el-form-item label="单据编号" prop="bfdgrp.rec.ownref">
                        <c-fullbox>
liuxin committed
224
                            <c-input
liuxin committed
225 226 227
                                v-model="model.bfdgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入单据编号"
liuxin committed
228
                                disabled
liuxin committed
229 230 231 232 233 234 235 236 237
                            ></c-input>
                            <template slot="footer">
                                <c-button
                                    size="small"
                                    type="primary"
                                    @click="onBftmodButgetref"
                                >
                                    获取
                                </c-button>
liuxin committed
238
                            </template>
liuxin committed
239 240 241 242 243
                        </c-fullbox>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
liuxin committed
244
                    <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
liuxin committed
245 246 247 248
                        <c-select
                            v-model="model.bfdgrp.rec.doctypcod"
                            style="width: 100%"
                            placeholder="请选择单据类型"
liuxin committed
249
                            disabled
liuxin committed
250
                            :code="codes.bedtyp"
liuxin committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
                        >
                        </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
267
                                disabled
liuxin committed
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
                            >
                            </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
300 301 302 303 304
                        <el-form-item
                            label="寄单日期"
                            prop="bfdgrp.rec.orddat"
                            label-width="100px"
                        >
liuxin committed
305 306 307 308 309 310 311 312 313
                            <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
314

liuxin committed
315 316 317 318 319 320 321 322 323 324 325 326 327
                <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
328 329 330 331 332
                        <el-form-item
                            label="装船日期"
                            prop="bfdgrp.rec.shpdat"
                            label-width="100px"
                        >
liuxin committed
333 334 335 336
                            <c-date-picker
                                type="date"
                                v-model="model.bfdgrp.rec.shpdat"
                                style="width: 100%"
liuxin committed
337 338
                                placeholder="请选择装船日期"
                                disabled
liuxin committed
339 340 341 342 343 344 345
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-col>

                <c-col :span="24">
                    <el-form-item
liuxin committed
346
                        label="远期单据到期时间"
liuxin committed
347 348 349 350 351 352 353
                        prop="bfdgrp.blk.matper"
                    >
                        <c-input
                            type="textarea"
                            v-model="model.bfdgrp.blk.matper"
                            maxlength="65"
                            show-word-limit
wangna committed
354
                            placeholder="请输入远期单据到期时间"
liuxin committed
355
                            disabled
liuxin committed
356 357 358 359 360
                        ></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
liuxin committed
361 362
                    <c-fullbox>
                        <el-form-item label="发票类型" prop="bfdgrp.rec.invtyp">
liuxin committed
363 364 365 366 367
                            <c-select
                                v-model="model.bfdgrp.rec.invtyp"
                                style="width: 100%"
                                placeholder="请选择发票类型"
                            >
liuxin committed
368 369 370 371 372
                                <el-option
                                    v-for="item in codes.invtyp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
liuxin committed
373
                                >
liuxin committed
374 375 376 377 378 379 380 381 382 383 384
                                </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
385 386 387
                </c-col>

                <c-col :span="24">
liuxin committed
388
                    <el-form-item label="已交单次数" prop="dedgrp.rec.utlnbr">
liuxin committed
389 390 391
                        <c-input
                            v-model="model.dedgrp.rec.utlnbr"
                            placeholder="请输入已交单次数"
liuxin committed
392
                            disabled
liuxin committed
393 394 395 396 397 398 399 400
                        ></c-input>
                    </el-form-item>
                </c-col>
            </c-col>

            <!-- -------------------Right------------------- -->
            <c-col :span="12">
                <c-col :span="24">
liuxin committed
401
                    <el-form-item label="摘要" prop="bfdgrp.rec.nam">
liuxin committed
402
                        <c-input
liuxin committed
403
                            v-model="model.bfdgrp.rec.nam"
liuxin committed
404
                            maxlength="40"
liuxin committed
405 406
                            placeholder="请输入摘要"
                            disabled
liuxin committed
407 408 409 410
                        ></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
liuxin committed
411
                    <el-form-item label="交单人" prop="bfdgrp.rec.docprbrol">
liuxin committed
412
                        <c-select
liuxin committed
413
                            v-model="model.bfdgrp.rec.docprbrol"
liuxin committed
414
                            style="width: 100%"
liuxin committed
415
                            placeholder="请选择交单人"
liuxin committed
416
                            :code="codes.detdrv_deltol"
liuxin committed
417 418 419 420 421
                        >
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
liuxin committed
422
                    <el-form-item label="单据编号" prop="bfdgrp.prb.pts.ref">
liuxin committed
423
                        <c-input
liuxin committed
424
                            v-model="model.bfdgrp.prb.pts.ref"
liuxin committed
425
                            maxlength="16"
liuxin committed
426
                            placeholder="请输入单据编号"
liuxin committed
427 428 429 430 431 432 433
                        ></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-ptap
                        :model="model"
                        :argadr="{
liuxin committed
434
                            title: '联行行号',
liuxin committed
435 436 437 438 439 440 441 442 443 444
                            grp: 'bfdgrp',
                            rol: 'prb',
                        }"
                        :disabled="true"
                    >
                    </c-ptap>
                </c-col>
            </c-col>
        </c-row>
    </div>
liumin committed
445 446
</template>
<script>
liuxin committed
447
import Api from "~/service/Api";
wangren committed
448
import commonProcess from "~/mixin/commonProcess";
liuxin committed
449 450 451
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Detdrv/Event";
import Ptap from "~/views/Public/Ptap";
liuxin committed
452
import Ptsmsg from "~/views/Public/Ptsmsg";
liumin committed
453 454

export default {
liuxin committed
455 456
    inject: ["root"],
    props: ["model", "codes"],
wangren committed
457
    mixins: [commonProcess],
liuxin committed
458
    components: { "c-ptap": Ptap, "c-ptsmsg": Ptsmsg },
liuxin committed
459 460
    data() {
        return {};
liumin committed
461
    },
liuxin committed
462 463 464 465 466 467 468 469 470 471 472
    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
473 474
    created: function () {},
};
liumin committed
475 476 477
</script>
<style>
</style>