Utlp.vue 20.4 KB
Newer Older
严一鸣 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<template>
  <div class="eibs-tab">
  <c-row>
    <c-col :span="24">                         
       <c-col :span="11">
        <el-form-item 
            label="信用证编号" 
            prop="lidgrp.rec.ownref"
            style="width = 100%">
            <c-fullbox>
              <c-input
                  v-model="model.lidgrp.rec.ownref"
                  maxlength="16"
                  placeholder="请输入信用证编号"
zhujiazhan committed
15
                  disabled
严一鸣 committed
16 17 18 19 20 21 22
              ></c-input>
              <template slot="footer">
                <c-button
                style="margin:0 0 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
                  @click="onSeainf"
23
                  icon="el-icon-info"
严一鸣 committed
24
                >
25
                <span style="font-family:'宋体';font-weight:bold"></span>
严一鸣 committed
26 27 28 29 30 31
                </c-button>
              </template>
           </c-fullbox>
        </el-form-item>
       </c-col>
       <c-col :span="11" :offset="1">
32
        <el-form-item label="有效期限" prop="lidgrp.rec.expdat">
严一鸣 committed
33 34 35 36
            <c-date-picker 
                type="date"  
                v-model="model.lidgrp.rec.expdat" 
                style="width:100%"  
37
                placeholder="请选择日期"
zhujiazhan committed
38 39
                disabled
                >
严一鸣 committed
40 41 42 43 44 45 46 47 48 49
            </c-date-picker>
        </el-form-item>
       </c-col>
    </c-col>    

    <!-- ====================左边======================= -->

    <c-col :span="11">  
        <c-col :span="24">
            <el-form-item
50
                label="单据编号"
严一鸣 committed
51 52 53 54 55 56 57
                prop="brdgrp.rec.ownref"
                style="width: 100%"
            >
            <c-fullbox>
                <c-input
                v-model="model.brdgrp.rec.ownref"
                maxlength="8"
58
                placeholder="请输入单据编号"
zhujiazhan committed
59
                disabled
严一鸣 committed
60 61 62 63 64 65
            ></c-input>
                <template slot="footer">
                <c-button
                style="margin:0 0 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
66 67 68 69 70
                  @click="onSeainf"
                  icon="el-icon-info"
                  >
                  
                <span style="font-family:'宋体';font-weight:bold"></span>
严一鸣 committed
71 72 73 74 75
                </c-button>
                </template>  
          </c-fullbox>
        </el-form-item>
        </c-col>
zhujiazhan committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89
         <c-col :span="24">
            <c-col :span="13">
                <el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
                    <c-select v-model="model.brdgrp.cbs.max.cur" style="width:100%" placeholder="请选择单据金额" :code="codes.cur" disabled>
                    </c-select>
                </el-form-item>
            </c-col>
            <c-col :span="11">
                <el-form-item label="" prop="brdgrp.cbs.max.amt" label-width="5px">
                    <c-input
                    v-model="model.brdgrp.cbs.max.amt"
                     placeholder="请选择单据金额"
                     disabled
                    ></c-input>
严一鸣 committed
90
            </el-form-item>
zhujiazhan committed
91
           </c-col>
严一鸣 committed
92
        </c-col>
zhujiazhan committed
93 94 95 96 97 98 99 100 101
        <c-col :span="24">
            <c-col :span="13">
                <el-form-item label="单据余额" prop="brdgrp.cbs.opn1.cur" >
                    <c-input  v-model="model.brdgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入单据余额" disabled></c-input>
                </el-form-item>
           </c-col>
           <c-col :span="11">
            <el-form-item label="" prop="brdgrp.cbs.opn1.amt" label-width="5px">
                <c-input  v-model="model.brdgrp.cbs.opn1.amt"  placeholder="请输入单据余额" disabled></c-input>
严一鸣 committed
102
            </el-form-item>
zhujiazhan committed
103
           </c-col>
