Commit e6673c85 by taojinrui

cptrel交易添加面板

parent ae267e8b
......@@ -43,45 +43,23 @@ export default {
}
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.frmdat;
if (!opndatfrom || opndatfrom == '') {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.tildat;
if (!opndatto || opndatto == '') {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
let rtnmsg = await this.executeRule("serbut")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.cnystm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset() {
this.model.infcon.seaownref = ""
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.searol = "";
this.model.infcon.pty.nam = "";
this.model.infcon.seapty = "";
this.model.infcon.curtxt1 = "";
this.model.infcon.nam = "";
this.model.infcon.seaamtfr = "";
this.model.infcon.seaamtto = "";
this.model.infcon.seasta = "";
this.model.infcon.doctypcod = "";
},
this.model.cnytyp = ""
this.model.ownref = ""
this.model.frmdat = ""
this.model.tildat = ""
this.model.ownextkey = ""
this.stmData.data = ""
}
}
\ No newline at end of file
......@@ -5,8 +5,11 @@ import Utils from "~/utils"
*/
let checkObj = {
"trncorco.inidatfro" :null,
"coninf.conexedat" :null,
"trncorco.inidattil" :null,
"trn.inr" :null,
"ptyextkey" :null,
"trn.inftxt" :null,
}
for (const key in checkObj) {
......
......@@ -6,11 +6,24 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"trn.inr" :Utils.defaultFunction,
"trncorco.trnstm" :Utils.defaultFunction,
"coninf.usr.extkey" :Utils.defaultFunction,
"recpan.usr.extkey" :Utils.defaultFunction,
"coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"coninf.oitset.oit.inflev" :Utils.defaultFunction,
"trn.relflg" :Utils.defaultFunction,
"trn.ownref" :Utils.defaultFunction,
"recpan.atp.cod" :Utils.defaultFunction,
"atp.cod" :Utils.defaultFunction,
"trncorco.usfmod.flt" :Utils.defaultFunction,
"trncorco.usfmod.usr.extkey" :Utils.defaultFunction,
"trncorco.usfmod.selusg" :Utils.defaultFunction,
"trncorco.usfmod.selusgset" :Utils.defaultFunction,
"trn.infdsp" :Utils.defaultFunction,
"trn.inftxt" :Utils.defaultFunction,
"recpan.ackgrp.rec.sndref" :Utils.defaultFunction,
"coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"coninf.oitinf.oit.inflev" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -2,7 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onUsfmodShwflt(){
async onUsfmodShwflt(){
let rtnmsg = await this.executeRule("usfmod.shwflt")
if(rtnmsg.respCode == SUCCESS)
{
......@@ -134,5 +134,141 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanDet(){
let rtnmsg = await this.executeRule("recpan.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSyswrnButshw(){
let rtnmsg = await this.executeRule("syswrn.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanNotmap(){
let rtnmsg = await this.executeRule("recpan.notmap")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanButspt(){
let rtnmsg = await this.executeRule("recpan.butspt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanInc(){
let rtnmsg = await this.executeRule("recpan.inc")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanButord(){
let rtnmsg = await this.executeRule("recpan.butord")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onImgmodImage(){
let rtnmsg = await this.executeRule("imgmod.image")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanIncben(){
let rtnmsg = await this.executeRule("recpan.incben")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInftxtButtxmsel(){
let rtnmsg = await this.executeRule("inftxt.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onImgmodElcimage(){
let rtnmsg = await this.executeRule("imgmod.elcimage")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleSearch() {
let rtnmsg = await this.executeRule("searow")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset() {
}
}
\ No newline at end of file
......@@ -70,4 +70,167 @@ export default {
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trn.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.con":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trn.inr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trn.objnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.atpget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.atp.cod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"recpan.atpget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.atp.cod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"trn.reloricur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trn.reloriamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trn.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"trn.usg":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"trn.relreq":[
{type: "string", required: false, message: "必输项"},
{max: 9,message:"长度不能超过9"}
],
"trn.relres":[
{type: "string", required: false, message: "必输项"},
{max: 9,message:"长度不能超过9"}
],
"trn.cortrninr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"trn.exedat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recpan.cretrs.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.cretrs.dattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"recpan.ackgrp.rec.sndref":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.smhstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trn.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"recpan.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.trsstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"wfmmod.wfs.objinr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"wfmmod.wfs.objnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.wfestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"coninf.conexedat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.trostm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"subp.subpenablk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"orestr":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
}
\ No newline at end of file
......@@ -43,6 +43,99 @@ export default class Cptrel{
amt2:"", // Amount .amt2
ptyextkey:"", // Party extkey .ptyextkey
branch:"", // branch .branch
recpan:{
cpltxt:"", // Completion text .recpan.cpltxt
spt:{
sta:"", // Status .recpan.spt.sta
},
ord:{
sta:"", // Status .recpan.ord.sta
},
recget:{
sdamod:{
seainf:"", // Ident No. .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
atp:{
cod:"", // Transaction ID .recpan.atp.cod
},
atpget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.atpget.sdamod.dadsnd
seainf:"", // Transaction .recpan.atpget.sdamod.seainf
},
},
smhstm:"", // Documents .recpan.smhstm
usr:{
extkey:"", // User ID .recpan.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .recpan.usrget.sdamod.seainf
},
},
trsstm:"", // Signatures .recpan.trsstm
con:"", // Reference .recpan.con
cretrs:{
usr:"", // Entered by .recpan.cretrs.usr
dattim:"", // Timestamp .recpan.cretrs.dattim
},
ackgrp:{
rec:{
sndref:"", // Send to SOP/CASmf reference .recpan.ackgrp.rec.sndref
},
},
wfestm:"", // WFEs for transaction for display .recpan.wfestm
trostm:"", // TROs for transaction for display .recpan.trostm
},
trn:{
ownref:"", // Reference .trn.ownref
inr:"", // Transaction Key .trn.inr
objnam:"", // External Readable Object Identification .trn.objnam
reloricur:"", // Relevant Amount .trn.reloricur
reloriamt:"", // Relevant Amount for Release in Original Currency .trn.reloriamt
relflg:"", // Release Status of Transaction .trn.relflg
usr:"", // Responsible .trn.usr
usg:"", // Responsible Group .trn.usg
relreq:"", // Signatures Required/Obtained .trn.relreq
relres:"", // Applied Signatures .trn.relres
cortrninr:"", // Based on Ident No. .trn.cortrninr
exedat:"", // Execution Date .trn.exedat
inftxt:"", // Infotext .trn.inftxt
infdsp:"", // Infoflag .trn.infdsp
},
wfmmod:{
wfs:{
objnam:"", // External Readable Object Identification .wfmmod.wfs.objnam
objtyp:"", // Table Used to Store Associated Object .wfmmod.wfs.objtyp
objinr:"", // Object .wfmmod.wfs.objinr
},
},
coninf:{
oitinf:{
labinftxt:"", // Label for INFTXT .coninf.oitinf.labinftxt
oit:{
inftxt:"", // Infotext .coninf.oitinf.oit.inftxt
inflev:"", // Infotext Level .coninf.oitinf.oit.inflev
},
},
oitset:{
labinftxt:"", // Label for INFTXT .coninf.oitset.labinftxt
oit:{
inftxt:"", // Infotext .coninf.oitset.oit.inftxt
inflev:"", // Infotext Level .coninf.oitset.oit.inflev
},
},
conexedat:"", // 执行日期 .coninf.conexedat
usr:{
extkey:"", // User ID .coninf.usr.extkey
},
},
subp:{
subpenablk:"", // XMLPanel subpena的内置block .subp.subpenablk
},
orestr:"", // stream of ore records .orestr
pageId: "" // ctx的key
}
}
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<span v-text="model.coninf.oitinf.labinftxt" data-path=".coninf.oitinf.labinftxt" > </span>
</c-col>
<!-- S0000579 : Display Type -->
<c-col :span="12">
<c-form-item label="Infotext" prop="coninf.oitinf.oit.inftxt">
<c-input type="textarea" v-model="model.coninf.oitinf.oit.inftxt" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+'Infotext'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="coninf.oitinf.oit.inflev">
<c-select v-model="model.coninf.oitinf.oit.inflev" style="width:100%" :placeholder="$t('other.please_enter')+'Infotext Level'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.coninf.oitset.labinftxt" data-path=".coninf.oitset.labinftxt" > </span>
</c-col>
<!-- S0000579 : Display Type -->
<c-col :span="12">
<c-form-item label="Infotext" prop="coninf.oitset.oit.inftxt">
<c-input type="textarea" v-model="model.coninf.oitset.oit.inftxt" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+'Infotext'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="coninf.oitset.oit.inflev">
<c-select v-model="model.coninf.oitset.oit.inflev" style="width:100%" :placeholder="$t('other.please_enter')+'Infotext Level'">
</c-select>
</el-form-item>
</c-col>
<!-- SF000019 : 执行日期 -->
<c-col :span="12">
<el-form-item :label="$t('coninf.SF000019')" prop="coninf.conexedat">
<c-date-picker type="date" v-model="model.coninf.conexedat" style="width:100%" :placeholder="$t('other.please_enter')+$t('coninf.SF000019')"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000020 : Send for Release to -->
<c-col :span="12">
<c-form-item label="User ID" prop="coninf.usr.extkey">
<c-input v-model="model.coninf.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+'User ID'"></c-input>
</c-form-item>
</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 {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- SG000136 : 操作类型描述 -->
<!-- SG000155 : 操作流程 -->
<!-- SG000137 : TRN---Trn created -->
<c-col :span="12">
<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-form-item>
</c-col>
<!-- SG000143 : BRK---Break -->
<!-- SG000138 : COR---Correction -->
<!-- SG000139 : DEL---Trn deleted -->
<!-- SG000140 : REL---Trn released -->
<!-- SG000142 : INC---Message received -->
<!-- SG000141 : DES---Spt deleted -->
<!-- SG000144 : SPT---Spt Released -->
<!-- SG000145 : ROU---ReRounting -->
<!-- SG000152 : CAN---Order Canceled -->
<!-- SG000153 : SIG---Signature -->
</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 {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel subpena的内置block" prop="subp.subpenablk">
<c-input type="textarea" v-model="model.subp.subpenablk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel subpena的内置block'" ></c-input>
</c-form-item>
</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 {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- 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-input v-model="model.recpan.trostm" :placeholder="$t('other.please_enter')+'TROs for transaction for display'"></c-input>
</c-form-item>
</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 {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000016 : Object -->
<c-col :span="12">
<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>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('trnp.S0000016')" prop="wfmmod.wfs.objinr">
<c-input v-model="model.wfmmod.wfs.objinr" maxlength="8" :placeholder="$t('other.please_enter')+$t('trnp.S0000016')"></c-input>
</c-form-item>
</c-col>
<!-- S0000015 : Object Name -->
<c-col :span="12">
<c-form-item label="External Readable Object Identification" prop="wfmmod.wfs.objnam">
<c-input v-model="model.wfmmod.wfs.objnam" maxlength="40" :placeholder="$t('other.please_enter')+'External Readable Object Identification'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<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-form-item>
</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 {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<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