Commit 54870a38 by taojinrui

cptbat/sptcpt交易初始化

parent a7dca832
import Utils from "~/utils"
/**
* Cptbat Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Cptbat Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"newnam" :Utils.defaultFunction,
"opetye" :Utils.defaultFunction,
"filpth" :Utils.defaultFunction,
"opefil" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onOpnfil(){
let rtnmsg = await this.executeRule("opnfil")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onUpload(){
let rtnmsg = await this.executeRule("upload")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onReadfil(){
let rtnmsg = await this.executeRule("readfil")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onDel(){
let rtnmsg = await this.executeRule("del")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onExt(){
let rtnmsg = await this.executeRule("ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"filstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"filpth":[
{type: "string", required: false, message: "必输项"},
{max: 45,message:"长度不能超过45"}
],
"newnam":[
{type: "string", required: false, message: "必输项"},
{max: 45,message:"长度不能超过45"}
],
"opefil":[
{type: "string", required: false, message: "必输项"},
{max: 62,message:"长度不能超过62"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Cptbat{
constructor () {
this.data = {
car:"", // .car
filstm:"", // .filstm
filpth:"", // 本地文件路径 .filpth
newnam:"", // 上传文件名 .newnam
opetye:"", // 操作选择 .opetye
opefil:"", // 解析文件路径 .opefil
flg:"", // 删除首行上传 .flg
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Sptcpt Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Sptcpt Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"usfmod.usr.extkey" :Utils.defaultFunction,
"usfmod.flt" :Utils.defaultFunction,
"chkinc" :Utils.defaultFunction,
"usfmod.selusg" :Utils.defaultFunction,
"usfmod.selusgset" :Utils.defaultFunction,
"chkaut" :Utils.defaultFunction,
"inidatfro" :Utils.defaultFunction,
"selobj" :Utils.defaultFunction,
"chkdzt" :Utils.defaultFunction,
"incpay" :Utils.defaultFunction,
"chkpen" :Utils.defaultFunction,
"seltxt" :Utils.defaultFunction,
"sptstm" :Utils.defaultFunction,
"outpay" :Utils.defaultFunction,
"chkeco" :Utils.defaultFunction,
"chkcan" :Utils.defaultFunction,
"chkbat" :Utils.defaultFunction,
"ecpay" :Utils.defaultFunction,
"inidattil" :Utils.defaultFunction,
"chkcor" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onUsfmodShwflt(){
let rtnmsg = await this.executeRule("usfmod.shwflt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onFsds(){
let rtnmsg = await this.executeRule("fsds")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onFspt(){
let rtnmsg = await this.executeRule("fspt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onFszt(){
let rtnmsg = await this.executeRule("fszt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onReturnhx(){
let rtnmsg = await this.executeRule("returnhx")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"selobj":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"seltxt":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"inidatfro":[
{type: "date", required: false, message: "输入正确的日期"}
],
"inidattil":[
{type: "date", required: false, message: "输入正确的日期"}
],
"usfmod.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"usfmod.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"sptstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"remark":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Sptcpt{
constructor () {
this.data = {
chkinc:"", // Incoming .chkinc
chkpen:"", // Pending .chkpen
chkcor:"", // Correction .chkcor
chkaut:"", // Automatic .chkaut
selobj:"", // Reference .selobj
seltxt:"", // Selection Name .seltxt
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
flt:"", // Filter .usfmod.flt
selusg:"", // Selected User Group .usfmod.selusg
selusgset:"", // Selected User Group Set .usfmod.selusgset
usr:{
extkey:"", // User ID .usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .usfmod.selusb
},
sptstm:"", // List of SPT records .sptstm
chkdzt:"", // E-Trade .chkdzt
lremark:"", // 退回附言 .lremark
inidatfro:"", // Date of entry of Transaction .inidatfro
inidattil:"", // Date of entry of Transaction until .inidattil
outpay:"", // Outgoing Payment .outpay
incpay:"", // Incoming Payment .incpay
chkcan:"", // 归档 .chkcan
chkbat:"", // 批量 .chkbat
remark:"", // 退回附言 .remark
ecpay:"", // 三方收汇 .ecpay
chkeco:"", // 三方付汇 .chkeco
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -196,6 +196,8 @@ import Cnysel from "./Cnysel"
import Cptrel from "./Cptrel"
import Cptcan from "./Cptcan"
import Cptrep from "./Cptrep"
import Cptbat from "./Cptbat"
import Sptcpt from "./Sptcpt"
import Getcan from "./Getcan"
import Gitcan from "./Gitcan"
......@@ -422,6 +424,8 @@ const BusRouter = [
{ path: 'Cptrel', component: Cptrel, name: 'Cptrel', meta: { title: '汇款复核与查询' } },
{ path: 'Cptcan', component: Cptcan, name: 'Cptcan', meta: { title: '汇款注销' } },
{ path: 'Cptrep', component: Cptrep, name: 'Cptrep', meta: { title: '挂账解付' } },
{ path: 'Cptbat', component: Cptbat, name: 'Cptbat', meta: { title: '批量汇款' } },
{ path: 'Sptcpt', component: Sptcpt, name: 'Sptcpt', meta: { title: '批量汇款' } },
// { path: 'trtrcl', component: Trtrcl, name: 'Trtrcl', meta: { title: '进口融资索汇' }},
{ path: 'trtset', component: Trtset, name: 'Trtset', meta: { title: '进口融资还款' } },
......
<template>
<div class="eibs-tab">
<c-col :span="9">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
>
</c-istream-table>
</c-col>
<c-col :span="9" :offset="1">
<c-col :span="24">
<el-form-item label="操作选择" prop="opetye">
<c-select v-model="model.opetye" style="width: 100%">
<el-option
v-for="item in opetye"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="本地文件路径" prop="flpth">
<c-input v-model="model.flpth" style="width:100%" placeholder="请输入本地文件路径" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="上传文件名" prop="newnam">
<c-input v-model="model.newnam" style="width:100%" :disabled="model.opetye !== '1'"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注意:上传文件若包含表头系统将无法解析</span>
</c-col>
<c-col :span="24">
<el-form-item label="删除首行上传">
<c-checkbox v-model="model.flg" :disabled="model.opetye !== '1'"></c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解析文件名" prop="opefil">
<c-input v-model="model.opefil" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="4" :offset="1">
<c-col :span="24">
<c-button type="primary" disabled>文件预览</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" :disabled="model.newnam === ''">文件上传</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" disabled>文件解析</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" disabled>文件删除</c-button>
</c-col>
</c-col>
<!-- <c-col :span="12">
<c-form-item label="" prop="filstm">
<c-input v-model="model.filstm" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
S0000020 : 操作选择
<c-col :span="12">
<el-form-item :label="$t('cptbat.S0000020')" prop="opetye">
<c-select v-model="model.opetye" style="width:100%" :placeholder="$t('other.please_enter')+$t('cptbat.S0000020')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOpnfil">
{{$t('cptbat.C0000010')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onUpload">
{{$t('cptbat.C0000022')}}
</c-button>
</c-col>
S0000023 : 文件解析
<c-col :span="12">
<c-button size="small" type="primary" @click="onReadfil">
{{$t('cptbat.C0000024')}}
</c-button>
</c-col>
S0000005 : 本地文件路径
<c-col :span="12">
<c-form-item :label="$t('cptbat.S0000005')" prop="filpth">
<c-input v-model="model.filpth" maxlength="45" :placeholder="$t('other.please_enter')+$t('cptbat.S0000005')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onDel">
{{$t('cptbat.C0000027')}}
</c-button>
</c-col>
S0000006 : 上传文件名
<c-col :span="12">
<c-form-item :label="$t('cptbat.S0000006')" prop="newnam">
<c-input v-model="model.newnam" maxlength="45" :placeholder="$t('other.please_enter')+$t('cptbat.S0000006')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.car" data-path=".car" > </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.flg">{{$t('cptbat.C0000026')}}</c-checkbox>
</c-col>
S0000021 : 解析文件名
<c-col :span="12">
<c-form-item label="解析文件路径" prop="opefil">
<c-input v-model="model.opefil" maxlength="62" :placeholder="$t('other.please_enter')+'解析文件路径'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onExt">
{{$t('cptbat.C0000014')}}
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptbat/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
opetye:[
{label:"文件上传",value:"1"},
{label:"文件解析",value:"2"},
{label:"已解析文件",value:"3"},
],
stmData: {
columns: [
'0 1 "批量文件列表" 500'
// '0 1 "业务编号" 110',
// '1 2 "币种" 110',
// '2 3 "金额" 120 2 8:1 2 5',
// '3 4 "收款人名称" 250',
// '4 5 "付款人名称" 250',
// '5 6 "业务发生日期" 150 20 30 1',
// { index: 6, position: 7, width: 100, pattern: "code", label: "复核状态" ,"code":"relsta"},
],
data: [],
},
}
},
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">
<!--cptbat PD000001 主界面 -->
<el-tab-pane label="主界面" name="fpanel">
<m-fpanel :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 Cptbat from "~/model/Cptbat"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Cptbat/Check"
import Default from "~/model/Cptbat/Default"
import Pattern from "~/model/Cptbat/Pattern"
import Fpanel from "./Fpanel"
export default {
name: "Cptbat",
components:{
"m-fpanel" : Fpanel,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "fpanel",
trnName: "cptbat",
trnType: "",
model: new Cptbat().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入cptbat交易");
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="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">
<!--sptcpt PD000042 Menu -->
<el-tab-pane label="Menu" name="menu">
<m-menu :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 Sptcpt from "~/model/Sptcpt"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptcpt/Check"
import Default from "~/model/Sptcpt/Default"
import Pattern from "~/model/Sptcpt/Pattern"
import Menu from "./Menu"
export default {
name: "Sptcpt",
components:{
"m-menu" : Menu,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "menu",
trnName: "sptcpt",
trnType: "",
model: new Sptcpt().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入sptcpt交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</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