Commit 674c6477 by jianglong

修改BOPSND

parent 0d4acfe9
import Utils from "~/utils"
/**
* Bopsnd Check规则
*/
let checkObj = {
"bopcfg.outdir" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Bopsnd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"genptybas" :Utils.defaultFunction,
"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 onSndbut(){
let rtnmsg = await this.executeRule("sndbut")
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: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"bopcfg.outdir":[
{type: "string", required: false, message: "必输项"},
{max: 90,message:"长度不能超过90"}
],
"msgstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Bopsnd{
constructor () {
this.data = {
msgstm:"", // Waiting Message .msgstm
bopcfg:{
outdir:"", // Output Dir .bopcfg.outdir
},
genptybas:"", // Generate company Info .genptybas
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<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>
<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>
<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-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>
<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>
<c-col :span="24" style="">
<c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
<el-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot="header">
<c-col :span="11" style="text-align:left"><span>操作</span></c-col>
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template>
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="onBopcfgLogbut(scope.$index,scope.row)">
日志
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</el-row>
</div>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
......@@ -68,39 +61,40 @@ 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 ,
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: [],
},
};
},
created: function () {
this.model.bopcfg.indir = "/sstf/data/wsbdata/";
},
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 {
border-bottom: 0;
}
.eibs-tab >>> .m-table-search-operation-top {
width: calc(95.833333% + 9px);
.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="">
<!-- S0000008 : Output Dir -->
<c-col :span="20">
<c-form-item label="输出目录" prop="bopcfg.outdir">
<c-input v-model="model.bopcfg.outdir" maxlength="90" :placeholder="$t('other.please_enter')+'Output Dir'"></c-input>
</c-form-item>
</c-col>
<c-col :span="4">
<c-checkbox v-model="model.genptybas">生成单位信息</c-checkbox>
</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="onSndbut">生成</el-button>
<el-button type="small" @click="onFtpbut">FTP发送
</el-button>
</c-col>
</el-row>
</el-form>
<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">
<el-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot="header">
<c-col :span="11" style="text-align:left"><span>操作</span></c-col>
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template>
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="onBopcfgLogbut(scope.$index,scope.row)">
日志
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</el-row>
<c-col :span="24" style="text-align: right;height:36.8px position: absolute;
bottom: 0px;
right: 50%;">
<c-button size="small" type="primary" @click="onExtbut">
退出
</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/Bopsnd/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 "申报编号" 150 ',
'1 2 "临时编号" 150',
'2 3 "收付汇日期" 100',
'3 4 "数据类型" 90',
'4 5 "申报类型" 200',
'5 6 "状态" 80',
],
data: [],
},
}
},
methods: {
...Event
},
created: function () {
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-page title="申报">
<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">
<!--bopsnd PD000001 BOP Message Send -->
<el-tab-pane label="报送报文发送" name="sndp">
<c-content>
<m-sndp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bopsnd from "~/model/Bopsnd"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Bopsnd/Check"
import Default from "~/model/Bopsnd/Default"
import Pattern from "~/model/Bopsnd/Pattern"
import Sndp from "./Sndp"
export default {
name: "Bopsnd",
components: {
"m-sndp": Sndp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sndp",
trnName: "bopsnd",
trnType: "",
model: new Bopsnd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created: async function () {
console.log("进入bopsnd交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
} else {
this.$notify.error({
title: '错误',
message: '服务请求失败!'
});
}
}
}
</script>
<style>
</style>
......@@ -8,6 +8,7 @@ import Cptato from "./Cptato"
import Diasel from "./Diasel"
import Bopsel from "./Bopsel"
import Boprcv from "./Boprcv"
import Bopsnd from "./Bopsnd"
import Dbainf from "./Dbainf"
import Dbaadd from "./Dbaadd"
import Dbaame from "./Dbaame"
......@@ -295,6 +296,7 @@ const BusRouter = [
{ 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: 'bopsnd', component: Bopsnd, name: 'Bopsnd', meta: { title: '申报发送查询' } },
{ path: 'dbainf', component: Dbainf, name: 'Dbainf', meta: { title: '涉外收入申报单详情' } },
{ path: 'dbaadd', component: Dbaadd, name: 'Dbaadd', meta: { title: '新增涉外收入申报单' } },
{ path: 'dbaame', component: Dbaame, name: 'Dbaame', 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