Ovwp.vue 15.7 KB
Newer Older
wuziqiang committed
1
<template>
liuxin committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    <div class="eibs-tab">
        <!-- ====================左边======================= -->
        <c-col :span="11">
            <c-col :span="24">
                <c-col :span="20">
                    <el-form-item label="信用证号码" prop="dedgrp.rec.ownref" style="width: 100%">
                        <c-input v-model="model.dedgrp.rec.ownref" maxlength="16" placeholder="请输入Reference"
                            style="width: 95%" disabled></c-input>
                    </el-form-item>
                </c-col>
                <!-- <c-col :span="1" style="text-align: right"> -->
                <c-col :span="1">
                    <!-- <el-form-item label="" label-width="5px"> -->
                    <c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary" @click="onSeainf">
                        <span style="
                                font-size: 15px;
                                font-family: '宋体';
                                font-weight: bold;
                            ">i</span>
                    </c-button>
                    <!-- </el-form-item> -->
                </c-col>
                <c-col :span="2" :offset="1" style="text-align: right">
                    <!-- <el-form-item label="" label-width="5px"> -->
                    <c-button style="margin: 0 0" size="small" type="primary" :disabled="this.flag"
                        @click="onDetpButgetref">
                        获取
                    </c-button>
                    <!-- </el-form-item> -->
                </c-col>
                <!-- </c-col> -->
            </c-col>
34

liuxin committed
35 36
            <c-col :span="24">
                <el-form-item label="是否可以转让" prop="dedgrp.rec.lcrtyp">
liuxin committed
37
                    <c-select v-model="model.dedgrp.rec.lcrtyp" style="width: 100%" placeholder="请选择" disabled>
liuxin committed
38 39 40 41 42 43
                        <el-option v-for="item in codes.lcrtyp" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
44

liuxin committed
45 46 47 48 49 50 51 52 53 54 55 56
            <c-col :span="24">
                <el-form-item label="所属客户经理" prop="detp.usr.extkey" style="width: 100%">
                    <c-fullbox>
                        <c-input v-model="model.detp.usr.extkey" maxlength="8" placeholder="请输入所属客户经理" disabled>
                        </c-input>
                        <template slot="footer">
                            <c-button style="margin-left: 10px; padding: 0 10px" size="small" icon="el-icon-search"
                                type="primary" @click="onExtkey"></c-button>
                        </template>
                    </c-fullbox>
                </el-form-item>
            </c-col>
57

liuxin committed
58 59
            <c-col :span="13">
                <el-form-item label="信用证金额" prop="dedgrp.cbs.nom1.cur">
wangna committed
60
                    <c-select disabled v-model="model.dedgrp.cbs.nom1.cur" style="width: 100%" placeholder="请选择币种"
liuxin committed
61 62 63 64 65 66
                        @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>
67

liuxin committed
68 69
            <c-col :span="11">
                <el-form-item style="text-align: left" label-width="5px" prop="dedgrp.cbs.nom1.amt">
liuxin committed
70
                    <c-input-currency v-model="model.dedgrp.cbs.nom1.amt" style="text-align: left; width: 100%" disabled
liuxin committed
71 72 73 74 75 76 77 78
                        placeholder="请输入信用证金额" @keyup.enter.native="
                            defaultFunction(
                                'dedgrp.cbs.nom1.amt',
                                model.dedgrp.cbs.nom1.amt
                            )
                        "></c-input-currency>
                </el-form-item>
            </c-col>
79

liuxin committed
80 81 82 83 84
            <c-col :span="24">
                <el-form-item label="大写金额" prop="detp.upamt">
                    <c-input v-model="model.detp.upamt" maxlength="76" placeholder="请输入大写金额" disabled></c-input>
                </el-form-item>
            </c-col>
85

liuxin committed
86 87 88
            <c-col :span="24">
                <c-col :span="13">
                    <c-form-item label="上下浮动限额" prop="dedgrp.rec.nomtop">
