Commit 1facd21c by liushikai
parents 0e1680bb b14ab33e
......@@ -110,5 +110,22 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset() {
},
async handleSearch() {
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
......@@ -108,13 +108,11 @@ export default {
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
debugger;
let initRtnmsg = await this.init();
if(initRtnmsg.respCode == SUCCESS){
let rtnmsg = await this.executeRule("relrow", params)
if (rtnmsg.respCode == SUCCESS) {
debugger;
let errorMsg = "";
let fieldErrorsFlag = (JSON.stringify(rtnmsg.fieldErrors) == "{}");
if(!fieldErrorsFlag){
......@@ -158,7 +156,7 @@ export default {
this.$notify.error({title: '错误',message: '复核失败!错误信息['+errorMsg+']'});
}
}
})
......
......@@ -112,8 +112,8 @@ export default {
that.init(that.model).then((res) => {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data);
this.$refs.selp.selpHandleSearch();
this.$refs.errp.errpHandleSearch();
//this.$refs.selp.selpHandleSearch();
//this.$refs.errp.errpHandleSearch();
});
},
};
......
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button v-for="(item,index) in codeList" v-bind:key="index" @click.native="onNarBtnClick(item.code,index)" :title="item.title" :disabled="item.isDis==='N'">{{item.label}}</c-button>
</div>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Litsel from "~/model/Ditsel"
import CommonProcess from "~/mixin/CommonProcess"
export default {
props:["ownref"],
components:{
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
trnName:'ditsel',
model:new Litsel().data,
navcode:[
{code:"",label:"",isDis:"",title:""},
],
}
},
methods:{
//各入口按钮请求
async onNarBtnClick(code,i){
this.model.cfgfil.subtrn1= code
let rtnmsg = await this.executeRule("cfgfil.hotsub3")
console.log("cfgfil.code:" + this.model.cfgfil.subtrn1);
if(rtnmsg.respCode = SUCCESS){
this.$emit("onChoose",code.toLowerCase());
}else{
}
},
},
computed:{
codeList(){
//将model中的数据映射成数组
return this.navcode.map(item=>{
let entireItem = {...item}
//TODO 根据数据判断当前的code,是否可以继续
// entireItem.enable = item.isDis
return entireItem
})
}
},
watch:{
"ownref":async function(n, o){
if(!this.ownref){
console.log("11111")
// onTigger()
return;
}
}
},
mounted(){
this.$nextTick(function(){
this.$on('childmethods',async function(){
//请求按钮数据
//this.model.didgrp.rec.ownref = 'KZ3500210540AA'
this.model.bddgrp.rec.ownref = this.ownref
console.log("ownref:" + this.ownref );
// let rtnmsg = await this.executeRule("didgrp.rec.ownref");//didgrp_rec_ownref
let rtnmsg0 = await this.executeRule("bddgrp.rec.ownref");//cfgfil.hotreg3
if(rtnmsg0.respCode = SUCCESS){
this.updateModel(rtnmsg0.data)
let rtnmsg = await this.executeRule("cfgfil.hotreg3");//cfgfil.hotreg3
if(rtnmsg.respCode = SUCCESS){
//重置数组
this.navcode = []
this.updateModel(rtnmsg.data)
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length
let btnStr = this.model.cfgfil.btnstm.rows
for(let i=0; i < length; i++){
//获取数组中每行的数据
let arr = btnStr[i].split("\t");
let newList = {
code:arr[0],
label:arr[1],
//isDis:arr[2],
isDis:'Y',
title:arr[3]
}
//添加到navcode数组中
this.navcode.splice(i,0,newList)
}
}
}
})
})
}
}
</script>
<style>
.busnavbar-items{
/*TODO完善按钮间隔等样式 */
}
</style>
......@@ -222,23 +222,56 @@
</c-col>
</c-row> -->
<c-row style="padding: 0 10px 0 10px">
<el-row>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" prop="op" label="OP" width="120px">
<el-table-column
fixed="right"
prop="op"
label="操作"
width="150px"
>
<template slot="header">
<c-col :span="11" style="text-align: left"><span>操作</span></c-col>
<c-col :span="12" style="text-align: right"
><c-button icon="el-icon-s-tools"></c-button
></c-col>
<c-col :span="11" style="text-align:left"><span>操作</span></c-col>
<c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col>
</template>
<template slot-scope="scope">
<a href="javascript:void(0)" @click="continueEdit(scope.row)"
>操作</a
<c-button
style="margin-left: 0"
size="small"
>
详情
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>
处理
</c-button>
<!--
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getDitSelInfo(scope.row['Reference'])"
>
info
</c-button>
-->
</template>
</el-table-column>
</c-istream-table>
</c-row>
</c-col>
</el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose" >11</m-busbtn>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -246,29 +279,33 @@ import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbdd/Event";
import BusNavbar from "~/views/Business/Infbdd/BusNavbar"
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
components:{'m-busbtn':BusNavbar},
data() {
return {
ownref:"",
initdialog:false,
stmData: {
columns: [
'1 1 "Reference" 100 ',
'2 2 "Resp. User" 100 ',
'1 3 "Party Number" 120',
'2 4 "Applicant" 100',
'1 5 "Party Number" 120',
'2 6 "Beneficiary" 120',
'1 7 "Party Number" 120',
'2 8 "Presenting Bank" 150',
'1 9 "Opened" 80',
'2 10 "Closed" 80',
'1 11 "Cur" 70',
'2 12 "Cur" 70',
'1 13 "Doc.Amount" 100',
'2 14 "Open.Amount" 120',
'2 2 "Resp User" 100 ',
'5 3 "Applicant Party Number" 120',
'6 4 "Applicant" 100',
'7 5 "Beneficiary Party Number" 120',
'8 6 "Beneficiary" 120',
'9 7 "Party Number" 120',
'10 8 "Presenting Bank" 150',
'3 9 "Opened" 80',
'4 10 "Closed" 80',
'11 11 "Doc Amount Cur" 70',
'12 12 "Doc Amount" 70',
'13 13 "Open Amount Cur" 100',
'14 14 "Open Amount" 120',
],
data: [],
},
......@@ -276,17 +313,24 @@ export default {
},
methods: {
...Event,
handleSearch(callback) {
setTimeout(() => {
this.$notify.info({
title: "提示",
message: "模拟post请求控制按钮状态",
});
// 执行子组件回调函数控制按钮状态
callback();
}, 1000);
async getButtons(ownref){
this.initdialog = true
this.ownref = ownref
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
handleReset() {},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
}
},
created: function () {},
};
......
......@@ -5,9 +5,9 @@
<!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick" class="infbddTab"> -->
<!-- <el-tab-pane label="查询信息" name="infsea"> -->
<!-- <c-content> -->
<c-content>
<m-infsea :model="model" :codes="codes" />
<!-- </c-content> -->
</c-content>
<!-- </el-tab-pane> -->
<!-- <el-tab-pane label="内容" name="ovwp">
......@@ -65,7 +65,7 @@
<el-tab-pane label="Order" name="ordpan">
<m-ordpan :model="model" :codes="codes" />
</el-tab-pane> -->
<!-- </c-tabs> -->
</el-form>
</div>
</template>
......@@ -140,6 +140,7 @@
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
}
else {
......
......@@ -36,7 +36,9 @@
<t-sptbrk />
</el-tab-pane>
<el-tab-pane label="到期提示" name="diasel">
<c-content>
<t-diasel/>
</c-content>
</el-tab-pane>
</c-tabs>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment