Commit 1c317379 by zhujiazhan

新增ordrel交易

parent e6e640e0
......@@ -7290,7 +7290,27 @@ const CodeTable = {
{ label: "User Group", value: "USG" },
{ label: "Entity", value: "ETY" },
{ label: "<not specified>", value: "" },
],
flt_ordrel: [
{ label: "All Users", value: "<ALL>" },
{ label: "Selected User", value: "<SELU>" },
],
sta_ordrel: [
{ label: "All", value: "" },
{ label: "Break", value: "BRK" },
{ label: "Correction", value: "COR" },
{ label: "Delete", value: "DEL" },
{ label: "ORD Break", value: "CMB" },
{ label: "ORD Correction", value: "CMR" },
{ label: "ORD Delete", value: "DES" },
{ label: "ORD Waiting", value: "CRE" },
{ label: "Released", value: "REL" },
{ label: "总行退回", value: "CTR" },
],
dflg_ordrel:[
{ label: "All", value: "" },
{ label: "国内业务", value: "1" },
{ label: "国际业务", value: "2" }
]
}
export default CodeTable;
export default {
"PD000042": "Menu",
"filter":"Selection of Users",
"SF000050":"Reference",
"SG000138":"Status",
"S0000073":"Transaction Type",
"S0000074":"Transaction Text",
"S0000075":"Between",
"S0000076":"and",
"SG000156":"flag",
"extkey":"Selected User",
"CG000158":"His.img",
"CF000069":"订单确认",
"CF000070":"Repair",
"CF000071":"Delete",
"CF000077":"ReDo",
"CG000140":"Events",
"CG000152":"His image",
"CG000160":"额度查询",
}
\ No newline at end of file
......@@ -14,7 +14,7 @@ export default {
"CT000034": "额度回退成功!",
"S0000003": "Object Name",
"S0000004": "Object",
"PD000001": "Workflow",
"PD000001": "工作流程",
"CT000026": "Contrary Text",
"CT000025": "Text",
"CT000028": "Error: $1",
......
export default {
"PD000042": "菜单",
"filter":"选择用户",
"SF000050":"Reference",
"SG000138":"状态",
"S0000073":"交易类型",
"S0000074":"交易文本",
"S0000075":"开始时间",
"S0000076":"结束时间",
"SG000156":"信用证标志",
"extkey":"选定用户",
"CG000158":"His.img",
"CF000069":"订单确认",
"CF000070":"退回",
"CF000071":"删除",
"CF000077":"重做",
"CG000140":"事件",
"CG000152":"His image",
"CG000160":"额度查询",
}
\ No newline at end of file
export default {
"CT000018": "User Group",
"CF000033": "Sho&w Set",
"CF000033": "Show & Set",
"CF000041": "",
"CT000009": "Default set",
"CF000042": "&Close",
......
import Utils from "~/utils"
/**
* Ordrel Check规则
*/
let checkObj = {
"inidatfro" :null,
"inidattil" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Ordrel Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ordstm" :Utils.defaultFunction,
"usfmod.usr.extkey" :Utils.defaultFunction,
"atp.cod" :Utils.defaultFunction,
"usfmod.selusg" :Utils.defaultFunction,
"usfmod.selusgset" :Utils.defaultFunction,
"usfmod.flt" :Utils.defaultFunction,
"inidatfro" :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 onSyswrnButshw(){
let rtnmsg = await this.executeRule("syswrn.butshw")
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 onSyswrnButok(){
let rtnmsg = await this.executeRule("syswrn.butok")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSyswrnButcan(){
let rtnmsg = await this.executeRule("syswrn.butcan")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset(formName) {
this.$refs[formName].resetFields();
this.model.infcon.opndatto=""
},
async handleSearch() {
this.stmData.data = [];
let rtnmsg = await this.executeRule("searow")
if(rtnmsg.respCode == SUCCESS)
{
let rows = rtnmsg.data.ordstm.rows;
let rows_new = [];
rows.forEach(function (row) {
row = row.replace('{\'=','').replace('}','');
rows_new.push(row);
});
this.stmData.data = rows_new;
this.model.ordstm = rtnmsg.data.ordstm;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"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"}
],
"atpget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"inidatfro":[
{type: "date", required: false, message: "输入正确的日期"}
],
"inidattil":[
{type: "date", required: false, message: "输入正确的日期"}
],
"atp.cod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"atpget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"atptxt":[
{type: "string", required: false, message: "必输项"},
{max: 37,message:"长度不能超过37"}
],
"ordstm":[
{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"}
],
"syswrn.dsp":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"hmdgfx.rskinf":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Ordrel{
constructor () {
this.data = {
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
},
seltxt:"", // Reference .seltxt
atp:{
cod:"", // Transaction Type .atp.cod
},
atpget:{
sdamod:{
seainf:"", // .atpget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .atpget.sdamod.dadsnd
},
},
atptxt:"", // Transaction Text .atptxt
inidatfro:"", // Date of entry of Transaction .inidatfro
inidattil:"", // Date of entry of Transaction until .inidattil
ordstm:"", // List of ORD records .ordstm
sta:"", // Status .sta
dflg:"", // flag .dflg
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
},
syswrn:{
dsp:"", // Display .syswrn.dsp
},
hmdgfx:{
rskinf:"", // 监控国家信息 .hmdgfx.rskinf
rskexp:"", // 监控说明信息 .hmdgfx.rskexp
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -122,21 +122,21 @@ export default {
],
"sptp.ord.inidattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
{max: 25,message:"长度不能超过25"}
],
"sptp.ord.stadattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
{max: 25,message:"长度不能超过25"}
],
"sptp.ord.tardattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
{max: 25,message:"长度不能超过25"}
],
"sptp.ord.cpldattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
{max: 25,message:"长度不能超过25"}
],
......
......@@ -63,6 +63,8 @@ import Bctame from "./Bctame"
import Infcur from "./Infcur"
import Infbed from "./Infbed"
import Letcan from "./Letcan"
import Ordrel from "./Ordrel"
//光大添加
import Brtlat from "./Brtlat"
import Litopn from "./Litopn"
......@@ -435,6 +437,7 @@ const BusRouter = [
{ path: 'trtcan', component: Trtcan, name: 'Trtcan', meta: { title: '进口融资注销' } },
{ path: 'Dbiusr', component: Dbiusr, name: 'Dbiusr', meta: { title: 'Dbiusr' } },
{ path: 'Dbibch', component: Dbibch, name: 'Dbibch', meta: { title: 'Dbibch' } },
{ path: 'Ordrel', component: Ordrel, name: 'Ordrel', meta: { title: 'Ordrel' } },
]
......
<template>
<div class="eibs-tab">
<!-- SG000162 : 监控国家信息 -->
<c-col :span="12">
<c-form-item :label="$t('ordrel.SG000162')" prop="hmdgfx.rskinf">
<c-input type="textarea" v-model="model.hmdgfx.rskinf" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+$t('ordrel.SG000162')" ></c-input>
</c-form-item>
</c-col>
<!-- SG000163 : 监控说明信息 -->
<c-col :span="12">
<el-form-item :label="$t('ordrel.SG000163')" prop="hmdgfx.rskexp">
<c-select v-model="model.hmdgfx.rskexp" style="width:100%" :placeholder="$t('other.please_enter')+$t('ordrel.SG000163')">
</c-select>
</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/Ordrel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-form
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
>
<c-col :span="24">
<!---------左边------------>
<c-col :span="11">
<c-col :span="24">
<c-col :span="21">
<el-form-item :label="$t('ordrel.filter')" prop="usfmod.flt">
<c-select v-model="model.usfmod.flt" style="width:100%" :placeholder="$t('other.please_enter')+ $t('ordrel.filter')" :code="codes.flt_ordrel">
</c-select>
</el-form-item>
</c-col>
<c-col :span="3">
<c-button size="small" type="primary" @click="onUsfmodShwflt">
{{$t('usfmod.CF000033')}}
</c-button>
</c-col>
</c-col>
<c-col :span="24" v-if="model.usfmod.flt ==='<SELU>'">
<c-form-item :label="$t('ordrel.extkey')" prop="usfmod.usr.extkey">
<c-input v-model="model.usfmod.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('ordrel.extkey')"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<!-- S0000075 : Between -->
<c-col :span="12">
<el-form-item :label="$t('ordrel.S0000075')" prop="inidatfro">
<c-date-picker type="date" v-model="model.inidatfro" style="width:100%" :placeholder="$t('other.please_enter')+$t('ordrel.S0000075')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000076 : and -->
<c-col :span="12">
<el-form-item :label="$t('ordrel.S0000076')" prop="inidattil" label-width ="80px">
<c-date-picker type="date" v-model="model.inidattil" style="width:100%" :placeholder="$t('other.please_enter')+$t('ordrel.S0000075')"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<!-- SG000156 : 信用证标志 -->
<c-col :span="24">
<el-form-item :label="$t('ordrel.SG000156')" prop="dflg">
<c-select v-model="model.dflg" style="width:100%" :placeholder="$t('other.please_enter')+$t('ordrel.SG000156')" :code="codes.dflg_ordrel">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!---------右边------------>
<c-col :span="11" :offset="1">
<!-- SF000050 : Reference -->
<c-col :span="24">
<c-form-item :label="$t('ordrel.SF000050')" prop="seltxt">
<c-input v-model="model.seltxt" maxlength="32" :placeholder="$t('other.please_enter')+$t('ordrel.SF000050')"></c-input>
</c-form-item>
</c-col>
<!-- SG000138 : Status -->
<c-col :span="24">
<el-form-item :label="$t('ordrel.SG000138')" prop="sta">
<c-select v-model="model.sta" style="width:100%" :placeholder="$t('other.please_enter')+$t('ordrel.SG000138')" :code="codes.sta_ordrel">
</c-select>
</el-form-item>
</c-col>
<!-- S0000073 : Transaction Type -->
<c-col :span="24">
<c-form-item :label="$t('ordrel.S0000073')" prop="atp.cod">
<c-input v-model="model.atp.cod" maxlength="6" :placeholder="$t('other.please_enter')+$t('ordrel.S0000073')"></c-input>
</c-form-item>
</c-col>
<!-- S0000074 : Transaction Text -->
<c-col :span="24">
<c-form-item :label="$t('ordrel.S0000074')" prop="atptxt">
<c-input v-model="model.atptxt" maxlength="37" :placeholder="$t('other.please_enter')+$t('ordrel.S0000074')" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="24" style="text-align: right; height: 36.8px;padding-right: 75px" >
<el-button icon="el-icon-search" size="small" @click="handleOpen1" >
{{$t('ordrel.CG000160')}}
</el-button>
<el-button type="primary" size="small" @click="handleOpen2" >
复核任务
</el-button>
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="handleSearch"
>查询</el-button>
</c-col>
</el-form>
<!--
<c-col :span="12" v-show="false">
<c-col :span="12">
<span v-text="model.usfmod.labtxt" data-path=".usfmod.labtxt" > </span>
</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="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">
<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="Drag Drop Sender" prop="atpget.sdamod.dadsnd">
<c-input v-model="model.atpget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="atpget.sdamod.seainf">
<c-input v-model="model.atpget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSyswrnButshw">
{{$t('ordrel.CF000159')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="List of ORD records" prop="ordstm">
<c-input v-model="model.ordstm" :placeholder="$t('other.please_enter')+'List of ORD records'"></c-input>
</c-form-item>
</c-col>
</c-col>
-->
<c-col :span="24">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg=true
>
<el-table-column fixed="right" prop="op" label="操作" width="180px">
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons2(scope.row)"
>
工作流程
</c-button>
<c-button
style="margin-left: 2"
size="small"
type="primary"
@click="getButtons(scope.row)"
>
处理
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
<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')"
title="$t('ordrel.CG000158')">
{{$t('ordrel.CG000158')}}
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onButRelrow"
:disabled = this.button
title="$t('ordrel.CF000069')">
{{$t('ordrel.CF000069')}}
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
:disabled = this.button
@click.native="onButReprow"
title="$t('ordrel.CF000070')">
{{$t('ordrel.CF000070')}}
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
:disabled = this.button
@click.native="onButRejrow"
title="$t('ordrel.CF000071')">
{{$t('ordrel.CF000071')}}
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate"
disabled
title="$t('ordrel.CF000077')">
{{$t('ordrel.CF000077')}}
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="showGridPromptDialog('events')"
title="$t('ordrel.CG000140')">
{{$t('ordrel.CG000140')}}
</c-button>
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate"
title="$t('ordrel.CG000152')">
{{$t('ordrel.CG000152')}}
</c-button>
</div>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ordrel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
button:false,
initdialog:false,
stmData: {
columns: [
"1 1 \"TRN\" 200",
"2 2 \"Name\" 150",
{index:3,position:3,width:160,pattern:'code',label:'Status',code:'sptDetSta'},
"4 4 \"Created\" 200",
"5 5 \"For user\" 200",
"6 6 \"Work User\" 200",
],
data: []
}
}
},
methods:{...Event,
async onOperate(){
this.$notify.error({title: '错误',message: '开发中'});
},
async getButtons2(row){
this.$emit("changeTab");
let index = row.IDX+1;
const selIds = [index]; //rowno选中行
const selDst = "ordstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule("ordstm",params);
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
this.model.clmmod.wfestm = rtnmsg.data.clmmod.wfestm;
}
else
{
if(row.TRN){
const items = row.srcStr.split("\t");
this.model.clmmod.wfs.objtyp="ORD";
this.model.clmmod.wfs.objinr=items[0];
this.model.clmmod.wfs.objnam=row.Name;
}
this.$notify.error({title: '错误',message: rtnmsg.respMsg});
}
},
async getButtons(row){
this.index=row['IDX'];
let status = row['Status'];
//控制订单确认按钮是否可用
let buttonflg="";
if(status == "PUR" || status == "CMP"){
buttonflg = "Y";
}else{
buttonflg = "N";
}
if(this.model.ordstm.rows.length == 0 || buttonflg == "N"){
this.button=false
}else{
this.button=true
}
//初始化选中行
const selIds = [row['IDX'] + 1 ]; //rowno选中行
const selDst = "ordstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule("ordstm",params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = true
} else {
this.initdialog = false
}
},
onButRelrow(){
this.$confirm('确定是否要授权此笔交易?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(async () => {//yes的执行在这里写
let index = this.index+1;
const selIds = [index]; //rowno选中行
const selDst = "ordstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule('relrow',params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = false
this.stmData.data = rtnmsg.data.ordstm.rows;
this.model.ordstm = rtnmsg.data.ordstm;
} else {
this.initdialog = false
}
}).catch(() => {//No的功能在这里写
});
},
onButReprow(){
this.$confirm('确定是否要退回此笔交易?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(async () => {//yes的执行在这里写
let index = this.index+1;
const selIds = [index]; //rowno选中行
const selDst = "ordstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule('reprow',params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = false
this.stmData.data = rtnmsg.data.ordstm.rows;
this.model.ordstm = rtnmsg.data.ordstm;
} else {
this.initdialog = false
}
}).catch(() => {//No的功能在这里写
});
},
onButRejrow(){
this.$confirm('确定是否要删除此笔交易?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(async () => {//yes的执行在这里写
let index = this.index+1;
const selIds = [index]; //rowno选中行
const selDst = "ordstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule('rejrow',params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = false
this.stmData.data = rtnmsg.data.ordstm.rows;
this.model.ordstm = rtnmsg.data.ordstm;
} else {
this.initdialog = false
}
}).catch(() => {//No的功能在这里写
});
},
async onButEvents(){
let index = this.index+1;
const selIds = [index]; //rowno选中行
const selDst = "ordstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule('events',params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = false
this.stmData.data = rtnmsg.data.ordstm.rows;
this.model.ordstm = rtnmsg.data.ordstm;
} else {
this.initdialog = false
}
},
handleOpen1(){
window.location.href="#/business/inflsb"
},
handleOpen2(){
window.location.href="#/business/trnrel"
},
},
created:function(){
}
}
</script>
<style>
.m-table-search {
padding: 20px 0px 10px 0px;
}
.el-form-item__label{
text-align: left!important;
}
.el-row > .el-col {
padding-right: 10px!important;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="11">
<c-col :span="24">
<!-- S0000004 : Object -->
<c-col :span="12">
<c-form-item :label="$t('clmmod.S0000004')" 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'" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="12" >
<c-form-item label="" prop="clmmod.wfs.objinr" label-width="5px">
<c-input v-model="model.clmmod.wfs.objinr" maxlength="8" :placeholder="$t('other.please_enter')+$t('clmmod.S0000004')" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="21">
<!-- S0000003 : Object Name -->
<c-form-item :label="$t('clmmod.S0000003')" prop="clmmod.wfs.objnam">
<c-input v-model="model.clmmod.wfs.objnam" maxlength="40" :placeholder="$t('other.please_enter')+$t('clmmod.S0000003')" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="3">
<c-button size="small" type="primary" @click="onClmmodDet">
{{$t('clmmod.CG000002')}}
</c-button>
</c-col>
</c-col>
</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>
-->
</c-col>
<c-col :span="24">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg=true
>
</c-istream-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ordrel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
stmData: {
columns: [
"1 1 \"ID\" 200",
"2 2 \"Service\" 200",
{index:3,position:3,width:160,pattern:'code',label:'Status',code:'sptDetSta'},
"4 4 \"Last Update\" 200",
"5 5 \"Retries\" 200",
"6 6 \"Text\" 200",
"7 7 \"Contrary Text\" 200",
"8 8 \"Target Time\" 200",
],
data: []
}
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Display" prop="syswrn.dsp">
<c-input v-model="model.syswrn.dsp" :placeholder="$t('other.please_enter')+'Display'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSyswrnButok">
{{$t('syswrn.CF000003')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSyswrnButcan">
{{$t('syswrn.CF000004')}}
</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/Ordrel/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">
<!--ordrel PD000042 Menu -->
<el-tab-pane :label="$t('ordrel.PD000042')" name="menu">
<c-content>
<m-menu :model="model" :codes="codes" @changeTab="changeTab"/>
</c-content>
</el-tab-pane>
<!--clmmod PD000001 Workflow -->
<el-tab-pane :label="$t('clmmod.PD000001')" name="ordpwfm">
<m-ordpwfm :model="model" :codes="codes"/>
</el-tab-pane>
<!--syswrn PD000005 Warnings -->
<el-tab-pane :label="$t('syswrn.PD000005')" name="syswrndisplay" v-if="false">
<m-syswrndisplay :model="model" :codes="codes"/>
</el-tab-pane>
<!--ordrel PD000161 监控国家信息 -->
<el-tab-pane :label="$t('ordrel.PD000161')" name="highriskinfo" v-if="false">
<m-highriskinfo :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
></c-grid-ety-prompt-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ordrel from "~/model/Ordrel"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Ordrel/Check"
import Default from "~/model/Ordrel/Default"
import Pattern from "~/model/Ordrel/Pattern"
import Menu from "./Menu"
import Ordpwfm from "./Ordpwfm"
import Syswrndisplay from "./Syswrndisplay"
import Highriskinfo from "./Highriskinfo"
export default {
name: "Ordrel",
components:{
"m-menu" : Menu,
"m-ordpwfm" : Ordpwfm,
"m-syswrndisplay" : Syswrndisplay,
"m-highriskinfo" : Highriskinfo,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "menu",
trnName: "ordrel",
trnType: "",
model: new Ordrel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
},
changeTab(){
this.tabVal="ordpwfm";
}
},
created:async function(){
console.log("进入ordrel交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -156,7 +156,7 @@
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate2('rettocus')"
@click.native="onButpan('rettocus')"
:disabled=this.flag
title="butpan">
退回
......@@ -178,7 +178,7 @@
class="medium_bcs"
@click.native="onOperate('Connect11111')"
title="Connect"
:disabled=this.flag >
disabled=false >
Connect
</c-button>
<c-button
......@@ -188,7 +188,7 @@
class="medium_bcs"
@click.native="onOperate('Infotext11111')"
title="Infotext"
:disabled=this.flag >
disabled=false >
Infotext
</c-button>
<c-button
......@@ -198,15 +198,25 @@
class="medium_bcs"
@click.native="onOperate('inc11111')"
title="Inc"
:disabled=this.flag >
disabled=false >
Show Inc.
</c-button>
<!-- <c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onShow()"
title="Remove"
:disabled=this.flag >
Remove
</c-button> -->
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
@click.native="onShow('Show211111')"
@click.native="onShow()"
title="Show2"
:disabled=this.flag >
Show
......@@ -218,7 +228,7 @@
class="medium_bcs"
@click.native="onOperate('Reject111111')"
title="Reject"
:disabled=this.flag >
disabled=false >
Reject
</c-button>
</div>
......@@ -226,8 +236,8 @@
</div>
</el-dialog>
<m-sptp0 ref="childs" :model="model" :codes="codes"></m-sptp0>
<m-sptp0 ref="childs" :model="model" :codes="codes" @onSptp="onSptpButord"></m-sptp0>
<m-ordp0 ref="childs2" :model="model" :codes="codes"></m-ordp0>
</div>
</template>
<script>
......@@ -236,6 +246,8 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptneg/Event"
import Sptp0 from "./Sptp0"
import Ordp0 from "./Ordp0"
export default {
inject: ['root'],
......@@ -243,6 +255,7 @@ export default {
mixins: [commonProcess],
components:{
"m-sptp0" : Sptp0,
"m-ordp0" : Ordp0,
},
data(){
return {
......@@ -313,7 +326,7 @@ export default {
this.initdialog = false
}
},
onOperate2(vul){
onButpan(){
this.$confirm('Are you sure that you want to return selected items?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
......@@ -324,7 +337,7 @@ export default {
const selIds = [index]; //rowno选中行
const selDst = "sptstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule(vul,params);
let rtnmsg = await this.executeRule('rettocus',params);
if (rtnmsg.respCode == SUCCESS) {
this.initdialog = false
this.stmData.data = rtnmsg.data.sptstm.rows;
......@@ -342,6 +355,9 @@ export default {
this.initdialog = false
this.$refs.childs.initdialog2 = true
},
async onSptpButord(){
this.$refs.childs2.initdialog3 = true
}
},
created:function(){
......
<template>
<el-dialog
:visible.sync="initdialog3"
:title="'Order for Pending Item'"
append-to-body
id="dialog3"
@opened="opened"
>
<div class="eibs-tab">
<c-col :span="24">
<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>
<c-col :span="11">
<c-col :span="24">
<el-form-item label="Order Number" prop="sptp.ord.extkey">
<c-input v-model="model.sptp.ord.extkey" maxlength="32" placeholder="请输入Order Number" disabled></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>
<c-col :span="24">
<el-form-item label="Sector" prop="sptp.ordp0.conarg.sector">
<c-select v-model="model.sptp.ordp0.conarg.sector" style="width:100%" placeholder="请选择Sector" :code="codes.sector" disabled>
</c-select>
</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>
<c-col :span="24">
<el-form-item label="Contract" prop="sptp.ordp0.conarg.selref">
<c-input v-model="model.sptp.ordp0.conarg.selref" maxlength="40" placeholder="请输入Contract" disabled></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>
<c-col :span="24">
<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" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<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 label="Responsible User" prop="sptp.ord.ownusr">
<c-input v-model="model.sptp.ord.ownusr" maxlength="8" placeholder="请输入Responsible User" disabled></c-input>
</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 label="Group" prop="sptp.ord.ownusg" label-width="100px">
<c-select v-model="model.sptp.ord.ownusg" style="width:100%" placeholder="请选择Responsible Group Optional" :code="codes.usgtxt" disabled>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<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 label="Status" prop="sptp.ord.sta">
<c-select v-model="model.sptp.ord.sta" style="width:100%" placeholder="请选择Status" :code="codes.sptDetSta" disabled>
</c-select>
</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 label="Last Update" prop="sptp.ord.stadattim" label-width="100px">
<c-input v-model="model.sptp.ord.stadattim" placeholder="请输入Timestamp of Last Status Update" disabled></c-input>
</el-form-item>
</c-col>
</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>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<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" disabled></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>
<c-col :span="24">
<el-form-item label="Ident No." prop="sptp.ord.inr">
<c-input v-model="model.sptp.ord.inr" maxlength="8" placeholder="请输入Internal Unique ID of Transaction" disabled></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>
<c-col :span="24">
<el-form-item label="" prop="sptp.ordp0.conarg.selnam">
<c-input v-model="model.sptp.ordp0.conarg.selnam" maxlength="40" placeholder="请输入name of selected contract" disabled></c-input>
</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>
<c-col :span="24">
<el-form-item label="Name" prop="sptp.ordp0.pta.nam">
<c-input v-model="model.sptp.ordp0.pta.nam" maxlength="40" placeholder="请输入Externally Visible Name of Address" disabled></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>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="Created" prop="sptp.ord.inidattim">
<c-input v-model="model.sptp.ord.inidattim" placeholder="请输入Group" disabled></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 :span="10">
<span v-text="model.sptp.ordp0.orddur" data-path=".sptp.ordp0.orddur" disabled> </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>
<c-col :span="24">
<c-col :span="14">
<el-form-item label="Target" prop="sptp.ord.tardattim">
<c-input v-model="model.sptp.ord.tardattim" placeholder="请输入Target for Completion" disabled></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>
<c-col :span="10">
<el-form-item label="Completion" prop="sptp.ord.cpldattim">
<c-input v-model="model.sptp.ord.cpldattim" placeholder="请输入Timestamp of Completion" disabled></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>
<c-col :span="24">
<c-col :span="12">
<c-button size="small" type="primary" @click="onOrdp0Butore">
<c-button size="small" type="primary"
@click="showGridPromptDialog('ordp0.butore')"
>
Events
</c-button>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.sptp.ord.chkflg">Order OK</c-checkbox>
<c-col :span="12" label-width="5px">
<c-checkbox v-model="model.sptp.ord.chkflg" disabled>Order OK</c-checkbox>
</c-col>
</c-col>
<c-col :span="12">
<c-col :span="24">
<br>
</c-col>
<c-col :span="24">
<br>
</c-col>
<c-col :span="24">
<c-col :span="18">
<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>
<c-input type="textarea" v-model="model.sptp.ord.inftxt" maxlength="65" show-word-limit placeholder="请输入Infotext" rows="5" disabled></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-col :span="6" :offset="-1">
<el-form-item label="" prop="sptp.ord.infdsp" label-width="5px">
<c-select v-model="model.sptp.ord.infdsp" style="width:100%" placeholder="请选择Infotext" :code="codes.infdsp" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOrdp0Butsmh">
<c-button size="small" type="primary" @click="onOrdp0Butsmh" disabled>
Show &Message
</c-button>
</c-col>
</c-col>
<c-col :span="12" v-show="false">
<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" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12" v-show="false">
<el-form-item label="" prop="sptp.ordp0.recget.sdamod.seainf">
<c-input v-model="model.sptp.ordp0.recget.sdamod.seainf" placeholder="请输入" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api"
......@@ -152,15 +170,35 @@ export default {
mixins: [commonProcess],
data(){
return {
initdialog3:false,
}
},
mounted() {
this.trnName = "sptneg";
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule("sptp.butord");
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
}
})
})
},
methods:{...Event,
opened() {
this.$emit("childmethods");
},
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
#dialog3 .el-dialog{
width: 80%;
height: 80%;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="11">
<c-col :span="12">
<el-form-item label="Table Used to Store Associated Object" prop="clmmod.wfs.objtyp">
<c-input v-model="model.clmmod.wfs.objtyp" maxlength="6" placeholder="请输入Table Used to Store Associated Object"></c-input>
<el-form-item label="Object" prop="clmmod.wfs.objtyp" label-width="40px">
<c-input v-model="model.clmmod.wfs.objtyp" maxlength="6" placeholder="请输入Table Used to Store Associated Object" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Object" prop="clmmod.wfs.objinr">
<c-input v-model="model.clmmod.wfs.objinr" maxlength="8" placeholder="请输入Object"></c-input>
<el-form-item label="" prop="clmmod.wfs.objinr" label-width="5px">
<c-input v-model="model.clmmod.wfs.objinr" maxlength="8" placeholder="请输入Object" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Readable Object Identification" prop="clmmod.wfs.objnam">
<c-input v-model="model.clmmod.wfs.objnam" maxlength="40" placeholder="请输入External Readable Object Identification"></c-input>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="20">
<el-form-item label="Object Name" prop="clmmod.wfs.objnam">
<c-input v-model="model.clmmod.wfs.objnam" maxlength="40" placeholder="请输入External Readable Object Identification" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onClmmodDet">
<c-col :span="4">
<c-button size="small" type="primary" @click="onClmmodDet" label-width="5px">
&Details
</c-button>
</c-col>
</c-col>
</c-col>
<c-istream-table
:list="stmData.data"
:columns="stmData.columns">
</c-istream-table>
<!--
<c-col :span="12">
<el-form-item label="WFEs for transaction for display" prop="clmmod.wfestm">
<c-input v-model="model.clmmod.wfestm" placeholder="请输入WFEs for transaction for display"></c-input>
</el-form-item>
</c-col> -->
</c-col>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api"
......@@ -44,10 +63,21 @@ export default {
mixins: [commonProcess],
data(){
return {
stmData: {
columns: [
'4 1 "ID" 150',
'5 2 "Service" 200',
'6 3 "Status" 150',
'8 4 "Last Update" 200',
'14 5 "Retries" 200',
'3 6 "Text" 300',
],
data: [],
},
}
},
methods:{...Event},
methods:{...Event,
},
created:function(){
}
......
......@@ -2,10 +2,9 @@
<el-dialog
:visible.sync="initdialog2"
:title="'操作列表'"
:title="'Details of Pending Item'"
append-to-body
id="dialog2"
style="height:80%,width:80%"
@opened="opened"
>
<div class="eibs-tab">
......@@ -149,7 +148,6 @@
</c-col>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api"
......@@ -158,9 +156,10 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptneg/Event"
import Sptneg from "~/model/Sptneg"
export default {
inject: ['root'],
props:["model","codes","row"],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
......@@ -184,6 +183,9 @@ export default {
opened() {
this.$emit("childmethods");
},
async onSptpButord(){
this.$emit("onSptp");
}
},
created:function(){
......
......@@ -10,62 +10,10 @@
</c-content>
</el-tab-pane>
<el-tab-pane label="PD000001" name="ordpwfm">
<el-tab-pane label="Workflow" name="ordpwfm">
<m-ordpwfm :model="model" :codes="codes"/>
</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>
<!--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>
......@@ -89,16 +37,6 @@ 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 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"
......@@ -106,16 +44,6 @@ import Ordpwfm from "./Ordpwfm"
export default {
name: "Sptneg",
components:{
"m-prtswtr" : Prtswtr,
"m-prtswtrp" : Prtswtrp,
"m-prtswtp" : Prtswtp,
"m-xmldoc" : Xmldoc,
"m-ordp0" : Ordp0,
"m-prtpan" : Prtpan,
"m-prtp" : Prtp,
"m-cmt100pyl" : Cmt100pyl,
"m-fmtpyl" : Fmtpyl,
"m-cipspan" : Cipspan,
"m-menu" : Menu,
"m-ordpwfm" : Ordpwfm,
},
......
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
:title="'操作列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
......@@ -53,6 +53,15 @@ export default {
ownref: {
required: true,
},
row: {
required: true,
},
trnCode: {
required: true,
},
model:{
required: true,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
......@@ -64,9 +73,19 @@ export default {
methods: {
//各入口按钮请求
async onRelease(){
console.log("onRelease:"+this.ownref)
this.model.sptstm = this.row;
this.trnName = this.trnCode;
const selIds = [1]; //rowno选中行
const selDst = "sptstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule('relrow',params);
if (rtnmsg.respCode == SUCCESS) {
this.$emit("onChoose");
} else {
//this.$notify.error({ title: "错误", message: "服务请求失败!" });
this.$emit("onChoose");
}
let rtnmsg = await this.executeRule(`sptrel.relrow`);
},
async onRepair(){
......
......@@ -450,7 +450,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="alert(scope.row['Reference'])"
@click="display('00002140')"
>
详情
</c-button>
......
......@@ -188,6 +188,7 @@ export default {
{ inifrm: "mgrtsk", ininam: "Mgrtsk", pntmiu: "14" },
{ inifrm: "sptrel", ininam: "sptrel", pntmiu: "14" },
{ inifrm: "sptneg", ininam: "sptneg", pntmiu: "14" },
{ inifrm: "ordrel", ininam: "ordrel", pntmiu: "14" },
......
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