liuxin committed
89
                        <c-input v-model="model.dedgrp.rec.nomtop" maxlength="10" style="width: 100%" disabled
liuxin committed
90 91 92 93 94 95 96 97 98 99 100 101
                            placeholder="请输入Amount Tolerance - Positive"></c-input>
                    </c-form-item>
                </c-col>
                <c-col :span="1" style="text-align: center">
                    <label style="
                            display: inline-block;
                            width: calc(3% - 4px);
                            text-align: center;
                        ">-</label>
                </c-col>
                <c-col :span="10">
                <c-form-item label="" prop="dedgrp.rec.nomton" label-width="0">
liuxin committed
102
                    <c-input v-model="model.dedgrp.rec.nomton" prop="dedgrp.rec.nomton" maxlength="10" style="width: 100%" disabled
liuxin committed
103 104
                        placeholder="请输入Amount Tolerance - Negative"></c-input></c-form-item>
                </c-col>
105 106
            </c-col>

liuxin committed
107 108
            <c-col :span="13">
                <el-form-item label="信用证最大金额" prop="dedgrp.cbs.max.cur">
wangna committed
109
                    <c-select v-model="model.dedgrp.cbs.max.cur" placeholder="请选择币种" disabled>
liuxin committed
110 111 112 113 114
                        <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>
115

liuxin committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
            <c-col :span="11">
                <el-form-item label="" label-width="5px" prop="dedgrp.cbs.max.amt">
                    <c-input v-model="model.dedgrp.cbs.max.amt" placeholder="请输入信用证最大金额" disabled></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="贸易类型" prop="dedgrp.rec.mytype">
                    <c-select v-model="model.dedgrp.rec.mytype" style="width: 100%" placeholder="请选择贸易类型"
                        @change="mytypeChange">
                        <el-option v-for="item in codes.mytype" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
132

liuxin committed
133 134 135
            <c-col :span="24">
                <c-form-item label="开证日期" prop="dedgrp.rec.opndat">
                    <c-date-picker type="date" v-model="model.dedgrp.rec.opndat" value-format="yyyy-MM-dd"
wangna committed
136
                        placeholder="请选择开证日期" style="width: 100%"></c-date-picker>
liuxin committed
137 138 139 140 141
                </c-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item v-if="model.dedgrp.rec.mytype == 'H'" label="最迟货物装运日" prop="dedgrp.rec.shpdat">
                    <c-date-picker type="date" v-model="model.dedgrp.rec.shpdat" value-format="yyyy-MM-dd"
wangna committed
142
                        style="width: 100%" placeholder="请选择最迟货物装运日"></c-date-picker>
liuxin committed
143 144 145
                </el-form-item>
                <el-form-item v-if="model.dedgrp.rec.mytype == 'F'" label="最迟服务提供日" prop="dedgrp.rec.shpdat">
                    <c-date-picker type="date" v-model="model.dedgrp.rec.shpdat" value-format="yyyy-MM-dd"
wangna committed
146
                        style="width: 100%" placeholder="请选择最迟服务提供日"></c-date-picker>
liuxin committed
147 148 149 150 151 152
                </el-form-item>
                <el-form-item label="最迟货物装运日/服务提供日" v-if="model.dedgrp.rec.mytype == '3'" prop="dedgrp.rec.shpdat">
                    <c-date-picker type="date" v-model="model.dedgrp.rec.shpdat" value-format="yyyy-MM-dd"
                        style="width: 100%" placeholder="请选择"></c-date-picker>
                </el-form-item>
            </c-col>
153

liuxin committed
154 155
            <c-col :span="24">
                <c-form-item label="有效日期" prop="dedgrp.rec.expdat">
liuxin committed
156
                    <c-date-picker type="date" v-model="model.dedgrp.rec.expdat" value-format="yyyy-MM-dd" disabled
