Brtdckp.vue 19.7 KB
Newer Older
1 2 3
<template>
    <c-content>
        <c-row>
wangyanjiao committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
            <!-- ====================左边======================= -->
            <c-col :span="11">
                <c-col :span="23">
                    <el-form-item label="信用证参考号" prop="didgrp.rec.ownref" style="width: 100%">
                        <c-input v-model="model.didgrp.rec.ownref" maxlength="16" placeholder="请输入信用证参考号"
                            style="width: 95%" disabled></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="1">
                    <c-button style="margin:0 10px 0 0;padding: 0 10px;" size="small" type="primary"
                        icon="el-icon-search" @click="onSeainf"></c-button>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="有效日期" prop="didgrp.rec.expdat">
                        <c-date-picker type="date" v-model="model.didgrp.rec.expdat" style="width: 100%"
wangna committed
21
                            placeholder="请选择有效日期" disabled></c-date-picker>
wangyanjiao committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
                    </el-form-item>
                </c-col>

                <c-col :span="23">
                    <el-form-item label="单据参考号" prop="bddgrp.rec.ownref" style="width: 100%">
                        <c-input v-model="model.bddgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号"
                            style="width: 95%" disabled></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="1">
                    <c-button style="margin:0 10px 0 0;padding: 0 10px;" size="small" type="primary"
                        icon="el-icon-search" @click="onSeainf"></c-button>
                </c-col>

                <c-col :span="11">
                    <el-form-item label="单据金额" prop="bddgrp.cbs.max.cur">
                        <c-select v-model="model.bddgrp.cbs.max.cur" placeholder="币种" style="width: 95%" disabled>
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="13">
                    <el-form-item label-width="0" prop="bddgrp.cbs.max.amt">
44
                        <c-input disabled v-model="model.bddgrp.cbs.max.amt"
wangyanjiao committed
45 46 47 48 49 50 51 52 53 54 55 56
                            placeholder="请输入单据金额"></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="11">
                    <el-form-item label="单据余额" prop="bddgrp.cbs.opn1.cur">
                        <c-select v-model="model.bddgrp.cbs.opn1.cur" placeholder="币种" style="width: 95%" disabled>
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="13">
                    <el-form-item label-width="0" prop="bddgrp.cbs.opn1.amt">
57
                        <c-input v-model="model.bddgrp.cbs.opn1.amt" placeholder="请输入单据余额" disabled>
wangyanjiao committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="到单日期" prop="bddgrp.rec.rcvdat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.rcvdat" style="width: 100%"
                            placeholder="请选择到单日期" disabled></c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="远期起算日" prop="bddgrp.rec.stadat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.stadat" style="width: 100%"
wangna committed
72
                            placeholder="请选择远期起算日" disabled></c-date-picker>
wangyanjiao committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <span v-text="model.bdtp.matp.mattxtlab" data-path=".bdtp.matp.mattxtlab">
                    </span>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="单据到期日" prop="bddgrp.rec.matdat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.matdat" style="width: 100%"
                            placeholder="单据到期日" disabled></c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="远期期限" prop="bddgrp.rec.tenmaxday">
90 91
                        <c-input  v-model="model.bddgrp.rec.tenmaxday" style="width: 100%"
                            placeholder="远期期限" disabled></c-input>
wangyanjiao committed
92 93 94 95 96 97 98 99 100 101 102 103 104 105
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="单据类型" prop="bddgrp.rec.docflg">
                        <c-select v-model="model.bddgrp.rec.docflg" style="width:100%" placeholder="请选择单据类型"
                            :code="codes.brdtyp" disabled>
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="单据状态" prop="bddgrp.rec.docsta">
                        <c-select v-model="model.bddgrp.rec.docsta" style="width:100%" placeholder="请选择单据状态"
lianyang committed
106
                            :code="codes.docsta1" disabled>
