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> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<c-col :span="12"> <!-- 持续展示区 -->
<el-form-item :label="$t('batp.LT000004')" prop="batp.dat"> <template v-slot="searchSlot">
<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-row>
</el-form-item> <c-col :span="24">
</c-col> <c-col :span="8">
<!-- LT000004 : 起息日起始 --> <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-col :span="24"> </c-select>
<div class="e-table-wrapper"> </el-form-item>
<el-table </c-col>
:data="model.batgrp.dotlst" <c-col :span="8">
style="width: 100%" <el-form-item label="起息日" prop="rcvdatsta" style="width: 100%">
> <c-col :span="11">
<el-table-column <c-date-picker type="date" v-model="model.batp.dat" style="width: 100%"></c-date-picker>
prop="chk" </c-col>
label="选中" <c-col :span="2" style="text-align: center">
sortable <label style="display: inline-block; width: 100%">-</label>
width="40"> </c-col>
</el-table-column> <c-col :span="11">
<el-table-column <c-date-picker type="date" v-model="model.batp.datd" style="width: 100%"></c-date-picker>
prop="valdat" </c-col>
label="起息日" </el-form-item>
sortable </c-col>
width="100"> <c-col :span="8">
</el-table-column> <el-form-item label="借 贷" prop="subtype" style="width: 100%">
<el-table-column <c-select v-model="model.batp.dc" style="width:100%" placeholder="请选择借贷">
prop="actbic" <el-option
label="账户行" v-for="item in codes.sdcflg"
sortable :key="item.value"
width="120"> :label="item.label"
</el-table-column> :value="item.value">
<el-table-column </el-option>
prop="dcflg" </c-select>
label="借贷" </el-form-item>
sortable </c-col>
width="60"> </c-col>
<template slot-scope="scope"> </el-row>
<span>{{ this.codes.sdcflg.find(item=>item.value==scope.row.dcflg).label }}</span> <!-- 可控展示区 -->
</template> <el-row v-show="searchSlot.searchToggle">
</el-table-column> <c-col :span="24">
<el-table-column <c-col :span="8">
prop="ownref" <el-form-item label="币 种" prop="sndbak" style="width: 100%">
label="参考号/前" <c-input v-model="model.batp.cur" maxlength="40" placeholder="请输入发报行BIC">
sortable </c-input>
width="130"> </el-form-item>
</el-table-column> </c-col>
<el-table-column <c-col :span="8">
prop="othref" <el-form-item label="金额下限" prop="revbak" style="width: 100%">
label="参考号/后" <c-input v-model="model.batp.amt" maxlength="40" placeholder="请输入收报行BIC">
sortable </c-input>
width="130"> </el-form-item>
</el-table-column> </c-col>
<el-table-column <c-col :span="8">
prop="amt" <el-form-item label="金额上限" prop="actbic" style="width: 100%">
label="金额" <c-input v-model="model.batp.amtd" maxlength="40" placeholder="请输入账户行BIC">
sortable </c-input>
width="140"> </el-form-item>
</el-table-column> </c-col>
<el-table-column </c-col>
prop="cur" <c-col :span="24">
label="币种" <c-col :span="8">
sortable <el-form-item label="关联状态" prop="ownref" style="width: 100%">
width="60"> <c-select v-model="model.batp.sta" style="width:100%" placeholder="请输入关联状态">
</el-table-column> <el-option
<el-table-column v-for="item in codes.sta"
prop="sta" :key="item.value"
label="关联状态" :label="item.label"
sortable :value="item.value">
width="100"> </el-option>
<template slot-scope="scope"> </c-select>
<span>{{ this.codes.sta.find(item=>item.value==scope.row.sta).label }}</span> </el-form-item>
</template> </c-col>
</el-table-column> <c-col :span="8">
<el-table-column <el-form-item label="勾销状态" prop="othref" style="width: 100%">
prop="offsta" <c-select v-model="model.batp.offsta" style="width:100%" placeholder="请输入关联状态">
label="勾销状态" <el-option
sortable v-for="item in codes.offsta"
width="100"> :key="item.value"
<template slot-scope="scope"> :label="item.label"
<span>{{ this.codes.offsta.find(item=>item.value==scope.row.offsta).label }}</span> :value="item.value">
</template> </el-option>
</el-table-column> </c-select>
<el-table-column </el-form-item>
prop="recsta" </c-col>
label="记账状态" <c-col :span="8">
sortable <el-form-item label="记帐状态" prop="cur" style="width: 100%">
width="100"> <c-select v-model="model.batp.offsta" style="width:100%" placeholder="选择记帐状态">
<template slot-scope="scope"> <el-option
<span>{{ this.codes.batcharge.find(item=>item.value==scope.row.recsta).label }}</span> v-for="item in codes.offsta"
</template> :key="item.value"
</el-table-column> :label="item.label"
<el-table-column :value="item.value">
prop="typ" </el-option>
label="记账类型" </c-select>
sortable </el-form-item>
width="130"> </c-col>
<template slot-scope="scope"> </c-col>
<span>{{ this.codes.kpatyp.find(item=>item.value==scope.row.typ).label }}</span> <c-col :span="24">
</template> <c-col :span="8">
</el-table-column> <el-form-item label="参考号/前" prop="act" style="width: 100%">
<el-table-column <c-input v-model="model.batp.ref" maxlength="16" placeholder="请输入参考号/前"/>
prop="lstdat" </el-form-item>
label="最后处理时间" </c-col>
sortable <c-col :span="8">
width="100"> <el-form-item label="参考号/后" prop="dtlchg" style="width: 100%">
</el-table-column> <c-input v-model="model.batp.refback" maxlength="16" placeholder="请输入参考号/后"/>
<el-table-column </el-form-item>
prop="inf" </c-col>
label="详细信息" <c-col :span="8">
sortable <el-form-item label="详 情" prop="sta" style="width: 100%">
width="300"> <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>
<el-table-column <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
prop="rsptim" :min-width="item.width">
label="收发时间"
sortable
width="120">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
layout="prev, pager, next" :page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
:total="1"> @current-change="handleCurrentChange">
</el-pagination> </el-pagination>
</div> </el-tab-pane>
</c-col> </el-tabs>
</c-col>
<c-col :span="12"> </div>
<el-form-item :label="$t('batp.LT000005')" prop="batp.datd"> </el-col>
<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>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import event from "../event";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data(){ data() {
return { return {
activeTab: 'sb',
} load: false,
}, subtypCodes: [],
methods:{...Event}, multipleSelection:[],
created:function(){ 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> </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> </style>
<template> <template>
<div class="eContainer"> <div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :model="model"
<!--batp PD000000 批量记账主面板 --> :rules="rules"
<el-tab-pane :label="$t('batp.PD000000')" name="batmainp"> ref="modelForm"
<m-batmainp :model="model" :codes="codes"/> label-width="120px"
</el-tab-pane> label-position="right"
</c-tabs> size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-batmainp :model="model" :codes="codes" ref="batmainp"/>
</c-content>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Batchg from "../model" import Batchg from "../model";
import commonProcess from "~/mixin/commonProcess" import event from "../event"
import Check from "../model/Check" import Batmainp from "./Batmainp.vue"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Batmainp from "./Batmainp"
export default { export default {
name: "Batchg", name: "Batchg",
components:{ components:{
"m-batmainp" : Batmainp, "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 处理数据逻辑
} },
else provide() {
{ return {
this.$notify.error({title: '错误',message: '服务请求失败!'}); 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> </script>
<style> <style scoped>
</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