index.vue 18.1 KB
Newer Older
liuyunfeng committed
1
<template>
傅凯 committed
2
  <c-page title="复核夹查询">
傅凯 committed
3
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="mini">
liuyunfeng committed
4 5 6 7

        <el-col :span="12">
        <el-form-item label="经办">
            <el-input  v-model="model.trncorco.iniusr" maxlength="8"  placeholder=""></el-input>
fukai committed
8
        </el-form-item>
liuyunfeng committed
9 10 11
       </el-col>             

        <el-col :span="12">
fukai committed
12
        <el-form-item label="业务编号">
liuyunfeng committed
13
            <el-input  v-model="model.trncorco.ownref" maxlength="16"  placeholder=""></el-input>
fukai committed
14
        </el-form-item>
liuyunfeng committed
15 16 17 18 19
       </el-col>             

        <el-col :span="12">
        <el-form-item label="交易码">
            <el-input  v-model="model.atp.cod" maxlength="6"></el-input>
fukai committed
20
        </el-form-item>
liuyunfeng committed
21
       </el-col>             
fukai committed
22 23
 
	
liuyunfeng committed
24
        <el-col :span="12">
fukai committed
25
        <el-form-item label="交易名">
liuyunfeng committed
26
            <el-input  v-model="model.atptxt" maxlength="37"></el-input>
fukai committed
27
        </el-form-item>
liuyunfeng committed
28
       </el-col>             
fukai committed
29 30
 
	
liuyunfeng committed
31
        <el-col :span="6">
fukai committed
32
        <el-form-item label="查询区间">
liuyunfeng committed
33
            <el-date-picker type="date"  v-model="model.trncorco.inidatfro" style="width:100%"></el-date-picker>
fukai committed
34
        </el-form-item>
liuyunfeng committed
35
       </el-col>
fukai committed
36
	
liuyunfeng committed
37 38 39
        <el-col :span="6">
        <el-form-item label="至">
            <el-date-picker type="date"  v-model="model.trncorco.inidattil" style="width:100%"></el-date-picker>
fukai committed
40
        </el-form-item>
liuyunfeng committed
41
       </el-col>
fukai committed
42
 
liuyunfeng committed
43
        <el-col :span="12">
fukai committed
44
        <el-form-item label="复核状态">
liuyunfeng committed
45
            <el-select v-model="model.trncorco.relflg" style="width:100%">
fukai committed
46 47 48 49 50 51 52 53
                <el-option
                  v-for="item in codes.relflg"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
              </el-select>
        </el-form-item>
liuyunfeng committed
54 55
       </el-col>

傅凯 committed
56 57
        <el-col :span="24" style="text-align:right;">
            <el-button size="small" type="primary" icon="el-icon-search" @click="onSearow">
liuyunfeng committed
58 59 60 61 62
                查询
            </el-button>
        </el-col>
        
        <el-col :span="24">
傅凯 committed
63 64 65 66
            <el-pagination
                 layout="prev, pager, next"
                 :total="pager.recpan_trnlst.total">
              </el-pagination>
fukai committed
67 68
            <el-table
                :data="model.recpan.trnlst"
傅凯 committed
69
                style="width: 100%;"
傅凯 committed
70
                max-height="400"
傅凯 committed
71
                size="mini"
fukai committed
72 73 74 75 76 77 78
                >
                <el-table-column
                  prop="ininam"
                  label="交易名称"
                  sortable
                  width="100">
                </el-table-column>
傅凯 committed
79
                <!-- <el-table-column
liuyunfeng committed
80 81 82 83
                  prop="inr"
                  label="索引"
                  v-if="show"
                  sortable
傅凯 committed
84 85
                  width="100"> 
                </el-table-column>-->
fukai committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
                <el-table-column
                  prop="ownref"
                  label="业务编号"
                  sortable
                  width="100">
                </el-table-column>
                <el-table-column
                  prop="iniusr"
                  label="经办柜员"
                  sortable
                  width="100">
                </el-table-column>
                <el-table-column
                  prop="reloricur"
                  label="币种"
                  sortable
                  width="100">
                </el-table-column>
                <el-table-column
                  prop="reloriamt"
                  label="金额"
                  sortable
                  width="100">
                </el-table-column>
                <el-table-column
                  prop="inidattim"
                  label="创建时间"
                  sortable
                  width="100">