严一鸣 committed
104 105 106
       </c-col>
       <c-col :span="12">
        <el-form-item label="到单日期" prop="brdgrp.rec.rcvdat">
zhujiazhan committed
107
            <c-date-picker type="date"  v-model="model.brdgrp.rec.rcvdat" style="width:100%"  placeholder="请选择到单日期" disabled></c-date-picker>
严一鸣 committed
108 109 110 111
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="付款通知日期" prop="brdgrp.rec.advdat" label-width="120px">
zhujiazhan committed
112
            <c-date-picker type="date"  v-model="model.brdgrp.rec.advdat" style="width:100%"  placeholder="请选择Date of Advice of Payment" disabled></c-date-picker>
严一鸣 committed
113 114 115
        </el-form-item>
       </c-col>
       <c-col :span="12">
116
        <el-form-item label="远期单据到期日" prop="brdgrp.rec.matdat">
zhujiazhan committed
117
            <c-date-picker type="date"  v-model="model.brdgrp.rec.matdat" style="width:100%"  placeholder="请选择到单日期" disabled></c-date-picker>
严一鸣 committed
118 119 120
        </el-form-item>
       </c-col>
       <c-col :span="12">
121
        <el-form-item label="开始日期" prop="brdgrp.rec.stadat" label-width="120px">
zhujiazhan committed
122
            <c-date-picker type="date"  v-model="model.brdgrp.rec.stadat" style="width:100%"  placeholder="请选择远期单据到期日" disabled></c-date-picker>
严一鸣 committed
123 124 125 126
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="单据类型" prop="brdgrp.rec.docflg">
zhujiazhan committed
127
            <c-select v-model="model.brdgrp.rec.docflg" style="width:100%" placeholder="请选择单据类型" :code="codes.docflg" disabled>
严一鸣 committed
128 129 130 131
              </c-select>
        </el-form-item>
       </c-col>
       <c-col :span="12">
132 133
        <el-form-item label="远期最大期限" prop="brdgrp.rec.tenmaxday" label-width="120px">
            <c-input  v-model="model.brdgrp.rec.tenmaxday"  placeholder="请输入天数" disabled></c-input>
严一鸣 committed
134 135 136 137
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="单据状态" prop="brdgrp.rec.docsta">
138
            <c-select v-model="model.brdgrp.rec.docsta" style="width:100%" placeholder="请选择单据状态" :code="codes.docsta1" disabled>
严一鸣 committed
139 140 141 142
              </c-select>
        </el-form-item>
       </c-col>
       <c-col :span="24">
143
        <el-form-item label="待付款单据" >
严一鸣 committed
144
            <c-istream-table
145 146
               ref="table"
              :list="model.liaall.tenstm.rows || []"
严一鸣 committed
147
              :columns="columns"
148
              :showSelection=true
zhujiazhan committed
149
              v-on:multipleSelect="multipleSelect"
150
              prop="liaall.tenstm"
严一鸣 committed
151 152
            >
            </c-istream-table>
严一鸣 committed
153 154 155
        </el-form-item>
       </c-col>

zhujiazhan committed
156 157
         <c-col :span="24">
           <c-col :span="13">
158 159
            <el-form-item label="应付金额" prop="setmod.doccur">
                <c-input  v-model="model.setmod.doccur" maxlength="3"  placeholder="请选择币种" disabled></c-input>
zhujiazhan committed
160 161 162 163
            </el-form-item>
           </c-col>
           <c-col :span="11">
                <el-form-item label="" label-width="5px" prop="setmod.docamt">
164
                    <c-input  v-model="model.setmod.docamt"  placeholder="请输入金额" @blur="onChangeDocamt"></c-input>
zhujiazhan committed
165 166 167 168 169
                </el-form-item>
           </c-col>
        </c-col>
        <c-col :span="24">
           <c-col :span="13">
170 171
            <el-form-item label="实付金额" prop="setmod.doccur">
                <c-input  v-model="model.setmod.doccur" maxlength="3"  placeholder="请选择币种" disabled></c-input>
