Commit edbb5aa6 by 吴佳

2022.04.12 wujia sptrou

parent c8284a13
...@@ -4106,7 +4106,7 @@ const CodeTable = { ...@@ -4106,7 +4106,7 @@ const CodeTable = {
{ label: "N", value: "N" }, { label: "N", value: "N" },
], ],
ownextkey: [ ownextkey: [
{ label: "08350012北京分行", value: "08350012" }, { label: "08350012北京分行", value: "00000047" },
], ],
ownexttyp: [ ownexttyp: [
{ label: "手工录入", value: "OE" }, { label: "手工录入", value: "OE" },
......
...@@ -21,7 +21,10 @@ export default class Sptrou{ ...@@ -21,7 +21,10 @@ export default class Sptrou{
conget:{ conget:{
refnum:"", // Reference No. .recpan.conget.refnum refnum:"", // Reference No. .recpan.conget.refnum
selref:"", // Refecence of selected contract .recpan.conget.selref selref:"", // Refecence of selected contract .recpan.conget.selref
selnam:"", // name of selected contract .recpan.conget.selnam refnum:"", // Reference No. .recpan.conget.refnum
pntref:"",
pntnam:"", // name of selected contract .recpan.conget.selnam
sector:"",
sdamod:{ sdamod:{
seainf:"", // .recpan.conget.sdamod.seainf seainf:"", // .recpan.conget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.conget.sdamod.dadsnd dadsnd:"", // Drag Drop Sender .recpan.conget.sdamod.dadsnd
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="16">
<!-- ========================左边======================= -->
<c-col :span="12">
<c-col :span="24" style="margin-top: 0">
<el-form-item label="File Path" prop="recpan.filpth">
<c-input
v-model="model.recpan.filpth"
maxlength="80"
placeholder="请输入File Path"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="File Name" prop="recpan.filnam">
<c-select
v-model="model.recpan.filnam"
style="width: 100%"
placeholder="请选择File Name"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="Type" prop="spt.sta">
<c-select
v-model="model.spt.sta"
style="width: 100%"
placeholder="请选择Type"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item
label="Refecence No."
prop="recpan.conget.selref"
>
<c-input
v-model="model.recpan.conget.selref"
maxlength="40"
placeholder="请输入Refecence of selected contract"
@keyup.enter.native="
updateSelref
"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item
label=""
prop="recpan.conget.selnam"
>
<c-input
v-model="model.recpan.conget.selnam"
maxlength="40"
placeholder="请输入name of selected contract"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="Parent Contract"
prop="recpan.dpcget.selref"
>
<c-input
v-model="model.recpan.dpcget.selref"
maxlength="40"
placeholder="请输入Refecence of parent contract"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label=""
prop="recpan.dpcget.selnam"
>
<c-input
v-model="model.recpan.dpcget.selnam"
maxlength="40"
placeholder="请输入name of parent contract"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Work User" prop="spt.wrkusr">
<c-select
v-model="model.spt.wrkusr"
style="width: 100%"
placeholder="请选择Work User"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<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="at" prop="spt.dattim" label-width="30px">
<c-input
v-model="model.spt.dattim"
placeholder="请输入Time of Creation"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- ========================右边======================= -->
<c-col :span="12" >
<c-col :span="24" style="margin-top: 0">
<el-form-item label="Message Reference" prop="spt.objnam">
<c-input
v-model="model.spt.objnam"
maxlength="40"
placeholder="请输入Message 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 :span="24">
<c-col :span="12">
<el-form-item label="Transaction" prop="recpan.atp.cod">
<c-input
v-model="model.recpan.atp.cod"
maxlength="6"
placeholder="请输入Transaction"
@keyup.enter.native="
showGridPromptDialog('recpan.atp.cod')
"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="recpan.atpget.sdamod.seainf" label-width="10px">
<c-input
v-model="model.recpan.atpget.sdamod.seainf"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" >
<el-form-item label="虚拟机构" prop="spt.wrkgrp">
<c-select
v-model="model.spt.wrkgrp"
style="width: 100%"
placeholder="请选择WORK GROUP"
:code="codes.ownextkey"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="Info Text" prop="spt.inftxt">
<c-input
type="textarea"
v-model="model.spt.inftxt"
maxlength="65"
show-word-limit
placeholder="请输入Info Text"
:rows="4"
></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24" >
<el-form-item label="虚拟机构" prop="spt.wrkgrp" label-width="100px">
<c-select
v-model="model.spt.wrkgrp"
style="width: 100%"
placeholder="请选择WORK GROUP"
>
</c-select>
</el-form-item>
</c-col> -->
<c-col :span="24" >
<el-form-item label="" prop="spt.infdsp">
<c-select
v-model="model.spt.infdsp"
style="width: 100%"
placeholder="请选择Info Text"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="in Inr" 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>
<!-- <c-col :span="16">
<el-form-item label="File Path" prop="recpan.filpth"> <el-form-item label="File Path" prop="recpan.filpth">
<c-input <c-input
v-model="model.recpan.filpth" v-model="model.recpan.filpth"
...@@ -128,7 +371,7 @@ ...@@ -128,7 +371,7 @@
<c-button type="primary" icon="el-icon-search"></c-button> <c-button type="primary" icon="el-icon-search"></c-button>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<!-- WORK GROUP -->
<el-form-item label="虚拟机构" prop="spt.wrkgrp" label-width="100px"> <el-form-item label="虚拟机构" prop="spt.wrkgrp" label-width="100px">
<c-select <c-select
v-model="model.spt.wrkgrp" v-model="model.spt.wrkgrp"
...@@ -195,7 +438,7 @@ ...@@ -195,7 +438,7 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col> -->
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<el-form-item <el-form-item
...@@ -332,9 +575,37 @@ export default { ...@@ -332,9 +575,37 @@ export default {
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
};
},
methods: { ...Event,
async updateSelref(){
let rtnmsg = await this.executeRule("recpan.conget.selref")
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data);
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async updateCretrn(){
let rtnmsg = await this.executeRule("recpan.atp.cod")
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data);
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}, },
methods: { ...Event },
created: function () {}, created: function () {},
}; };
</script> </script>
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-button size="small"
type="primary"
@click="handleSave">save</el-button>
<!-- <el-button size="small" @click="handletak">tak</el-button> -->
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000052 --> <!--PD000052 -->
<el-tab-pane label="Items Overview" name="sptroup"> <el-tab-pane label="Items Overview" name="sptroup" v-if="false">
<m-sptroup :model="model" :codes="codes"/> <m-sptroup :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
...@@ -18,6 +23,14 @@ ...@@ -18,6 +23,14 @@
<m-prtcfg :model="model" :codes="codes"/> <m-prtcfg :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
</c-grid-ety-prompt-dialog>
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -29,7 +42,7 @@ import commonProcess from "~/mixin/commonProcess" ...@@ -29,7 +42,7 @@ import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptrou/Check" import Check from "~/model/Sptrou/Check"
import Default from "~/model/Sptrou/Default" import Default from "~/model/Sptrou/Default"
import Pattern from "~/model/Sptrou/Pattern" import Pattern from "~/model/Sptrou/Pattern"
import Sptroup from "./Sptroup" // import Sptroup from "./Sptroup"
import Sptnegp from "./Sptnegp" import Sptnegp from "./Sptnegp"
import Prtcfg from "./Prtcfg" import Prtcfg from "./Prtcfg"
...@@ -37,7 +50,7 @@ import Prtcfg from "./Prtcfg" ...@@ -37,7 +50,7 @@ import Prtcfg from "./Prtcfg"
export default { export default {
name: 'Sptrou', name: 'Sptrou',
components:{ components:{
"m-sptroup" : Sptroup, // "m-sptroup" : Sptroup,
"m-sptnegp" : Sptnegp, "m-sptnegp" : Sptnegp,
"m-prtcfg" : Prtcfg, "m-prtcfg" : Prtcfg,
}, },
...@@ -49,20 +62,47 @@ export default { ...@@ -49,20 +62,47 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "sptroup", tabVal: "sptnegp",
trnName: "sptrou", trnName: "sptrou",
model: new Sptrou().data, model: new Sptrou().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: { ...CodeTable },
},
} }
}, },
methods:{ methods:{
tabClick(){ tabClick(){
},
async handleSave(){
let rtnmsg = await this.executeRule("sav")
if(rtnmsg.respCode == SUCCESS)
{
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'trnrel')
//修改待复核界面刷新状态为需要刷新
this.$store.commit("setLoadingFreshReview", true)
});
} }
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
handletak(){
},
}, },
created:async function(){ created:async function(){
console.log("进入sptrou交易"); console.log("进入sptrou交易");
...@@ -70,6 +110,7 @@ export default { ...@@ -70,6 +110,7 @@ export default {
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
} }
else else
......
...@@ -42,6 +42,7 @@ export default { ...@@ -42,6 +42,7 @@ export default {
{ inifrm: "infcpd", ininam: "汇款查询", pntmiu: "1" }, { inifrm: "infcpd", ininam: "汇款查询", pntmiu: "1" },
{ inifrm: "cptopn", ininam: "汇出汇款", pntmiu: "1" }, { inifrm: "cptopn", ininam: "汇出汇款", pntmiu: "1" },
{ inifrm: "cptadv", ininam: "汇入汇款", pntmiu: "1" }, { inifrm: "cptadv", ininam: "汇入汇款", pntmiu: "1" },
{ inifrm: "2", ininam: "买方信用证", pntmiu: "" }, { inifrm: "2", ininam: "买方信用证", pntmiu: "" },
// { inifrm: "ditopn", ininam: "信用证开立", pntmiu: "2" }, // { inifrm: "ditopn", ininam: "信用证开立", pntmiu: "2" },
// { inifrm: "ditame", ininam: "信用证修改", pntmiu: "2" }, // { inifrm: "ditame", ininam: "信用证修改", pntmiu: "2" },
...@@ -131,6 +132,7 @@ export default { ...@@ -131,6 +132,7 @@ export default {
{ inifrm: "14",ininam: "服务管理", pntmiu: "" }, { inifrm: "14",ininam: "服务管理", pntmiu: "" },
{ inifrm: "switsk", ininam: "Switsk", pntmiu: "14" }, { inifrm: "switsk", ininam: "Switsk", pntmiu: "14" },
{ inifrm: "mgrtsk", ininam: "Mgrtsk", pntmiu: "14" }, { inifrm: "mgrtsk", ininam: "Mgrtsk", pntmiu: "14" },
{ inifrm: "sptrel", ininam: "sptrel", pntmiu: "14" },
], ],
menus: [], menus: [],
menusHeight: 0 menusHeight: 0
......
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