Commit ba32880f by jianglong

添加BOPRCV

parent bca1065c
import Utils from "~/utils"
/**
* Boprcv Check规则
*/
let checkObj = {
"bopcfg.fincod" :null,
"bopcfg.indir" :null,
"bopcfg.ftpsndscp" :null,
"bopcfg.outdir" :null,
"bopcfg.ftprcvscp" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Boprcv Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"msgstm" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onSerbut(){
let rtnmsg = await this.executeRule("serbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRcvbut(){
let rtnmsg = await this.executeRule("rcvbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onFtpbut(){
let rtnmsg = await this.executeRule("ftpbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBopcfgLogbut(){
let rtnmsg = await this.executeRule("bopcfg.logbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onExtbut(){
let rtnmsg = await this.executeRule("extbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onErrbut(){
let rtnmsg = await this.executeRule("errbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBopcfgSav(){
let rtnmsg = await this.executeRule("bopcfg.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"bopcfg.indir":[
{type: "string", required: false, message: "必输项"},
{max: 90,message:"长度不能超过90"}
],
"msgstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"begdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"enddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"errstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"bopcfg.ininam":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"bopcfg.outdir":[
{type: "string", required: false, message: "必输项"},
{max: 90,message:"长度不能超过90"}
],
"bopcfg.fincod":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"bopcfg.dbucmtrow":[
{type: "string", required: false, message: "必输项"},
{max: 5,message:"长度不能超过5"}
],
"bopcfg.ftpaddr":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bopcfg.ftpsnddir":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bopcfg.ftpsndscp":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bopcfg.ftprcvdir":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bopcfg.ftprcvscp":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Boprcv{
constructor () {
this.data = {
bopcfg:{
indir:"", // Input Dir .bopcfg.indir
ininam:"", // INI File Name .bopcfg.ininam
outdir:"", // Output Dir .bopcfg.outdir
fincod:"", // 金融机构标识码 .bopcfg.fincod
dbucmtrow:"", // DBU Commit Row .bopcfg.dbucmtrow
bchflt:"", // Branch Filter .bopcfg.bchflt
ftpsndscp:"", // FTP send Script .bopcfg.ftpsndscp
ftprcvscp:"", // FTP receive script .bopcfg.ftprcvscp
ftpsnddir:"", // Dir .bopcfg.ftpsnddir
ftprcvdir:"", // Dir .bopcfg.ftprcvdir
ftpaddr:"", // FTP Address .bopcfg.ftpaddr
bchslt:"", // SELECT SOME BRANCHS OR ALL .bopcfg.bchslt
},
msgstm:"", // Message Receive .msgstm
errstm:"", // Error Stream .errstm
begdat:"", // Check BOP Message Log .begdat
enddat:"", // to .enddat
allflg:"", // All .allflg
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-checkbox v-model="model.bopcfg.bchslt">{{$t('bopcfg.C0000022')}}</c-checkbox>
</c-col>
<!-- S0000020 : 请选择需要生成接口文件的机构 -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Boprcv/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000003 : INI File Name -->
<c-col :span="12">
<c-form-item :label="$t('bopcfg.S0000003')" prop="bopcfg.ininam">
<c-input v-model="model.bopcfg.ininam" maxlength="80" :placeholder="$t('other.please_enter')+$t('bopcfg.S0000003')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBopcfgSav">
{{$t('bopcfg.C0000024')}}
</c-button>
</c-col>
<!-- S0000005 : Input Dir -->
<c-col :span="12">
<c-form-item :label="$t('bopcfg.S0000006')" prop="bopcfg.outdir">
<c-input v-model="model.bopcfg.outdir" maxlength="90" :placeholder="$t('other.please_enter')+$t('bopcfg.S0000006')"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : Output Dir -->
<!-- S0000007 : Financial Code -->
<c-col :span="12">
<c-form-item label="金融机构标识码" prop="bopcfg.fincod">
<c-input v-model="model.bopcfg.fincod" maxlength="12" :placeholder="$t('other.please_enter')+'金融机构标识码'"></c-input>
</c-form-item>
</c-col>
<!-- S0000008 : DBU Commit Row -->
<c-col :span="12">
<c-form-item :label="$t('bopcfg.S0000008')" prop="bopcfg.dbucmtrow">
<c-input v-model="model.bopcfg.dbucmtrow" :placeholder="$t('other.please_enter')+$t('bopcfg.S0000008')"></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : FTP Address -->
<c-col :span="12">
<c-form-item :label="$t('bopcfg.S0000017')" prop="bopcfg.ftpaddr">
<c-input v-model="model.bopcfg.ftpaddr" maxlength="40" :placeholder="$t('other.please_enter')+$t('bopcfg.S0000017')"></c-input>
</c-form-item>
</c-col>
<!-- S0000011 : FTP send Script -->
<c-col :span="12">
<c-form-item label="Dir" prop="bopcfg.ftpsnddir">
<c-input v-model="model.bopcfg.ftpsnddir" maxlength="40" :placeholder="$t('other.please_enter')+'Dir'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('bopcfg.S0000011')" prop="bopcfg.ftpsndscp">
<c-input v-model="model.bopcfg.ftpsndscp" maxlength="40" :placeholder="$t('other.please_enter')+$t('bopcfg.S0000011')"></c-input>
</c-form-item>
</c-col>
<!-- S0000016 : Dir -->
<!-- S0000015 : Dir -->
<c-col :span="12">
<c-form-item label="Dir" prop="bopcfg.ftprcvdir">
<c-input v-model="model.bopcfg.ftprcvdir" maxlength="40" :placeholder="$t('other.please_enter')+'Dir'"></c-input>
</c-form-item>
</c-col>
<!-- S0000012 : FTP receive script -->
<c-col :span="12">
<c-form-item :label="$t('bopcfg.S0000012')" prop="bopcfg.ftprcvscp">
<c-input v-model="model.bopcfg.ftprcvscp" maxlength="40" :placeholder="$t('other.please_enter')+$t('bopcfg.S0000012')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.bopcfg.bchflt">{{$t('bopcfg.C0000009')}}</c-checkbox>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Boprcv/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-form
class="m-table-search-form"
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
>
<!--line1-->
<el-row>
<c-col :span="24" style="">
<c-col :span="20">
<el-form-item label="起止日期" style="width: 100%">
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.begdat"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择From"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.enddat"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择Until"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="4">
<template>
<c-checkbox
@change="open"
v-model="model.allflg"
style="float: right; text-align: center"
>全部内容</c-checkbox
>
</template>
</c-col>
</c-col>
<c-col :span="24" style="text-align: right;height:36.8px">
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSerbut"
>查询</el-button
>
</c-col>
</el-row>
</el-form>
<!-- </template>
</c-list-search> -->
<c-col :span="24" style="">
<div style="border-bottom: 10px solid rgb(232, 232, 232)">
</div>
</c-col>
<el-row>
<c-col :span="24" style="">
<c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
</c-istream-table>
</c-col>
</el-row>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Boprcv/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
searchToggle:false,
stmData: {
columns: [
//{index:3,position:3,width:110,pattern:'date',label:'日期'},
//{index:4,position:4,width:100,pattern:'code',label:'状态',code:this.codes.relstaEN},
'0 1 "文件名称" 800 ',
'1 2 "处理日期" 200',
'2 3 "状态" 200'
],
data: [],
},
};
},
methods: { ...Event ,
},
created: function () {
this.model.bopcfg.indir = "/sstf/data/wsbdata/";
},
};
</script>
<style scoped>
.eibs-tab >>> .m-table-search{
border-bottom: 0;
}
.eibs-tab >>> .m-table-search-operation-top {
width: calc(95.833333% + 9px);
}
</style>
<template>
<div class="eibs-tab">
<el-form
class="m-table-search-form"
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
>
<!--line1-->
<el-row>
<c-col :span="24" style="">
<c-col :span="24">
<el-form-item label="输入目录" prop="bopcfg.indir" style="width: 100%">
<c-input
v-model="model.bopcfg.indir"
maxlength="22"
placeholder="请输入目录"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" style="text-align: right;height:36.8px">
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSerbut"
>查询</el-button
>
<el-button size="small" @click="onRcvbut">收到</el-button>
<el-button type="small" @click="onFtpbut">FTP获取
</el-button>
</c-col>
</el-row>
</el-form>
<!-- </template>
</c-list-search> -->
<c-col :span="24" style="">
<div style="border-bottom: 10px solid rgb(232, 232, 232)">
</div>
</c-col>
<el-row>
<c-col :span="24" style="">
<c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
</c-istream-table>
</c-col>
</el-row>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Boprcv/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
searchToggle:false,
stmData: {
columns: [
//{index:3,position:3,width:110,pattern:'date',label:'日期'},
//{index:4,position:4,width:100,pattern:'code',label:'状态',code:this.codes.relstaEN},
'0 1 "文件名称" 500 ',
'1 2 "文件类型" 700'
],
data: [],
},
};
},
methods: { ...Event ,
},
created: function () {
this.model.bopcfg.indir = "/sstf/data/wsbdata/";
},
};
</script>
<style scoped>
.eibs-tab >>> .m-table-search{
border-bottom: 0;
}
.eibs-tab >>> .m-table-search-operation-top {
width: calc(95.833333% + 9px);
}
</style>
<template>
<div class="eContainer">
<c-page title="申报">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--boprcv PD000000 BOP Message Receive -->
<el-tab-pane label="申报信息回执" name="rcvp">
<c-content>
<m-rcvp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--boprcv PD000006 Error Message -->
<el-tab-pane label="错误信息" name="errp">
<c-content>
<m-errp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--bopcfg PD000000 Configeration
<el-tab-pane label="配置" name="cfgp">
<c-content>
<m-cfgp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>-->
<!--bopcfg PD000019 选择机构
<el-tab-pane label="机构选择" name="bchsel">
<c-content>
<m-bchsel :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>-->
</c-tabs>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Boprcv from "~/model/Boprcv"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Boprcv/Check"
import Default from "~/model/Boprcv/Default"
import Pattern from "~/model/Boprcv/Pattern"
import Rcvp from "./Rcvp"
import Errp from "./Errp"
import Cfgp from "./Cfgp"
import Bchsel from "./Bchsel"
export default {
name: "Boprcv",
components:{
"m-rcvp" : Rcvp,
"m-errp" : Errp,
"m-cfgp" : Cfgp,
"m-bchsel" : Bchsel,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "rcvp",
trnName: "boprcv",
trnType: "",
model: new Boprcv().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入boprcv交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -7,6 +7,7 @@ import Cptati from "./Cptati"
import Cptato from "./Cptato"
import Diasel from "./Diasel"
import Bopsel from "./Bopsel"
import Boprcv from "./Boprcv"
import Ditame from "./Ditame"
import Ditcan from "./Ditcan"
import Ditsel from "./Ditsel"
......@@ -260,6 +261,8 @@ const BusRouter = [
{ path: 'cptato', component: Cptato, name: 'Cptato', meta: { title: '境内外币汇出汇款' } },
{ path: 'diasel', component: Diasel, name: 'Diasel', meta: { title: '备忘录选择交易' } },
{ path: 'bopsel', component: Bopsel, name: 'Bopsel', meta: { title: '待申报列表' } },
{ path: 'boprcv', component: Boprcv, name: 'Boprcv', meta: { title: '申报回执查询' } },
{ path: 'ditame', component: Ditame, name: 'Ditame', meta: { title: '信用证修改' } },
{ path: 'ditcan', component: Ditcan, name: 'Ditcan', meta: { title: '信用证注销' } },
{ path: 'ditsel', component: Ditsel, name: 'Ditsel', meta: { title: '信用证查询' } },
......
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