wangyanjiao committed
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129

                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="单据类型" prop="bddgrp.rec.docflg">
                        <c-select v-model="model.bddgrp.rec.docflg" style="width:100%" placeholder="请选择单据类型"
                            :code="codes.brdtyp" disabled>

                        </c-select>
                    </el-form-item>
                </c-col>


                <c-col :span="11">
                    <el-form-item label="单据金额" prop="bddgrp.cbs.max.cur">
                        <c-select v-model="model.bddgrp.cbs.max.cur" placeholder="币种" style="width: 95%" disabled>
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="13">
                    <el-form-item label-width="0" prop="bddgrp.cbs.max.amt">
130
                        <c-input v-model="model.bddgrp.cbs.max.amt" placeholder="请输入单据金额"
wangyanjiao committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 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 205 206 207 208
                            :disabled="model.mhtyp == 'R'"></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="原报文标识号" prop="trnmod.swiadd.orimsgid">
                        <c-input v-model="model.trnmod.swiadd.orimsgid" maxlength="35" placeholder="请输入原报文标识号" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="原发起直接参与机构" prop="trnmod.swiadd.oriinstgagt">
                        <c-input v-model="model.trnmod.swiadd.oriinstgagt" maxlength="20" placeholder="请输入原发起直接参与机构"
                            disabled></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="原报文类型" prop="trnmod.swiadd.orimsgtyp">
                        <c-select v-model="model.trnmod.swiadd.orimsgtyp" style="width:100%" placeholder="请选择原报文类型"
                            disabled>
                        </c-select>
                    </el-form-item>
                </c-col>



                <c-col :span="12">
                    <el-form-item label="交单日期" prop="bddgrp.rec.predat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.predat" style="width: 100%"
                            placeholder="请选择交单日期"></c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="到单日期" prop="bddgrp.rec.rcvdat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.rcvdat" style="width:100%"
                            placeholder="请选择到单日期">
                        </c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="单据到期日" prop="bddgrp.rec.matdat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.matdat" style="width:100%"
                            placeholder="请选择单据到期日" disabled></c-date-picker>
                    </el-form-item>
                </c-col>



                <c-col :span="12">
                    <el-form-item label="最迟货物装运日" prop="bddgrp.rec.shpdat">
                        <c-date-picker type="date" v-model="model.bddgrp.rec.shpdat" style="width:100%"
                            placeholder="请选择最迟货物装运日"></c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="交易类别" prop="mhtyp">
                        <c-select v-model="model.mhtyp" style="width:100%" placeholder="请选择交易类别" :code="codes.mhtyp">
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="通知日期" prop="tzdat">
                        <c-date-picker type="date" v-model="model.tzdat" style="width:100%" placeholder="请选择通知日期">
                        </c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="收款行行号" prop="bddgrp.skh.pts.bankno">
                        <c-input v-model="model.bddgrp.skh.pts.bankno" maxlength="20" placeholder="请输入收款行行号"></c-input>
                    </el-form-item>
                </c-col>
wangna committed
209
               
wangyanjiao committed
210 211 212 213 214 215 216 217 218
                <c-col :span="24">
                    <el-form-item label="联行名称  电证用" prop="bddgrp.skh.pts.jigomc">
                        <c-input type="textarea" v-model="model.bddgrp.skh.pts.jigomc" maxlength="35" show-word-limit
                            placeholder="请输入收款行名称"></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="申请人编号" prop="didgrp.rec.aplref">
wangna committed
219
                        <c-input v-model="model.didgrp.rec.aplref" maxlength="16" placeholder="请输入申请人编号">
wangyanjiao committed
220 221 222 223 224
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
225 226
                    <el-form-item label="此信用证下的到单次数" prop="didgrp.rec.utlnbr">
                        <c-input v-model="model.didgrp.rec.utlnbr" placeholder="请输入此信用证下的到单次数" disabled></c-input>
wangyanjiao committed
227 228 229 230
                    </el-form-item>
                </c-col>

                <c-col :span="12">
231
                    <el-form-item label="文档数" prop="days">
wangna committed
232
                        <c-input v-model="model.days" placeholder="请输入文档数"
233
                            ></c-input>
wangyanjiao committed
234 235 236
                    </el-form-item>
                </c-col>

237 238
            </c-col>

