Commit 36a828e1 by 李少勇

batdis 交易原型开发

parent 7907f771
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.crdgrp, this.buildPtspta);
return {
rec: {
objtyp: "BAT",
},
cbsMap: {
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
}
}
\ No newline at end of file
export default {
}
\ No newline at end of file
export default class Batdis {
constructor() {
this.data = {
batgrp: {
dot: {
valdat: "", // 起息日 .batgrp.dot.valdat
cur: "", // 币种 .batgrp.dot.cur
amt: "", // 金额 .batgrp.dot.amt
ownref: "", // 业务参考号 .batgrp.dot.ownref
othref: "", // 相关参考号 .batgrp.dot.othref
sta: "", // 状态 .batgrp.dot.sta
offsta: "", // 勾销标志 .batgrp.dot.offsta
actbic: "", // 账户行BIC .batgrp.dot.actbic
recsta: "", // 记帐状态 .batgrp.dot.recsta
dcflg: "", // 收支 .batgrp.dot.dcflg
inf: "", // 详细信息 .batgrp.dot.inf
},
dotlst: [], // .batgrp.dotlst
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ==================左边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="起息日" prop="batgrp.dot.valdat">
<c-date-picker disabled type="date" v-model="model.batgrp.dot.valdat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24" class="custom-box-wrap">
<el-form-item label="币种及金额" prop="batgrp.dot.cur">
<c-select-cur v-model="model.batgrp.dot.cur" style="width: 115px" dbCode="curtxt" placeholder="请选择">
</c-select-cur>
</el-form-item>
<div class="box-3">
<el-form-item label-width="5px" prop="batgrp.dot.amt">
<c-input-currency v-model="model.batgrp.dot.amt" :currency="model.batgrp.dot.cur" style="width: 100%">
</c-input-currency>
</el-form-item>
</div>
</c-col>
<c-col :span="24">
<el-form-item label="收支" prop="batgrp.dot.dcflg">
<c-input type="text" v-model="model.batgrp.dot.dcflg"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户行BIC" prop="batgrp.dot.actbic">
<c-input type="text" v-model="model.batgrp.dot.actbic"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="详细信息" prop="batgrp.dot.inf">
<c-input type="text" v-model="model.batgrp.dot.inf"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="状态" prop="batgrp.dot.sta">
<c-input type="text" v-model="model.batgrp.dot.sta"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="记帐状态" prop="batgrp.dot.recsta">
<c-input type="text" v-model="model.batgrp.dot.recsta"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="勾销标志" prop="batgrp.dot.offsta">
<c-input type="text" v-model="model.batgrp.dot.offsta"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参考号/前" prop="batgrp.dot.ownref">
<c-input type="text" v-model="model.batgrp.dot.ownref"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参考号/后" prop="batgrp.dot.othref">
<c-input type="text" v-model="model.batgrp.dot.othref"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.batgrp.dotlst"
style="width: 100%"
height="calc(100vh - 480px)"
size="small"
:border="true"
:highlight-current-row="true"
>
<el-table-column prop="rsptim" label="收发日期" width="100">
</el-table-column>
<el-table-column prop="valdat" label="起息日" width="100">
</el-table-column>
<el-table-column prop="ownref" label="参考号/前" width="150">
</el-table-column>
<el-table-column prop="othref" label="参考号/后" width="150">
</el-table-column>
<el-table-column prop="dcflg" label="借贷" width="80">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.dcflg" :code="codes.sdcflg"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="mty" label="报文类型" width="100">
</el-table-column>
<el-table-column prop="cur" label="币种" width="70">
</el-table-column>
<el-table-column prop="amt" label="金额" width="100">
</el-table-column>
<el-table-column prop="lstdat" label="最后处理日期" width="150">
</el-table-column>
<el-table-column prop="sta" label="关联状态" width="100">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.sta" :code="codes.sta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="offsta" label="勾销状态" width="100">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.offsta" :code="codes.offsta"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="recsta" label="记帐状态" width="100">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.recsta" :code="codes.batcharge"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="typ" label="记帐类型" width="120">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.typ" :code="codes.kpatyp"></c-select-value-to-label>
</template>
</el-table-column>
<el-table-column prop="actbic" label="账户行" width="120">
</el-table-column>
<el-table-column prop="revbak" label="收报行" width="120">
</el-table-column>
<el-table-column prop="sedbak" label="发报行" width="120">
</el-table-column>
<el-table-column prop="objtyp" label="类型" width="120">
<template slot-scope="scope">
<c-select-value-to-label v-model="scope.row.objtyp" :code="codes.dottyp"></c-select-value-to-label>
</template>
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" :total="0">
</el-pagination>
</div>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
}
},
methods: {},
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">
<el-tab-pane label="业务信息" name="batdis">
<c-content>
<m-batdis :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 Batdis from "../model"
import MBatdis from "./Batdis"
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check.js";
export default {
name: "Batdis",
components: {
"m-batdis": MBatdis,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "batdis",
trnName: "batdis",
model: new Batdis().data,
rules: Check,
codes: {
sta: CodeTable.sta,
kpatyp: CodeTable.kpatyp,
sdcflg: CodeTable.sdcflg,
dottyp: CodeTable.dottyp,
offsta: CodeTable.offsta,
batcharge: CodeTable.batcharge,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入batdis交易");
let params = {
transName: this.trnName,
qrdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params);
}
}
</script>
<style></style>
......@@ -61,6 +61,7 @@ const BusRouter = [
{ path: 'fxpdtlsel', component: () => import("./Fxpdtlsel/views"), name: 'Fxpdtlsel', meta: { keepAlive: true, title: '境内外币明细查询', modeule: 'frontend' } },
{ path: 'oftdtl', component: () => import("./Oftdtl/views"), name: 'Oftdtl', meta: { keepAlive: true, title: '报文详情展示', modeule: 'frontend' } },
{ path: 'msgpss', component: () => import("./Msgpss/views"), name: 'Msgpss', meta: { keepAlive: true, title: '提前放行', modeule: 'frontend' } },
{ path: 'batdis', component: () => import("./Batdis/views"), name: 'Batdis', meta: { keepAlive: true, title: '展示跳转', modeule: 'frontend' } },
//CIPS未记账记录查询
{ path: 'cpswjz', component: () => import("./Cpswjz/views"), name: 'Cpswjz', meta: { title: 'CIPS未记账记录查询', module: 'frontend', keepAlive: true } },
//汇总查询
......
<template>
<div class="eContainer">
<c-page title="放行主页">
<c-page title="提前放行">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
......
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