Commit 99ba861c by zenghuan

待记账记录处理

parent dd895564
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
},
async handleReset() {
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
this.multipleSelection = val;
}
},
};
import Utils from "~/utils"
/**
* Batchg Check规则
*/
let checkObj = {
"batp.refback" :null,
"batp.ptpmod.pty.extkey" :null,
"batp.ref" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Batchg Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onPtpmodSel(){
let rtnmsg = await this.executeRule("ptpmod.sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSel(){
let rtnmsg = await this.executeRule("sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onReset(){
let rtnmsg = await this.executeRule("reset")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBatpJmpbat(){
let rtnmsg = await this.executeRule("batp.jmpbat")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBatpAllcck(){
let rtnmsg = await this.executeRule("batp.allcck")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBatpClrchk(){
let rtnmsg = await this.executeRule("batp.clrchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"batp.dat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"batp.datd":[
{type: "date", required: false, message: "输入正确的日期"}
],
"batp.ptpmod.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"batp.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"batp.amtd":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"batp.ref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"batp.refback":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"batp.inf":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item :label="$t('batp.LT000004')" prop="batp.dat">
<c-date-picker type="date" v-model="model.batp.dat" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000004')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000004 : 起息日起始 -->
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.batgrp.dotlst"
style="width: 100%"
>
<el-table-column
prop="chk"
label="选中"
sortable
width="40">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日"
sortable
width="100">
</el-table-column>
<el-table-column
prop="actbic"
label="账户行"
sortable
width="120">
</el-table-column>
<el-table-column
prop="dcflg"
label="借贷"
sortable
width="60">
<template slot-scope="scope">
<span>{{ this.codes.sdcflg.find(item=>item.value==scope.row.dcflg).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="ownref"
label="参考号/前"
sortable
width="130">
</el-table-column>
<el-table-column
prop="othref"
label="参考号/后"
sortable
width="130">
</el-table-column>
<el-table-column
prop="amt"
label="金额"
sortable
width="140">
</el-table-column>
<el-table-column
prop="cur"
label="币种"
sortable
width="60">
</el-table-column>
<el-table-column
prop="sta"
label="关联状态"
sortable
width="100">
<template slot-scope="scope">
<span>{{ this.codes.sta.find(item=>item.value==scope.row.sta).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="offsta"
label="勾销状态"
sortable
width="100">
<template slot-scope="scope">
<span>{{ this.codes.offsta.find(item=>item.value==scope.row.offsta).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="recsta"
label="记账状态"
sortable
width="100">
<template slot-scope="scope">
<span>{{ this.codes.batcharge.find(item=>item.value==scope.row.recsta).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="typ"
label="记账类型"
sortable
width="130">
<template slot-scope="scope">
<span>{{ this.codes.kpatyp.find(item=>item.value==scope.row.typ).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="lstdat"
label="最后处理时间"
sortable
width="100">
</el-table-column>
<el-table-column
prop="inf"
label="详细信息"
sortable
width="300">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="BIC 码" prop="msgtyp" style="width: 100%">
<c-select v-model="model.batp.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起息日" prop="rcvdatsta" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.batp.dat" style="width: 100%"></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.batp.datd" style="width: 100%"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="借 贷" prop="subtype" style="width: 100%">
<c-select v-model="model.batp.dc" style="width:100%" placeholder="请选择借贷">
<el-option
v-for="item in codes.sdcflg"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="币 种" prop="sndbak" style="width: 100%">
<c-input v-model="model.batp.cur" maxlength="40" placeholder="请输入发报行BIC">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额下限" prop="revbak" style="width: 100%">
<c-input v-model="model.batp.amt" maxlength="40" placeholder="请输入收报行BIC">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额上限" prop="actbic" style="width: 100%">
<c-input v-model="model.batp.amtd" maxlength="40" placeholder="请输入账户行BIC">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="关联状态" prop="ownref" style="width: 100%">
<c-select v-model="model.batp.sta" style="width:100%" placeholder="请输入关联状态">
<el-option
v-for="item in codes.sta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="勾销状态" prop="othref" style="width: 100%">
<c-select v-model="model.batp.offsta" style="width:100%" placeholder="请输入关联状态">
<el-option
v-for="item in codes.offsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="记帐状态" prop="cur" style="width: 100%">
<c-select v-model="model.batp.offsta" style="width:100%" placeholder="选择记帐状态">
<el-option
v-for="item in codes.offsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="参考号/前" prop="act" style="width: 100%">
<c-input v-model="model.batp.ref" maxlength="16" placeholder="请输入参考号/前"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="参考号/后" prop="dtlchg" style="width: 100%">
<c-input v-model="model.batp.refback" maxlength="16" placeholder="请输入参考号/后"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="详 情" prop="sta" style="width: 100%">
<c-input v-model="model.batp.inf" style="width: 100%" placeholder="请输入详情"/>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
</c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary" >{{ $t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }}
</c-button>
</el-col>
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="待记账记录处理" name="sb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column
prop="rsptim"
label="收发时间"
sortable
width="120">
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="1">
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</div>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('batp.LT000005')" prop="batp.datd">
<c-date-picker type="date" v-model="model.batp.datd" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000005')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000005 : 起息日截止 -->
<c-col :span="12">
<c-form-item :label="$t('batp.LT000624')" prop="batp.ptpmod.pty.extkey">
<c-input v-model="model.batp.ptpmod.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('batp.LT000624')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onPtpmodSel">
{{$t('ptpmod.BT000071')}}
</c-button>
</c-col>
<!-- LT000624 : BIC 码 -->
<c-col :span="12">
<el-form-item :label="$t('batp.LT000625')" prop="batp.dc">
<c-select v-model="model.batp.dc" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000625')">
<el-option
v-for="item in codes.sdcflg"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000625 : 借 贷 -->
<c-col :span="12">
<el-form-item :label="$t('batp.LT000008')" prop="batp.cur">
<c-select v-model="model.batp.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000008')">
</c-select>
</el-form-item>
</c-col>
<!-- LT000008 : 币 种 -->
<c-col :span="12">
<c-form-item :label="$t('batp.LT000197')" prop="batp.amt">
<c-input v-model="model.batp.amt" :placeholder="$t('other.please_enter')+$t('batp.LT000197')"></c-input>
</c-form-item>
</c-col>
<!-- LT000197 : 金额下限 -->
<c-col :span="12">
<c-form-item :label="$t('batp.LT000198')" prop="batp.amtd">
<c-input v-model="model.batp.amtd" :placeholder="$t('other.please_enter')+$t('batp.LT000198')"></c-input>
</c-form-item>
</c-col>
<!-- LT000198 : 金额上限 -->
<c-col :span="12">
<el-form-item :label="$t('batp.LT000192')" prop="batp.sta">
<c-select v-model="model.batp.sta" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000192')">
<el-option
v-for="item in codes.sta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000192 : 关联状态 -->
<c-col :span="12">
<el-form-item :label="$t('batp.LT000193')" prop="batp.offsta">
<c-select v-model="model.batp.offsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000193')">
<el-option
v-for="item in codes.offsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000193 : 勾销状态 -->
<c-col :span="12">
<el-form-item :label="$t('batp.LT000356')" prop="batp.recsta">
<c-select v-model="model.batp.recsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('batp.LT000356')">
<el-option
v-for="item in codes.batcharge"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000356 : 记帐状态 -->
<c-col :span="12">
<c-form-item :label="$t('batp.LT000195')" prop="batp.ref">
<c-input v-model="model.batp.ref" maxlength="16" :placeholder="$t('other.please_enter')+$t('batp.LT000195')"></c-input>
</c-form-item>
</c-col>
<!-- LT000195 : 参考号/前 -->
<c-col :span="12">
<c-form-item :label="$t('batp.LT000196')" prop="batp.refback">
<c-input v-model="model.batp.refback" maxlength="16" :placeholder="$t('other.please_enter')+$t('batp.LT000196')"></c-input>
</c-form-item>
</c-col>
<!-- LT000196 : 参考号/后 -->
<c-col :span="12">
<c-form-item :label="$t('batp.LT000622')" prop="batp.inf">
<c-input v-model="model.batp.inf" maxlength="25" :placeholder="$t('other.please_enter')+$t('batp.LT000622')"></c-input>
</c-form-item>
</c-col>
<!-- LT000622 : 详 情 -->
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSel">
{{$t('mtabut.BT000022')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onReset">
{{$t('mtabut.BT000023')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBatpJmpbat">
{{$t('batp.BT000009')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBatpAllcck">
{{$t('batp.BT000613')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBatpClrchk">
{{$t('batp.BT000614')}}
</c-button>
</c-col>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
import event from "../event";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeTab: 'sb',
load: false,
subtypCodes: [],
multipleSelection:[],
stmData: {
columns: [
{
label: "选中",
prop: "chk",
width: "180px"
},
{
label: "起息日",
prop: "valdat",
width: "180px"
},
{
label: "账户行",
prop: "actbic",
width: "120px"
},
{
label: "借贷",
prop: "dcflg",
width: "120px"
},
{
label: "参考号/前",
prop: "ownref",
width: "120px"
},
{
label: "参考号/后",
prop: "othref",
width: "120px"
},
{
label: "金额",
prop: "amt",
width: "120px"
},
{
label: "币种",
prop: "cur",
width: "120px"
},
{
label: "关联状态",
prop: "sta",
width: "120px"
},
{
label: "勾销状态",
prop: "offsta",
width: "120px"
},
{
label: "记账状态",
prop: "recsta",
width: "120px"
},
{
label: "记账类型",
prop: "typ",
width: "250px"
},
{
label: "最后处理时间",
prop: "lstdat",
width: "150px"
},
{
label: "详细信息",
prop: "inf",
width: "150px"
},
{
label: "收发时间",
prop: "rsptim",
width: "150px"
},
],
data: [],
},
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
computed:{
isFoldDisable: function(){
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
return this.multipleSelection.length == 0;
}
}
},
methods: {},
mounted: function () {
},
};
</script>
<style>
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
height: 100% !important;
}
.eibs-tabs /deep/ {
.m-table-search {
padding: 20px 0px 10px 0px;
}
}
.header-wrap {
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 16px;
color: #000;
}
.close-btn {
padding: 3px;
cursor: pointer;
}
}
.m-list-btns {
height: 300px;
overflow: auto;
}
.medium_bcs {
border-radius: 5px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.pagination-box {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 10px;
background: #fff;
margin-top: 5px;
}
.el-dialog__body {
padding: 10px 5px 50px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</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">
<!--batp PD000000 批量记账主面板 -->
<el-tab-pane :label="$t('batp.PD000000')" name="batmainp">
<m-batmainp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-batmainp :model="model" :codes="codes" ref="batmainp"/>
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Batchg from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Batmainp from "./Batmainp"
import CodeTable from "~/config/CodeTable";
import Batchg from "../model";
import event from "../event"
import Batmainp from "./Batmainp.vue"
export default {
name: "Batchg",
components:{
"m-batmainp" : Batmainp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "batmainp",
trnName: "batchg",
trnType: "",
model: new Batchg().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
sta:CodeTable.sta,
kpatyp:CodeTable.kpatyp,
sdcflg:CodeTable.sdcflg,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入batchg交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
name: "Batchg",
components:{
"m-batmainp" : Batmainp,
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
provide() {
return {
root: this
}
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "batmainp",
trnName: "batchg",
model: new Batchg().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style>
<style scoped>
</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