Commit 4a7eaf98 by liyixun

gitopn 优化

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