Commit 69d7813f by WF1020

统一授信和报文/面涵修改

parent 45cbb57c
...@@ -104,8 +104,33 @@ export default { ...@@ -104,8 +104,33 @@ export default {
console.log('close'); console.log('close');
}, },
// 处理 // 处理
handler() { async handler(row) {
this.initdialog = true; this.initdialog = true;
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
};
const res = await Api.post('/service/infgid/dealWithByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data) {
this.handlerDataList = []
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
}
}
},
handleClick (btn) {
if (btn.value === 'N') {
return
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push(filterRoute[0].route);
}, },
// 关闭处理弹框 // 关闭处理弹框
closeHandlerDialog() { closeHandlerDialog() {
......
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
style="margin-left: 5px" style="margin-left: 5px"
size="small" size="small"
type="primary" type="primary"
@click="handler(scope.row['保函编号'], scope.row['保函效期'])" @click="handler(scope.row)"
>处理 >处理
</c-button> </c-button>
</template> </template>
...@@ -553,12 +553,15 @@ ...@@ -553,12 +553,15 @@
width="60%" width="60%"
> >
<div class="dialog-wrap"> <div class="dialog-wrap">
<div class="btn-group-wrap">
<div class="btn-item" v-for="(item, index) in handlerDataList" :key="index">
<el-button <el-button
v-for="(item, index) in handlerDataList"
:key="index"
type="primary" type="primary"
:disabled="item.disabled" :disabled="item.value === 'N'"
>{{ item.name }}</el-button> @click="handleClick(item)"
>{{ item.label }}</el-button>
</div>
</div>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -650,7 +653,13 @@ export default { ...@@ -650,7 +653,13 @@ export default {
}, },
// 处理 // 处理
initdialog: false, initdialog: false,
handlerDataList: [] handlerDataList: [],
btnRouteMap: [
{
label: '注销',
route: '/business/gitcan'
}
]
}; };
}, },
methods: { methods: {
...@@ -677,4 +686,17 @@ export default { ...@@ -677,4 +686,17 @@ export default {
background: #fff; background: #fff;
margin-top: 5px; margin-top: 5px;
} }
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</style> </style>
...@@ -6,7 +6,10 @@ export default { ...@@ -6,7 +6,10 @@ export default {
let objtyp = doctreRequest.rec.objtyp; let objtyp = doctreRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${objtyp.toLowerCase()}/doctre/assertDoctre`, doctreRequest); let rtnmsg = await Api.post(`/service/${objtyp.toLowerCase()}/doctre/assertDoctre`, doctreRequest);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.model.trnmod = rtnmsg.data; this.$set(this.model, 'doctre', {
tableData1: rtnmsg.data || [],
tableData2: []
})
} }
loading.close(); loading.close();
}, },
......
...@@ -11,26 +11,12 @@ ...@@ -11,26 +11,12 @@
<el-divider></el-divider> <el-divider></el-divider>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-istream-table-docpan :border="true" :list="data1"> <el-table :border="true" :data="model.doctre.tableData1">
<el-table-column label="类型" width="auto"> <el-table-column label="类型" width="auto" prop="rol"></el-table-column>
<template slot-scope="scope"> <el-table-column label="名称" width="auto" prop="pandsc"></el-table-column>
<span>{{ getType(scope.row.index) }}</span> <el-table-column label="创建交易" width="auto" prop="inifrm"></el-table-column>
</template> <el-table-column label="创建日期" width="auto" prop="credat"></el-table-column>
</el-table-column> </el-table>
<el-table-column label="名称" width="auto">
<template slot-scope="scope">
<span>{{
model.trnmod.trndoc.doceot[scope.row.index].pandsc
}}</span>
</template>
</el-table-column>
<el-table-column label="创建交易" width="auto"></el-table-column>
<el-table-column label="创建日期" width="auto">
<template>
<span>{{ getNow() }}</span>
</template>
</el-table-column>
</c-istream-table-docpan>
</c-col> </c-col>
<c-col <c-col
...@@ -47,12 +33,12 @@ ...@@ -47,12 +33,12 @@
<el-divider></el-divider> <el-divider></el-divider>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-istream-table-docpan :border="true" :list="data2"> <el-table :border="true" :data="model.doctre.tableData2">
<el-table-column label="类型" width="auto"></el-table-column> <el-table-column label="类型" width="auto" prop="rol"></el-table-column>
<el-table-column label="名称" width="auto"></el-table-column> <el-table-column label="名称" width="auto" prop="pandsc"></el-table-column>
<el-table-column label="创建日期" width="auto"></el-table-column> <el-table-column label="创建交易" width="auto" prop="inifrm"></el-table-column>
<el-table-column label="创建日期" width="auto"></el-table-column> <el-table-column label="创建日期" width="auto" prop="credat"></el-table-column>
</c-istream-table-docpan> </el-table>
</c-col> </c-col>
</div> </div>
</template> </template>
...@@ -65,8 +51,6 @@ export default { ...@@ -65,8 +51,6 @@ export default {
props: ['model', 'codes'], props: ['model', 'codes'],
data() { data() {
return { return {
data1: [],
data2: [],
isShow1: false, isShow1: false,
isShow2: false, isShow2: false,
aDisabled: true, aDisabled: true,
......
...@@ -6,7 +6,10 @@ export default { ...@@ -6,7 +6,10 @@ export default {
let objtyp = limitbodyRequest.rec.objtyp; let objtyp = limitbodyRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${objtyp.toLowerCase()}/limit/assertLimit`, limitbodyRequest); let rtnmsg = await Api.post(`/service/${objtyp.toLowerCase()}/limit/assertLimit`, limitbodyRequest);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
if (rtnmsg.data) {
this.copyValueFromVoData(this.model.liaall.limmod, rtnmsg.data) this.copyValueFromVoData(this.model.liaall.limmod, rtnmsg.data)
this.copyValueFromVoData(this.model.liaall.limmod.limpts, rtnmsg.data)
}
} }
loading.close(); loading.close();
}, },
......
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