wangyanjiao committed
239 240 241 242 243 244 245 246 247 248
            <!-- ====================右边======================= -->
            <c-col :span="11" :offset="1">
                <c-col :span="11">
                    <el-form-item label="信用证余额" prop="didgrp.cbs.opn1.cur">
                        <c-select v-model="model.didgrp.cbs.opn1.cur" placeholder="币种" style="width: 95%" disabled>
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="13">
                    <el-form-item label-width="0" prop="didgrp.cbs.opn1.amt">
249
                        <c-input v-model="model.didgrp.cbs.opn1.amt" placeholder="请输入信用证余额" disabled>
wangyanjiao committed
250 251 252 253 254 255 256
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="摘要" prop="bddgrp.rec.nam">
                        <c-input align="middle" v-model="model.bddgrp.rec.nam" maxlength="40" disabled
wangna committed
257 258 259
                            placeholder="请输入摘要"></c-input>
                    </el-form-item>
                </c-col>
260

wangyanjiao committed
261
                <!-- 申请人编号及名称,绑定model.bddgrp.apl.pts.ref&model.bddgrp.apl.pts.nam-->
262

wangyanjiao committed
263 264 265 266 267 268
                <c-col :span="24">
                    <el-form-item label="申请人编号" prop="bddgrp.apl.pts.ref">
                        <c-input v-model="model.bddgrp.apl.pts.ref" maxlength="16" disabled placeholder="请输入申请人编号">
                        </c-input>
                    </el-form-item>
                </c-col>
269

wangyanjiao committed
270 271 272 273 274 275
                <c-col :span="24">
                    <el-form-item label="申请人名称" prop="bddgrp.apl.pts.nam">
                        <c-input v-model="model.bddgrp.apl.pts.nam" maxlength="40" disabled placeholder="申请人名称">
                        </c-input>
                    </el-form-item>
                </c-col>
276

wangyanjiao committed
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
                <!-- 受益人编号及名称,绑定model.bddgrp.ben.pts.nam&model.bddgrp.prb.pts.ref -->

                <c-col :span="24">
                    <el-form-item label="受益人编号" prop="bddgrp.ben.pts.ref">
                        <c-input v-model="model.bddgrp.ben.pts.ref" maxlength="16" disabled placeholder="请输入受益人编号">
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="受益人名称" prop="bddgrp.ben.pts.nam">
                        <c-input v-model="model.bddgrp.ben.pts.nam" maxlength="40" disabled placeholder="受益人名称">
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="交易行编号" prop="bddgrp.prb.pts.ref">
                        <c-input v-model="model.bddgrp.prb.pts.ref" maxlength="40" placeholder="请输入交易行编号"></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item label="交易行名称" prop="bddgrp.prb.pts.nam">
                        <c-input v-model="model.bddgrp.prb.pts.nam" maxlength="40" placeholder="请输入交易行名称" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="交单行" prop="bddgrp.rec.docprbrol" >
wangna committed
307
                        <c-select v-model="model.bddgrp.rec.docprbrol" placeholder="请输入交单行" style="width: 100%" @change="bocprbrol"
wangyanjiao committed
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
                            :code="docprbrol">
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col>
                    <el-form-item label="BIC" prop="bddgrp.prb.pts.extkey">
                        <c-input v-model="model.bddgrp.prb.pts.extkey" maxlength="40" placeholder="请输入BIC"></c-input>
                    </el-form-item>
                </c-col>

                <c-ptapdome :model="model" :disabledJigomc="true" :argadr="{
                    title: '交易行',
                    rol: 'prb',
                    grp: 'bddgrp'
323
                }">
wangyanjiao committed
324
                </c-ptapdome>
325

wangyanjiao committed
326 327
                <c-col :span="24">
                    <el-form-item label="付款人" prop="bddgrp.rec.payrol">
wangna committed
328
                        <c-select v-model="model.bddgrp.rec.payrol" style="width:100%" placeholder="请选择付款人" disabled
wangyanjiao committed
329 330 331 332 333 334 335
                            :code="codes.payrol">

                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="20">
wangna committed
336
                    <el-form-item label="" prop="bdtp.oth.pts.extkey">
