Commit 0d95610e by 杜大兵

infled查询

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