Utlp.vue 16.8 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="Import L/C Ref" 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="Bill Set Reference" 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 85 86 87 88 89 90
                            ></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">
                    <el-form-item label="Expiry" prop="lidgrp.rec.expdat">
                        <c-date-picker
                            type="date"
                            v-model="model.lidgrp.rec.expdat"
                            style="width: 100%"
                            placeholder="请选择Date of Expiry"
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
            <c-col :span="12">
            <el-form-item label="Open Amt.L/C" prop="lidgrp.cbs.opn1.cur">
                <c-select
                    disabled
                    v-model="model.lidgrp.cbs.opn1.cur"
                    style="width: 100%"
                    placeholder="请选择Currency"
                    >
                    <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%"
                    placeholder="Document Amount"
                ></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 169
                        title: 'Applicant',
                        trans: 'apl',
liuxin committed
170 171
                    },
                    {
172
                        title: 'Beneficiary',
liuxin committed
173 174 175
                        trans: 'ben',
                    },
                    {
176 177
                        title: 'Presenting Bank',
                        trans: 'prb',
liuxin committed
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
                    },
                ]"
                :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
                        label="Presented by"
                        prop="brdgrp.rec.docprbrol"
                    >
                        <c-select
195
                            disabled
liuxin committed
196 197 198 199
                            v-model="model.brdgrp.rec.docprbrol"
                            style="width: 100%"
                            placeholder="请选择Presented by"
                        >
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 224 225
                    >
                    </c-ptap1>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="Payer" prop="brdgrp.rec.payrol">
                        <c-select
226
                            disabled
liuxin committed
227 228 229 230
                            v-model="model.brdgrp.rec.payrol"
                            style="width: 100%"
                            placeholder="请选择Payer"
                        >
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 259 260 261 262 263 264 265 266 267 268 269
            <c-col :span="24">
                    <el-form-item label="Order Date" prop="brdgrp.rec.orddat" >
                        <c-date-picker
                        :disabled="model.advrefflg !='X'"
                            type="date"
                            v-model="model.brdgrp.rec.orddat"
                            style="width: 100%"
                            placeholder="请选择Order Date"
                        ></c-date-picker>
                    </el-form-item>
                </c-col>

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

                <c-col :span="24">
                    <el-form-item
                        label="Disposal of Documents"
                        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 295 296
                            show-word-limit
                            placeholder="请输入Disposal of Documents"
                        ></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"
huangxin committed
312
                               @change="advrefflgChange" >Send Advice of Refusal MT734</c-checkbox
liuxin committed
313
                            >
liuxin committed
314 315
                        </c-col>
                        <c-col :span="12">
316 317
                            <c-checkbox :disabled="model.advrefflg !='X'" v-model="model.refdocflg"
                                >Claim back Document Amount</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"
huangxin committed
327
                                @change="advdocflgChange">Return of Documents</c-checkbox
liuxin committed
328
                            >
liuxin committed
329 330 331
                        </c-col>
                        <c-col :span="12">
                            <c-checkbox v-model="model.advdisflg"
332
                                >Received Advice of Discrepancy 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 342
                            <c-checkbox v-model="model.mtabut.clsflg"
                                >Close Contract</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 352 353 354 355 356 357
                            <c-checkbox :disabled="model.advrefflg !='X'" v-model="model.brdgrp.blk.disdocflg"
                                >Disposal of Documents modified</c-checkbox
                            >
                        </c-col>
                        <c-col :span="12">
                            <c-checkbox v-model="model.rejpenins"
                                >Rejection pending instructions</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>