Commit e263d491 by jianglong

新增SPTNEG交易转换

parent 784e00c3
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
], ],
"lidgrp.adv.pts.adrblk":[ "lidgrp.adv.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 80,message:"长度不能超过80"} {max: 140,message:"长度不能超过35*4"}
], ],
"lidgrp.adv.dbfadrblkcn":[ "lidgrp.adv.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
......
import Utils from "~/utils"
/**
* Sptneg Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Sptneg Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"usfmod.usr.extkey" :Utils.defaultFunction,
"usfmod.selusg" :Utils.defaultFunction,
"usfmod.selusgset" :Utils.defaultFunction,
"usfmod.flt" :Utils.defaultFunction,
"sptstm" :Utils.defaultFunction,
"chkrim" :Utils.defaultFunction,
"chkaut" :Utils.defaultFunction,
"chkinc" :Utils.defaultFunction,
"chkpen" :Utils.defaultFunction,
"chkcor" :Utils.defaultFunction,
}
//你可以添加自动default处理
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: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"selobj":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"seltxt":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"usfmod.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"usfmod.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"sptstm":[
{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
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
},
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
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- SF000045 : Type of Items -->
<c-col :span="12">
<c-checkbox v-model="model.chkinc">{{$t('sptneg.CF000040')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.chkrim">{{$t('sptneg.CF000035')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.chkpen">{{$t('sptneg.CF000036')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.chkcor">{{$t('sptneg.CF000039')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.chkaut">{{$t('sptneg.CF000067')}}</c-checkbox>
</c-col>
<!-- SF000049 : Reference -->
<c-col :span="12">
<c-form-item :label="$t('sptneg.SF000049')" prop="selobj">
<c-input v-model="model.selobj" maxlength="32" :placeholder="$t('other.please_enter')+$t('sptneg.SF000049')"></c-input>
</c-form-item>
</c-col>
<!-- SF000050 : Name -->
<c-col :span="12">
<c-form-item label="Selection Name" prop="seltxt">
<c-input v-model="model.seltxt" maxlength="32" :placeholder="$t('other.please_enter')+'Selection Name'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.usfmod.usftxt" data-path=".usfmod.usftxt" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Filter" prop="usfmod.flt">
<c-select v-model="model.usfmod.flt" style="width:100%" :placeholder="$t('other.please_enter')+'Filter'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onUsfmodShwflt">
{{$t('usfmod.CF000033')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onNegcnt">
{{$t('sptneg.CG000105')}}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.usfmod.labtxt" data-path=".usfmod.labtxt" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Selected User Group Set" prop="usfmod.selusgset">
<c-select v-model="model.usfmod.selusgset" style="width:100%" :placeholder="$t('other.please_enter')+'Selected User Group Set'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="User ID" prop="usfmod.usr.extkey">
<c-input v-model="model.usfmod.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+'User ID'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Selected User Group" prop="usfmod.selusg">
<c-select v-model="model.usfmod.selusg" style="width:100%" :placeholder="$t('other.please_enter')+'Selected User Group'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Select user branch" prop="usfmod.selusb">
<c-select v-model="model.usfmod.selusb" style="width:100%" :placeholder="$t('other.please_enter')+'Select user branch'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="usfmod.usrget.sdamod.seainf">
<c-input v-model="model.usfmod.usrget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="List of SPT records" prop="sptstm">
<c-input v-model="model.sptstm" :placeholder="$t('other.please_enter')+'List of SPT records'"></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/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>
</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>
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="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"/>
</el-tab-pane>
<!--clmmod PD000001 Workflow -->
<el-tab-pane :label="$t('clmmod.PD000001')" name="ordpwfm">
<m-ordpwfm :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Sptneg from "~/model/Sptneg"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptneg/Check"
import Default from "~/model/Sptneg/Default"
import Pattern from "~/model/Sptneg/Pattern"
import Menu from "./Menu"
import Ordpwfm from "./Ordpwfm"
export default {
name: "Sptneg",
components:{
"m-menu" : Menu,
"m-ordpwfm" : Ordpwfm,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "sptneg",
trnType: "",
model: new Sptneg().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入sptneg交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</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