Commit 0d95610e by 杜大兵

infled查询

parent 56cecbdb
......@@ -2,18 +2,26 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
// 顶部查询按钮
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
// let rtnmsg = await this.executeRule("infbut.searow")
const that = this.root;
let rtnmsg = await that.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows
this.$message({
type: 'success',
message: '查询成功!'
});
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
// Display按钮
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
......@@ -26,6 +34,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
......@@ -38,6 +47,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
// Clear按钮
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
......@@ -50,6 +60,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
// 导Excel按钮
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
......@@ -62,6 +73,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
// Exit按钮
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
......
......@@ -42,7 +42,7 @@
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="12" >
<el-form-item label="业务主题" prop="infcon.searef">
<el-form-item label="Party Reference" prop="infcon.searef">
<c-input
v-model="model.infcon.searef"
maxlength="16"
......@@ -110,7 +110,7 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name" prop="infcon.nam">
<el-form-item label="业务主题" prop="infcon.nam">
<c-input
v-model="model.infcon.nam"
style="width:100%"
......@@ -130,7 +130,7 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Status" prop="infcon.seasta">
<el-form-item label="业务状态" prop="infcon.seasta">
<c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择Status">
<el-option
v-for="item in codes.seasta"
......@@ -150,6 +150,7 @@
:key="item.value"
:label="item.label"
:value="item.value"
:code="codes.cur"
>
</el-option>
</c-select>
......@@ -185,7 +186,7 @@
</c-col>
<c-col :span="12">
<el-form-item label="Form of L/C" prop="sealcrtyp">
<el-form-item label="信用证类型" prop="sealcrtyp">
<c-select
v-model="model.sealcrtyp"
style="width:100%"
......@@ -205,6 +206,9 @@
<c-button size="small" type="primary" @click="onInfbutDsp">
Display
</c-button>
<!-- <c-button size="small" type="primary" @click="onInfbutUserow">
Use
</c-button>-->
<c-button size="small" type="primary" @click="onInfbutClr">
Clear
</c-button>
......@@ -259,21 +263,22 @@ export default {
data(){
return {
// curinr:"",
curownref:"",
initdialog:false,
columns:[
// 第一个数字表示代表是返回来数据的第几列,第二数字代表前端显示的列顺序
"1 1 \"业务编号\" 130 200",
"2 2 \"经办柜员\" 90 80",
"5 5 \"开立日期\" 120 250",
"6 6 \"到期日\" 300 250",
"8 7 \"分行名称\" 200 300",
"9 8 \"申请人编号\" 150 200",
"11 9 \"申请人名称\" 150 300",
"15 10 \"受益人名称\" 60 300",
"16 3 \"开立币种\" 90 80",
"4 5 \"开立日期\" 150 250",
"5 6 \"到期日\" 150 250",
"7 7 \"分行名称\" 200 300",
"8 8 \"申请人编号\" 100 200",
"9 9 \"申请人名称\" 200 300",
"12 10 \"受益人名称\" 200 300",
"15 11\"开证行名称\" 100 300",
"16 3 \"开立币种\" 80 80",
"17 4 \"开立金额\" 90 80",
]
],
}
},
methods:{
......@@ -298,6 +303,7 @@ export default {
instName: ''
}
},
// 跳转至出口信用证开立
toLetopn(){
this.$router.history.push("/business/letopn")
}
......
......@@ -55,8 +55,7 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
codes:{...CodeTable},
}
},
methods:{
......@@ -68,8 +67,12 @@ export default {
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
//更新数据
this.updateModel(rtnmsg.data)
// Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
}
else
{
......
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