Utlp.vue 16.7 KB
Newer Older
liuxin committed
1
<template>
liuxin committed
2 3 4 5 6
    <div class="eibs-tab">
        <c-col :span="24">
            <!-- ---------------Left--------------- -->
            <c-col :span="12">
                <c-col :span="24">
7
                    <el-form-item label="信用证编号" prop="lidgrp.rec.ownref">
liuxin committed
8 9 10 11 12
                        <c-fullbox>
                            <c-input
                                v-model="model.lidgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入信用证编号"
13
                                disabled
liuxin committed
14 15 16 17 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
                            ></c-input>
                            <template slot="footer">
                                <c-button
                                    style="
                                        margin: 0 10px 0 10px;
                                        padding: 0 12px;
                                    "
                                    size="small"
                                    type="primary"
                                >
                                    <span
                                        style="
                                            font-family: '宋体';
                                            font-weight: bold;
                                        "
                                        >i</span
                                    >
                                </c-button>
                                <c-button
                                    style="margin: 0 0"
                                    size="small"
                                    type="primary"
                                    :disabled="this.flag"
                                >
                                    获取
                                </c-button>
                            </template>
                        </c-fullbox>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
46
                    <el-form-item label="单据编号" prop="brdgrp.rec.ownref">
liuxin committed
47 48 49 50 51
                        <c-fullbox>
                            <c-input
                                v-model="model.brdgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入单据参考号"
52
                                disabled
liuxin committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
                            ></c-input>
                            <template slot="footer">
                                <c-button
                                    style="
                                        margin: 0 10px 0 10px;
                                        padding: 0 12px;
                                    "
                                    size="small"
                                    type="primary"
                                >
                                    <span
                                        style="
                                            font-family: '宋体';
                                            font-weight: bold;
                                        "
                                        >i</span
                                    >
                                </c-button>
                                <c-button
                                    style="margin: 0 0"
                                    size="small"
                                    type="primary"
                                    :disabled="this.flag"
                                >
                                    获取
                                </c-button>
                            </template>
                        </c-fullbox>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
85
                    <el-form-item label="生效日期" prop="lidgrp.rec.expdat">
liuxin committed
86 87 88 89
                        <c-date-picker
                            type="date"
                            v-model="model.lidgrp.rec.expdat"
                            style="width: 100%"
90
                            placeholder="请选择日期"
91
                            disabled
liuxin committed
92 93 94 95 96 97 98
                        ></c-date-picker>
                    </el-form-item>
                </c-col>
            </c-col>

            <!-- ---------------Right--------------- -->
            <c-col :span="12">
99
            <c-col :span="12">
100
            <el-form-item label="开证金额" prop="lidgrp.cbs.opn1.cur">
101 102 103 104
                <c-select
                    disabled
                    v-model="model.lidgrp.cbs.opn1.cur"
                    style="width: 100%"
105
                    placeholder="请选择币种"
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
                    >
                    <el-option
                      v-for="item in codes.curtxt1"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                     >
                    </el-option>
                </c-select>
            </el-form-item>
        </c-col>

        <c-col :span="12">
            <el-form-item
                style="text-align: left"
                label-width="5px"
                prop="lidgrp.cbs.opn1.amt"
            >
                <c-input
                    disabled
                    v-model="model.lidgrp.cbs.opn1.amt"
                    style="text-align: left; width: 100%"
128
                    placeholder="单据金额"
129 130 131 132
                ></c-input>
            </el-form-item>
        </c-col>
                <!-- <c-col :span="24">
liuxin committed
133 134 135 136 137 138 139 140
                    <c-curAmt
                        :model="model"
                        :argadr="{
                            title: 'Opening Amount',
                            trans: 'lidgrp',
                        }"
                    >
                    </c-curAmt>
141
                </c-col> -->
liuxin committed
142

143
                 <c-col :span="24">
liuxin committed
144
                    <el-form-item
145 146
                        label=""
                        prop="brdgrp.rec.nam"
liuxin committed
147 148
                    >
                        <c-input
149 150 151
                            v-model="model.brdgrp.rec.nam"
                            placeholder=""
                            disabled
liuxin committed
152 153 154 155 156 157 158 159 160 161
                        ></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
        </c-col>

        <c-col :span="24">
            <c-litTemp
                :model="model"
                :argadr="{
162
                    title: '',
liuxin committed
163
                    trans: 'brdgrp',
huangxin committed
164
                    trans1:'brtp',
liuxin committed
165 166 167
                }"
                :rol="[
                    {
168
                        title: '申请人',
169
                        trans: 'apl',
liuxin committed
170 171
                    },
                    {
172
                        title: '受益人',
liuxin committed
173 174 175
                        trans: 'ben',
                    },
                    {
176
                        title: '交单行',
177
                        trans: 'prb',
liuxin committed
178 179 180 181 182 183 184 185 186 187 188 189 190
                    },
                ]"
                :isAdvdat="true"
                :isMattxtlab="true"
                :isTenmaxday="true"
            >
            </c-litTemp>
        </c-col>

        <c-col :span="24">
            <c-col :span="12">
                <c-col :span="24">
                    <el-form-item
