Commit a86ab6c8 by taojinrui

cptrel交易增加面板

parent e6673c85
...@@ -13,6 +13,7 @@ export default { ...@@ -13,6 +13,7 @@ export default {
"coninf.oitset.oit.inftxt" :Utils.defaultFunction, "coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"coninf.oitset.oit.inflev" :Utils.defaultFunction, "coninf.oitset.oit.inflev" :Utils.defaultFunction,
"trn.relflg" :Utils.defaultFunction, "trn.relflg" :Utils.defaultFunction,
"recpan.glestm" :Utils.defaultFunction,
"trn.ownref" :Utils.defaultFunction, "trn.ownref" :Utils.defaultFunction,
"recpan.atp.cod" :Utils.defaultFunction, "recpan.atp.cod" :Utils.defaultFunction,
"atp.cod" :Utils.defaultFunction, "atp.cod" :Utils.defaultFunction,
......
...@@ -2,7 +2,7 @@ import Api from "~/service/Api" ...@@ -2,7 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onUsfmodShwflt(){ async onUsfmodShwflt(){
let rtnmsg = await this.executeRule("usfmod.shwflt") let rtnmsg = await this.executeRule("usfmod.shwflt")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
...@@ -254,18 +254,29 @@ export default { ...@@ -254,18 +254,29 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onRecpanButprtgle(){
let rtnmsg = await this.executeRule("recpan.butprtgle")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleSearch() { async handleSearch() {
let rtnmsg = await this.executeRule("searow") let rtnmsg = await this.executeRule("searow")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
this.stmData.data = rtnmsg.data.trncorco_trnstm.rows; this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
} }
else else
{ {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async handleReset() { async handleReset() {
......
...@@ -233,4 +233,37 @@ export default { ...@@ -233,4 +233,37 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
], ],
"recpan.glestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recpan.transcode":[
{type: "string", required: false, message: "必输项"},
{max: 5,message:"长度不能超过5"}
],
"recpan.userid":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"recpan.acttyp":[
{type: "string", required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"}
],
"recpan.amt":[
{type: "string", required: false, message: "必输项"},
{max: 10,message:"长度不能超过10"}
],
"recpan.pinno":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"recpan.accno":[
{type: "string", required: false, message: "必输项"},
{max: 19,message:"长度不能超过19"}
],
"recpan.rescode":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "../Common/Pts" import Pts from "../Common/Pts"
import Pub from "../Public"
export default class Cptrel{ export default class Cptrel{
constructor () { constructor () {
...@@ -88,6 +89,14 @@ export default class Cptrel{ ...@@ -88,6 +89,14 @@ export default class Cptrel{
}, },
wfestm:"", // WFEs for transaction for display .recpan.wfestm wfestm:"", // WFEs for transaction for display .recpan.wfestm
trostm:"", // TROs for transaction for display .recpan.trostm trostm:"", // TROs for transaction for display .recpan.trostm
glestm:"", // GLEs for transaction .recpan.glestm
transcode:"", // Transaction Code .recpan.transcode
amt:"", // Amount .recpan.amt
pinno:"", // Pin No .recpan.pinno
userid:"", // UserID .recpan.userid
acttyp:"", // UserID .recpan.acttyp
accno:"", // Pin No. .recpan.accno
rescode:"", // Response Code .recpan.rescode
}, },
trn:{ trn:{
ownref:"", // Reference .trn.ownref ownref:"", // Reference .trn.ownref
...@@ -112,6 +121,7 @@ export default class Cptrel{ ...@@ -112,6 +121,7 @@ export default class Cptrel{
objinr:"", // Object .wfmmod.wfs.objinr objinr:"", // Object .wfmmod.wfs.objinr
}, },
}, },
mtabut: new Pub().data.Mtabut,
coninf:{ coninf:{
oitinf:{ oitinf:{
labinftxt:"", // Label for INFTXT .coninf.oitinf.labinftxt labinftxt:"", // Label for INFTXT .coninf.oitinf.labinftxt
......
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
></c-istream-table>
</c-col>
<c-col :span="24">
<c-row>
<c-col :span="8">
<c-form-item label="Transaction Code" prop="recpan.transcode">
<c-input
v-model="model.recpan.transcode"
maxlength="5"
placeholder=""
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="UserID" prop="recpan.userid">
<c-input
v-model="model.recpan.userid"
maxlength="6"
placeholder=""
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="UserID" prop="recpan.acttyp">
<c-input v-model="model.recpan.acttyp" maxlength="2"></c-input>
</c-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="8">
<c-form-item label="Account Type" prop="recpan.amt">
<c-input v-model="model.recpan.amt"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="Pin No" prop="recpan.pinno">
<c-input v-model="model.recpan.pinno" maxlength="6"></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="Account No." prop="recpan.accno">
<c-input v-model="model.recpan.accno" maxlength="19"></c-input>
</c-form-item>
</c-col>
</c-row>
<c-row>
<c-col :span="8">
<c-form-item label="Response Code" prop="recpan.rescode">
<c-input v-model="model.recpan.rescode" maxlength="40"></c-input>
</c-form-item>
</c-col>
</c-row>
</c-col>
<!--====================原码==================== -->
<!-- <c-col :span="12">
<c-form-item label="GLEs for transaction" prop="recpan.glestm">
<c-input
v-model="model.recpan.glestm"
:placeholder="$t('other.please_enter') + 'GLEs for transaction'"
></c-input>
</c-form-item>
</c-col>
SF000157 : Transaction Code
<c-col :span="12">
<c-form-item :label="$t('trnp.SF000157')" prop="recpan.transcode">
<c-input
v-model="model.recpan.transcode"
maxlength="5"
:placeholder="$t('other.please_enter') + $t('trnp.SF000157')"
></c-input>
</c-form-item>
</c-col>
SF000160 : UserID
<c-col :span="12">
<c-form-item label="UserID" prop="recpan.userid">
<c-input
v-model="model.recpan.userid"
maxlength="6"
:placeholder="$t('other.please_enter') + 'UserID'"
></c-input>
</c-form-item>
</c-col>
SF000161 : Account Type
<c-col :span="12">
<c-form-item :label="$t('trnp.SF000160')" prop="recpan.acttyp">
<c-input
v-model="model.recpan.acttyp"
maxlength="2"
:placeholder="$t('other.please_enter') + $t('trnp.SF000160')"
></c-input>
</c-form-item>
</c-col>
SF000158 : Amount
<c-col :span="12">
<c-form-item :label="$t('trnp.SF000158')" prop="recpan.amt">
<c-input
v-model="model.recpan.amt"
:placeholder="$t('other.please_enter') + $t('trnp.SF000158')"
></c-input>
</c-form-item>
</c-col>
SF000159 : Pin No.
<c-col :span="12">
<c-form-item label="Pin No" prop="recpan.pinno">
<c-input
v-model="model.recpan.pinno"
maxlength="6"
:placeholder="$t('other.please_enter') + 'Pin No'"
></c-input>
</c-form-item>
</c-col>
SF000162 : Account No.
<c-col :span="12">
<c-form-item :label="$t('trnp.SF000159')" prop="recpan.accno">
<c-input
v-model="model.recpan.accno"
maxlength="19"
:placeholder="$t('other.please_enter') + $t('trnp.SF000159')"
></c-input>
</c-form-item>
</c-col>
SF000163 : Response Code
<c-col :span="12">
<c-form-item :label="$t('trnp.SF000163')" prop="recpan.rescode">
<c-input
v-model="model.recpan.rescode"
maxlength="40"
:placeholder="$t('other.please_enter') + $t('trnp.SF000163')"
></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onRecpanButprtgle">
{{ $t("trnp.CG000231") }}
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrel/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
stmData: {
columns: [
'0 1 "Account" 240 ',
'1 2 "Dt/Cr" 150 1 0 1 DBTCDT',
'2 3 "Cur" 137',
'3 4 "Booked Amt" 190 2 8 1 2',
'4 5 "Status" 150 1 0 1 GLE:EXPFLG',
'5 6 "Rate" 155 2 0 1 0',
'6 7 "Client Code" 195',
'15 8 "Income" 180 2 8',
],
data: [],
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- SG000136 : 操作类型描述 --> <c-col :span="24">
<!-- SG000155 : 操作流程 --> <c-istream-table
<!-- SG000137 : TRN---Trn created --> :list="stmData.data"
:columns="stmData.columns"
<c-col :span="12"> ></c-istream-table>
</c-col>
<!-- ==================原码====================== -->
<!-- SG000136 : 操作类型描述 -->
<!-- SG000155 : 操作流程 -->
<!-- SG000137 : TRN---Trn created -->
<!-- <c-col :span="12">
<c-form-item label="stream of ore records" prop="orestr"> <c-form-item label="stream of ore records" prop="orestr">
<c-input v-model="model.orestr" :placeholder="$t('other.please_enter')+'stream of ore records'"></c-input> <c-input v-model="model.orestr" :placeholder="$t('other.please_enter')+'stream of ore records'"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col> -->
<!-- SG000143 : BRK---Break --> <!-- SG000143 : BRK---Break -->
<!-- SG000138 : COR---Correction --> <!-- SG000138 : COR---Correction -->
<!-- SG000139 : DEL---Trn deleted --> <!-- SG000139 : DEL---Trn deleted -->
<!-- SG000140 : REL---Trn released --> <!-- SG000140 : REL---Trn released -->
<!-- SG000142 : INC---Message received --> <!-- SG000142 : INC---Message received -->
<!-- SG000141 : DES---Spt deleted --> <!-- SG000141 : DES---Spt deleted -->
<!-- SG000144 : SPT---Spt Released --> <!-- SG000144 : SPT---Spt Released -->
<!-- SG000145 : ROU---ReRounting --> <!-- SG000145 : ROU---ReRounting -->
<!-- SG000152 : CAN---Order Canceled --> <!-- SG000152 : CAN---Order Canceled -->
<!-- SG000153 : SIG---Signature --> <!-- SG000153 : SIG---Signature -->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrel/Event" import Event from "~/model/Cptrel/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
stmData: {
} columns: [
}, '3 1 "操作类型" 280',
methods:{...Event}, '2 2 "操作柜员" 280',
created:function(){ '4 3 "交易名称" 280',
'0 4 "进入交易时间" 304 20 30 1',
} '1 5 "操作时间" 204 20 30 1',
} ],
data: [],
},
};
},
methods: { ...Event },
created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000194 : Reference --> <c-col :span="24">
<!-- S0000195 : Transaction Key --> <c-col :span="8">
<!-- SF000196 : List of preceding and succeeding transactions with possible dependencies in case of correction / deletion --> <el-form-item label="Reference" prop="">
<c-input v-model="model.trn.ownref"></c-input>
<c-col :span="12"> </el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="">
<c-input v-model="model.trn.objnam"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="Transaction Key">
<c-input v-model="model.trn.inr"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
></c-istream-table>
</c-col>
<!-- ============================原码========================================= -->
<!-- S0000194 : Reference -->
<!-- S0000195 : Transaction Key -->
<!-- SF000196 : List of preceding and succeeding transactions with possible dependencies in case of correction / deletion -->
<!-- <c-col :span="12">
<c-form-item label="TROs for transaction for display" prop="recpan.trostm"> <c-form-item label="TROs for transaction for display" prop="recpan.trostm">
<c-input v-model="model.recpan.trostm" :placeholder="$t('other.please_enter')+'TROs for transaction for display'"></c-input> <c-input v-model="model.recpan.trostm" :placeholder="$t('other.please_enter')+'TROs for transaction for display'"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>-->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrel/Event" import Event from "~/model/Cptrel/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
stmData: {
columns: [
'0 1 "Ident No." 262 ',
'1 2 "TRN" 150',
'2 3 "Entry" 250 20 30 1',
'3 4 "Status" 180 1 0 1 RELSTA',
'4 5 "Own Reference" 230',
'5 6 "Object" 250',
} ],
}, data: [],
methods:{...Event}, },
created:function(){ };
},
} methods: { ...Event },
} created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000016 : Object --> <c-col :span="11">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="Object" prop="">
<c-input v-model="model.wfmmod.wfs.objtyp"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="0">
<c-input v-model="model.wfmmod.wfs.objinr"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Object Name">
<c-input v-model="model.wfmmod.wfs.objnam"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
</c-istream-table>
</c-col>
<!-- =========================原码=============================== -->
<!-- S0000016 : Object
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Table Used to Store Associated Object" prop="wfmmod.wfs.objtyp"> <el-form-item label="Table Used to Store Associated Object" prop="wfmmod.wfs.objtyp">
<c-select v-model="model.wfmmod.wfs.objtyp" style="width:100%" :placeholder="$t('other.please_enter')+'Table Used to Store Associated Object'"> <c-select v-model="model.wfmmod.wfs.objtyp" style="width:100%" :placeholder="$t('other.please_enter')+'Table Used to Store Associated Object'">
...@@ -14,7 +40,7 @@ ...@@ -14,7 +40,7 @@
<c-input v-model="model.wfmmod.wfs.objinr" maxlength="8" :placeholder="$t('other.please_enter')+$t('trnp.S0000016')"></c-input> <c-input v-model="model.wfmmod.wfs.objinr" maxlength="8" :placeholder="$t('other.please_enter')+$t('trnp.S0000016')"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000015 : Object Name --> S0000015 : Object Name
<c-col :span="12"> <c-col :span="12">
<c-form-item label="External Readable Object Identification" prop="wfmmod.wfs.objnam"> <c-form-item label="External Readable Object Identification" prop="wfmmod.wfs.objnam">
...@@ -26,30 +52,39 @@ ...@@ -26,30 +52,39 @@
<c-form-item label="WFEs for transaction for display" prop="recpan.wfestm"> <c-form-item label="WFEs for transaction for display" prop="recpan.wfestm">
<c-input v-model="model.recpan.wfestm" :placeholder="$t('other.please_enter')+'WFEs for transaction for display'"></c-input> <c-input v-model="model.recpan.wfestm" :placeholder="$t('other.please_enter')+'WFEs for transaction for display'"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col> -->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrel/Event" import Event from "~/model/Cptrel/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
stmData: {
} columns: [
}, '1 1 "ID" 150',
methods:{...Event}, '2 2 "Service" 225 1 0:0 1 SRVTXT',
created:function(){ '3 3 "Status" 155 1 0:0 1 WFE:STA',
'4 4 "Last Update" 202',
} '5 5 "Retries" 160 1 0:1',
} '6 6 "Text" 800',
'7 7 "Contrary Text" 800',
'8 8 "Target Time" 186',
],
data: [],
},
};
},
methods: { ...Event },
created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
...@@ -7,6 +7,35 @@ ...@@ -7,6 +7,35 @@
<el-tab-pane label="selection panel" name="inftrnps"> <el-tab-pane label="selection panel" name="inftrnps">
<m-inftrnps :model="model" :codes="codes"/> <m-inftrnps :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!-- 控制展示页面 -->
<el-tab-pane label="Transaction Header" name="trnp0" v-if="true">
<m-trnp0 :model="model" :codes="codes"></m-trnp0>
</el-tab-pane>
<el-tab-pane label="Workflow" name="trnpwfm" v-if="true">
<m-trnpwfm :model="model" :codes="codes"></m-trnpwfm>
</el-tab-pane>
<el-tab-pane label="Interface" name="gltrnps" v-if="true">
<m-gltrnps :model="model" :codes="codes"></m-gltrnps>
</el-tab-pane>
<el-tab-pane label="Complemtion" name="coninfp" v-if="true">
<m-coninfp :model="model" :codes="codes"></m-coninfp>
</el-tab-pane>
<el-tab-pane label="Dependencies" name="trnptro" v-if="true">
<m-trnptro :model="model" :codes="codes"></m-trnptro>
</el-tab-pane>
<el-tab-pane label="传票打印" name="subpena" v-if="true">
<m-subpena :model="model" :codes="codes"></m-subpena>
</el-tab-pane>
<el-tab-pane label="流程记录" name="orerec" v-if="true">
<m-orerec :model="model" :codes="codes"></m-orerec>
</el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
...@@ -19,13 +48,27 @@ import commonProcess from "~/mixin/commonProcess" ...@@ -19,13 +48,27 @@ import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Cptrel/Check" import Check from "~/model/Cptrel/Check"
import Default from "~/model/Cptrel/Default" import Default from "~/model/Cptrel/Default"
import Pattern from "~/model/Cptrel/Pattern" import Pattern from "~/model/Cptrel/Pattern"
import Coninfp from "~/views/Public/Coninfp"
import Inftrnps from "./Inftrnps" import Inftrnps from "./Inftrnps"
import Trnp0 from "./Trnp0"
import Trnpwfm from "./Trnpwfm"
import Trnptro from "./Trnptro"
import Subpena from "./Subpena"
import Orerec from "./Orerec"
import Gltrnps from "./Gltrnps"
export default { export default {
name: "Cptrel", name: "Cptrel",
components:{ components:{
"m-inftrnps" : Inftrnps, "m-inftrnps" : Inftrnps,
"m-trnp0" : Trnp0,
"m-trnpwfm" : Trnpwfm,
"m-trnptro" :Trnptro,
"m-subpena" : Subpena,
"m-orerec" : Orerec,
"m-coninfp": Coninfp,
"m-gltrnps" : Gltrnps
}, },
provide() { provide() {
return { return {
...@@ -42,7 +85,7 @@ export default { ...@@ -42,7 +85,7 @@ export default {
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {...CodeTable
}, },
} }
}, },
......
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