wangna committed
157
                        placeholder="请选择有效日期" style="width: 100%"></c-date-picker>
liuxin committed
158 159
                </c-form-item>
            </c-col>
160

liuxin committed
161 162 163 164 165 166
            <c-col :span="24">
                <c-form-item label="开证行开证类型" prop="dedgrp.rec.dkflg">
                    <c-select v-model="model.dedgrp.rec.dkflg" style="width: 100%" placeholder="请选择" :code="codes.dkflg"
                        disabled></c-select>
                </c-form-item>
            </c-col>
167

liuxin committed
168 169
            <c-col :span="24">
                <el-form-item label="有效地点" prop="dedgrp.rec.expplc">
wangna committed
170
                    <c-input v-model="model.dedgrp.rec.expplc" maxlength="35" placeholder="请输入有效地点">
liuxin committed
171 172 173
                    </c-input>
                </el-form-item>
            </c-col>
174

liuxin committed
175 176 177 178 179 180 181 182 183 184

            <c-col :span="24">
                <el-form-item label="转运" prop="dedgrp.rec.shptrs">
                    <c-select v-model="model.dedgrp.rec.shptrs" style="width: 100%" placeholder="请选择"
                        :disabled="model.dedgrp.rec.mytype == 'F'">
                        <el-option label="不允许" value="禁止"></el-option>
                        <el-option label="允许" value="允许"></el-option>
                    </c-select>
                </el-form-item>
            </c-col>
185

liuxin committed
186 187
            <c-col :span="24">
                <el-form-item label="是否通过电证系统" prop="dedgrp.rec.elcflg">
liuxin committed
188
                    <c-select v-model="model.dedgrp.rec.elcflg" style="width: 100%" placeholder="请选择是否通过电证系统" disabled>
liuxin committed
189 190 191 192 193 194
                        <el-option v-for="item in codes.elcflg" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
195

liuxin committed
196 197 198 199 200 201 202 203 204 205
            <c-col :span="24">
                <el-form-item label="信用证兑付方式" prop="dedgrp.rec.avbby">
                    <c-select v-model="model.dedgrp.rec.avbby" style="width: 100%" @change="avbbykeyEvent"
                        placeholder="请选择">
                        <el-option v-for="item in codes.avbbyDetopn" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
206

liuxin committed
207 208 209 210 211 212
            <c-col :span="24">
                <el-form-item label="天数" prop="dedgrp.rec.tenmaxday">
                    <c-input v-model.number="model.dedgrp.rec.tenmaxday" placeholder="请输入天数"
                        :disabled="model.dedgrp.rec.avbby == 'P'"></c-input>
                </el-form-item>
            </c-col>
liuxin committed
213

liuxin committed
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
            <div v-if="model.dedgrp.rec.avbby != 'D'">
                <c-col :span="24">
                    <el-form-item label="远期付款指示" prop="dedgrp.blk.dftat">
                        <c-input type="textarea" v-model="model.dedgrp.blk.dftat" maxlength="35" show-word-limit
                            placeholder="请输入远期付款指示" :disabled="!model.dedgrp.rec.avbby"></c-input>
                    </el-form-item>
                </c-col>
            </div>
            <div v-else>
                <c-col :span="24">
                    <el-form-item label="远期付款指示" prop="dedgrp.blk.defdet">
                        <c-input type="textarea" v-model="model.dedgrp.blk.defdet" maxlength="35" show-word-limit
                            placeholder="请输入远期付款指示"></c-input>
                    </el-form-item>
                </c-col>
            </div>
        </c-col>
231

liuxin committed
232 233 234 235 236 237 238 239
        <!-- ========================右边======================= -->
        <c-col :span="11" :offset="1">
            <c-col :span="24">
                <el-form-item label="摘要" prop="dedgrp.rec.nam">
                    <c-input text-align="middle" v-model="model.dedgrp.rec.nam" maxlength="40" disabled
                        placeholder="请输入Externally Displayed Name to Identify the Contract"></c-input>
                </el-form-item>
            </c-col>
