Commit 46396830 by nanrui

gitame功能测试发现缺陷修改。

parent e7433897
......@@ -19,6 +19,11 @@ export default class Gitame{
gitapll4blk:"",
gitrmbl1blk:"",
gitp:{
oldgidtxt: {},
oldgtxgidtxt: {},
gtx: {
gidtxt: {},
},
swiftflg:"", // 是否SWIFT格式 .gitp.swiftflg
recget:{
sdamod:{
......@@ -128,6 +133,7 @@ export default class Gitame{
chargi:{
chkast:"", // Allow * .gitp.chargi.chkast
},
gidtxt: {},
gidtxtmodflg:"", // Modify Guarantee Text .gitp.gidtxtmodflg
chkgidtxt:"", // Allow * .gitp.chkgidtxt
cnrp:{
......
......@@ -114,7 +114,7 @@
<c-col :span="24">
<c-form-item v-if="model.gitp.swiftflg == 'N'" label="面函标题" prop="gitamep.mstitle">
<c-input type="textarea" v-model="model.gitamep.mstitle" maxlength="30" show-word-limit placeholder="请输入面函标题">
<c-input type="textarea" v-model="model.gitamep.mstitle" maxlength="50" show-word-limit placeholder="请输入面函标题">
</c-input>
</c-form-item>
</c-col>
......@@ -299,7 +299,7 @@
<el-form-item v-if="
model.gitp.swiftflg == 'N' &&
model.trnmod.swiadd.newexpflg == ''
" label="新到期日" prop="trnmod.swiadd.newexpdat">
" label="新到期日" prop="trnmod.swiadd.newexpdat">
<c-date-picker type="date" v-model="model.trnmod.swiadd.newexpdat" style="width: 100%" placeholder="请输入新到期日期">
</c-date-picker>
</el-form-item>
......
......@@ -7,13 +7,13 @@
<c-col :span="16">
<c-col :span="24">
<el-form-item v-if="model.gitp.gidtxtmodflg == ''" label="保函文本可变因素" prop="gidgrp.blk.gidtxt">
<i-stream-input :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="16"
<c-xml-format-editor :disabled="model.gitp.gidtxtmodflg == ''" type="textarea" rows="16"
:model="model.gidgrp.blk.gidtxt" maxlength="65" show-word-limit placeholder="请输入保函文本可变因素">
</i-stream-input>
</c-xml-format-editor>
</el-form-item>
<el-form-item v-if="model.gitp.gidtxtmodflg == 'X'" label="保函文本可变因素" prop="gidgrp.blk.gtxgidtxt">
<i-stream-input type="textarea" :model="model.gidgrp.blk.gtxgidtxt" rows="16" maxlength="65"
show-word-limit placeholder="请输入保函文本可变因素"></i-stream-input>
<c-xml-format-editor type="textarea" :model="model.gidgrp.blk.gtxgidtxt" rows="16" maxlength="65"
show-word-limit placeholder="请输入保函文本可变因素"></c-xml-format-editor>
</el-form-item>
</c-col>
</c-col>
......@@ -26,14 +26,15 @@
</c-col>
<c-col :span="24">
<c-button :disabled="model.gitp.gidtxtmodflg == ''" size="small" type="primary"
style="margin: 18px 0 0 10px; width: 50%" @click="onGitpButdif">
<c-button :disabled="(model.gitp.gidtxtmodflg == '' && model.gitp.gidtxt == model.gidgrp.blk.gidtxt) || (model.gitp.gidtxtmodflg == 'X' && model.gitp.gtx.gidtxt == model.gidgrp.blk.gtxgidtxt)"
size="small" type="primary" style="margin: 18px 0 0 10px; width: 50%" @click="onGitpButdif">
查看系统文本
</c-button>
</c-col>
<c-col :span="24">
<c-button size="small" type="primary" style="margin: 5px 0 0 10px; width: 50%" @click="onGitpButdifhis">
<c-button :disabled="(model.gitp.gidtxtmodflg == '' && model.gitp.oldgidtxt == model.gidgrp.blk.gidtxt) || (model.gitp.gidtxtmodflg == 'X' && model.gitp.oldgtxgidtxt == model.gidgrp.blk.gtxgidtxt)"
size="small" type="primary" style="margin: 5px 0 0 10px; width: 50%" @click="onGitpButdifhis">
查看历史文本
</c-button>
</c-col>
......@@ -56,7 +57,7 @@
</c-button>
</c-col>
<c-col :span="24">
<c-button :disabled="model.gitp.gidtxtmodflg == ''" size="small" type="primary"
<c-button :disabled="!(model.gitp.gidtxtmodflg == 'X' && model.gidgrp.rec.giduil == 'CN')" size="small" type="primary"
style="margin: 5px 0 0 10px; width: 50%" @click="onGitpGidtxtmod">
修改中文保函文本
</c-button>
......
......@@ -118,7 +118,9 @@ import Ptypc from "./Ptypc";
import Aacp from "./Aacp";
import Aamp20 from "./Aamp20";
const tabNameToRulePathMapping = {
"gidtxtp": "gitp.gidtxtp",
}
export default {
components: {
......@@ -151,9 +153,43 @@ export default {
},
methods: {
...Event,
handleChange(val) {
console.log(val);
myTabClick(tab) {
this.tabClick(tab);
let name = tab.name;
let rulePath;
if (name === "gidtxtp") {
rulePath = "gitp.gidtxtp";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
handleChange(names){
// console.log(names);//激活的(展开的)面板的name数组集合
if (this.isInDisplay) {
return
}
const arr = []
for (let i = 0; i < names.length; i++) {
const n = names[i];
const path = tabNameToRulePathMapping[n]//取出激活/展开面板name对应的rulePath
if (path) {
arr.push(path)
}
}
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created: function () { },
};
......
......@@ -72,11 +72,11 @@
</c-checkbox>
<c-checkbox v-model="model.gitp.chkpreper" style="margin: 0 0 0 10px" class="checkbox-left">允许
</c-checkbox>
<c-button disabled size="small" type="primary" style="margin: 0px 0 0 10px; width: 100px"
<c-button :disabled="!(model.gitp.prepermodflg == 'X' && (model.gidgrp.blk.preper !== '' || model.gidgrp.blk.atxpreper !== ''))" size="small" type="primary" style="margin: 0px 0 0 10px; width: 100px"
@click="onGitpButdifpreper">
查看系统文本
</c-button>
<c-button disabled size="small" style="margin: 10px 0 0 10px; width: 100px" type="primary"
<c-button :disabled="!(model.gitp.prepermodflg == 'X' && (model.gidgrp.blk.preper !== '' || model.gidgrp.blk.atxpreper !== ''))" size="small" style="margin: 10px 0 0 10px; width: 100px" type="primary"
@click="onGitpButdifhispreper">
查看历史文本
</c-button>
......
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