Commit 8d58dd16 by niewei

新增infcur

parent 9d3ef3fb
import Utils from "~/utils"
/**
* Infcur Check规则
*/
let checkObj = {
"rec.bsrmar" :null,
"rec.maxamt" :null,
"rec.sqrmar" :null,
"rec.dec" :null,
"rec.dif" :null,
"rec.newcur" :null,
"rec.cod" :null,
"rec.enddat" :null,
"rec.rndunt" :null,
"rec.bas" :null,
"rec.dbtday" :null,
"rec.cdtday" :null,
"recpan.recget.sdamod.dadsnd" :null,
"rec.maxcur" :null,
"rec.glbrat" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infcur Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infbut.dspstm" :Utils.defaultFunction,
"rec.cod" :Utils.defaultFunction,
"rec.maxcur" :Utils.defaultFunction,
"rec.newcur" :Utils.defaultFunction,
"rec.seq" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"cod":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"seanam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infbut.dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"rec.cod":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"rec.altcod":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"rec.rndunt":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"rec.dec":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"rec.bas":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"rec.dif":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"rec.acc1":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"rec.glbrat":[
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
"rec.acc2":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"rec.bsrmar":[
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
"rec.seq":[
{type: "string", required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"}
],
"rec.sqrmar":[
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
"rec.begdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"rec.enddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"rec.odrintday":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"rec.dbtday":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"rec.cdtday":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"rec.maxamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Infcur {
constructor() {
this.data = {
cod: "", // CUR .cod
seanam: "", // Currency Description .seanam
infbut: {
dspstm: "", // display stream .infbut.dspstm
},
rec: {
cod: "", // Currency Code .rec.cod
rndunt: "", // Rounding Unit of Currency .rec.rndunt
bas: "", // Exchange Rate Calculation Base .rec.bas
acc1: "", // Account for Currency Conversions .rec.acc1
acc2: "", // Counter Acct. for Currency Conversions .rec.acc2
seq: "", // Seq. in Exchange Rate Tool (0:Not in, -1 fix) .rec.seq
newcur: "", // Replaced by .rec.newcur
begdat: "", // Valid from (incl.) until: .rec.begdat
enddat: "", // Valid until Excl. .rec.enddat
dbtday: "", // Debit .rec.dbtday
cdtday: "", // Value Credit .rec.cdtday
maxcur: "", // Maximum Amount for Stored Rate .rec.maxcur
maxamt: "", // Maximum Amount for Stored Rate .rec.maxamt
altcod: "", // Alternate Code .rec.altcod
dec: "", // Decimal Places .rec.dec
dif: "", // Maximum Tolerance .rec.dif
glbrat: "", // General Ledger Balance Rate .rec.glbrat
bsrmar: "", // Margin for Buying/Selling Rate .rec.bsrmar
sqrmar: "", // Margin for Squaring Rate .rec.sqrmar
odrintday: "", // Interest Days in OD-Rate .rec.odrintday
},
recpan: {
codmod: {
codtxt: [], // .recpan.codmod.codtxt
},
recget: {
sdamod: {
seainf: "", // Code .recpan.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -21,36 +21,39 @@ import Switsk from "./Switsk"
import Infusr from "./Infusr"
import Infcpd from "./Infcpd"
import Bctacc from "./Bctacc"
import Infcur from "./Infcur"
import Infdet from "./Infdet"
/**
* 带有name的才会被添加进顶部的标签页里
*/
const BusRouter = [
{ path: 'bdtudp', component: Bdtudp, name: 'Bdtudp', meta: {title: '国内证承兑'} },
{ path: 'cptadv', component: Cptadv, name: 'Cptadv', meta: {title: '汇入汇款'} },
{ path: 'cptopn', component: Cptopn, name: 'Cptopn', meta: {title: '汇出汇款'} },
{ path: 'diasel', component: Diasel, name: 'Diasel', meta: {title: '备忘录选择交易'} },
{ path: 'ditame', component: Ditame, name: 'Ditame', meta: {title: '信用证修改'} },
{ path: 'ditsel', component: Ditsel, name: 'Ditsel', meta: {title: '信用证查询'} },
{ path: 'ditopn', component: Ditopn, name: 'Ditopn', meta: {title: '买方信用证开立'} },
// 例
{ path: 'ditopn/:inr', component: Ditopn, name: 'DitopnInr', meta: {title: (params) => {return '买方信用证开立-' + params.inr}} },
{ path: 'office', component: Office, name: 'Office', meta: {title: 'Office'} },
{ path: 'sptsel', component: Sptsel, name: 'Sptsel', meta: {title: '待办任务'} },
{ path: 'trnrel', component: Trnrel, name: 'Trnrel', meta: {title: '复核任务'} },
{ path: 'trndtl', query: 'inr', component: Trndtl, name: 'Trndtl', meta: {title: 'Trndtl'} },
{ path: 'tstopn', component: Tstopn, name: 'Tstopn', meta: {title: 'Tstopn'} },
{ path: 'infpta', component: Infpta, name: 'Infpta', meta: {title: 'Infpta'} },
{ path: 'letopn', component: Letopn, name: 'Letopn', meta: {title: '出口信用证通知'} },
{ path: 'sptrel', component: Sptrel, name: 'Sptrel', meta: {title: 'Sptrel'} },
{ path: 'sptrou', component: Sptrou, name: 'Sptrou', meta: {title: 'Sptrou'} },
{ path: 'bddsel', component: Bddsel, name: 'Bddsel', meta: {title: 'Bddsel'} },
{ path: 'infbdd', component: Infbdd, name: 'Infbdd', meta: {title: 'Infbdd'} },
{ path: 'mgrtsk', component: Mgrtsk, name: 'Mgrtsk', meta: {title: 'Mgrtsk'} },
{ path: 'switsk', component: Switsk, name: 'Switsk', meta: {title: 'Switsk'} },
{ path: 'infusr', component: Infusr, name: 'Infusr', meta: {title: '用户信息'} },
{ path: 'infcpd', component: Infcpd, name: 'Infcpd', meta: {title: '汇款查询'} },
{ path: 'bctacc', component: Bctacc, name: 'Bctacc', meta: {title: 'Bctacc'} },
{ path: 'bdtudp', component: Bdtudp, name: 'Bdtudp', meta: { title: '国内证承兑' } },
{ path: 'cptadv', component: Cptadv, name: 'Cptadv', meta: { title: '汇入汇款' } },
{ path: 'cptopn', component: Cptopn, name: 'Cptopn', meta: { title: '汇出汇款' } },
{ path: 'diasel', component: Diasel, name: 'Diasel', meta: { title: '备忘录选择交易' } },
{ path: 'ditame', component: Ditame, name: 'Ditame', meta: { title: '信用证修改' } },
{ path: 'ditsel', component: Ditsel, name: 'Ditsel', meta: { title: '信用证查询' } },
{ path: 'ditopn', component: Ditopn, name: 'Ditopn', meta: { title: '买方信用证开立' } },
// 例
{ path: 'ditopn/:inr', component: Ditopn, name: 'DitopnInr', meta: { title: (params) => { return '买方信用证开立-' + params.inr } } },
{ path: 'office', component: Office, name: 'Office', meta: { title: 'Office' } },
{ path: 'sptsel', component: Sptsel, name: 'Sptsel', meta: { title: '待办任务' } },
{ path: 'trnrel', component: Trnrel, name: 'Trnrel', meta: { title: '复核任务' } },
{ path: 'trndtl', query: 'inr', component: Trndtl, name: 'Trndtl', meta: { title: 'Trndtl' } },
{ path: 'tstopn', component: Tstopn, name: 'Tstopn', meta: { title: 'Tstopn' } },
{ path: 'infpta', component: Infpta, name: 'Infpta', meta: { title: 'Infpta' } },
{ path: 'letopn', component: Letopn, name: 'Letopn', meta: { title: '出口信用证通知' } },
{ path: 'sptrel', component: Sptrel, name: 'Sptrel', meta: { title: 'Sptrel' } },
{ path: 'sptrou', component: Sptrou, name: 'Sptrou', meta: { title: 'Sptrou' } },
{ path: 'bddsel', component: Bddsel, name: 'Bddsel', meta: { title: 'Bddsel' } },
{ path: 'infbdd', component: Infbdd, name: 'Infbdd', meta: { title: 'Infbdd' } },
{ path: 'mgrtsk', component: Mgrtsk, name: 'Mgrtsk', meta: { title: 'Mgrtsk' } },
{ path: 'switsk', component: Switsk, name: 'Switsk', meta: { title: 'Switsk' } },
{ path: 'infusr', component: Infusr, name: 'Infusr', meta: { title: '用户信息' } },
{ path: 'infcpd', component: Infcpd, name: 'Infcpd', meta: { title: '汇款查询' } },
{ path: 'bctacc', component: Bctacc, name: 'Bctacc', meta: { title: 'Bctacc' } },
{ path: 'infcur', component: Infcur, name: 'Infcur', meta: { title: 'Infcur' } },
{ path: 'infdet', component: Infdet, name: 'Infdet', meta: { title: 'Infdet' } },
]
export default BusRouter
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12">
<c-row>
<c-col :span="12">
<el-form-item label="Currency Code" prop="rec.cod">
<c-input v-model="model.rec.cod" maxlength="3" placeholder="请输入Currency Code"></c-input>
</el-form-item>
</c-col>
<!--
<c-col :span="3">
<el-form-item label="Drag Drop Sender" prop="recpan.recget.sdamod.dadsnd">
<c-input v-model="model.recpan.recget.sdamod.dadsnd" placeholder="请输入Drag Drop Sender"></c-input>
</el-form-item>
</c-col>
-->
<c-col :span="3">
<c-button size="small" type="primary;width:10%" @click="">i</c-button>
</c-col>
<c-col :span="3">
<c-button size="small" type="primary;width:10%" @click="">seainf</c-button>
</c-col>
<!--
<c-col :span="3">
<el-form-item label="Code" prop="recpan.recget.sdamod.seainf">
<c-input v-model="model.recpan.recget.sdamod.seainf" placeholder="请输入Code"></c-input>
</el-form-item>
</c-col>
-->
</c-row>
</c-col>
<c-col :span="12">
<el-form-item label="Alternate Code" prop="rec.altcod">
<c-input v-model="model.rec.altcod" maxlength="3" placeholder="请输入Alternate Code"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<el-form-item label="Rounding Unit of Currency" prop="rec.rndunt">
<c-input v-model="model.rec.rndunt" placeholder="请输入Rounding Unit of Currency"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Decimal Places" prop="rec.dec">
<c-input v-model="model.rec.dec" placeholder="请输入Decimal Places"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<el-form-item label="Exchange Rate Calculation Base" prop="rec.bas">
<c-input v-model="model.rec.bas" placeholder="请输入Exchange Rate Calculation Base"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Maximum Tolerance" prop="rec.dif">
<c-input v-model="model.rec.dif" placeholder="请输入Maximum Tolerance"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<el-form-item label="Account for Currency Conversions" prop="rec.acc1">
<c-input v-model="model.rec.acc1" maxlength="16" placeholder="请输入Account for Currency Conversions"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="General Ledger Balance Rate" prop="rec.glbrat">
<c-input v-model="model.rec.glbrat" placeholder="请输入General Ledger Balance Rate"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<el-form-item label="Counter Acct. for Currency Conversions" prop="rec.acc2">
<c-input v-model="model.rec.acc2" maxlength="16" placeholder="请输入Counter Acct. for Currency Conversions"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Margin for Buying/Selling Rate" prop="rec.bsrmar">
<c-input v-model="model.rec.bsrmar" placeholder="请输入Margin for Buying/Selling Rate"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<c-col :span="12">
<el-form-item label="Seq. in Exchange Rate Tool (0:Not in, -1 fix)" prop="rec.seq">
<c-input v-model="model.rec.seq" placeholder="请输入Seq. in Exchange Rate Tool (0:Not in, -1 fix)"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Replaced by" prop="rec.newcur">
<c-select v-model="model.rec.newcur" style="width:100%" placeholder="请选择Replaced by">
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="Margin for Squaring Rate" prop="rec.sqrmar">
<c-input v-model="model.rec.sqrmar" placeholder="请输入Margin for Squaring Rate"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<c-col :span="12">
<el-form-item label="Valid from (incl.) until:" prop="rec.begdat">
<c-date-picker type="date" v-model="model.rec.begdat" style="width:100%" placeholder="请选择Valid from (incl.) until:"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Valid until Excl." prop="rec.enddat">
<c-date-picker type="date" v-model="model.rec.enddat" style="width:100%" placeholder="请选择Valid until Excl."></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="Interest Days in OD-Rate" prop="rec.odrintday">
<c-input v-model="model.rec.odrintday" placeholder="请输入Interest Days in OD-Rate"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<el-form-item label="Debit" prop="rec.dbtday">
<c-input v-model="model.rec.dbtday" placeholder="请输入Debit"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Value Credit" prop="rec.cdtday">
<c-input v-model="model.rec.cdtday" placeholder="请输入Value Credit"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="12">
<el-form-item label="Maximum Amount for Stored Rate" prop="rec.maxcur">
<c-select v-model="model.rec.maxcur" style="width:100%" placeholder="请选择Maximum Amount for Stored Rate">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Maximum Amount for Stored Rate" prop="rec.maxamt">
<c-input v-model="model.rec.maxamt" placeholder="请输入Maximum Amount for Stored Rate"></c-input>
</el-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="23" :offset="1">
<c-istream-table :list="model.recpan.codmod.codtxt" :columns="stmData.columns">
</c-istream-table>
</c-col>
</c-row>
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infcur/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
stmData: {
columns: [
"1 1 \"Language\" 50 ",
"2 2 \"Description\" 150",
]
},
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<c-content class="eibs-tab">
<c-row>
<!--
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutSearow">
&Search
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutExi">
E&xit
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutDsp">
D&isplay
</c-button>
</c-col>
-->
<c-col :span="12">
<el-form-item label="CUR" prop="cod">
<c-input v-model="model.cod" maxlength="3" placeholder="请输入CUR"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Currency Description" prop="seanam">
<c-input v-model="model.seanam" maxlength="40" placeholder="请输入Currency Description"></c-input>
</el-form-item>
</c-col>
<!--
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutUserow">
&Use
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutClr">
&Clear
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="display stream" prop="infbut.dspstm">
<c-input v-model="model.infbut.dspstm" placeholder="请输入display stream"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutButprt">
导Excel
</c-button>
</c-col>
-->
</c-row>
<c-row>
<c-col :span="23" :offset="1">
<c-istream-table :list="model.infbut.dspstm" :columns="stmData.columns">
<!-- <el-table-column prop="op" label="OP" width="100">
<template slot-scope="scope">
<a href="javascript:void(0)" @click="continueEdit(scope.row)">处理事件</a>
</template>
</el-table-column> -->
</c-istream-table>
<!-- <c-table :border="true" :list="model.infbut.dspstm" style="width:80%;text-align:center">
<el-table-column prop="" label="UserID" width="auto"> </el-table-column>
<el-table-column prop="" label="Name" width="auto"> </el-table-column>
<el-table-column prop="" label="Profile" width="auto"> </el-table-column>
<el-table-column prop="" label="Entity" width="auto"> </el-table-column>
<el-table-column prop="" label="UserGroup" width="auto"> </el-table-column>
<el-table-column prop="" label="Phone" width="auto"> </el-table-column>
</c-table> -->
</c-col>
</c-row>
</c-content>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infcur/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
stmData: {
columns: [
"1 1 \"Currency\" 50 ",
"2 2 \"Description\" 150",
]
},
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<c-page title="币种信息维护">
<!-- 顶部按钮区 -->
<div class="topBtnGroup">
<c-button size="small" type="primary" v-show="showflg == true" icon="el-icon-arrow-right"
@click="showflg=false">收起</c-button>
<c-button size="small" type="primary" v-show="showflg == false" icon="el-icon-arrow-left"
@click="showflg=true">展开</c-button>
<div class="btnGroup" v-show="showflg == true && tabVal == 'infsea'">
<c-button size="small" type="primary" icon="el-icon-search">Search</c-button>
<c-button size="small" type="primary">Display</c-button>
<c-button size="small" type="primary">Use</c-button>
<c-button size="small" type="primary">Clear</c-button>
<c-button size="small" type="primary">导Excel</c-button>
<c-button size="small" type="primary">Exit</c-button>
</div>
<div class="btnGroup" v-show="showflg == true && tabVal == 'curp0' ">
<c-button size="small" type="primary" icon="el-icon-search">Search</c-button>
<el-button-group>
<c-button size="small" type="primary" icon="el-icon-arrow-left"></c-button>
<c-button size="small" type="primary" icon="el-icon-arrow-right"></c-button>
</el-button-group>
<c-button size="small" type="primary">Print</c-button>
<c-button size="small" type="primary">Use</c-button>
<c-button size="small" type="primary">Loginfo</c-button>
<c-button size="small" type="primary">Exit</c-button>
</div>
</div>
<!-- 面板展示区 -->
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--Search Panel -->
<el-tab-pane label="Search Panel" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
<!--Currency -->
<el-tab-pane label="Currency" name="curp0">
<m-curp0 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infcur from "~/model/Infcur"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Infcur/Check"
import Default from "~/model/Infcur/Default"
import Pattern from "~/model/Infcur/Pattern"
import Infsea from "./Infsea"
import Curp0 from "./Curp0"
export default {
components:{
"m-infsea" : Infsea,
"m-curp0" : Curp0,
},
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "infcur",
model: new Infcur().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
showflg: true,
}
},
methods:{
tabClick(){
}
},
created:async function(){
console.log("进入infcur交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
<style>
.topBtnGroup {
height: 32px;
margin-bottom: 5px;
text-align: right;
}
.btnGroup {
display: inline;
padding: 0 20px;
}
</style>
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