傅凯 committed
115
                  <template slot-scope="scope">
傅凯 committed
116
                      {{dateFormat(scope.row.inidattim,'yyyy-MM-dd hh:mm:ss' )}}
傅凯 committed
117
                  </template>
fukai committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
                </el-table-column>
                <el-table-column
                  prop="relreq"
                  label="授权类型"
                  sortable
                  width="100">
                </el-table-column>
                <el-table-column
                  prop="relres"
                  label="授权进度"
                  sortable
                  width="100">
                </el-table-column>
                <el-table-column
                  prop="relflg"
                  label="状态"
                  sortable
                  width="100">
                  <template slot-scope="scope">
liuyunfeng committed
137
                    <span>{{ findCodeLabel(codes.oratyp,scope.row.relflg) }}</span>
fukai committed
138 139
                  </template>
                </el-table-column>
liuyunfeng committed
140 141 142 143 144 145 146
                <el-table-column label="操作" width="180">
                    <template slot-scope="scope">
                        <!-- <el-button size="small" type="primary"
                                @click="handleDelete(scope.$index, scope.row)">明细</el-button> -->
                        <router-link :to="{path: 'trndtl',query:{'inr':scope.row.inr}}">明细</router-link>
                        
                    </template>
fukai committed
147 148
                </el-table-column>
              </el-table>
liuyunfeng committed
149 150 151
       </el-col>

    </el-form>
傅凯 committed
152
  </c-page>
liuyunfeng committed
153 154 155 156
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
liuyunfeng committed
157
import Utils from "~/utils"
liuyunfeng committed
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