zhujiazhan committed
172 173 174 175 176
            </el-form-item>
           </c-col>
           <c-col :span="11">
            <c-fullbox>
                <el-form-item label="" label-width="5px" prop="setmod.setamt">
177
                <c-input  v-model="model.setmod.setamt"  placeholder="请输入金额" :disabled=this.flag3></c-input>
zhujiazhan committed
178 179 180
                </el-form-item>
            </c-fullbox>
           </c-col>
严一鸣 committed
181 182 183 184
       </c-col>



zhujiazhan committed
185 186
        <c-col  :span="24">
           <c-col :span="13">
187 188
            <el-form-item label="单据金额部分" prop="brdgrp.cbs.opn2.cur">
                <c-select v-model="model.brdgrp.cbs.opn2.cur" style="width:100%" placeholder="请选择币种" :code="codes.cur" disabled>
zhujiazhan committed
189 190 191 192 193
                  </c-select>
            </el-form-item>
           </c-col>
           <c-col :span="11">
            <el-form-item label="" prop="aamset.utlamt" label-width="5px">
194
                <c-input  v-model="model.aamset.utlamt"  placeholder="请输入金额" :disabled=this.flag3></c-input>
zhujiazhan committed
195 196
            </el-form-item>
           </c-col>
严一鸣 committed
197 198
       </c-col>

zhujiazhan committed
199 200
       <c-col :span="24">
           <c-col :span="13">
201 202
            <el-form-item label="附加金额部分" prop="brdgrp.cbs.opn2.cur">
                <c-select v-model="model.brdgrp.cbs.opn2.cur" style="width:100%" placeholder="请选择币种" :code="codes.cur" disabled>
zhujiazhan committed
203 204 205 206 207
                  </c-select>
            </el-form-item>
           </c-col>
           <c-col :span="11">
            <el-form-item label="" prop="aamset.utlamt2" label-width="5px">
208
                <c-input  v-model="model.aamset.utlamt2"  placeholder="请输入金额" :disabled=this.flag3></c-input>
zhujiazhan committed
209 210
            </el-form-item>
           </c-col>
严一鸣 committed
211
       </c-col>
212
        <c-col :span="24" >
zhujiazhan committed
213
            <c-col :span="12">
214
                <el-form-item label="跨境人民币清算模式" prop="trnmod.cmtflg" v-show="model.setmod.doccur == 'CNY'">
215 216 217 218 219
                    <c-select
                    v-model="model.trnmod.cmtflg"
                    style="width:100%"
                    placeholder="请选择跨境人民币清算模式"
                    :code="this.cmtflg"
220
                    :disabled="model.brdgrp.rec.frepayflg == ''?false:true"
221

222
                    >
zhujiazhan committed
223 224 225 226
                      </c-select>
                </el-form-item>
            </c-col>
           <c-col :span="12">
227
                <el-form-item label="闭卷标识" label-width="80px" prop="setmod.docamt" style="margin-left:20px">
zhujiazhan committed
228
        	        <c-checkbox v-model="model.mtabut.clsflg" style="margin-left:20px" true-label="X"></c-checkbox>
zhujiazhan committed
229 230
                </el-form-item>
               </c-col>
严一鸣 committed
231
       </c-col>
zhujiazhan committed
232 233
       <c-col :span="24">
        <el-form-item label="报文类型" prop="trnmod.swftyp" v-show="model.trnmod.cmtflg=='P'?true:false">
234
            <c-select v-model="model.trnmod.swftyp" style="width:100%" placeholder="请选择报文类型" :code="codes.swftyp1" disabled>
严一鸣 committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
              </c-select>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="发票号" prop="brdgrp.rec.invref">
            <c-input  v-model="model.brdgrp.rec.invref" maxlength="35"  placeholder="请输入发票号"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="最迟送达日期" prop="zcsdrq">
            <c-date-picker type="date"  v-model="model.zcsdrq" style="width:100%"  placeholder="请选择最迟送达日期"></c-date-picker>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <div class="e-table-wrapper">