240

liuxin committed
241 242 243 244 245
            <c-col :span="24">
                <c-ptap :model="model" :argadr="{
                    title: '受益人',
                    grp: 'dedgrp',
                    rol: 'ben',
liuxin committed
246
                }" :isAdrblk="false" @onSeainf="onSeainf" @onAplpDet="onBenpDet" :disabledRef="true">
liuxin committed
247 248
                </c-ptap>
            </c-col>
249

liuxin committed
250 251 252 253 254 255 256
            <c-col :span="24">
                <c-col :span="24">
                    <el-form-item label="受益人账号" prop="dedgrp.ben.pts.extact">
                        <c-input v-model="model.dedgrp.ben.pts.extact" maxlength="16" placeholder="请输入受益人账号"></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
257

liuxin committed
258 259
            <c-col :span="24">
                <el-form-item label="受益人开户行联行行号" prop="dedgrp.beb.pts.bankno">
wangna committed
260
                    <c-input v-model="model.dedgrp.beb.pts.bankno" maxlength="20" placeholder="请输入受益人开户行联行行号">
liuxin committed
261 262 263
                    </c-input>
                </el-form-item>
            </c-col>
264

liuxin committed
265 266 267 268 269 270
            <c-col :span="24">
                <el-form-item label="受益人开户行联行名称 电证用" prop="dedgrp.beb.pts.jigomc">
                    <c-input type="textarea" v-model="model.dedgrp.beb.pts.jigomc" maxlength="35" show-word-limit
                        placeholder="请输入联行名称  电证用"></c-input>
                </el-form-item>
            </c-col>
271

liuxin committed
272 273 274 275 276 277 278 279
            <c-col :span="24">
                <c-ptap :model="model" :argadr="{
                    title: '申请人',
                    grp: 'dedgrp',
                    rol: 'apl',
                }" :isAdrblk="false" @onSeainf="onSeainf" @onAplpDet="onBenpDet">
                </c-ptap>
            </c-col>
280

liuxin committed
281 282 283 284 285 286
            <c-col :span="24">
                <el-form-item label="是否通知客户" prop="dedgrp.rec.rejflg">
                    <c-select v-model="model.dedgrp.rec.rejflg" style="width: 100%" placeholder="请选择是否通知客户">
                    </c-select>
                </el-form-item>
            </c-col>
liuxin committed
287

liuxin committed
288 289 290 291 292 293
            <c-col :span="24">
                <el-form-item label="拒绝通知理由" prop="dedgrp.blk.rejadvrsn">
                    <c-input type="textarea" v-model="model.dedgrp.blk.rejadvrsn" maxlength="35" show-word-limit
                        placeholder="请输入拒绝通知理由"></c-input>
                </el-form-item>
            </c-col>
liuxin committed
294

liuxin committed
295 296 297 298 299 300 301 302
            <c-col :span="24">
                <el-form-item label="交单期限" prop="dedgrp.blk.preper">
                    <c-input type="textarea" v-model="model.dedgrp.blk.preper" maxlength="35" show-word-limit
                        placeholder="请输入交单期限"></c-input>
                </el-form-item>
            </c-col>
        </c-col>
    </div>
wuziqiang committed
303 304
</template>
<script>
305
import Api from "~/service/Api";
wangren committed
306
import commonProcess from "~/mixin/commonProcess";
307 308 309
import Event from "~/model/Detopn/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";
wuziqiang committed
310 311

export default {
liuxin committed
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
    components: { "c-ptap": Ptap },
    inject: ["root"],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
            jigomcFlag: false,
            trade: "",
        };
    },
    methods: { ...Event },
    created: function () { },
    computed: {
        flag() {
            return this.model.dedgrp.ben.pts.extkey == "";
        },
328 329
    },
};
wuziqiang committed
330 331 332
</script>
<style>
</style>