191
                        label="交单人"
liuxin committed
192 193 194
                        prop="brdgrp.rec.docprbrol"
                    >
                        <c-select
195
                            disabled
liuxin committed
196 197
                            v-model="model.brdgrp.rec.docprbrol"
                            style="width: 100%"
198
                            placeholder="请选择内容"
liuxin committed
199
                        >
200 201 202 203 204 205 206
                        <el-option
                                v-for="item in codes.docprbrol"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
liuxin committed
207 208 209 210 211 212 213
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-ptap1
                        :model="model"
                        :argadr="{
214
                            title: '',
liuxin committed
215 216 217
                            grp: 'brdgrp',
                            rol: 'prb',
                        }"
huangxin committed
218
                        :disabled="this.flag1"
liuxin committed
219 220 221 222 223
                    >
                    </c-ptap1>
                </c-col>

                <c-col :span="24">
224
                    <el-form-item label="付款人" prop="brdgrp.rec.payrol">
liuxin committed
225
                        <c-select
226
                            disabled
liuxin committed
227 228
                            v-model="model.brdgrp.rec.payrol"
                            style="width: 100%"
229
                            placeholder="请选择付款人"
liuxin committed
230
                        >
231 232 233 234 235 236 237
                        <el-option
                                v-for="item in codes.payrol"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
liuxin committed
238 239 240 241 242 243 244
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-ptap1
                        :model="model"
                        :argadr="{
245
                            title: '',
liuxin committed
246 247 248 249 250
                            grp: 'brtp',
                            rol: 'oth',
                        }"
                        :disabled="true"
                        :isAdrblk="false"
251
                        :disabled1="true"
liuxin committed
252 253 254 255 256 257
                    >
                    </c-ptap1>
                </c-col>
            </c-col>

            <c-col :span="12">
258
            <c-col :span="24">
259
                    <el-form-item label="订单日期" prop="brdgrp.rec.orddat" >
260 261 262 263 264
                        <c-date-picker
                        :disabled="model.advrefflg !='X'"
                            type="date"
                            v-model="model.brdgrp.rec.orddat"
                            style="width: 100%"
265
                            placeholder="请选择日期"
266 267 268 269
                        ></c-date-picker>
                    </el-form-item>
                </c-col>

liuxin committed
270
                <c-col :span="24">
271
                    <el-form-item label="SWIFT报文日期" prop="swtdat">
liuxin committed
272
                        <c-date-picker
273
                        :disabled="model.brdgrp.rec.advdocflg !='X'"
liuxin committed
274 275 276
                            type="date"
                            v-model="model.swtdat"
                            style="width: 100%"
277
                            placeholder="请选择日期"
liuxin committed
278 279 280 281 282 283
                        ></c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item
284
                        label="单据处理"
liuxin committed
285 286
                        prop="brdgrp.blk.disdoc"
                    >
287
                    <c-fullbox>
liuxin committed
288
                        <c-input
289
                        :disabled="model.brdgrp.blk.disdocflg !='X'"
liuxin committed
290 291
                            type="textarea"
                            v-model="model.brdgrp.blk.disdoc"
292 293
                            maxlength="200"
                            :rows="3"
liuxin committed
294
                            show-word-limit
295
                            placeholder="请输入内容"
liuxin committed
296
                        ></c-input>
297 298 299 300 301 302 303 304
                        <template slot="footer">
              <c-button :disabled="model.brdgrp.blk.disdocflg !='X'" size="small" type="primary" icon="el-icon-search"
                @click="showGridPromptDialog('brtp.disdoc.buttxmsel', null, null,{TXT: 'brdgrp.blk.disdoc'}, {TXT: false},'doxpDialog')"
>
                ...
              </c-button>
            </template>
                        </c-fullbox>
liuxin committed
305 306 307 308
                    </el-form-item>
                </c-col>

                <c-col :span="24">
309
                    <el-form-item label="" >
liuxin committed
310
                        <c-col :span="12">
311
                            <c-checkbox :disabled="model.brdgrp.blk.disdocflg =='X'" v-model="model.advrefflg"
312
                               @change="advrefflgChange" >发送拒绝通知MT734</c-checkbox
liuxin committed
313
                            >
liuxin committed
314 315
                        </c-col>
                        <c-col :span="12">
316
                            <c-checkbox :disabled="model.advrefflg !='X'" v-model="model.refdocflg"
317
                                >索回单据金额</c-checkbox
liuxin committed
318
                            >
liuxin committed
319 320 321
                        </c-col>
                    </el-form-item>
                </c-col>
liuxin committed
322

liuxin committed
323
                <c-col :span="24">
324
                    <el-form-item label="" >