严一鸣 committed
251 252 253 254 255
            <c-table
                style="text-align: center"
                :list="table1"
                :paginationShow="false"
                :border="true"
严一鸣 committed
256
                >
严一鸣 committed
257

258 259 260 261 262
            <el-table-column label="编号" prop="ownref" width="auto"></el-table-column>
            <el-table-column label="币种" prop="opncur" width="auto"></el-table-column>
            <el-table-column label="余额" prop="opnamt" width="auto"></el-table-column>
            <el-table-column label="付款" prop="bckamt" width="auto"></el-table-column>
            <el-table-column label="计算" prop="butcal" width="auto"></el-table-column>
zhujiazhan committed
263

严一鸣 committed
264
              </c-table>
zhujiazhan committed
265

严一鸣 committed
266 267 268
       </div>
       </c-col>

zhujiazhan committed
269 270 271 272 273 274 275 276 277 278 279 280 281
         <c-col :span="12">
                <el-form-item label="是否需要检验" prop="brtp.ischktyp">
                    <c-select v-model="model.brtp.ischktyp" style="width:100%" placeholder="" :code="codes.ischktyp" >
                        <el-option
                            v-for="item in codes.ischktyp"
                            :key="item.label"
                            :label="item.label"
                            :value="item.label">
                        </el-option>
                      </c-select>
                 </el-form-item>
           </c-col>

严一鸣 committed
282
       <c-col :span="12">
严一鸣 committed
283
        <el-form-item label="预计核验日期" prop="brtp.prechkdat">
zhujiazhan committed
284
            <c-date-picker type="date"  v-model="model.brtp.prechkdat" style="width:100%"  placeholder="请选择预计核验日期" :disabled="model.brtp.ischktyp=='N'?true:false"></c-date-picker>
严一鸣 committed
285 286
        </el-form-item>
       </c-col>
严一鸣 committed
287

zhujiazhan committed
288

严一鸣 committed
289 290 291
    </c-col>
    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">
292 293
          <c-col :span="24">
             <c-col :span="13">
294 295
                    <el-form-item label="信用证余额" prop="lidgrp.cbs.opn1.cur">
                        <c-input  v-model="model.lidgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入币种" disabled></c-input>
296 297 298 299
                    </el-form-item>
              </c-col>
              <c-col :span="11">
                  <el-form-item label="" prop="lidgrp.cbs.opn1.amt"  label-width="5px">
300
                      <c-input  v-model="model.lidgrp.cbs.opn1.amt"  placeholder="请输入金额" disabled></c-input>
301 302 303 304 305
                  </el-form-item>
               </c-col>
          </c-col>


严一鸣 committed
306
        <c-col :span="24">
307 308
        <el-form-item label="单据简略信息" prop="brdgrp.rec.nam">
            <c-input  v-model="model.brdgrp.rec.nam" maxlength="40"  placeholder="请输入简略信息" disabled></c-input>
严一鸣 committed
309 310 311 312 313
        </el-form-item>
       </c-col>

        
       <c-col :span="24">
314 315
        <el-form-item label="申请人参考号" prop="brdgrp.apl.pts.ref">
            <c-input  v-model="model.brdgrp.apl.pts.ref" maxlength="16"  placeholder="请输入申请人参考号" disabled></c-input>
严一鸣 committed
316 317 318 319 320
        </el-form-item>
       </c-col>


        <c-col :span="24">
321 322
        <el-form-item label="申请人名称" prop="brdgrp.apl.pts.nam">
            <c-input  v-model="model.brdgrp.apl.pts.nam" maxlength="40"  placeholder="请输入名称" disabled></c-input>
严一鸣 committed
323 324 325 326 327
        </el-form-item>
       </c-col>


       <c-col :span="24">
328
        <el-form-item label="受益人参考号" prop="brdgrp.ben.pts.ref">
