Commit 4a7eaf98 by liyixun

gitopn 优化

parent 04749ae0
...@@ -226,5 +226,6 @@ export default { ...@@ -226,5 +226,6 @@ export default {
"cfagit.recp.dclp" :Utils.defaultFunction, "cfagit.recp.dclp" :Utils.defaultFunction,
"cfagit.recp.dclp.actiontype" :Utils.defaultFunction, "cfagit.recp.dclp.actiontype" :Utils.defaultFunction,
"cfagit.recp.dclp.actiondesc" :Utils.defaultFunction, "cfagit.recp.dclp.actiondesc" :Utils.defaultFunction,
"cnybop.voup" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -477,10 +477,10 @@ export default { ...@@ -477,10 +477,10 @@ export default {
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 780,message:"长度不能超过780"} {max: 780,message:"长度不能超过780"}
], ],
// "gidgrp.blk.atxexptxt":[ "gidgrp.blk.atxexptxt":[
// {type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
// {max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
// ], ],
"gidgrp.rec.inudat":[ "gidgrp.rec.inudat":[
......
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
/** /**
* do it yourself * do it yourself
**/ **/
const name = tab.name let name = tab.name
let rulePath; let rulePath;
if(name==="setpan"){ if(name==="setpan"){
this.flag=true; this.flag=true;
......
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
const name = tab.name; let name = tab.name;
let rulePath; let rulePath;
if (name === "setpan") { if (name === "setpan") {
this.flag = true; this.flag = true;
......
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
/** /**
* do it yourself * do it yourself
**/ **/
const name = tab.name let name = tab.name
let rulePath; let rulePath;
let rulePath1; let rulePath1;
if (name === "basp") { if (name === "basp") {
......
...@@ -340,7 +340,7 @@ export default { ...@@ -340,7 +340,7 @@ export default {
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
const name = tab.name; let name = tab.name;
let rulePath; let rulePath;
if (name === "setpan") { if (name === "setpan") {
this.flag = true; this.flag = true;
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="16"> <c-col :span="16">
<c-col :span="24"> <c-col :span="24">
<el-form-item v-if="model.gitp.gidtxtmodflg == ''" label="Guarantee Text with Variables" prop="gidgrp.blk.gidtxt"> <el-form-item
<i-stream-input :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="15" :model="model.gidgrp.blk.gidtxt" maxlength="32500" show-word-limit placeholder="请输入Guarantee Text with Variables" ></i-stream-input> v-if="model.gitp.gidtxtmodflg == ''"
</el-form-item> label="Guarantee Text with Variables"
<el-form-item v-if="model.gitp.gidtxtmodflg == 'X'" label="Guarantee Text with Variables" prop="gidgrp.blk.gtxgidtxt"> prop="gidgrp.blk.gidtxt"
<i-stream-input type="textarea" :model="model.gidgrp.blk.gtxgidtxt" rows="15" maxlength="32500" show-word-limit placeholder="请输入Guarantee Text with Variables" ></i-stream-input> >
</el-form-item> <i-stream-input
</c-col> :disabled="model.gitp.gidtxtmodflg == ''"
</c-col> type="textarea"
<c-col :span="6"> rows="15"
<c-col :span="24"> :model="model.gidgrp.blk.gidtxt"
<c-checkbox v-model="model.gitp.gidtxtmodflg" style="margin:0 0 0 10px">Modify Guarantee Text</c-checkbox> maxlength="32500"
</c-col> show-word-limit
<c-col :span="24"> placeholder="请输入Guarantee Text with Variables"
<c-checkbox v-model="model.gitp.chkgidtxt" style="margin:0 0 0 10px">Allow *</c-checkbox> ></i-stream-input>
</c-col> </el-form-item>
<el-form-item
<c-col :span="24"> v-if="model.gitp.gidtxtmodflg == 'X'"
<c-button :disabled="model.gitp.gidtxtmodflg == ''" size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpButdif"> label="Guarantee Text with Variables"
vs. &System prop="gidgrp.blk.gtxgidtxt"
</c-button> >
</c-col> <i-stream-input
type="textarea"
:model="model.gidgrp.blk.gtxgidtxt"
rows="15"
maxlength="32500"
show-word-limit
placeholder="请输入Guarantee Text with Variables"
@change="gtxBlur"
></i-stream-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="6">
<c-col :span="24">
<el-form-item label-width="0px" prop="gitp.gidtxtmodflg">
<c-checkbox
v-model="model.gitp.gidtxtmodflg"
style="margin: 0 0 0 10px"
@change="modflgChange"
>Modify Guarantee Text</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="model.gitp.chkgidtxt"
style="margin: 0 0 0 10px"
>Allow *</c-checkbox
>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-button size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpButdifhis"> <c-button
vs. &History :disabled="model.gitp.gidtxtmodflg == ''"
</c-button> size="small"
</c-col> type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpButdif"
>
vs. &System
</c-button>
</c-col>
<template v-if="model.gitp.gidtxtmodflg=='X'"> <c-col :span="24">
<c-col :span="24"> <c-button
<c-button size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpShwgidtxt"> size="small"
Show&Text type="primary"
</c-button> style="margin: 5px 0 0 10px; width: 50%"
</c-col> @click="onGitpButdifhis"
</template> >
vs. &History
<c-col :span="24"> </c-button>
<c-input </c-col>
style="margin:5px 0 0 10px;width:50%"
v-model="model.gidgrp.rec.ownref" <template v-if="model.gitp.gidtxtmodflg == 'X'">
maxlength="16" <c-col :span="24">
placeholder="请输入Reference" <c-button
></c-input> size="small"
</c-col> type="primary"
<c-col :span="24"> style="margin: 5px 0 0 10px; width: 50%"
<c-button @click="onGitpShwgidtxt"
disabled >
style="margin:5px 0 0 10px" Show&Text
size="small" </c-button>
type="primary"
@click="onGitpButgetref"
>
获取
</c-button>
</c-col>
<c-col :span="24">
<c-button disabled size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpGidtxtmod">
修改中文保函文本
</c-button>
</c-col>
</c-col> </c-col>
</template>
<c-col :span="24">
<c-input
style="margin: 5px 0 0 10px; width: 50%"
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入Reference"
></c-input>
</c-col>
<c-col :span="24">
<c-button
disabled
style="margin: 5px 0 0 10px"
size="small"
type="primary"
@click="onGitpButgetref"
>
获取
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
@click="onGitpGidtxtmod"
>
修改中文保函文本
</c-button>
</c-col>
</c-col> </c-col>
</c-col>
</c-row> </c-row>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<c-checkbox v-model="model.gitp.gidtxtmodflg">Modify Guarantee Text</c-checkbox> <c-checkbox v-model="model.gitp.gidtxtmodflg">Modify Guarantee Text</c-checkbox>
</c-col> </c-col>
...@@ -114,28 +171,39 @@ ...@@ -114,28 +171,39 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import IStreamInput from '~/components/IStreamInput' import IStreamInput from "~/components/IStreamInput";
import Event from "~/model/Gitopn/Event" import Event from "~/model/Gitopn/Event";
import Utils from "~/utils";
export default { export default {
components: {IStreamInput}, components: { IStreamInput },
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
},
} methods: {
...Event,
async gtxBlur() {
const rtnmsg = await this.executeRule("gidgrp.blk.gtxgidtxt");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
}, },
methods:{...Event},
created:function(){
} async modflgChange() {
} const rtnmsg = await this.executeRule("gitp.gidtxtmodflg");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
},
created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
...@@ -352,7 +352,7 @@ export default { ...@@ -352,7 +352,7 @@ export default {
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
const name = tab.name; let name = tab.name;
let rulePath; let rulePath;
if (name === "conp") { if (name === "conp") {
rulePath = "cfagit.recp.conp"; rulePath = "cfagit.recp.conp";
...@@ -364,13 +364,12 @@ export default { ...@@ -364,13 +364,12 @@ export default {
this.flag = true; this.flag = true;
} }
if (name === "cfap") { if (name === "cfap") {
rulePath = "cfagit.visflg"; rulePath = "cfagit.cfap";
} }
if (name === "dclpp") { if (name === "dclpp") {
rulePath = "dclpp"; rulePath = "dclpp";
} }if (name === "gidtxtp"){
if ((name = "docpan")) { rulePath = "gitp.gidtxtp"
rulePath = "trnmod.trndoc.docpan";
} }
if (!!rulePath) { if (!!rulePath) {
this.executeRule(rulePath).then((res) => { this.executeRule(rulePath).then((res) => {
......
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