export default {
    data(){
        return {
                  codes:{
                        dsp:CodeTable.dsp,
                        busflg:CodeTable.busflg,
                        actiontype:CodeTable.actiontype,
                        cur:CodeTable.cur,
                        ptytyp:CodeTable.ptytyp,
                        staflg:CodeTable.staflg,
                        paytyp:CodeTable.paytyp,
                        payattr:CodeTable.payattr,
                        balancemode:CodeTable.balancemode,
                        bopcustype:CodeTable.bopcustype,
                        payeeattr:CodeTable.payeeattr,
                        boppaytype:CodeTable.boppaytype,
                        debcdtflg:CodeTable.debcdtflg,
                        acttyp:CodeTable.acttyp,
                        payflg:CodeTable.payflg,
                        sptsta:CodeTable.sptsta,
                        buscod:CodeTable.buscod,
                        datsrc:CodeTable.datsrc,
                        sndselflg:CodeTable.sndselflg,
                        flg:CodeTable.flg,
                        sta:CodeTable.sta,
                        relflg:CodeTable.relflg,
                        payacttyp:CodeTable.payacttyp,
                        curtxt:CodeTable.curtxt,
                        dbfmethod:CodeTable.dbfmethod,
                        bustyp:CodeTable.bustyp,
                        todo:CodeTable.todo,
                        swftyp:CodeTable.swftyp,
                        payeraccttype:CodeTable.payeraccttype,
                        oratyp:CodeTable.oratyp,
                        chato:CodeTable.chato,
                        opertype:CodeTable.opertype,
                        bopyesno:CodeTable.bopyesno,
                        custyp:CodeTable.custyp,
                        selten:CodeTable.selten,
                        dsp2:CodeTable.dsp2,
                        liqtyp:CodeTable.liqtyp,
                   },
fukai committed
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
                  model:{
						trncorco:{
							inidatfro:"",			//  查询区间		.trncorco.inidatfro
							inidattil:"",			//  Date of entry of Transaction until		.trncorco.inidattil
							ownref:"",			//  业务编号		.trncorco.ownref
							relflg:"",			//  复核状态		.trncorco.relflg
							iniusr:"",			//  Userid entering the Transaction		.trncorco.iniusr
						},
						atp:{
							cod:"",			//  Transaction  ID		.atp.cod
						},
						atptxt:"",			//  交易名		.atptxt
						recpan:{
							trnlst:[],			//  		.recpan.trnlst
							cretrs:{
								usr:"",			//  提交柜员		.recpan.cretrs.usr
								dattim:"",			//  提交时间		.recpan.cretrs.dattim
							},
							smhlst:[],			//  		.recpan.smhlst
							trslst:[],			//  		.recpan.trslst
							wfelst:[],			//  		.recpan.wfelst
							docinf:"",			//  报文信息		.recpan.docinf
						},
						trn:{
							ownref:"",			//  业务参考号		.trn.ownref
							inr:"",			//  索引		.trn.inr
							objnam:"",			//  交易描述		.trn.objnam
							reloricur:"",			//  业务币种金额		.trn.reloricur
							reloriamt:"",			//  换算金额		.trn.reloriamt
							relflg:"",			//  交易状态		.trn.relflg
							usr:"",			//  经办柜员		.trn.usr
							usg:"",			//  用户组		.trn.usg
							cortrninr:"",			//  前手流水号		.trn.cortrninr
							exedat:"",			//  执行日期		.trn.exedat
							inftxt:"",			//  意见		.trn.inftxt
							inifrm:"",			//  交易编码		.trn.inifrm
						},
liuyunfeng committed
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
				},
                  pager:{
                       "recpan_trnlst":{total:0,curIdx:0},
                       "recpan_smhlst":{total:0,curIdx:0},
                       "recpan_trslst":{total:0,curIdx:0},
                       "recpan_wfelst":{total:0,curIdx:0},
                    },
                  rules:{
                       "trncorco.iniusr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trncorco.ownref":[{type: "string", required: false, len: 16, message: "输入不合法"}],
                       "atp.cod":[{type: "string", required: false, len: 6, message: "输入不合法"}],
                       "atptxt":[{type: "string", required: false, len: 37, message: "输入不合法"}],
                       "trncorco.inidatfro":[{type: "date", required: false, message: "输入正确的日期"}],
                       "trncorco.inidattil":[{type: "date", required: false, message: "输入正确的日期"}],
                       "trn.ownref":[{type: "string", required: false, len: 16, message: "输入不合法"}],
                       "trn.inr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.objnam":[{type: "string", required: false, len: 40, message: "输入不合法"}],
                       "trn.inifrm":[{type: "string", required: false, len: 6, message: "输入不合法"}],
                       "trn.reloriamt":[{type: "number", required: false, message: "输入不合法"}],
                       "trn.usr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.usg":[{type: "string", required: false, len: 6, message: "输入不合法"}],
                       "trn.cortrninr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.exedat":[{type: "date", required: false, message: "输入正确的日期"}],
                       "recpan.cretrs.usr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "recpan.cretrs.dattim":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.inftxt":[{type: "string", required: true, len: 65, message: "输入超长"}],
                       "recpan.docinf":[{type: "string", required: true, len: 200, message: "输入超长"}],
                    }
        }
    },
    methods:{
            onSearow(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
liuyunfeng committed
273
                    let rtnmsg = await Api.post("trnrel/searow",{data:Utils.flatObject(this.model)})
liuyunfeng committed
274 275 276 277 278 279 280 281 282
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑
                        this.model.recpan.trnlst=rtnmsg.data.recpan_trnlst
                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
傅凯 committed
283
                    //this.$notify.info('提交成功!');
liuyunfeng committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
                })
            },
            onDsp(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/dsp",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑
                                              
                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRelrow(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/relrow",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onReprow(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/reprow",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onExi(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/exi",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanDet(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_det",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanButshw(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_butshw",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanInc(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_inc",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanIncall(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_incall",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanButord(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_butord",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanButspt(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_butspt",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
    },
傅凯 committed
447
    mounted:async function(){
liuyunfeng committed
448
        console.log("进入trnrel交易");
liuyunfeng committed
449
        // this.onSearow()
liuyunfeng committed
450 451 452 453 454 455
    }
}
</script>
<style>

</style>