zhujiazhan committed
329
            <c-input  v-model="model.brdgrp.ben.pts.ref" maxlength="16"  placeholder="请输入受益人" disabled></c-input>
严一鸣 committed
330 331 332
        </el-form-item>
       </c-col>
       <c-col :span="24">
333 334
        <el-form-item label="受益人名称" prop="brdgrp.ben.pts.nam">
            <c-input  v-model="model.brdgrp.ben.pts.nam" maxlength="40"  placeholder="请输入名称" disabled></c-input>
严一鸣 committed
335 336 337 338
        </el-form-item>
       </c-col>

        <c-col :span="24">
339
        <el-form-item label="交单行参考号" prop="brdgrp.prb.pts.ref">
zhujiazhan committed
340
            <c-input  v-model="model.brdgrp.prb.pts.ref" maxlength="16"  placeholder="请输入交单行" disabled></c-input>
严一鸣 committed
341 342 343
        </el-form-item>
       </c-col>
       <c-col :span="24">
344 345
        <el-form-item label="交单行名称" prop="brdgrp.prb.pts.nam">
            <c-input  v-model="model.brdgrp.prb.pts.nam" maxlength="40"  placeholder="请输入名称" disabled></c-input>
严一鸣 committed
346 347 348 349
        </el-form-item>
       </c-col>
       
       <c-col :span="12">
350
        <el-form-item label="创建融资" prop="trtcre.crefinflg">
351
	    <c-checkbox v-model="model.trtcre.crefinflg" :disabled="model.paypsb != '' || model.brdgrp.rec.frepayflg !=''?true:false"></c-checkbox>
严一鸣 committed
352 353 354 355 356 357 358 359 360
        </el-form-item>
       </c-col>       
       <c-col :span="12">
        <el-form-item label="同业代付" prop="dftcre.dfflag">
	    <c-checkbox v-model="model.dftcre.dfflag"></c-checkbox>
        </el-form-item>
       </c-col>

         <c-col :span="12">
361
            <el-form-item label="垫款" prop="paypsb">
362 363 364
	                <c-checkbox v-model="model.paypsb"
                        :disabled="model.brdgrp.rec.frepayflg == ''?false:true"
	                ></c-checkbox>
严一鸣 committed
365 366 367 368
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
369
        <el-form-item label="自由付款标志" prop="brdgrp.rec.frepayflg">
严一鸣 committed
370 371 372 373
	    <c-checkbox v-model="model.brdgrp.rec.frepayflg"></c-checkbox>
        </el-form-item>
       </c-col>

zhujiazhan committed
374 375
        <c-col :span="24">
        <c-col :span="13">
376 377
        <el-form-item label="减少付汇金额" prop="setmod.doccur">
            <c-input  v-model="model.setmod.doccur" maxlength="3"  placeholder="请输入币种" disabled></c-input>
严一鸣 committed
378 379
        </el-form-item>
       </c-col>
zhujiazhan committed
380 381
       <c-col :span="11">
        <el-form-item label="" prop="setmod.redamt" label-width="5px">
382
            <c-input  v-model="model.setmod.redamt"  placeholder="请输入金额" :disabled="model.brdgrp.rec.frepayflg !=''?true:false"></c-input>
严一鸣 committed
383 384
        </el-form-item>
       </c-col>
zhujiazhan committed
385
       </c-col>
严一鸣 committed
386 387 388 389 390 391 392 393

       <c-col :span="24">
        <el-form-item label="合同号" prop="brdgrp.rec.rptref">
            <c-input  v-model="model.brdgrp.rec.rptref" maxlength="25"  placeholder="请输入合同号"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
394 395
        <el-form-item label=":77A:内容" prop="nar754">
            <c-input type="textarea" v-model="model.nar754" maxlength="35" show-word-limit placeholder="请输入:77A:内容" ></c-input>
严一鸣 committed
396 397 398 399
        </el-form-item>
        </c-col>

        <c-col :span="24">
