Commit 5b385f54 by xiameng

Infact/Inffee

parent 5806e7f9
import Utils from "~/utils"
/**
* Infact Check规则
*/
let checkObj = {
"recgrp.rec.iban" :null,
"recgrp.rec.zmqacc" :null,
"recgrp.rec.cur" :null,
"recgrp.rec.extkey" :null,
"recpan.pty.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infact Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"recgrp.rec.acctyp" :Utils.defaultFunction,
"recgrp.rec.typ" :Utils.defaultFunction,
"recgrp.rec.extkey" :Utils.defaultFunction,
"recgrp.rec.cur" :Utils.defaultFunction,
"recpan.pty.extkey" :Utils.defaultFunction,
"recgrp.rec.trmtyp" :Utils.defaultFunction,
"recgrp.rec.dirflg" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
"recpan.actinf.oit.inftxt" :Utils.defaultFunction,
"recpan.actinf.oit.inflev" :Utils.defaultFunction,
"recgrp.rec.pri" :Utils.defaultFunction,
"recgrp.serpty.extkey" :Utils.defaultFunction,
"recgrp.rec.nam" :Utils.defaultFunction,
"recgrp.holpty.extkey" :Utils.defaultFunction,
"hdlpty.extkey" :Utils.defaultFunction,
"recpan.typnam" :Utils.defaultFunction,
"recpan.curnam" :Utils.defaultFunction,
"recpan.yesum" :Utils.defaultFunction,
"recpan.actstp.oit.inftxt" :Utils.defaultFunction,
"recpan.actstp.oit.inflev" :Utils.defaultFunction,
}
//你可以添加自动default处理
export default {
"extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"hdlpty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"iban":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infbut.dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recpan.ptyget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"recpan.ptyget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.pty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.yesum":[
{type: "string", required: false, message: "必输项"},
{max: 5,message:"长度不能超过5"}
],
"recpan.typnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.curnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.acccore.acccore":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"recgrp.rec.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recpan.actnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.serpty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"recpan.serptyget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.serptyget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.serpty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.seracc":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"recgrp.rec.iban":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"recpan.holptyget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.holpty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"recpan.holptyget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.holpty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.holacc":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"recpan.actinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"recpan.actstp.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Infact{
constructor () {
this.data = {
extkey:"", // Account No. .extkey
nam:"", // Name of Account Owner .nam
hdlpty:{
extkey:"", // Holding Party .hdlpty.extkey
},
iban:"", // IBAN .iban
typ:"", // Type .typ
cur:"", // Currency .cur
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
recpan:{
pty:{
extkey:"", // Address Number .recpan.pty.extkey
nam:"", // External Visible Name .recpan.pty.nam
},
ptyget:{
sdamod:{
seainf:"", // .recpan.ptyget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.ptyget.sdamod.dadsnd
},
},
recget:{
sdamod:{
seainf:"", // Account .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
serptyget:{
sdamod:{
seainf:"", // .recpan.serptyget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.serptyget.sdamod.dadsnd
},
},
holptyget:{
sdamod:{
seainf:"", // .recpan.holptyget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.holptyget.sdamod.dadsnd
},
},
typnam:"", // Name for account type .recpan.typnam
curnam:"", // Name for Currency .recpan.curnam
trmnam:"", // Name for Term Type .recpan.trmnam
actnam:"", // Account Type Name .recpan.actnam
yesum:"", // 当前页数 .recpan.yesum
actinf:{
labinftxt:"", // Label for INFTXT .recpan.actinf.labinftxt
oit:{
inftxt:"", // Infotext .recpan.actinf.oit.inftxt
inflev:"", // Infotext Level .recpan.actinf.oit.inflev
},
},
actstp:{
labinftxt:"", // Label for INFTXT .recpan.actstp.labinftxt
oit:{
inftxt:"", // Infotext .recpan.actstp.oit.inftxt
inflev:"", // Infotext Level .recpan.actstp.oit.inflev
},
},
},
recgrp:{
rec:{
typ:"", // Account Type .recgrp.rec.typ
cur:"", // Account Currency .recgrp.rec.cur
extkey:"", // External Search Key of Account .recgrp.rec.extkey
nam:"", // External Name of Account .recgrp.rec.nam
seracc:"", // Account Number Defined by Servicing Institute .recgrp.rec.seracc
iban:"", // International Bank Account Number .recgrp.rec.iban
holacc:"", // Account Number of Control Account of Holder Optional .recgrp.rec.holacc
pri:"", // Priority for Defaulting .recgrp.rec.pri
dirflg:"", // Available for .recgrp.rec.dirflg
delflg:"", // Delete Flag .recgrp.rec.delflg
cvrflg:"", // Cover Account .recgrp.rec.cvrflg
rmbflg:"", // Reimbursement Account .recgrp.rec.rmbflg
acctyp:"", // Account Type .recgrp.rec.acctyp
trmtyp:"", // Term Type .recgrp.rec.trmtyp
zmqacc:"", // 客户自�'�区主�'�号 .recgrp.rec.zmqacc
actpro:"", // 外管局�'�户性�'� .recgrp.rec.actpro
},
serpty:{
extkey:"", // Address Number .recgrp.serpty.extkey
nam:"", // External Visible Name .recgrp.serpty.nam
},
holpty:{
extkey:"", // Address Number .recgrp.holpty.extkey
nam:"", // External Visible Name .recgrp.holpty.nam
},
acccore:{
corenam:"", // 核心业务代号名称 .recgrp.acccore.corenam
acccore:"", // 核心业务代号 .recgrp.acccore.acccore
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -212,7 +212,7 @@ import Trtset from "./Trtset"
import Trtcan from "./Trtcan"
import Dbiusr from "./Dbiusr"
import Dbibch from "./Dbibch"
import Infact from "./Infact"
/**
* 带有name的才会被添加进顶部的标签页里
......@@ -438,6 +438,7 @@ const BusRouter = [
{ path: 'Dbiusr', component: Dbiusr, name: 'Dbiusr', meta: { title: 'Dbiusr' } },
{ path: 'Dbibch', component: Dbibch, name: 'Dbibch', meta: { title: 'Dbibch' } },
{ path: 'Ordrel', component: Ordrel, name: 'Ordrel', meta: { title: 'Ordrel' } },
{ path: 'Infact', component: Infact, name: 'Infact', meta: { title: '账户' } },
]
......
<template>
<div class="eibs-tab">
<template >
<el-form
class="m-table-search-form"
ref="paramsForm"
:inline="true"
label-position="left"
label-width="110px"
size="small">
<c-col :span="12">
<c-form-item :label="'Account No.'" prop="extkey">
<c-input v-model="model.extkey" maxlength="24" :placeholder="'请输入Account No'"></c-input>
</c-form-item>
</c-col>
<!-- SF000048 : Name of Account Owner -->
<c-col :span="12">
<c-form-item :label="'Name of Act. Owner'" prop="nam">
<c-input v-model="model.nam" maxlength="100" :placeholder="'请输入Name of Act. Owner'"></c-input>
</c-form-item>
</c-col>
<!-- SF000045 : Holding Party -->
<c-col :span="12">
<c-form-item :label="'Holding Party'" prop="hdlpty.extkey">
<c-input v-model="model.hdlpty.extkey" maxlength="24" :placeholder="'请输入 Holding Party'"></c-input>
</c-form-item>
</c-col>
<!-- SF000050 : IBAN -->
<c-col :span="12">
<c-form-item :label="'IBAN'" prop="iban">
<c-input v-model="model.iban" maxlength="40" :placeholder="'请输入IBAN'"></c-input>
</c-form-item>
</c-col>
<!-- SF000042 : Type -->
<c-col :span="12">
<el-form-item :label="'type'" prop="typ">
<c-select v-model="model.typ" style="width:100%" :placeholder="'请输入type'">
<el-option v-for="item in codes.typ" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- SF000043 : Currency -->
<c-col :span="12">
<el-form-item :label="'Currency'" prop="cur">
<c-select v-model="model.cur" style="width:100%" :placeholder="'请输入Currency'">
<el-option v-for="item in codes.cur" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!--
<c-col :span="12">
<c-form-item label="display stream" prop="infbut.dspstm">
<c-input v-model="model.infbut.dspstm" :placeholder="$t('other.please_enter')+'display stream'"></c-input>
</c-form-item>
</c-col> -->
<c-col :span="24" style="text-align: right; height: 36.8px">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onInfbutSearow"
>查询
</el-button>
</c-col>
<c-col :span="24">
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-button
size="small"
type="primary"
@click="onInfbutButprt"
style="float: right"
>
导出Excel
</c-button>
</c-col>
</el-form>
</template>
<c-col :span="24" >
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true">
<c-table-column fixed="right" prop="op" label="详情" width="165px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 0" size="small" @click="onInfbutDsp(scope.$index, scope.row)">详情 </c-button>
</template>
</c-table-column>
</c-istream-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infact/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
stmData: {
columns: [
"1 1 \"Account Owner\" 180 ",
"1 2\"Typ\" 150",
"2 3 \"Cur\" 150",
"3 4 \"Account No.\" 180",
"4 5 \" Owner Number\" 150 ",
"5 6 \"Servicing Party \" 150",
"6 7 \"Servicing Number\" 150",
],
data: [ ]
}
}
},
computed: {
tableData() {
return this.model.infbut.dspstm.rows;
},
/* stmData() {
console.log(this.model.infbut.dspstm.rows);
return this.model.infbut.dspstm.rows;
} */
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<span v-text="model.recpan.actinf.labinftxt" data-path=".recpan.actinf.labinftxt" > </span>
</c-col>
<!-- S0000579 : Display Type -->
<c-col :span="12">
<c-form-item label="Infotext" prop="recpan.actinf.oit.inftxt">
<c-input type="textarea" v-model="model.recpan.actinf.oit.inftxt" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+'Infotext'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="recpan.actinf.oit.inflev">
<c-select v-model="model.recpan.actinf.oit.inflev" style="width:100%" :placeholder="$t('other.please_enter')+'Infotext Level'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.recpan.actstp.labinftxt" data-path=".recpan.actstp.labinftxt" > </span>
</c-col>
<!-- S0000579 : Display Type -->
<c-col :span="12">
<c-form-item label="Infotext" prop="recpan.actstp.oit.inftxt">
<c-input type="textarea" v-model="model.recpan.actstp.oit.inftxt" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+'Infotext'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="recpan.actstp.oit.inflev">
<c-select v-model="model.recpan.actstp.oit.inflev" style="width:100%" :placeholder="$t('other.please_enter')+'Infotext Level'">
</c-select>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infact/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<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">
<!--infact PD000041 Search Panel -->
<el-tab-pane :label="'查询页面'" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
<!--actp PD000000 Accounts -->
<el-tab-pane :label="'详情'" name="actp0">
<m-actp0 :model="model" :codes="codes"/>
</el-tab-pane>
<!--actp PD000700 Info and Stoptext -->
<el-tab-pane :label="'Info and Stoptext'" name="oitpan">
<m-oitpan :model="model" :codes="codes"/>
</el-tab-pane>
<!-- <el-tab-pane :label="$t('actp.PD000040')" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane :label="$t('infbut.PD000022')" name="evtinfp">
<m-evtinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane :label="$t('vermod.PD000005')" name="difstm">
<m-difstm :model="model" :codes="codes"/>
</el-tab-pane> -->
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infact from "~/model/Infact"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infact/Check"
import Default from "~/model/Infact/Default"
import Pattern from "~/model/Infact/Pattern"
import Actp0 from "./Actp0"
import Oitpan from "./Oitpan"
import Infsea from "./Infsea"
export default {
name: "Infact",
components:{
"m-actp0" : Actp0,
"m-oitpan" : Oitpan,
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "infact",
trnType: "",
model: new Infact().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {...CodeTable
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入infact交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="24" style="text-align:right; height:36.8px">
<el-button-group>
<el-button type="primary" icon="el-icon-arrow-left">上一页</el-button>
<el-button type="primary">下一页<i class="el-icon-arrow-right el-icon--right"></i></el-button>
</el-button-group>
</c-col>
<c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="recpan.recget.sdamod.dadsnd">
<!-- <c-col :span="12">
<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>-->
<c-col :span="12">
<el-form-item label="Fee Code" prop="rec.cod">
......@@ -13,10 +21,10 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="recpan.recget.sdamod.seainf">
<c-input v-model="model.recpan.recget.sdamod.seainf" placeholder="请输入"></c-input>
</el-form-item>
<c-col :span="12" >
<el-form-item label="Description" prop="nam">
<c-input v-model="model.nam" maxlength="32" placeholder="请输入Description"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
......@@ -29,44 +37,36 @@
<c-col :span="12">
<el-form-item label="SWIFT / DTA Code" prop="rec.sftcod">
<c-select v-model="model.rec.sftcod" style="width:100%" placeholder="请选择SWIFT / DTA Code">
<el-option v-for="item in codes.sftcod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
<el-option v-for="item in codes.sftcod" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Fee Code for DTA Messages" prop="rec.dtacod">
<c-select v-model="model.rec.dtacod" style="width:100%" placeholder="请选择Fee Code for DTA Messages">
<el-option v-for="item in codes.dtacod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
<el-option v-for="item in codes.dtacod" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="10">
<el-form-item label="Booking Type" prop="rec.staflg">
<c-select v-model="model.rec.staflg" style="width:100%" placeholder="请选择Booking Type">
<el-option v-for="item in codes.staflg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
<el-option v-for="item in codes.staflg" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.rec.incflg">Income</c-checkbox>
<c-col :span="2">
<c-checkbox v-model="model.rec.incflg" >Income</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="Fee Payer (Default)" prop="rec.rol">
<c-select v-model="model.rec.rol" style="width:100%" placeholder="请选择Fee Payer (Default)">
<el-option v-for="item in codes.rol" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
<el-form-item label="Fee Payer(Deafult) " prop="rec.rol">
<c-select v-model="model.rec.rol" style="width:100%" placeholder="请选择Fee Payer ">
<el-option v-for="item in codes.rol" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</c-select>
</el-form-item>
</c-col>
......@@ -86,47 +86,48 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Relevant Transaction and Business Sector" prop="rec.reltrn">
<c-col :span="8">
<el-form-item label="Usable in" prop="rec.reltrn">
<c-input v-model="model.rec.reltrn" maxlength="40" placeholder="请输入Relevant Transaction and Business Sector"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="8">
<el-form-item label="Begin Date" prop="rec.begdat">
<c-date-picker type="date" v-model="model.rec.begdat" style="width:100%" placeholder="请选择Begin Date"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="End of Validity Excl." prop="rec.enddat">
<c-date-picker type="date" v-model="model.rec.enddat" style="width:100%" placeholder="请选择End of Validity Excl."></c-date-picker>
<c-col :span="8">
<el-form-item label="End Date" prop="rec.enddat">
<c-date-picker type="date" v-model="model.rec.enddat" style="width:100%" placeholder="请选择End Date"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="8">
<el-form-item label="Group Code" prop="rec.grpcod">
<c-select v-model="model.rec.grpcod" style="width:100%" placeholder="请选择Group Code">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="8">
<el-form-item label="价税分离" prop="rec.taxflg">
<c-select v-model="model.rec.taxflg" style="width:100%" placeholder="请选择价税分离">
<c-select v-model="model.rec.taxflg" style="width:100%" placeholder="是/否">
<el-option v-for="item in codes.taxflg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!--
<c-col :span="12">
<el-form-item label="tax acc" prop="rec.taxacc">
<c-col :span="8">
<el-form-item label="Tax Account" prop="rec.taxacc">
<c-input v-model="model.rec.taxacc" maxlength="34" placeholder="请输入tax acc"></c-input>
</el-form-item>
</c-col>
<!--
<c-col :span="12">
<c-checkbox v-model="model.recpan.seldef">Default</c-checkbox>
</c-col>
......@@ -228,6 +229,9 @@ export default {
},
methods:{...Event},
created:function(){
}
}
......@@ -235,3 +239,5 @@ export default {
<style>
</style>
<template>
<div class="eContainer">
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000027 -->
<el-tab-pane label="PD000027" name="infsea">
<m-infsea :model="model" :codes="codes"/>
<el-tab-pane label="费用查询" name="infsea">
<m-infsea :model="model" :codes="codes" ref="infsea"/>
</el-tab-pane>
<!--PD000119 -->
<el-tab-pane label="PD000119" name="feep">
<m-feep :model="model" :codes="codes"/>
<el-tab-pane label="费用详情" name="feep">
<m-feep :model="model" :codes="codes" ref="feep"/>
</el-tab-pane>
......@@ -22,12 +30,16 @@ import CodeTable from "~/config/CodeTable"
import Utils from "~/utils/index"
import Inffee from "~/model/Inffee"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs"
import Check from "~/model/Inffee/Check"
import Default from "~/model/Inffee/Default"
import Pattern from "~/model/Inffee/Pattern"
import Feep from "./Feep"
import Infsea from "./Infsea"
import Event from "~/model/Inffee/Event"
export default {
name: 'Inffee',
components:{
"m-feep" : Feep,
"m-infsea" : Infsea,
......@@ -37,7 +49,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
......@@ -47,45 +59,52 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
}
codes: { ...CodeTable
// bustxt:[],
},
};
},
methods:{
tabClick(){
}
// tabClick(){}
myTabClick(tab){
this.tabClick(tab)
}
},
created:async function(){
console.log("进入inffee交易");
let rtnmsg = await this.init({})
let rtnmsg = await this.init({})
// console.log(rtnmsg);
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
}
else
this.updateModel(rtnmsg.data)
} else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
/** let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
const that = this;
// 查询码表模板 diasel
/* getCodetable({ tbl:'DIATXT',lang:'EN' }).then((res) => {
if (res.respCode == SUCCESS) {
this.codes.diatxt = res.data;
}
});
const that = this;
that.init(that.model).then(res => {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data)
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
})
**/
that.model = Utils.copyValueFromVO(that.model, res.data)
this.$refs.diaselp.handleSearch();
})*/
}
}
}
</script>
<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