Commit 5806e7f9 by xiameng

Inffee/Infact

parent 3de5643e
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 处理数据逻辑
 this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(index,row){
const selIds= [idx + 1];
const selDst= "dspstm";//dspstm是数据流
let params = {selIds,selDst};
this.model.infbut.selrow = idx + 1;
let rtnmsg = await this.executeRule("infbut.dsp", params)
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.tabVal = "actp0"
}
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: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanGet(){
let rtnmsg = await this.executeRule("recpan.get")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanLastye(){
let rtnmsg = await this.executeRule("recpan.lastye")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanNextye(){
let rtnmsg = await this.executeRule("recpan.nextye")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanGetacc(){
let rtnmsg = await this.executeRule("recpan.getacc")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset(){
this.model.extkey="";
this.model.nam="";
this.model.hdlpty.extkey="";
this.model.iban="";
this.model.typ="";
this.model.cur="";
},
}
\ No newline at end of file
......@@ -14,12 +14,20 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
async onInfbutDsp(idx,row){
const selIds= [idx + 1];
const selDst= "dspstm";
let params = {selIds,selDst};
this.model.infbut.selrow = idx + 1;
let rtnmsg = await this.executeRule("infbut.dsp", params)
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
 this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
console.log(selrow)
this.root.tabVal="feep";
}
else
{
......@@ -39,16 +47,23 @@ export default {
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
this.model.nam="";
this.model.rec.cod="";
this.model.rec.reltir="";
this.model.rec.sftcod="";
this.model.rec.dtacod="";
this.model.rec.staflg="";
this.model.rec.incflg="";
this.model.rec.rol="";
this.model.rec.acc="";
this.model.rec.accacr="";
this.model.rec.dscmodflg="";
this.model.rec.reltrn="";
this.model.rec.begdat="";
this.model.rec.enddat="";
this.model.rec.grpcod="";
this.model.rec.taxacc="";
this.model.rec.taxflg="";
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
......
......@@ -10,6 +10,7 @@ export default class Inffee{
evtstm:"", // Stream for Events of Object .infbut.evtstm
vermod:{
difsrm:"", // displayable stream of differences .infbut.vermod.difsrm
selrow:0,
},
},
nam:"", // Feecode Description .nam
......
<template>
<div class="eibs-tab">
<!-- SF000026 : Account Own. -->
<c-col :span="12">
<c-form-item label="Account Own." prop="recpan.pty.extkey">
<c-input v-model="model.recpan.pty.extkey" maxlength="24" :placeholder="'请输入Account Owner'"></c-input>
</c-form-item>
</c-col>
<!-- SF000047 : Name -->
<c-col :span="12">
<c-form-item label="Name" prop="recpan.pty.nam">
<c-input v-model="model.recpan.pty.nam" maxlength="40" :placeholder="'请输入name'"></c-input>
</c-form-item>
</c-col>
<!-- SG000720 : 当前页数 -->
<c-col :span="4">
<c-form-item label="当前页数" prop="recpan.yesum">
<c-input v-model="model.recpan.yesum" :placeholder="'当前页数'"></c-input>
</c-form-item>
</c-col>
<!-- SF000036 : Type -->
<c-col :span="8">
<el-form-item label=" Type" prop="recgrp.typ">
<c-select v-model="model.recgrp.typ" style="width:100%" :placeholder="'Type'">
</c-select>
</el-form-item>
</c-col>
<!-- S0000050 : Name -->
<c-col :span="12">
<c-form-item label="Name " prop="recpan.typnam">
<c-input v-model="model.recpan.typnam" maxlength="40" :placeholder="'Name for account type'"></c-input>
</c-form-item>
</c-col>
<!-- SF000034 : Currency -->
<c-col :span="12">
<el-form-item label="Account Currency" prop="recgrp.cur">
<c-select v-model="model.recgrp.cur" style="width:100%" :placeholder="'Account Currency'">
</c-select>
</el-form-item>
</c-col>
<!-- S0000051 : Name -->
<c-col :span="12">
<c-form-item label="Name " prop="recpan.curnam">
<c-input v-model="model.recpan.curnam" maxlength="40" :placeholder="'Name for Account Currency'"></c-input>
</c-form-item>
</c-col>
<!-- SF000031 : Account -->
<c-col :span="12">
<c-form-item label=" Account" prop="recgrp.rec.extkey">
<c-input v-model="model.recgrp.rec.extkey" maxlength="34" :placeholder="' Account'"></c-input>
</c-form-item>
</c-col>
<!-- SF000029 : Name -->
<c-col :span="12">
<c-form-item label=" Name " prop="recgrp.rec.nam">
<c-input v-model="model.recgrp.rec.nam" maxlength="40" :placeholder="'External Name of Account'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.recgrp.acccore.corenam" data-path=".recgrp.acccore.corenam" > </span>
</c-col>
<!-- SG000715 : 主账号 -->
<c-col :span="12">
<c-form-item label="主账号" prop="recgrp.rec.zmqacc">
<c-input v-model="model.recgrp.rec.zmqacc" maxlength="35" :placeholder="'主账号'"></c-input>
</c-form-item>
</c-col>
<!-- SG000703 : Term Type -->
<c-col :span="12">
<el-form-item label="Term Type" prop="recgrp.rec.trmtyp">
<c-select v-model="model.recgrp.rec.trmtyp" style="width:100%" :placeholder="'Term Type'">
</c-select>
</el-form-item>
</c-col>
<!-- SG000704 : Name -->
<c-col :span="12">
<el-form-item label="Name for Term Type" prop="recpan.trmnam">
<c-select v-model="model.recpan.trmnam" style="width:100%" :placeholder="'Name '">
</c-select>
</el-form-item>
</c-col>
<!-- SG000705 : Account Type -->
<c-col :span="12">
<el-form-item label="Account Type" prop="recgrp.rec.acctyp">
<c-select v-model="model.recgrp.rec.acctyp" style="width:100%" :placeholder="'Account Type'">
</c-select>
</el-form-item>
</c-col>
<!-- SG000707 : Name -->
<c-col :span="12">
<c-form-item label="Account Type Name" prop="recpan.actnam">
<c-input v-model="model.recpan.actnam" maxlength="40" :placeholder="'Name'"></c-input>
</c-form-item>
</c-col>
<!-- SG000716 : 账户性质 -->
<c-col :span="12">
<el-form-item label="账户性质" prop="recgrp.rec.actpro">
<c-select v-model="model.recgrp.rec.actpro" style="width:100%" :placeholder="'账户性质'">
</c-select>
</el-form-item>
</c-col>
<!-- SF000032 : Served by -->
<c-col :span="24">
<div style="border-bottom: 40px solid rgb(232, 232, 232)"></div>
</c-col>
<!-- SF000045 : Holder -->
<c-col :span="12">
<c-form-item label="Holder" prop="recgrp.holpty.extkey">
<c-input v-model="model.recgrp.holpty.extkey" maxlength="24" :placeholder="'Holder'"></c-input>
</c-form-item>
</c-col>
<!-- SF000048 : Name -->
<c-col :span="12">
<c-form-item label=" Name" prop="recgrp.holpty.nam">
<c-input v-model="model.recgrp.holpty.nam" maxlength="40" :placeholder="'Name'"></c-input>
</c-form-item>
</c-col>
<!-- SF000046 : Holder's No. -->
<c-col :span="24">
<c-form-item label=" Holder No. " prop="recgrp.rec.holacc">
<c-input v-model="model.recgrp.rec.holacc" maxlength="34" :placeholder="' Holder No. '"></c-input>
</c-form-item>
</c-col>
<!-- SF000035 : Priority -->
<c-col :span="12">
<el-form-item label="Priority" prop="recgrp.rec.pri">
<c-select v-model="model.recgrp.rec.pri" style="width:100%" :placeholder="'Priority '">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.recgrp.rec.cvrflg">Cover Account</c-checkbox>
</c-col>
<!-- SF000039 : Available for -->
<c-col :span="12">
<el-form-item label="Available for" prop="recgrp.rec.dirflg">
<c-select v-model="model.recgrp.rec.dirflg" style="width:100%" :placeholder="'请输入Available for'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.recgrp.rec.rmbflg">Reimbursement Act.</c-checkbox>
</c-col>
<!-- SF000041 : Delete Flag -->
<c-col :span="12">
<el-form-item label="Delete Flag" prop="recgrp.rec.delflg">
<c-select v-model="model.recgrp.rec.delflg" style="width:100%" :placeholder="'Delete Flag'">
</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>
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