Commit 88d7cefb by zenghuan

已记账记录查询、对账单明细查询、挂账处理

parent 99ba861c
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"
/**
* Oftame Check规则
*/
let checkObj = {
"oftp.ptpmod.pty.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Oftame 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 onOftpSer1(){
let rtnmsg = await this.executeRule("oftp.ser1")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOftpClr(){
let rtnmsg = await this.executeRule("oftp.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOftpCalsub(){
let rtnmsg = await this.executeRule("oftp.calsub")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOftpMankpa(){
let rtnmsg = await this.executeRule("oftp.mankpa")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOftpBatchacc(){
let rtnmsg = await this.executeRule("oftp.batchacc")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOftpPagechk(){
let rtnmsg = await this.executeRule("oftp.pagechk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOftpCalchk(){
let rtnmsg = await this.executeRule("oftp.calchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"oftp.ptpmod.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.valdats":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.valdate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.amtd":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.amtu":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"oftp.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.othref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.inf":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.offdatbeg":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.offdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
"oftp.opusr":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"oftp.offrsn":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.oftgrp.lst"
style="width: 100%"
>
<el-table-column
prop="rsptim"
label="收发日期"
sortable
width="100">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日"
sortable
width="100">
</el-table-column>
<el-table-column
prop="accdat"
label="记账日期"
sortable
width="100">
</el-table-column>
<el-table-column
prop="recsta"
label="记账状态"
sortable
width="120">
<template slot-scope="scope">
<span>{{ this.codes.recsta.find(item=>item.value==scope.row.recsta).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="kpatyp"
label="记账类型"
sortable
width="100">
</el-table-column>
<el-table-column
prop="offdc"
label="收支/借贷"
sortable
width="100">
</el-table-column>
<el-table-column
prop="offamt"
label="金额"
sortable
width="130">
</el-table-column>
<el-table-column
prop="offcur"
label="币种"
sortable
width="60">
</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="inf"
label="详细信息"
sortable
width="300">
</el-table-column>
<el-table-column
prop="oppbic"
label="账户行"
sortable
width="120">
</el-table-column>
<el-table-column
prop="opusr"
label="勾销操作员"
sortable
width="100">
</el-table-column>
<el-table-column
prop="offdat"
label="勾销日期"
sortable
width="100">
</el-table-column>
<el-table-column
prop="offtyp"
label="勾销类型"
sortable
width="100">
<template slot-scope="scope">
<span>{{ this.codes.offtyp.find(item=>item.value==scope.row.offtyp).label }}</span>
</template>
<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.oftp.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.oftp.valdats" 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.oftp.valdate" 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.oftp.dcflg2" 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-select v-model="model.oftp.cur" style="width:100%" placeholder="请选择币种">
<el-option
v-for="item in codes.cur"
: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="revbak" style="width: 100%">
<c-input v-model="model.oftp.amtd" 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.oftp.amtu" 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-input v-model="model.oftp.ownref" maxlength="40" placeholder="请输入20域编号">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="参考号/后" prop="othref" style="width: 100%">
<c-input v-model="model.oftp.othref" maxlength="40" placeholder="请输入21域编号">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="详细信息" prop="cur" style="width: 100%">
<c-input v-model="model.oftp.inf" maxlength="40" style="width: 100%" placeholder="请选择详细信息"/>
</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-select v-model="model.oftp.recsta" style="width:100%" placeholder="请选择记账状态">
<el-option
v-for="item in codes.recsta"
: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="dtlchg" style="width: 100%">
<c-select v-model="model.oftp.kpatyp" style="width:100%" placeholder="请选择记账类型">
</c-select>
</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="offrsn"
label="勾销附言"
sortable
width="200">
<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>
<!-- LT000455 : 账户行BIC -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000455')" prop="oftp.ptpmod.pty.extkey">
<c-input v-model="model.oftp.ptpmod.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('oftp.LT000455')"></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>
<!-- LT000204 : 起息日起始 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000204')" prop="oftp.valdats">
<c-date-picker type="date" v-model="model.oftp.valdats" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000204')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000205 : 起息日截止 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000205')" prop="oftp.valdate">
<c-date-picker type="date" v-model="model.oftp.valdate" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000205')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000460 : 借 贷 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000460')" prop="oftp.dcflg2">
<c-select v-model="model.oftp.dcflg2" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000460')">
<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>
<!-- LT000208 : 币 种 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000208')" prop="oftp.cur">
<c-select v-model="model.oftp.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000208')">
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000209 : 金额下限 -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000209')" prop="oftp.amtd">
<c-input v-model="model.oftp.amtd" :placeholder="$t('other.please_enter')+$t('oftp.LT000209')"></c-input>
</c-form-item>
</c-col>
<!-- LT000210 : 金额上限 -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000210')" prop="oftp.amtu">
<c-input v-model="model.oftp.amtu" :placeholder="$t('other.please_enter')+$t('oftp.LT000210')"></c-input>
</c-form-item>
</c-col>
<!-- LT000206 : 参考号/前 -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000206')" prop="oftp.ownref">
<c-input v-model="model.oftp.ownref" maxlength="20" :placeholder="$t('other.please_enter')+$t('oftp.LT000206')"></c-input>
</c-form-item>
</c-col>
<!-- LT000207 : 参考号/后 -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000207')" prop="oftp.othref">
<c-input v-model="model.oftp.othref" maxlength="20" :placeholder="$t('other.please_enter')+$t('oftp.LT000207')"></c-input>
</c-form-item>
</c-col>
<!-- LT000469 : 详细信息 -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000469')" prop="oftp.inf">
<c-input v-model="model.oftp.inf" maxlength="40" :placeholder="$t('other.please_enter')+$t('oftp.LT000469')"></c-input>
</c-form-item>
</c-col>
<!-- LT000203 : 记账状态 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000203')" prop="oftp.recsta">
<c-select v-model="model.oftp.recsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000203')">
<el-option
v-for="item in codes.recsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000462 : 记账类型 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000462')" prop="oftp.kpatyp">
<c-select v-model="model.oftp.kpatyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000462')">
</c-select>
</el-form-item>
</c-col>
<!-- LT000612 : 勾销类型 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000612')" prop="oftp.offtyp">
<c-select v-model="model.oftp.offtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000612')">
<el-option
v-for="item in codes.offtyp"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000465 : 勾销日期起始 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000465')" prop="oftp.offdatbeg">
<c-date-picker type="date" v-model="model.oftp.offdatbeg" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000465')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000466 : 勾销日期截止 -->
<c-col :span="12">
<el-form-item :label="$t('oftp.LT000466')" prop="oftp.offdatend">
<c-date-picker type="date" v-model="model.oftp.offdatend" style="width:100%" :placeholder="$t('other.please_enter')+$t('oftp.LT000466')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000457 : 勾销操作员 -->
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000457')" prop="oftp.opusr">
<c-input v-model="model.oftp.opusr" maxlength="20" :placeholder="$t('other.please_enter')+$t('oftp.LT000457')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('oftp.LT000459')" prop="oftp.offrsn">
<c-input type="textarea" v-model="model.oftp.offrsn" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+$t('oftp.LT000459')" ></c-input>
</c-form-item>
</el-tab-pane>
</el-tabs>
</c-col>
<!-- LT000459 : 勾销附言 -->
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpSer1">
{{$t('oftp.BT000213')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpClr">
{{$t('oftp.BT000214')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpCalsub">
{{$t('oftp.BT000401')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpMankpa">
{{$t('oftp.BT000414')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpBatchacc">
{{$t('oftp.BT000557')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpPagechk">
{{$t('oftp.BT000583')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpCalchk">
{{$t('oftp.BT000584')}}
</c-button>
</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">
<!--oftp PD000058 人工勾销修改页面oftame -->
<el-tab-pane :label="$t('oftp.PD000058')" name="oftp2">
<m-oftp2 :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-oftp2 :model="model" :codes="codes" ref="oftp2"/>
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Oftame from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Oftp2 from "./Oftp2"
import CodeTable from "~/config/CodeTable";
import Oftame from "../model";
import event from "../event"
import Oftp2 from "./Oftp2.vue"
export default {
name: "Oftame",
components:{
"m-oftp2" : Oftp2,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "oftp2",
trnName: "oftame",
trnType: "",
model: new Oftame().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
offtyp:CodeTable.offtyp,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
recsta:CodeTable.recsta,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
rspsta:CodeTable.rspsta,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
dcflg:CodeTable.dcflg,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入oftame交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
name: "Oftame",
components:{
"m-oftp2" : Oftp2,
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
provide() {
return {
root: this
}
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "oftp2",
trnName: "oftame",
model: new Oftame().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style>
<style scoped>
</style>
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;
}
},
};
<template>
<div class="eibs-tab">
<!-- LT001833 : 相关记录信息展示如下: -->
<!-- LT001897 : 起息日 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.valdat" data-path=".oftgrp.dot.valdat" > </span>
</c-col>
<!-- LT001896 : 账户行 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.actbic" data-path=".oftgrp.dot.actbic" > </span>
</c-col>
<!-- LT001898 : 收发日期 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.rsptim" data-path=".oftgrp.dot.rsptim" > </span>
</c-col>
<!-- LT001893 : 报文类型 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.mty" data-path=".oftgrp.dot.mty" > </span>
</c-col>
<!-- LT001895 : 关联类型 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.objtyp" data-code="dottyp" data-path=".oftgrp.dot.objtyp" > </span>
</c-col>
<!-- LT001885 : 金 额 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.amt" data-path=".oftgrp.dot.amt" > </span>
</c-col>
<!-- LT001887 : 收 支 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.dcflg" data-code="dcflg" data-path=".oftgrp.dot.dcflg" > </span>
</c-col>
<!-- LT001884 : 币 种 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.cur" data-path=".oftgrp.dot.cur" > </span>
</c-col>
<!-- LT001890 : 状 态 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.sta" data-code="sta" data-path=".oftgrp.dot.sta" > </span>
</c-col>
<!-- LT001892 : 勾销标志 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.offsta" data-code="offsta" data-path=".oftgrp.dot.offsta" > </span>
</c-col>
<!-- LT001894 : 记帐状态 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.recsta" data-code="batcharge" data-path=".oftgrp.dot.recsta" > </span>
</c-col>
<!-- LT001888 : 参考号/前 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.ownref" data-path=".oftgrp.dot.ownref" > </span>
</c-col>
<!-- LT001889 : 参考号/后 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.othref" data-path=".oftgrp.dot.othref" > </span>
</c-col>
<!-- LT001899 : 详细信息 -->
<c-col :span="12">
<span v-text="model.oftgrp.dot.inf" data-path=".oftgrp.dot.inf" > </span>
</c-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.oftgrp.dotlst"
style="width: 100%"
>
<el-table-column
prop="valdat"
label="起息日"
sortable
width="120">
</el-table-column>
<el-table-column
prop="dcflg"
label="借贷"
sortable
width="50">
<template slot-scope="scope">
<span>{{ this.codes.dcflg.find(item=>item.value==scope.row.dcflg).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="ownref"
label="参考号/前"
sortable
width="140">
</el-table-column>
<el-table-column
prop="othref"
label="参考号/后"
sortable
width="140">
</el-table-column>
<el-table-column
prop="sta"
label="关联状态"
sortable
width="110">
<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="typ"
label="记账类型"
sortable
width="100">
<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="offsta"
label="勾销状态"
sortable
width="110">
<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="130">
<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="mty"
label="报文类型"
sortable
width="100">
</el-table-column>
<el-table-column
prop="amt"
label="金额"
sortable
width="150">
</el-table-column>
<el-table-column
prop="cur"
label="币种"
sortable
width="60">
</el-table-column>
<el-table-column
prop="objtyp"
label="产生类型"
sortable
width="130">
<template slot-scope="scope">
<span>{{ this.codes.dottyp.find(item=>item.value==scope.row.objtyp).label }}</span>
</template>
</el-table-column>
<el-table-column
prop="actbic"
label="账户行"
sortable
width="130">
</el-table-column>
<el-table-column
prop="revbak"
label="收报行"
sortable
width="120">
<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="币种" prop="msgtyp" style="width: 100%">
<c-select v-model="model.oftgrp.dot.cur" style="width: 100%" placeholder="请选择币种" :code="codes.cur">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="金额" prop="rcvdatsta" style="width: 100%">
<c-input v-model="model.oftgrp.dot.amt" maxlength="40" placeholder="请输入金额"/>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" prop="subtype" style="width: 100%">
<c-select v-model="model.oftgrp.dot.mty" style="width: 100%" placeholder="请选择报文类型" :code="codes.mty">
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
</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="sedbak"
label="发报行"
sortable
width="130">
<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>
<!-- LT001960 : 请输入挂账附言: -->
<c-col :span="12">
<c-form-item label="挂账附言" prop="oftp.hngfuyan">
<c-input type="textarea" v-model="model.oftp.hngfuyan" maxlength="66" show-word-limit :placeholder="$t('other.please_enter')+'挂账附言'" ></c-input>
</c-form-item>
</el-tab-pane>
</el-tabs>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSav">
{{$t('mtabut.BT000008')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onPed">
{{$t('mtabut.BT000009')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOftpRtn">
{{$t('oftp.BT001827')}}
</c-button>
</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>
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"
/**
* Smdsel Check规则
*/
let checkObj = {
"smdp.smdsup.ptpmod.pty.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Smdsel 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 onRtn(){
let rtnmsg = await this.executeRule("rtn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmdsupAllchk(){
let rtnmsg = await this.executeRule("smdsup.allchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmdsupOpp(){
let rtnmsg = await this.executeRule("smdsup.opp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmdsupPaglok(){
let rtnmsg = await this.executeRule("smdsup.paglok")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmdsupMsglok(){
let rtnmsg = await this.executeRule("smdsup.msglok")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmdsupSel(){
let rtnmsg = await this.executeRule("smdsup.sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmdsupClr(){
let rtnmsg = await this.executeRule("smdsup.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"smdp.smdsup.ptpmod.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smdp.smdsup.ptpmod.pty.chnnam":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smdp.smdsup.act":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smdp.smdsup.begamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"smdp.smdsup.endamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"smdp.smdsup.ref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smdgrp.smdsub.smd.othref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smdp.smdsup.begrevdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smdp.smdsup.endrevdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smdp.smdsup.begdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smdp.smdsup.enddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smdgrp.smdsub.smd.busflg":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smdp.smdsup.accdatbeg":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smdp.smdsup.accdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smdp.smdsup.inf":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.smdgrp.smdsub.lst"
style="width: 100%"
>
<el-table-column
prop="chk"
label=""
sortable
width="30">
</el-table-column>
<el-table-column
prop="recdat"
label="收报日期"
sortable
width="90">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日"
sortable
width="90">
</el-table-column>
<el-table-column
prop="accdat"
label="记账日期"
sortable
width="90">
</el-table-column>
<el-table-column
prop="chnnam"
label="账户行"
sortable
width="150">
</el-table-column>
<el-table-column
prop="bic"
label="BIC"
sortable
width="90">
</el-table-column>
<el-table-column
prop="act"
label="帐号"
sortable
width="120">
</el-table-column>
<el-table-column
prop="cur"
label="币种"
sortable
width="40">
</el-table-column>
<el-table-column
prop="dcflg"
label="借贷"
sortable
width="40">
</el-table-column>
<el-table-column
prop="amt"
label="金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="busflg"
label="业务标识"
sortable
width="80">
</el-table-column>
<el-table-column
prop="ownref"
label="参考号/前"
sortable
width="140">
</el-table-column>
<el-table-column
prop="othref"
label="参考号/后"
sortable
width="140">
</el-table-column>
<el-table-column
prop="inf"
label="详细信息"
sortable
width="250">
</el-table-column>
<el-table-column
prop="pagnum"
label="所属页码"
sortable
width="65">
</el-table-column>
<el-table-column
prop="smtno"
label="所属单编号"
sortable
width="90">
</el-table-column>
<el-table-column
prop="smtref"
label="对账单参考号"
sortable
width="130">
<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-input v-model="model.smdp.smdsup.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择BIC码" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="帐号" prop="rcvdatsta" style="width: 100%">
<c-input v-model="model.smdp.smdsup.act" style="width: 100%" placeholder="请选择帐号" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="subtype" style="width: 100%">
<el-select v-model="model.rcvp.subtyp" placeholder="请选择报文类型">
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
</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="offsta"
label="勾销状态"
sortable
width="70">
<template slot-scope="scope">
<span>{{ this.codes.offsta.find(item=>item.value==scope.row.offsta).label }}</span>
</template>
<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">
<c-form-item :label="$t('smdsup.LT000038')" prop="smdp.smdsup.ptpmod.pty.extkey">
<c-input v-model="model.smdp.smdsup.ptpmod.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('smdsup.LT000038')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onPtpmodSel">
{{$t('smdsup.BT000040')}}
</c-button>
</c-col>
<!-- LT000038 : BIC 码 -->
<!-- LT000039 : 账户行名称 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000039')" prop="smdp.smdsup.ptpmod.pty.chnnam">
<c-input v-model="model.smdp.smdsup.ptpmod.pty.chnnam" maxlength="100" :placeholder="$t('other.please_enter')+$t('smdsup.LT000039')"></c-input>
</c-form-item>
</c-col>
<!-- LT000135 : 帐 号 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000135')" prop="smdp.smdsup.act">
<c-input v-model="model.smdp.smdsup.act" maxlength="40" :placeholder="$t('other.please_enter')+$t('smdsup.LT000135')"></c-input>
</c-form-item>
</c-col>
<!-- LT000043 : 币 种 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000043')" prop="smdp.smdsup.cur">
<c-select v-model="model.smdp.smdsup.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000043')">
</c-select>
</el-form-item>
</c-col>
<!-- LT000083 : 借贷标识 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000083')" prop="smdp.smdsup.dcflg">
<c-select v-model="model.smdp.smdsup.dcflg" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000083')">
<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>
<!-- LT000016 : 金额下限 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000016')" prop="smdp.smdsup.begamt">
<c-input v-model="model.smdp.smdsup.begamt" :placeholder="$t('other.please_enter')+$t('smdsup.LT000016')"></c-input>
</c-form-item>
</c-col>
<!-- LT000017 : 金额上限 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000017')" prop="smdp.smdsup.endamt">
<c-input v-model="model.smdp.smdsup.endamt" :placeholder="$t('other.please_enter')+$t('smdsup.LT000017')"></c-input>
</c-form-item>
</c-col>
<!-- LT000015 : 参考号/前 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000015')" prop="smdp.smdsup.ref">
<c-input v-model="model.smdp.smdsup.ref" maxlength="16" :placeholder="$t('other.please_enter')+$t('smdsup.LT000015')"></c-input>
</c-form-item>
</c-col>
<!-- LT000033 : 参考号/后 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000033')" prop="smdgrp.smdsub.smd.othref">
<c-input v-model="model.smdgrp.smdsub.smd.othref" maxlength="16" :placeholder="$t('other.please_enter')+$t('smdsup.LT000033')"></c-input>
</c-form-item>
</c-col>
<!-- LT000036 : 起始日期 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000036')" prop="smdp.smdsup.begrevdat">
<c-date-picker type="date" v-model="model.smdp.smdsup.begrevdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000036')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000037 : 截止日期 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000037')" prop="smdp.smdsup.endrevdat">
<c-date-picker type="date" v-model="model.smdp.smdsup.endrevdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000037')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000013 : 起息日起始 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000013')" prop="smdp.smdsup.begdat">
<c-date-picker type="date" v-model="model.smdp.smdsup.begdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000013')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000014 : 起息日截止 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000014')" prop="smdp.smdsup.enddat">
<c-date-picker type="date" v-model="model.smdp.smdsup.enddat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000014')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000034 : 业务标识 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000034')" prop="smdgrp.smdsub.smd.busflg">
<c-input v-model="model.smdgrp.smdsub.smd.busflg" maxlength="4" :placeholder="$t('other.please_enter')+$t('smdsup.LT000034')"></c-input>
</c-form-item>
</c-col>
<!-- LT000084 : 记账日期起始 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000084')" prop="smdp.smdsup.accdatbeg">
<c-date-picker type="date" v-model="model.smdp.smdsup.accdatbeg" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000084')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000085 : 记账日期截止 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000085')" prop="smdp.smdsup.accdatend">
<c-date-picker type="date" v-model="model.smdp.smdsup.accdatend" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000085')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000143 : 勾销状态 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000143')" prop="smdp.smdsup.offsta">
<c-select v-model="model.smdp.smdsup.offsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000143')">
<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>
<!-- LT000160 : 记账类型 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000160')" prop="smdp.smdsup.kpatyp">
<c-select v-model="model.smdp.smdsup.kpatyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000160')">
</c-select>
</el-form-item>
</c-col>
<!-- LT000164 : 记账状态 -->
<c-col :span="12">
<el-form-item :label="$t('smdsup.LT000164')" prop="smdp.smdsup.recsta">
<c-select v-model="model.smdp.smdsup.recsta" style="width:100%" :placeholder="$t('other.please_enter')+$t('smdsup.LT000164')">
<el-option
v-for="item in codes.recsta"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000035 : 详细信息 -->
<c-col :span="12">
<c-form-item :label="$t('smdsup.LT000035')" prop="smdp.smdsup.inf">
<c-input v-model="model.smdp.smdsup.inf" maxlength="20" :placeholder="$t('other.please_enter')+$t('smdsup.LT000035')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onRtn">
{{$t('mtabut.BT000020')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmdsupAllchk">
{{$t('smdsup.BT000090')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmdsupOpp">
{{$t('smdsup.BT000091')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmdsupPaglok">
{{$t('smdsup.BT000077')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmdsupMsglok">
{{$t('smdsup.BT000089')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSmdsupSel">
{{$t('smdsup.BT000020')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmdsupClr">
{{$t('smdsup.BT000022')}}
</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 {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeTab: 'sb',
load: false,
subtypCodes: [],
// isFoldDisable: true,
// isRoutingDisable: true,
multipleSelection:[],
stmData: {
columns: [
{
label: "起息日",
prop: "valdat",
width: "180px"
},
{
label: "20域编号",
prop: "ownref",
width: "180px"
},
{
label: "21域名编号",
prop: "othref",
width: "120px"
},
{
label: "币种",
prop: "cur",
width: "120px"
},
{
label: "金额",
prop: "amt",
width: "120px"
},
{
label: "账号",
prop: "act",
width: "120px"
},
{
label: "费用明细",
prop: "dtlchg",
width: "120px"
},
{
label: "报文类型",
prop: "subtyp",
width: "120px"
},
{
label: "行内系统",
prop: "chnipt",
width: "120px"
},
{
label: "处理状态",
prop: "sta",
width: "120px"
},
{
label: "账户行BIC(53域)",
prop: "actbic",
width: "120px"
},
{
label: "账户行BIC(54域)",
prop: "actbic",
width: "250px"
},
{
label: "发报行BIC",
prop: "sndbic",
width: "150px"
},
{
label: "收报行BIC",
prop: "rcvbic",
width: "150px"
},
{
label: "报文标准",
prop: "msgtyp",
width: "150px"
},
{
label: "GPI标识",
prop: "gpi",
width: "150px"
},
{
label: "子系统",
prop: "",
width: "150px"
},
{
label: "接收时间",
prop: "rcvdattim",
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;
}
},
watch: {
'model.rcvp.msgtyp': {
handler: function (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = '';
const { codes } = this;
if (newTyp == 'txt') {
this.subtypCodes = codes.subtypfps;
} else if (newTyp == 'iso') {
this.subtypCodes = codes.subtypiso;
} else if (newTyp == 'xml') {
this.subtypCodes = codes.subtypcps;
} else {
this.subtypCodes = codes.subtyp1;
}
},
methods:{...Event},
created:function(){
},
deep: true
}
}
},
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>
......@@ -11,7 +11,6 @@
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Smdsel from "../model"
import commonProcess from "~/mixin/commonProcess"
......
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