liuxin committed
325 326
                        <c-col :span="12">
                            <c-checkbox v-model="model.brdgrp.rec.advdocflg"
327
                                @change="advdocflgChange">退回单据</c-checkbox
liuxin committed
328
                            >
liuxin committed
329 330 331
                        </c-col>
                        <c-col :span="12">
                            <c-checkbox v-model="model.advdisflg"
332
                                >收到不符点通知MT750</c-checkbox
liuxin committed
333
                            >
liuxin committed
334 335 336
                        </c-col>
                    </el-form-item>
                </c-col>
liuxin committed
337

liuxin committed
338 339 340
                <c-col :span="24">
                    <el-form-item label="">
                        <c-col :span="12">
341
                            <c-checkbox v-model="model.mtabut.clsflg"
342
                                >关闭合同</c-checkbox
liuxin committed
343 344 345 346
                            >
                        </c-col>
                    </el-form-item>
                </c-col>
347

liuxin committed
348 349 350
                <c-col :span="24">
                    <el-form-item label="">
                        <c-col :span="12">
351
                            <c-checkbox :disabled="model.advrefflg !='X'" v-model="model.brdgrp.blk.disdocflg"
352
                                >单据处理修改</c-checkbox
353 354 355 356
                            >
                        </c-col>
                        <c-col :span="12">
                            <c-checkbox v-model="model.rejpenins"
357
                                >拒绝等待指示</c-checkbox
liuxin committed
358 359 360 361
                            >
                        </c-col>
                    </el-form-item>
                </c-col>
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378

                <c-col :span="24">
                    <el-form-item v-if="model.brdgrp.rec.advdocflg=='X'" label="退单方式" prop="rejtype">
                        <c-select
                        v-model="model.rejtype"
                            style="width: 100%"
                            >
                        <el-option
                      v-for="item in codes.rejtype"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                     >
                    </el-option>
                    </c-select>
                    </el-form-item>
                </c-col>               
liuxin committed
379 380 381
            </c-col>
        </c-col>

liuxin committed
382 383

    </div>
liuxin committed
384 385
</template>
<script>
liuxin committed
386
import Api from "~/service/Api";
liuxin committed
387
import commonProcess from "~/mixin/commonProcess";
liuxin committed
388 389 390 391 392
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdcr/Event";
import CurAmt from "~/views/Public/CurAmt";
import LitTemp from "~/views/Public/LitTemp";
import Ptap1 from "~/views/Public/Ptap1";
huangxin committed
393
import Utils from "~/utils";
liuxin committed
394 395

export default {
liuxin committed
396 397
    inject: ["root"],
    props: ["model", "codes"],
liuxin committed
398
    mixins: [commonProcess],
liuxin committed
399 400 401 402
    components: {
        "c-curAmt": CurAmt,
        "c-litTemp": LitTemp,
        "c-ptap1": Ptap1,
liuxin committed
403
    },
huangxin committed
404
    
liuxin committed
405
    data() {
liuxin committed
406
        return {
liuxin committed
407
            flag: true,
huangxin committed
408
            flag1:true,
liuxin committed
409
        };
liuxin committed
410
    },
huangxin committed
411 412 413 414 415 416 417 418 419 420
    watch:{
        "model.brdgrp.prb.pts.extkey":{
            immediate:true,
        handler(val ,oldVal){
            if(this.model.brdgrp.prb.pts.extkey!=''){
                this.flag1=true;
            }
        }
        },
      },
421 422 423 424 425 426 427 428 429
    computed: {
    advrefflg: {
      get() {
        return this.model.advrefflg === "X";
      },
      set(val) {
        this.model.advrefflg = val ? "X" : "";
      },
    },
huangxin committed
430 431 432 433 434 435 436 437
    advdocflg: {
      get() {
        return this.model.brdgrp.rec.advdocflg === "X";
      },
      set(val) {
        this.model.brdgrp.rec.advdocflg = val ? "X" : "";
      },
    },
438 439 440 441 442 443 444 445
    advdisflg: {
      get() {
        return this.model.advdisflg === "X";
      },
      set(val) {
        this.model.advdisflg = val ? "X" : "";
      },
    },
huangxin committed
446 447 448 449 450 451 452 453 454 455 456 457 458
    },
    methods: { ...Event, 
    async advrefflgChange() {
    let rtnmsg = await this.executeRule("brdgrp.blk.disdoc")
    if (rtnmsg.respCode == SUCCESS) {
    Utils.copyValueFromVO(this.model, rtnmsg.data);
    }
    },
    async advdocflgChange() {
    let rtnmsg = await this.executeRule("brdgrp.blk.disdoc")
    if (rtnmsg.respCode == SUCCESS) {
    Utils.copyValueFromVO(this.model, rtnmsg.data);
    }
459
    },
liuxin committed
460
    created: function () {},
huangxin committed
461
    },
liuxin committed
462
};
liuxin committed
463 464 465
</script>
<style>
</style>