Commit b5b93db8 by zhujiazhan

Sptneg交易页面修改

parent 104e3aa6
......@@ -39,7 +39,7 @@ export default {
],
"spt.inftxt":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
......@@ -49,7 +49,7 @@ export default {
],
"spt.dattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
{max: 25,message:"长度不能超过25"}
],
"spt.cretrn":[
{type: "string", required: false, message: "必输项"},
......@@ -58,7 +58,7 @@ export default {
"spt.tardattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
{max: 25,message:"长度不能超过25"}
],
"sptp.smh.msgtyp":[
{type: "string", required: false, message: "必输项"},
......@@ -73,7 +73,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"sptp.smh.relamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -35,7 +35,7 @@
</c-col>
<c-col :span="4">
<c-button size="small" type="primary" @click="onUsfmodShwflt">
Sho&w Set
Show & Set
</c-button>
</c-col>
</c-col>
......@@ -127,6 +127,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row)"
>
详情
</c-button>
......@@ -142,7 +143,6 @@
</el-table-column>
</c-istream-table>
</c-col>
<el-dialog
:visible.sync="initdialog"
:title="'操作列表'"
......@@ -206,7 +206,7 @@
size="medium"
type="primary"
class="medium_bcs"
@click.native="onOperate('Show211111')"
@click.native="onShow('Show211111')"
title="Show2"
:disabled=this.flag >
Show
......@@ -226,6 +226,8 @@
</div>
</el-dialog>
<m-sptp0 ref="childs" :model="model" :codes="codes"></m-sptp0>
</div>
</template>
<script>
......@@ -233,11 +235,15 @@ import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptneg/Event"
import Sptp0 from "./Sptp0"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
components:{
"m-sptp0" : Sptp0,
},
data(){
return {
initdialog: false,
......@@ -306,8 +312,6 @@ export default {
} else {
this.initdialog = false
}
},
onOperate2(vul){
this.$confirm('Are you sure that you want to return selected items?','提示',{
......@@ -333,8 +337,11 @@ export default {
});
}
},
async onShow(row){
this.initdialog = false
this.$refs.childs.initdialog2 = true
},
},
created:function(){
......
<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>
<el-dialog
:visible.sync="initdialog2"
:title="'操作列表'"
append-to-body
id="dialog2"
style="height:80%,width:80%"
@opened="opened"
>
<div class="eibs-tab">
<c-col :span="24">
<!------------------左边------------------>
<c-col :span="11">
<c-col :span="24">
<el-form-item label="Type" prop="spt.sta">
<c-select v-model="model.spt.sta" style="width:100%" placeholder="请选择Type" :code="codes.sptrelstatus" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Reference" prop="spt.objnam">
<c-input v-model="model.spt.objnam" maxlength="40" placeholder="请输入Reference" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Name" prop="spt.txt">
<c-input v-model="model.spt.txt" maxlength="40" placeholder="请输入Name" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------------右边------------------>
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="Status" prop="spt.hldflg">
<c-select v-model="model.spt.hldflg" style="width:100%" placeholder="请选择Hold Flag" :code="codes.hldflg" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Ident No." prop="spt.inr">
<c-input v-model="model.spt.inr" maxlength="8" placeholder="请输入Internal Unique ID of Pending Transaction" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="Transaction " prop="spt.frm">
<c-input v-model="model.spt.frm" maxlength="6" placeholder="请输入Transaction " disabled></c-input>
</el-form-item>
</c-col>
</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 " disabled></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" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="18">
<el-form-item label="Infotext" prop="spt.inftxt">
<c-input type="textarea" v-model="model.spt.inftxt" maxlength="65" show-word-limit placeholder="请输入Infotext" rows="5" disabled ></c-input>
</el-form-item>
</c-col>
<c-col :span="6" :offset="-1">
<el-form-item label="" prop="spt.infdsp" label-width="5px">
<c-select v-model="model.spt.infdsp" placeholder="请选择Infotext" :code="codes.infdsp" disabled>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<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" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="at" prop="spt.dattim" label-width="50px">
<c-input v-model="model.spt.dattim" placeholder="请输入Time of Creation" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<c-col :span="12">
<el-form-item label="in TRN" prop="spt.cretrn">
<c-input v-model="model.spt.cretrn" maxlength="6" placeholder="请输入Creating Transaction ID" disabled></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>
<c-col :span="12">
<c-col :span="12">
<el-form-item label="Target for Completion" prop="" disabled>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="spt.tardattim" label-width="50px">
<c-input v-model="model.spt.tardattim" placeholder="请输入Target for Completion" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="13">
<el-form-item label="Message Type " prop="sptp.smh.msgtyp">
<c-input v-model="model.sptp.smh.msgtyp" maxlength="20" placeholder="请输入Message Type " disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="15">
<el-form-item label="Receiver Key " prop="sptp.smh.sndkey">
<c-input v-model="model.sptp.smh.sndkey" maxlength="50" placeholder="请输入Receiver Key " disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="13">
<c-col :span="13">
<el-form-item label="Relevant Amount" prop="sptp.smh.relcur">
<c-input v-model="model.sptp.smh.relcur" maxlength="3" placeholder="请输入Relevant Amount" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="" prop="sptp.smh.relamt" label-width="5px">
<c-input v-model="model.sptp.smh.relamt" placeholder="请输入Relevant Amount Optional" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptneg/Event"
import Sptneg from "~/model/Sptneg"
export default {
inject: ['root'],
props:["model","codes"],
props:["model","codes","row"],
mixins: [commonProcess],
data(){
return {
initdialog2:false,
}
},
methods:{...Event},
mounted() {
this.trnName = "sptneg";
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule("butspt");
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
}
})
})
},
methods:{...Event,
opened() {
this.$emit("childmethods");
},
},
created:function(){
}
}
</script>
<style>
#dialog2 .el-dialog{
width: 80%;
height: 80%;
}
</style>
......@@ -10,10 +10,10 @@
</c-content>
</el-tab-pane>
<!--PD000049 -->
<!--PD000049
<el-tab-pane label="PD000049" name="prtswtr">
<m-prtswtr :model="model" :codes="codes"/>
</el-tab-pane>
</el-tab-pane>-->
<!--PD000062 -->
<el-tab-pane label="PD000062" name="prtswtrp">
......@@ -30,16 +30,6 @@
<m-xmldoc :model="model" :codes="codes"/>
</el-tab-pane>
<!--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"/>
......@@ -99,8 +89,6 @@ 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"
......@@ -117,8 +105,6 @@ export default {
"m-prtswtrp" : Prtswtrp,
"m-prtswtp" : Prtswtp,
"m-xmldoc" : Xmldoc,
"m-sptp0" : Sptp0,
"m-sptpopup" : Sptpopup,
"m-ordp0" : Ordp0,
"m-prtpan" : Prtpan,
"m-prtp" : Prtp,
......@@ -135,7 +121,7 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "utlp",
tabVal: "menu",
trnName: "sptneg",
model: new Sptneg().data,
checkRules: Check,
......
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