Commit 3d57f3c4 by zhujiazhan

Sptrel,sptneg交易增加面板及字段

parent 3fd715f0
import Utils from "~/utils"
/**
* Sptneg Check规则
*/
* Sptneg Check规则
*/
let checkObj = {
"sptp.ord.extkey" :null,
"sptp.ord.inr" :null,
}
for (const key in checkObj) {
......
/**
* Sptneg Default规则
*/
* Sptneg Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
......@@ -11,7 +11,9 @@ export default {
"usfmod.selusgset" :Utils.defaultFunction,
"usfmod.flt" :Utils.defaultFunction,
"sptstm" :Utils.defaultFunction,
"sptp.ord.inr" :Utils.defaultFunction,
"chkrim" :Utils.defaultFunction,
"sptp.ord.extkey" :Utils.defaultFunction,
"chkaut" :Utils.defaultFunction,
"chkinc" :Utils.defaultFunction,
"chkpen" :Utils.defaultFunction,
......
......@@ -2,41 +2,78 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onUsfmodShwflt(){
let rtnmsg = await this.executeRule("usfmod.shwflt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onNegcnt(){
let rtnmsg = await this.executeRule("negcnt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onClmmodDet(){
let rtnmsg = await this.executeRule("clmmod.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSptpButord(){
let rtnmsg = await this.executeRule("sptp.butord")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSptpButcls(){
let rtnmsg = await this.executeRule("sptp.butcls")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOrdp0Butore(){
let rtnmsg = await this.executeRule("ordp0.butore")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOrdp0Butsmh(){
let rtnmsg = await this.executeRule("ordp0.butsmh")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onUsfmodShwflt(){
let rtnmsg = await this.executeRule("usfmod.shwflt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onNegcnt(){
let rtnmsg = await this.executeRule("negcnt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"docimm.ascin":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"docimm.prtswtrpblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"docimm.prtswtpblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"docimm.xmldocblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"spt.objnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"spt.inr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"spt.txt":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"spt.frm":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"spt.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"spt.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"spt.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"spt.dattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"spt.cretrn":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"spt.tardattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"sptp.smh.msgtyp":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"sptp.smh.sndkey":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"sptp.smh.relcur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"sptp.smh.relamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"sptp.ordp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"sptp.ord.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"sptp.ordp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"sptp.ord.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"sptp.ord.inr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"sptp.ordp0.conarg.selref":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"sptp.ordp0.conarg.selnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"sptp.ordp0.pta.ptyextkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"sptp.ordp0.pta.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"sptp.ord.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"sptp.ord.inidattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"sptp.ord.stadattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"sptp.ord.tardattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"sptp.ord.cpldattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"sptp.ord.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"sptp.prtpanblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"sptp.ordp0.prtpanblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"docimm.docbol.prtpblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"sptp.cmt100pylblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"sptp.fmtpylblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"sptp.cipspanblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
......@@ -32,21 +203,4 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"clmmod.wfs.objtyp":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"clmmod.wfs.objinr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"clmmod.wfs.objnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"clmmod.wfestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
}
\ No newline at end of file
......@@ -2,41 +2,104 @@ import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Sptneg{
constructor () {
this.data = {
chkinc:"", // Incoming .chkinc
chkrim:"", // Registered .chkrim
chkpen:"", // Pending .chkpen
chkcor:"", // Correction .chkcor
chkaut:"", // Automatic .chkaut
selobj:"", // Reference .selobj
seltxt:"", // Selection Name .seltxt
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
flt:"", // Filter .usfmod.flt
selusg:"", // Selected User Group .usfmod.selusg
selusgset:"", // Selected User Group Set .usfmod.selusgset
usr:{
extkey:"", // User ID .usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .usfmod.selusb
constructor () {
this.data = {
docimm:{
ascin:"", // Message as stream .docimm.ascin
prtswtrpblk:"", // XMLPanel prtswtrp的内置block .docimm.prtswtrpblk
prtswtpblk:"", // XMLPanel prtswtp的内置block .docimm.prtswtpblk
xmldocblk:"", // XMLPanel xmldoc的内置block .docimm.xmldocblk
docbol:{
prtpblk:"", // XMLPanel prtp的内置block .docimm.docbol.prtpblk
},
},
spt:{
sta:"", // Type .spt.sta
hldflg:"", // Hold Flag .spt.hldflg
objnam:"", // Reference .spt.objnam
inr:"", // Internal Unique ID of Pending Transaction .spt.inr
txt:"", // Name .spt.txt
frm:"", // Transaction .spt.frm
ownusr:"", // Responsible User .spt.ownusr
ownusg:"", // Responsible Group .spt.ownusg
inftxt:"", // Infotext .spt.inftxt
infdsp:"", // Infotext .spt.infdsp
usr:"", // Entered by .spt.usr
dattim:"", // Time of Creation .spt.dattim
cretrn:"", // Creating Transaction ID .spt.cretrn
tardattim:"", // Target for Completion .spt.tardattim
},
sptp:{
smh:{
msgtyp:"", // Message Type .sptp.smh.msgtyp
sndkey:"", // Receiver Key .sptp.smh.sndkey
relcur:"", // Relevant Amount .sptp.smh.relcur
relamt:"", // Relevant Amount Optional .sptp.smh.relamt
},
ordp0:{
orddur:"", // Duration .sptp.ordp0.orddur
recget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .sptp.ordp0.recget.sdamod.dadsnd
seainf:"", // .sptp.ordp0.recget.sdamod.seainf
},
sptstm:"", // List of SPT records .sptstm
clmmod:{
wfs:{
objtyp:"", // Table Used to Store Associated Object .clmmod.wfs.objtyp
objinr:"", // Object .clmmod.wfs.objinr
objnam:"", // External Readable Object Identification .clmmod.wfs.objnam
},
wfestm:"", // WFEs for transaction for display .clmmod.wfestm
},
pageId: "" // ctx的key
}
}
},
conarg:{
sector:"", // Sector .sptp.ordp0.conarg.sector
selref:"", // Contract .sptp.ordp0.conarg.selref
selnam:"", // name of selected contract .sptp.ordp0.conarg.selnam
},
pta:{
ptyextkey:"", // Ordering Party .sptp.ordp0.pta.ptyextkey
nam:"", // Externally Visible Name of Address .sptp.ordp0.pta.nam
},
prtpanblk:"", // XMLPanel prtpan的内置block .sptp.ordp0.prtpanblk
},
ord:{
extkey:"", // Order Number .sptp.ord.extkey
nam:"", // External Readable Identification .sptp.ord.nam
inr:"", // Internal Unique ID of Transaction .sptp.ord.inr
ownusr:"", // Responsible User .sptp.ord.ownusr
ownusg:"", // Responsible Group Optional .sptp.ord.ownusg
sta:"", // Status .sptp.ord.sta
chkflg:"", // Order OK .sptp.ord.chkflg
inftxt:"", // Infotext .sptp.ord.inftxt
infdsp:"", // Infotext .sptp.ord.infdsp
inidattim:"", // Group .sptp.ord.inidattim
stadattim:"", // Timestamp of Last Status Update .sptp.ord.stadattim
cpldattim:"", // Timestamp of Completion .sptp.ord.cpldattim
tardattim:"", // Target for Completion .sptp.ord.tardattim
},
prtpanblk:"", // XMLPanel prtpan的内置block .sptp.prtpanblk
cmt100pylblk:"", // XMLPanel cmt100pyl的内置block .sptp.cmt100pylblk
fmtpylblk:"", // XMLPanel fmtpyl的内置block .sptp.fmtpylblk
cipspanblk:"", // XMLPanel cipspan的内置block .sptp.cipspanblk
},
chkinc:"", // Incoming .chkinc
chkrim:"", // Registered .chkrim
chkpen:"", // Pending .chkpen
chkcor:"", // Correction .chkcor
chkaut:"", // Automatic .chkaut
selobj:"", // Reference .selobj
seltxt:"", // Selection Name .seltxt
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
flt:"", // Filter .usfmod.flt
selusg:"", // Selected User Group .usfmod.selusg
selusgset:"", // Selected User Group Set .usfmod.selusgset
usr:{
extkey:"", // User ID .usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .usfmod.selusb
},
sptstm:"", // List of SPT records .sptstm
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -34,7 +34,7 @@ export default {
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.sptstm.rows;
this.model.sptstm = rtnmsg.data.sptstm;
}
else
{
......@@ -53,6 +53,6 @@ export default {
this.model.usr.extkey = ""
this.model.inidatfro = ""
this.model.inidattil = ""
}
},
}
\ No newline at end of file
......@@ -4,6 +4,10 @@ import Pts from "../Common/Pts"
export default class Sptrel{
constructor () {
this.data = {
selsptinr:"",
sptrel: {
selinr: {},
},
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
......
......@@ -319,14 +319,9 @@
placeholder="请选择报文类型"
:disabled="model.cpdgrp.cbs.nom1.amt === '0.000'"
@change="commonExecuteRule('cpdgrp.rec.swftyp')"
:code=this.swftypOpnp
>
<el-option
v-for="item in codes.swftypOpnp"
:label="item.label"
:value="item.value"
:key="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
......@@ -383,6 +378,7 @@
<c-col :span="24">
<c-col :span="11" v-if="model.cpdgrp.rec.swftyp === '103' || model.cpdgrp.rec.swftyp === '202' || model.cpdgrp.rec.swftyp === '200'">
<!--将Addtional Info面板合并-->
<el-form-item label="汇款人名称" prop="orcnam">
<c-input
v-model="model.orcnam"
......@@ -393,7 +389,8 @@
</el-form-item>
</c-col>
<c-col :span="11" :offset="1" v-if="false">
<!--将MT103面板合并-->
<c-col :span="11" :offset="1" v-if="model.cpdgrp.rec.swftyp === '103'">
<el-form-item label="Remittance Information(Tag 70)" prop="cpdgrp.blk.contag70">
<c-input
type="textarea"
......@@ -1086,6 +1083,14 @@ export default {
{ value: "2", label: "资本" },
{ value: "3", label: "其他" },
],
swftypOpnp: [
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
],
};
},
methods: { ...Event,
......@@ -1114,6 +1119,37 @@ export default {
//return this.model.cpdgrp.pye.pts.extkey == "" || this.model.cpdgrp.rec.ownref != "";
},
},
watch: {
"model.cpdgrp.cbs.nom1.cur":function(){
if(this.model.cpdgrp.cbs.nom1.cur=='CNY'){
this.swftypOpnp = [
{ label: "MT103", value: "103" },
{ label: "MT202 COV", value: "202" },
{ label: "MT202", value: "200" },
{ label: "CMT100", value: "CMT" },
{ label: "Other", value: "OTH" },
{ label: "hvps111", value: "HVP" },
{ label: "hvps112", value: "HVQ" },
{ label: "hvps115", value: "HVR" },
{ label: "PKG001", value: "CMX" },
{ label: "PKG005", value: "CMY" },
{ label: "beps121", value: "BEP" },
{ label: "beps122", value: "BEQ" },
{ label: "beps125", value: "BES" },
{ label: "cips111", value: "CIU" },
{ label: "cips112", value: "CIV" },
{ label: "cips113", value: "CIW" },
]
}else{
this.swftypOpnp = [
{ label: 'MT103', value: '103' },
{ label: 'Mt202 COV', value: '202' },
{ label: 'MT202', value: '200' },
{ label: 'Other', value: 'OTH' },
]
}
},
},
};
</script>
<style>
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="XMLPanel cipspan的内置block" prop="sptp.cipspanblk">
<c-input type="textarea" v-model="model.sptp.cipspanblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel cipspan的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="XMLPanel cmt100pyl的内置block" prop="sptp.cmt100pylblk">
<c-input type="textarea" v-model="model.sptp.cmt100pylblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel cmt100pyl的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="XMLPanel fmtpyl的内置block" prop="sptp.fmtpylblk">
<c-input type="textarea" v-model="model.sptp.fmtpylblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel fmtpyl的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="Drag Drop Sender" prop="sptp.ordp0.recget.sdamod.dadsnd">
<c-input v-model="model.sptp.ordp0.recget.sdamod.dadsnd" placeholder="请输入Drag Drop Sender"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Order Number" prop="sptp.ord.extkey">
<c-input v-model="model.sptp.ord.extkey" maxlength="32" placeholder="请输入Order Number"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="sptp.ordp0.recget.sdamod.seainf">
<c-input v-model="model.sptp.ordp0.recget.sdamod.seainf" placeholder="请输入"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Readable Identification" prop="sptp.ord.nam">
<c-input v-model="model.sptp.ord.nam" maxlength="40" placeholder="请输入External Readable Identification"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Sector" prop="sptp.ordp0.conarg.sector">
<c-select v-model="model.sptp.ordp0.conarg.sector" style="width:100%" placeholder="请选择Sector">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Internal Unique ID of Transaction" prop="sptp.ord.inr">
<c-input v-model="model.sptp.ord.inr" maxlength="8" placeholder="请输入Internal Unique ID of Transaction"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Contract" prop="sptp.ordp0.conarg.selref">
<c-input v-model="model.sptp.ordp0.conarg.selref" maxlength="40" placeholder="请输入Contract"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="name of selected contract" prop="sptp.ordp0.conarg.selnam">
<c-input v-model="model.sptp.ordp0.conarg.selnam" maxlength="40" placeholder="请输入name of selected contract"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Ordering Party" prop="sptp.ordp0.pta.ptyextkey">
<c-input v-model="model.sptp.ordp0.pta.ptyextkey" maxlength="24" placeholder="请输入Ordering Party"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Externally Visible Name of Address" prop="sptp.ordp0.pta.nam">
<c-input v-model="model.sptp.ordp0.pta.nam" maxlength="40" placeholder="请输入Externally Visible Name of Address"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Responsible Group Optional" prop="sptp.ord.ownusg">
<c-select v-model="model.sptp.ord.ownusg" style="width:100%" placeholder="请选择Responsible Group Optional">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Responsible User" prop="sptp.ord.ownusr">
<c-input v-model="model.sptp.ord.ownusr" maxlength="8" placeholder="请输入Responsible User"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Group" prop="sptp.ord.inidattim">
<c-input v-model="model.sptp.ord.inidattim" placeholder="请输入Group"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.sptp.ordp0.orddur" data-path=".sptp.ordp0.orddur" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Status" prop="sptp.ord.sta">
<c-select v-model="model.sptp.ord.sta" style="width:100%" placeholder="请选择Status">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Timestamp of Last Status Update" prop="sptp.ord.stadattim">
<c-input v-model="model.sptp.ord.stadattim" placeholder="请输入Timestamp of Last Status Update"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Target for Completion" prop="sptp.ord.tardattim">
<c-input v-model="model.sptp.ord.tardattim" placeholder="请输入Target for Completion"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Timestamp of Completion" prop="sptp.ord.cpldattim">
<c-input v-model="model.sptp.ord.cpldattim" placeholder="请输入Timestamp of Completion"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOrdp0Butore">
Events
</c-button>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.sptp.ord.chkflg">Order OK</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext" prop="sptp.ord.inftxt">
<c-input type="textarea" v-model="model.sptp.ord.inftxt" maxlength="65" show-word-limit placeholder="请输入Infotext" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext" prop="sptp.ord.infdsp">
<c-select v-model="model.sptp.ord.infdsp" style="width:100%" placeholder="请选择Infotext">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOrdp0Butsmh">
Show &Message
</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/Sptneg/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">
<el-form-item label="XMLPanel prtp的内置block" prop="docimm.docbol.prtpblk">
<c-input type="textarea" v-model="model.docimm.docbol.prtpblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel prtp的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="XMLPanel prtpan的内置block" prop="sptp.ordp0.prtpanblk">
<c-input type="textarea" v-model="model.sptp.ordp0.prtpanblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel prtpan的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="XMLPanel prtswtp的内置block" prop="docimm.prtswtpblk">
<c-input type="textarea" v-model="model.docimm.prtswtpblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel prtswtp的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="Message as stream" prop="docimm.ascin">
<c-input v-model="model.docimm.ascin" placeholder="请输入Message as stream"></c-input>
</el-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/Sptneg/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">
<el-form-item label="XMLPanel prtswtrp的内置block" prop="docimm.prtswtrpblk">
<c-input type="textarea" v-model="model.docimm.prtswtrpblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel prtswtrp的内置block" ></c-input>
</el-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/Sptneg/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">
<el-form-item label="Type" prop="spt.sta">
<c-select v-model="model.spt.sta" style="width:100%" placeholder="请选择Type">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Hold Flag" prop="spt.hldflg">
<c-select v-model="model.spt.hldflg" style="width:100%" placeholder="请选择Hold Flag">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Reference" prop="spt.objnam">
<c-input v-model="model.spt.objnam" maxlength="40" placeholder="请输入Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Internal Unique ID of Pending Transaction" prop="spt.inr">
<c-input v-model="model.spt.inr" maxlength="8" placeholder="请输入Internal Unique ID of Pending Transaction"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name" prop="spt.txt">
<c-input v-model="model.spt.txt" maxlength="40" placeholder="请输入Name"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Transaction " prop="spt.frm">
<c-input v-model="model.spt.frm" maxlength="6" placeholder="请输入Transaction "></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Responsible User " prop="spt.ownusr">
<c-input v-model="model.spt.ownusr" maxlength="8" placeholder="请输入Responsible User "></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Responsible Group" prop="spt.ownusg">
<c-select v-model="model.spt.ownusg" style="width:100%" placeholder="请选择Responsible Group">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext" prop="spt.inftxt">
<c-input type="textarea" v-model="model.spt.inftxt" maxlength="65" show-word-limit placeholder="请输入Infotext" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext" prop="spt.infdsp">
<c-select v-model="model.spt.infdsp" style="width:100%" placeholder="请选择Infotext">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Entered by" prop="spt.usr">
<c-input v-model="model.spt.usr" maxlength="8" placeholder="请输入Entered by"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Time of Creation" prop="spt.dattim">
<c-input v-model="model.spt.dattim" placeholder="请输入Time of Creation"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Creating Transaction ID" prop="spt.cretrn">
<c-input v-model="model.spt.cretrn" maxlength="6" placeholder="请输入Creating Transaction ID"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSptpButord">
Order
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Target for Completion" prop="spt.tardattim">
<c-input v-model="model.spt.tardattim" placeholder="请输入Target for Completion"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Message Type " prop="sptp.smh.msgtyp">
<c-input v-model="model.sptp.smh.msgtyp" maxlength="20" placeholder="请输入Message Type "></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Receiver Key " prop="sptp.smh.sndkey">
<c-input v-model="model.sptp.smh.sndkey" maxlength="50" placeholder="请输入Receiver Key "></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Relevant Amount" prop="sptp.smh.relcur">
<c-input v-model="model.sptp.smh.relcur" maxlength="3" placeholder="请输入Relevant Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Relevant Amount Optional" prop="sptp.smh.relamt">
<c-input v-model="model.sptp.smh.relamt" placeholder="请输入Relevant Amount Optional"></c-input>
</el-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/Sptneg/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000004 : Object -->
<c-col :span="12">
<c-form-item label="Table Used to Store Associated Object" prop="clmmod.wfs.objtyp">
<c-input v-model="model.clmmod.wfs.objtyp" maxlength="6" :placeholder="$t('other.please_enter')+'Table Used to Store Associated Object'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('clmmod.S0000004')" prop="clmmod.wfs.objinr">
<c-input v-model="model.clmmod.wfs.objinr" maxlength="8" :placeholder="$t('other.please_enter')+$t('clmmod.S0000004')"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : Object Name -->
<c-col :span="12">
<c-form-item label="External Readable Object Identification" prop="clmmod.wfs.objnam">
<c-input v-model="model.clmmod.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-button size="small" type="primary" @click="onClmmodDet">
{{$t('clmmod.CG000002')}}
<c-button size="small" type="primary" @click="onSptpButcls">
&Close
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="WFEs for transaction for display" prop="clmmod.wfestm">
<c-input v-model="model.clmmod.wfestm" :placeholder="$t('other.please_enter')+'WFEs for transaction for display'"></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="XMLPanel xmldoc的内置block" prop="docimm.xmldocblk">
<c-input type="textarea" v-model="model.docimm.xmldocblk" maxlength="200" show-word-limit placeholder="请输入XMLPanel xmldoc的内置block" ></c-input>
</el-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/Sptneg/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
......@@ -2,16 +2,89 @@
<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">
<!--sptneg PD000042 Menu -->
<el-tab-pane :label="$t('sptneg.PD000042')" name="menu">
<m-menu :model="model" :codes="codes"/>
<!--PD000042 -->
<el-tab-pane label="Menu" name="menu">
<c-content>
<m-menu :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000049 -->
<el-tab-pane label="PD000049" name="prtswtr">
<m-prtswtr :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000062 -->
<el-tab-pane label="PD000062" name="prtswtrp">
<m-prtswtrp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000060 -->
<el-tab-pane label="PD000060" name="prtswtp">
<m-prtswtp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000061 -->
<el-tab-pane label="PD000061" name="xmldoc">
<m-xmldoc :model="model" :codes="codes"/>
</el-tab-pane>
<!--clmmod PD000001 Workflow -->
<el-tab-pane :label="$t('clmmod.PD000001')" name="ordpwfm">
<m-ordpwfm :model="model" :codes="codes"/>
<!--PD000001 -->
<el-tab-pane label="PD000001" name="sptp0">
<m-sptp0 :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000029 -->
<el-tab-pane label="PD000029" name="sptpopup">
<m-sptpopup :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000029 -->
<el-tab-pane label="PD000029" name="ordp0">
<m-ordp0 :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000015 -->
<el-tab-pane label="PD000015" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="PD000000" name="prtp">
<m-prtp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000212 -->
<el-tab-pane label="PD000212" name="cmt100pyl">
<m-cmt100pyl :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000250 -->
<el-tab-pane label="PD000250" name="fmtpyl">
<m-fmtpyl :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000314 -->
<el-tab-pane label="PD000314" name="cipspan">
<m-cipspan :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
     
</c-grid-ety-prompt-dialog>
</div>
</template>
<script>
......@@ -22,15 +95,37 @@ import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptneg/Check"
import Default from "~/model/Sptneg/Default"
import Pattern from "~/model/Sptneg/Pattern"
import Prtswtr from "./Prtswtr"
import Prtswtrp from "./Prtswtrp"
import Prtswtp from "./Prtswtp"
import Xmldoc from "./Xmldoc"
import Sptp0 from "./Sptp0"
import Sptpopup from "./Sptpopup"
import Ordp0 from "./Ordp0"
import Prtpan from "./Prtpan"
import Prtp from "./Prtp"
import Cmt100pyl from "./Cmt100pyl"
import Fmtpyl from "./Fmtpyl"
import Cipspan from "./Cipspan"
import Menu from "./Menu"
import Ordpwfm from "./Ordpwfm"
export default {
name: "Sptneg",
components:{
"m-prtswtr" : Prtswtr,
"m-prtswtrp" : Prtswtrp,
"m-prtswtp" : Prtswtp,
"m-xmldoc" : Xmldoc,
"m-sptp0" : Sptp0,
"m-sptpopup" : Sptpopup,
"m-ordp0" : Ordp0,
"m-prtpan" : Prtpan,
"m-prtp" : Prtp,
"m-cmt100pyl" : Cmt100pyl,
"m-fmtpyl" : Fmtpyl,
"m-cipspan" : Cipspan,
"m-menu" : Menu,
"m-ordpwfm" : Ordpwfm,
},
provide() {
return {
......@@ -40,15 +135,15 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
tabVal: "utlp",
trnName: "sptneg",
trnType: "",
model: new Sptneg().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
},
......
......@@ -156,7 +156,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Entered by" label-width="20%" prop="usr.extkey">
<el-form-item label="Entered by" prop="usr.extkey">
<c-input
v-model="model.usr.extkey"
maxlength="8"
......@@ -178,8 +178,8 @@
</el-form-item>
</c-col>
<c-col :span="12" :offset="1">
<el-form-item label="and" prop="inidattil" label-width="20%" >
<c-col :span="12">
<el-form-item label="and" prop="inidattil" >
<c-date-picker
type="date"
v-model="model.inidattil"
......@@ -447,7 +447,7 @@
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot-scope="scope">
<c-button
style="margin-left: -7"
style="margin-left: 0"
size="small"
type="primary"
@click="alert(scope.row['Reference'])"
......@@ -455,10 +455,10 @@
详情
</c-button>
<c-button
style="margin-left: 10"
style="margin-left: 2"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
@click="getButtons(scope.row)"
>
处理
</c-button>
......@@ -466,7 +466,50 @@
</el-table-column>
</c-istream-table>
</c-col>
<m-busbtn ref="childs" :ownref="ownref" >11</m-busbtn>
<el-dialog
:visible.sync="initdialog"
:title="'操作列表'"
append-to-body
>
<div class="m-list-btns">
<div class="busnavbar">
<div class="busnavbar-items">
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate('relrow')"
:disabled=this.flag
title="Release">
Release
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate('reprow')"
:disabled=this.flag
title="Repair">
Repair
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate('rejrow')"
title="Reject"
:disabled=this.flag
>
Reject
</c-button>
</div>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -483,6 +526,9 @@ export default {
components: { "m-busbtn": BusNavbar },
data() {
return {
initdialog: false,
flag:true,
index:0,
sta:[
{ label: 'All', value: '' },
{ label: 'Branch Release', value: 'CMC' },
......@@ -492,23 +538,39 @@ export default {
],
stmData: {
columns: [
'5 1 "TRN" ',
'5 1 "TRN" 100',
'6 2:2 "Reference" ',
'7 3:1 "Name" ',
'8 4 "Created" ',
'8 4 "Created" 200',
{index:9,position:5,width:150,pattern:'code',label:'Status',code:'sptrelstatus'},
'4 6:1 "By User" ',
'4 6:1 "By User" 100',
],
data: [],
},
};
},
methods: { ...Event,
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
async getButtons(row){
let status = row['Status'];
if(status == "PUR" || status == "CMP"){
this.flag=false;
}
this.index=row['IDX'];
this.initdialog = true
},
//各入口按钮请求
async onOperate(vul){
let index = this.index+1;
const selIds = [index]; //rowno选中行
const selDst = "sptstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule(vul,params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = false
} else {
this.initdialog = false
}
},
},
created: function () {},
......
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