Commit bc079590 by 潘际乾

infbrd

parent 87588b13
...@@ -2,6 +2,21 @@ import Api from "~/service/Api" ...@@ -2,6 +2,21 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async handleSearch() {
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset() {
},
async onInfbutSearow(){ async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
......
...@@ -44,12 +44,12 @@ export default { ...@@ -44,12 +44,12 @@ export default {
"infcon.seaamtfr":[ "infcon.seaamtfr":[
{type: "number", required: false, message: "必输项"}, {required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"infcon.seaamtto":[ "infcon.seaamtto":[
{type: "number", required: false, message: "必输项"}, {required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
......
...@@ -36,6 +36,7 @@ import Sptrel from "./Sptrel" ...@@ -36,6 +36,7 @@ import Sptrel from "./Sptrel"
import Sptrou from "./Sptrou" import Sptrou from "./Sptrou"
import Bddsel from "./Bddsel" import Bddsel from "./Bddsel"
import Infbdd from "./Infbdd" import Infbdd from "./Infbdd"
import Infbrd from "./Infbrd"
import Mgrtsk from "./Mgrtsk" import Mgrtsk from "./Mgrtsk"
import Switsk from "./Switsk" import Switsk from "./Switsk"
import Infusr from "./Infusr" import Infusr from "./Infusr"
...@@ -227,6 +228,7 @@ const BusRouter = [ ...@@ -227,6 +228,7 @@ const BusRouter = [
{ path: 'sptrou', component: Sptrou, name: 'Sptrou', meta: { title: 'Sptrou' } }, { path: 'sptrou', component: Sptrou, name: 'Sptrou', meta: { title: 'Sptrou' } },
{ path: 'bddsel', component: Bddsel, name: 'Bddsel', meta: { title: 'Bddsel' } }, { path: 'bddsel', component: Bddsel, name: 'Bddsel', meta: { title: 'Bddsel' } },
{ path: 'infbdd', component: Infbdd, name: 'Infbdd', meta: { title: '信用证单据查询' } }, { path: 'infbdd', component: Infbdd, name: 'Infbdd', meta: { title: '信用证单据查询' } },
{ path: 'infbrd', component: Infbrd, name: 'Infbrd', meta: { title: '进口信用证单据入口' } },
{ path: 'mgrtsk', component: Mgrtsk, name: 'Mgrtsk', meta: { title: 'Mgrtsk' } }, { path: 'mgrtsk', component: Mgrtsk, name: 'Mgrtsk', meta: { title: 'Mgrtsk' } },
{ path: 'switsk', component: Switsk, name: 'Switsk', meta: { title: 'Switsk' } }, { path: 'switsk', component: Switsk, name: 'Switsk', meta: { title: 'Switsk' } },
{ path: 'infusr', component: Infusr, name: 'Infusr', meta: { title: '用户信息' } }, { path: 'infusr', component: Infusr, name: 'Infusr', meta: { title: '用户信息' } },
......
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button style="margin-left:7px;" class="medium_bcs" size="medium" type="primary" 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.navcode = []
this.$emit("onChoose",code.toLowerCase());
}else{
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
},
computed:{
codeList(){
//将model中的数据映射成数组
return this.navcode.map(item=>{
let entireItem = {...item}
this.navcode = [];
//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.navcode = []
//请求按钮数据
//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("brdgrp.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)
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
})
})
}
}
</script>
<style>
</style>
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> -->
<!--PD000008 --> <!--PD000008 -->
<el-tab-pane label="PD000008" name="infsea"> <!-- <el-tab-pane label="PD000008" name="infsea">
<m-infsea :model="model" :codes="codes"/> <m-infsea :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000137 --> <c-content>
<el-tab-pane label="PD000137" name="ovwp"> <m-infsea :model="model" :codes="codes"/>
</c-content>
<!-- PD000137 -->
<!-- <el-tab-pane label="PD000137" name="ovwp">
<m-ovwp :model="model" :codes="codes"/> <m-ovwp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000062 --> <!--PD000062 -->
<el-tab-pane label="PD000062" name="docpre"> <!-- <el-tab-pane label="PD000062" name="docpre">
<m-docpre :model="model" :codes="codes"/> <m-docpre :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000079 --> <!--PD000079 -->
<el-tab-pane label="PD000079" name="shpdet"> <!-- <el-tab-pane label="PD000079" name="shpdet">
<m-shpdet :model="model" :codes="codes"/> <m-shpdet :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="PD000000" name="coninfp"> <!-- <el-tab-pane label="PD000000" name="coninfp">
<m-coninfp :model="model" :codes="codes"/> <m-coninfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000013 --> <!--PD000013 -->
<el-tab-pane label="PD000013" name="trnpan"> <!-- <el-tab-pane label="PD000013" name="trnpan">
<m-trnpan :model="model" :codes="codes"/> <m-trnpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000019 --> <!--PD000019 -->
<el-tab-pane label="PD000019" name="cbsinfp"> <!-- <el-tab-pane label="PD000019" name="cbsinfp">
<m-cbsinfp :model="model" :codes="codes"/> <m-cbsinfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000028 --> <!--PD000028 -->
<el-tab-pane label="PD000028" name="cbeinfp"> <!-- <el-tab-pane label="PD000028" name="cbeinfp">
<m-cbeinfp :model="model" :codes="codes"/> <m-cbeinfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000111 --> <!--PD000111 -->
<el-tab-pane label="PD000111" name="fepinfp"> <!-- <el-tab-pane label="PD000111" name="fepinfp">
<m-fepinfp :model="model" :codes="codes"/> <m-fepinfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000162 --> <!--PD000162 -->
<el-tab-pane label="PD000162" name="sepinfp"> <!-- <el-tab-pane label="PD000162" name="sepinfp">
<m-sepinfp :model="model" :codes="codes"/> <m-sepinfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000177 --> <!--PD000177 -->
<el-tab-pane label="PD000177" name="gleinfp"> <!-- <el-tab-pane label="PD000177" name="gleinfp">
<m-gleinfp :model="model" :codes="codes"/> <m-gleinfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000119 --> <!--PD000119 -->
<el-tab-pane label="PD000119" name="smhinfp"> <!-- <el-tab-pane label="PD000119" name="smhinfp">
<m-smhinfp :model="model" :codes="codes"/> <m-smhinfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000130 --> <!--PD000130 -->
<el-tab-pane label="PD000130" name="peninfp"> <!-- <el-tab-pane label="PD000130" name="peninfp">
<m-peninfp :model="model" :codes="codes"/> <m-peninfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000147 --> <!--PD000147 -->
<el-tab-pane label="PD000147" name="liainfp"> <!-- <el-tab-pane label="PD000147" name="liainfp">
<m-liainfp :model="model" :codes="codes"/> <m-liainfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000007 --> <!--PD000007 -->
<el-tab-pane label="PD000007" name="prtpan"> <!-- <el-tab-pane label="PD000007" name="prtpan">
<m-prtpan :model="model" :codes="codes"/> <m-prtpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<!--PD000185 --> <!--PD000185 -->
<el-tab-pane label="PD000185" name="ordpan"> <!-- <el-tab-pane label="PD000185" name="ordpan">
<m-ordpan :model="model" :codes="codes"/> <m-ordpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
</c-tabs> <!-- </c-tabs> -->
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -95,42 +99,42 @@ import Check from "~/model/Infbrd/Check" ...@@ -95,42 +99,42 @@ import Check from "~/model/Infbrd/Check"
import Default from "~/model/Infbrd/Default" import Default from "~/model/Infbrd/Default"
import Pattern from "~/model/Infbrd/Pattern" import Pattern from "~/model/Infbrd/Pattern"
import Infsea from "./Infsea" import Infsea from "./Infsea"
import Ovwp from "./Ovwp" // import Ovwp from "./Ovwp"
import Docpre from "./Docpre" // import Docpre from "./Docpre"
import Shpdet from "./Shpdet" // import Shpdet from "./Shpdet"
import Coninfp from "./Coninfp" // import Coninfp from "./Coninfp"
import Trnpan from "./Trnpan" // import Trnpan from "./Trnpan"
import Cbsinfp from "./Cbsinfp" // import Cbsinfp from "./Cbsinfp"
import Cbeinfp from "./Cbeinfp" // import Cbeinfp from "./Cbeinfp"
import Fepinfp from "./Fepinfp" // import Fepinfp from "./Fepinfp"
import Sepinfp from "./Sepinfp" // import Sepinfp from "./Sepinfp"
import Gleinfp from "./Gleinfp" // import Gleinfp from "./Gleinfp"
import Smhinfp from "./Smhinfp" // import Smhinfp from "./Smhinfp"
import Peninfp from "./Peninfp" // import Peninfp from "./Peninfp"
import Liainfp from "./Liainfp" // import Liainfp from "./Liainfp"
import Prtpan from "./Prtpan" // import Prtpan from "./Prtpan"
import Ordpan from "./Ordpan" // import Ordpan from "./Ordpan"
export default { export default {
name: "Infbrd", name: "Infbrd",
components:{ components:{
"m-infsea" : Infsea, "m-infsea" : Infsea,
"m-ovwp" : Ovwp, // "m-ovwp" : Ovwp,
"m-docpre" : Docpre, // "m-docpre" : Docpre,
"m-shpdet" : Shpdet, // "m-shpdet" : Shpdet,
"m-coninfp" : Coninfp, // "m-coninfp" : Coninfp,
"m-trnpan" : Trnpan, // "m-trnpan" : Trnpan,
"m-cbsinfp" : Cbsinfp, // "m-cbsinfp" : Cbsinfp,
"m-cbeinfp" : Cbeinfp, // "m-cbeinfp" : Cbeinfp,
"m-fepinfp" : Fepinfp, // "m-fepinfp" : Fepinfp,
"m-sepinfp" : Sepinfp, // "m-sepinfp" : Sepinfp,
"m-gleinfp" : Gleinfp, // "m-gleinfp" : Gleinfp,
"m-smhinfp" : Smhinfp, // "m-smhinfp" : Smhinfp,
"m-peninfp" : Peninfp, // "m-peninfp" : Peninfp,
"m-liainfp" : Liainfp, // "m-liainfp" : Liainfp,
"m-prtpan" : Prtpan, // "m-prtpan" : Prtpan,
"m-ordpan" : Ordpan, // "m-ordpan" : Ordpan,
}, },
provide() { provide() {
return { return {
...@@ -148,6 +152,10 @@ export default { ...@@ -148,6 +152,10 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
codeSet: {
"infcon.seacur": [],
"infcon.searol": []
}
}, },
} }
}, },
......
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