wangyanjiao committed
337
                        <c-input v-model="model.bdtp.oth.pts.extkey" maxlength="16" style="width: 95%"
wangna committed
338
                            placeholder="请输入" disabled></c-input>
wangyanjiao committed
339 340
                    </el-form-item>
                </c-col>
341 342


wangyanjiao committed
343
                <!-- 按钮替代 
344 345 346 347 348 349 350 351 352 353 354
            <c-col :span="12">
                <el-form-item label="" prop="bdtp.othp.ptsget.sdamod.seainf">
                    <c-input  v-model="model.bdtp.othp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="6">
                <c-button size="small" type="primary"  @click="onOthpDet">
                    Details
                </c-button>
            </c-col> -->
wangyanjiao committed
355 356 357 358 359 360 361 362 363 364 365 366 367 368
                <c-col :span="1">
                    <!-- <el-form-item label="" label-width="5px"> -->
                    <c-button style="margin:0 10px 0 0;padding: 0 10px;" class="searchButton" size="small"
                        type="primary" icon="el-icon-search" @click="onSeainf(`bdtp.oth.pts.extkey`)"></c-button>
                </c-col>
                <c-col :span="3" style="text-align: right">
                    <c-button style="margin:0 0" class="detailsButton" size="small" type="primary">
                        详情
                    </c-button>
                    <!-- </el-form-item> -->
                </c-col>


                <!-- 输入框替代 
369 370 371 372 373 374 375 376 377 378 379 380
            <c-col :span="12">
                <el-form-item label="Address Block" prop="bdtp.oth.pts.adrblk">
                    <c-input type="textarea" v-model="model.bdtp.oth.pts.adrblk" maxlength="35" show-word-limit placeholder="请输入Address Block" ></c-input>
                </el-form-item>
            </c-col> 
            <c-col :span="12">
            <el-form-item label="名称" prop="bdtp.oth.namelc">
                <c-input type="textarea" v-model="model.bdtp.oth.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
            </el-form-item>
            </c-col>
            -->

wangyanjiao committed
381
                <c-col :span="24">
lianyang committed
382
                    <el-form-item prop="bdtp.oth.namelc" :label="`付款人名称`">
wangyanjiao committed
383 384 385 386
                        <c-input type="textarea" v-model="model.bdtp.oth.namelc" :placeholder="'请输入付款人名称'" :rows="2"
                            maxlength="35" show-word-limit disabled></c-input>
                    </el-form-item>
                </c-col>
387

wangyanjiao committed
388 389 390 391 392 393
                <c-col :span="24">
                    <el-form-item label="付款人地址" :prop="`bdtp.oth.pts.adrblk`">
                        <c-input type="textarea" :rows="4" v-model="model.bdtp.oth.pts.adrblk" maxlength="35"
                            show-word-limit placeholder="请输入付款人地址" disabled></c-input>
                    </el-form-item>
                </c-col>
wangna committed
394
          </c-col>
395 396 397 398 399
        </c-row>
    </c-content>
</template>
<script>
import Api from "~/service/Api"
wangren committed
400
import commonProcess from "~/mixin/commonProcess";
401 402 403
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bdtdck/Event"
import Ptap from "~/views/Public/Ptap";
404
import PtapDome from "~/views/Public/PtapDome";
405 406

export default {
wangyanjiao committed
407 408
    components: {
        "c-ptap": Ptap,
409
        "c-ptapdome": PtapDome,
410 411
    },
    inject: ['root'],
wangyanjiao committed
412
    props: ["model", "codes"],
wangren committed
413
    mixins: [commonProcess],
wangyanjiao committed
414
    data() {
415
        return {
wangyanjiao committed
416 417 418 419 420
            docprbrol: [
                { label: "Advising Bank", value: "ADV" },
                { label: "Beneficiary", value: "BEN" },
                { label: "Presenter(PRP)", value: "PRB" },
            ],
421 422 423

        }
    },
wangyanjiao committed
424 425
    methods: { ...Event },
    created: function () {
426 427 428 429 430 431

    }
}
</script>
<style>
</style>