400 401
        <el-form-item label="交单人" prop="brdgrp.rec.docprbrol">
            <c-select v-model="model.brdgrp.rec.docprbrol" style="width:100%" placeholder="请选择交单人" :code="codes.docprbrol">
严一鸣 committed
402 403 404 405 406
              </c-select>
        </el-form-item>
       </c-col>

        <c-col :span="24">
407
        <el-form-item label="交单人地址编码" prop="brdgrp.prb.pts.extkey">
严一鸣 committed
408
            <c-fullbox>
409 410 411
                <c-input
                    v-model="model.brdgrp.prb.pts.extkey"
                    maxlength="16"
412
                    placeholder="请输入地址编码"
413 414
                    @keyup.enter.native="showGridPromptDialog('brdgrp.prb.pts.extkey')"
                    ></c-input>
严一鸣 committed
415 416 417 418 419
                <template slot="footer">
                <c-button
                style="margin:0 10px 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
420 421 422
                  @click="onSeainf"
                  icon="el-icon-info">
                <span style="font-family:'宋体';font-weight:bold"></span>
严一鸣 committed
423 424 425 426 427
                </c-button>
                <c-button
                style="margin:0 0 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
428 429 430 431
                  @click="onSeainf"
                  icon="el-icon-info"
                  >
                <span style="font-family:'宋体';font-weight:bold"></span>
严一鸣 committed
432 433 434
                </c-button>
                </template>  
          </c-fullbox>
zhujiazhan committed
435 436


严一鸣 committed
437 438 439
        </el-form-item>
       </c-col>

zhujiazhan committed
440 441 442



严一鸣 committed
443 444

        <c-col :span="24">
445 446
        <el-form-item label="名称地址" prop="brdgrp.prb.pts.adrblk">
            <c-input type="textarea" v-model="model.brdgrp.prb.pts.adrblk"  row="4" maxlength="35" show-word-limit placeholder="请输入名称地址" disabled></c-input>
严一鸣 committed
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
        </el-form-item>
        </c-col>

    </c-col>    
    </c-row>           
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Brtset/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {
zhujiazhan committed
466
            flag3:true,
467 468
            cmtflg:[
              { label: "代理行模式", value: "C" },
469
              { label: "其他", value: "O" },
470 471
              { label: "CIPS系统", value: "P" },
            ],
zhujiazhan committed
472
             table1:[],
严一鸣 committed
473
            columns:[
474 475 476 477 478 479
                "1 1 \"类型\" 80",
                "2 2 \"债务方\" 80",
                "3 3 \"债券方\" 80",
                "4 4 \"币种\" 80",
                "5 5 \"金额\" 85 2 8 1 4",
                "6 6 \"到期日\" 105 4 7 1"
zhujiazhan committed
480
            ]
严一鸣 committed
481 482
        }
    },
483 484
    methods:{...Event,

zhujiazhan committed
485 486 487
         commonExecuteRule(ruleName) {
              this.executeRule(ruleName).then((res) => {
                if ((res.respCode == SUCCESS)) {
488

zhujiazhan committed
489 490 491 492 493 494 495 496 497 498 499 500 501 502
                }
              });
            },
          async multipleSelect(selection) {
                if(selection.length>0){
                  console.log(selection);
                  let line = this.model.liaall.tenstm.rows[selection];
                  let lines = line.split('\t');
                  this.model.setmod.docamt = lines[5];
                }else{
                  this.model.setmod.docamt = 0.000;
                }
                 this.onChangeDocamt();
            },
503
    },
严一鸣 committed
504 505 506 507
    created:function(){

    },
    watch: {
508 509
        declareParams() {},
         "model.trnmod.cmtflg":{
510 511 512 513 514 515 516 517 518
            immediate:true,
            handler(val ,oldVal){
                if(this.model.trnmod.cmtflg=='P'){
                    this.model.trnmod.swftyp='CIV';
                }else{
                    this.model.trnmod.swftyp='';
                }
            }
          },
严一鸣 committed
519 520 521 522 523 524
    },
}
</script>
<style>

</style>