Commit b944a7d9 by wangyanjiao

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents e824e24c 200d77d4
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
{type:"number", max:9999, message: "大小不超过9999" } {type:"number", max:9999, message: "大小不超过9999" }
], ],
"dedgrp.blk.defdet":[ "dedgrp.blk.defdet":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.apl.adrelc":[ "dedgrp.apl.adrelc":[
......
...@@ -5,18 +5,14 @@ export default class Mtabut { ...@@ -5,18 +5,14 @@ export default class Mtabut {
oitinf: { oitinf: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit: { oit: {
inftxt: { inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt
rows: []
}, // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
}, },
}, },
oitset: { oitset: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit: { oit: {
inftxt: { inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
rows:[]
}, // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
}, },
}, },
......
...@@ -468,17 +468,33 @@ ...@@ -468,17 +468,33 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <div v-if="model.dedgrp.rec.avbby != 'D'">
<el-form-item label="远期付款指示" prop="dedgrp.blk.dftat"> <c-col :span="24">
<c-input <el-form-item label="远期付款指示" prop="dedgrp.blk.dftat">
type="textarea" <c-input
v-model="model.dedgrp.blk.dftat" type="textarea"
maxlength="35" v-model="model.dedgrp.blk.dftat"
show-word-limit maxlength="35"
placeholder="请输入远期付款指示" show-word-limit
></c-input> placeholder="请输入远期付款指示"
</el-form-item> :disabled="!model.dedgrp.rec.avbby"
</c-col> ></c-input>
</el-form-item>
</c-col>
</div>
<div v-else>
<c-col :span="24">
<el-form-item label="远期付款指示" prop="dedgrp.blk.defdet">
<c-input
type="textarea"
v-model="model.dedgrp.blk.defdet"
maxlength="35"
show-word-limit
placeholder="请输入远期付款指示"
></c-input>
</el-form-item>
</c-col>
</div>
</c-col> </c-col>
<!-- ========================右边======================= --> <!-- ========================右边======================= -->
...@@ -585,7 +601,10 @@ ...@@ -585,7 +601,10 @@
--> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="受益人开户行联行行号" prop="dedgrp.beb.pts.bankno"> <el-form-item
label="受益人开户行联行行号"
prop="dedgrp.beb.pts.bankno"
>
<c-input <c-input
v-model="model.dedgrp.beb.pts.bankno" v-model="model.dedgrp.beb.pts.bankno"
maxlength="20" maxlength="20"
......
...@@ -305,11 +305,7 @@ ...@@ -305,11 +305,7 @@
</c-col> </c-col>
</el-row> </el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body> <m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" ownrefPath="bddgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" ownrefPath="bddgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -328,10 +324,9 @@ export default { ...@@ -328,10 +324,9 @@ export default {
components:{'m-busbtn':BusNavbar}, components:{'m-busbtn':BusNavbar},
data() { data() {
return { return {
ditselModel: new DitselModel().data, ditselModel: new DitselModel().data,
ownref:"", ownref:"",
initdialog:false, trnData: {
trnData: {
columns: [ columns: [
'1 1 "编号" 200', '1 1 "编号" 200',
'2 2 "交易名称" 120', '2 2 "交易名称" 120',
...@@ -369,23 +364,20 @@ export default { ...@@ -369,23 +364,20 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
async getButtons(ownref){ async getButtons(ownref){
this.initdialog = true
this.ownref = ownref this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref); console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
}, },
async onChoose(code){ async onChoose(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false this.$refs.childs.initdialog = false
} , } ,
async getDitSelInfo(code){ async getDitSelInfo(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false this.$refs.childs.initdialog = false
}, },
closeTrn(refId){ closeTrn(refId){
this.$refs[refId].doClose(); this.$refs[refId].doClose();
......
<template> <template>
<div class="busnavbar"> <el-dialog
<div class="busnavbar-items"> :visible.sync="initdialog"
<c-button :title="'交易列表'"
style="margin-left: 7px" append-to-body
size="medium" :before-close="beforeClose"
type="primary" @opened="opened"
class="medium_bcs" >
v-for="(item, index) in navcode" <div class="m-list-btns">
v-bind:key="index" <div class="busnavbar">
@click.native="onNarBtnClick(item.code, item.index)" <div class="busnavbar-items">
:title="item.title" <c-button
:disabled="item.isDis === 'N'" style="margin-left: 7px"
>{{ item.label }}</c-button size="medium"
> type="primary"
class="medium_bcs"
v-for="(item, index) in navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
</div>
</div>
</div> </div>
</div> </el-dialog>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
...@@ -22,28 +32,29 @@ import commonProcess from "~/mixin/commonProcess"; ...@@ -22,28 +32,29 @@ import commonProcess from "~/mixin/commonProcess";
export default { export default {
props: { props: {
"ownref": { ownref: {
required: true, required: true,
},
"trnCode": {
required: true,
},
"model": {
required: true,
},
"ownrefPath": {
required: false,
default: "didgrp"
}, },
"tabIndex": { trnCode: {
required: false, required: true,
default: 1 },
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
}, },
}, },
components: {}, components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
initdialog: false,
navcode: [ navcode: [
// {code:"",label:"",isDis:"",title:""}, // {code:"",label:"",isDis:"",title:""},
], ],
...@@ -70,26 +81,32 @@ export default { ...@@ -70,26 +81,32 @@ export default {
} }
return 0; return 0;
}, },
opened() {
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
}, },
mounted() { mounted() {
this.trnName = this.trnCode this.trnName = this.trnCode;
this.$nextTick(function () { this.$nextTick(function () {
this.$on("childmethods", async function () { this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`); let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.updateModel(res.data); this.updateModel(res.data);
} else { } else {
this.$notify.error({ this.$notify.error({
title: "错误", title: "错误",
message: "服务请求失败!", message: "服务请求失败!",
}); });
} }
this.navcode = []; this.navcode = [];
//请求按钮数据 //请求按钮数据
this.model[this.ownrefPath].rec.ownref = this.ownref; this.model[this.ownrefPath].rec.ownref = this.ownref;
let rtnmsg = await this.executeRule(this.ownrefPath+".rec.ownref"); //didgrp_rec_ownref let rtnmsg = await this.executeRule(this.ownrefPath + ".rec.ownref"); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//重置数组 //重置数组
this.navcode = []; this.navcode = [];
......
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