Commit 63fac6fb by “yanyuxin”

LITDCK输入框最大长度

parent 25f614e9
...@@ -704,7 +704,7 @@ export default { ...@@ -704,7 +704,7 @@ export default {
], ],
"lidgrp.blk.lcrgod":[ "lidgrp.blk.lcrgod":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 52000,message:"长度不能超过52000"}
], ],
"litamep.lcrgodamep.usrblk":[ "litamep.lcrgodamep.usrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -721,12 +721,30 @@ export default { ...@@ -721,12 +721,30 @@ export default {
], ],
"lidgrp.blk.lcrdoc":[ "lidgrp.blk.lcrdoc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 52000,message:"长度不能超过52000"}
], ],
"litamep.lcrdocamep.usrblk":[ "litamep.lcrdocamep.usrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"lidgrp.blk.spcben":[
{type: "string", required: false, message: "非必输项"},
{max: 52000,message:"长度不能超过52000"}
],
"lidgrp.blk.spcrcbame":[
{type: "string", required: false, message: "非必输项"},
{max: 4950,message:"长度不能超过4950"}
],
"litamep.spcrcbamep.usrblk":[
{type: "string", required: false, message: "非必输项"},
{max: 52000,message:"长度不能超过52000"}
],
"lidgrp.blk.spcrcb":[
{type: "string", required: false, message: "非必输项"},
{max: 52000,message:"长度不能超过52000"}
],
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-col :span="11"> <el-col :span="11">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="附加条款" prop="lidgrp.blk.adlcnd"> <el-form-item label="附加条款" prop="lidgrp.blk.adlcnd">
<c-input <c-input
disabled :autosize="{ minRows: 12, maxRows: 800}"
:rows="12" :disabled="this.flag1"
type="textarea" v-model="model.lidgrp.blk.adlcnd" maxlength="65" show-word-limit placeholder="请输入附加条款" ></c-input> type="textarea" v-model="model.lidgrp.blk.adlcnd" maxlength="52000" show-word-limit placeholder="请输入附加条款" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="22">
<c-col :span="24"> <el-form-item label="添加/删除当前修订中的文本" prop="litamep.adlcndamep.usrblk">
<el-form-item label="添加/删除补充信息" prop="litamep.adlcndamep.usrblk">
<c-input <c-input
:rows="10" :disabled="this.flag2"
type="textarea" v-model="model.litamep.adlcndamep.usrblk" maxlength="65" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input> :autosize="{ minRows: 22, maxRows: 800}"
type="textarea" v-model="model.litamep.adlcndamep.usrblk" maxlength="52000" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="2">
<c-button size="small" type="primary" icon="el-icon-search"
:disabled="this.flag2"
@click="showGridPromptDialog('litamep.adlcndame.buttxmsel',null,null,{TXT: 'litamep.adlcndamep.usrblk'}, {TXT: false},'doxpDialog')">
</c-button>
</c-col>
</el-col> </el-col>
<!-- ================================ -->
<el-col :span="11" :offset="1"> <el-col :span="11" :offset="1">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.adlcndame"> <el-form-item label="历史概述" prop="lidgrp.blk.adlcndame">
<c-input <c-input
:autosize="{ minRows: 12, maxRows: 999}"
disabled disabled
:rows="12" type="textarea" v-model="model.lidgrp.blk.adlcndame" maxlength="4950" show-word-limit placeholder="请输入Additional Conditions Amendment History" ></c-input>
type="textarea" v-model="model.lidgrp.blk.adlcndame" maxlength="50" show-word-limit placeholder="请输入Additional Conditions Amendment History" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-checkbox v-model="model.lidgrp.rec.redclsflg">红/绿条款</c-checkbox> <c-col :span="12">
</c-col> <c-checkbox
style=" margin: 0px 0 10px 150px;"
<c-col :span="24"> v-model="model.lidgrp.rec.redclsflg">红/绿条款</c-checkbox>
<c-checkbox v-model="model.lidgrp.rec.spcbenflg">受益人特殊付款条件</c-checkbox>
</c-col> </c-col>
<c-col :span="12">
<c-checkbox
<c-col :span="24"> style=" margin: 0px 0 10px 100px;"
<c-checkbox v-model="model.lidgrp.rec.spcrcbflg">银行专用特殊付款条件</c-checkbox> v-model="model.lidgrp.rec.spcbenflg">适用于受益人的特殊付款条件</c-checkbox>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.litamep.adlcndamep.modflg">修改要替换的文本</c-checkbox> <c-checkbox
@change="open"
style=" margin: 0px 0 10px 150px;"
v-model="model.litamep.adlcndamep.modflg">修改要替换的文本</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox
style=" margin: 0px 0 10px 100px;"
v-model="model.lidgrp.rec.spcrcbflg">仅适用于银行的特殊付款条件</c-checkbox>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.litamep.adlcndamep.modmanflg">手动更新的修改字段</c-checkbox> <c-checkbox
@change="open1"
style=" margin: 0px 0 10px 150px;"
v-model="model.litamep.adlcndamep.modmanflg">内部修改文本</c-checkbox>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button size="small" type="primary" @click="onAdlcndamepButdif"> <c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onAdlcndamepButdif">
显示差异 显示差异
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button <c-button
disabled style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onAdlcndamepButadd"> size="small" type="primary" disabled @click="onAdlcndamepButadd">
添加文本 添加文本
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button <c-button
disabled style=" margin: 0px 0 10px 150px;"
size="small" type="primary" icon="el-icon-delete" @click="onAdlcndamepButdel"> size="small" type="primary" disabled icon="el-icon-delete" @click="onAdlcndamepButdel">
删除文本 删除文本
</c-button> </c-button>
</c-col> </c-col>
</el-col> </el-col>
</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 Event from "~/model/Litdla/Event" import Event from "~/model/Litame/Event"
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -96,7 +121,131 @@ export default { ...@@ -96,7 +121,131 @@ export default {
} }
}, },
methods:{...Event}, watch:{
"model.litamep.adlcndamep.modflg":{
immediate:true,
handler(val,oldval){
if(this.model.litamep.adlcndamep.modflg == 'X' && this.model.litamep.adlcndamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.litamep.adlcndamep.usrblk='';
}else if(this.model.litamep.adlcndamep.modflg == 'X' && this.model.litamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.litamep.adlcndamep.modflg == '' && this.model.litamep.adlcndamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.litamep.adlcndamep.modflg == '' && this.model.litamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.litamep.adlcndamep.usrblk='';
}
}
},
"model.litamep.adlcndamep.modmanflg":{
immediate:true,
handler(val,oldval){
if(this.model.litamep.adlcndamep.modflg == 'X' && this.model.litamep.adlcndamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.litamep.adlcndamep.usrblk='';
}else if(this.model.litamep.adlcndamep.modflg == 'X' && this.model.litamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.litamep.adlcndamep.modflg == '' && this.model.litamep.adlcndamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.litamep.adlcndamep.modflg == '' && this.model.litamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.litamep.adlcndamep.usrblk='';
}
}
}
},
methods:{...Event,
open(val){
if(val === '' && !(this.model.lidgrp.blk.adlcnd == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.adlcnd='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.litamep.adlcndamep.modflg='X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(val == 'X' && this.model.litamep.adlcndamep.modmanflg =='X'){
this.$confirm('Please reset internal modification first','提示',{
confirmButtonText: 'Ok',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.litamep.adlcndamep.modflg='';
this.flag1=true;
this.flag2=false;
})
}
},
open1(val){
if(val === '' && !(this.model.lidgrp.blk.adlcnd == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.adlcnd='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.litamep.adlcndamep.modmanflg = 'X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(this.model.litamep.adlcndamep.modflg == 'X' && this.model.litamep.adlcndamep.modmanflg =='X'){
this.$confirm('Please reset modification to replace first','提示',{
confirmButtonText: 'Ok',
cancelButtonText: '',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.litamep.adlcndamep.modmanflg='';
this.flag1=true;
this.flag2=false;
})
}
}
},
created:function(){ created:function(){
} }
......
...@@ -109,7 +109,12 @@ ...@@ -109,7 +109,12 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="信息目的" prop="trnmod.swiadd.purpos"> <el-form-item label="信息目的" prop="trnmod.swiadd.purpos">
<c-select disabled v-model="model.trnmod.swiadd.purpos" style="width:100%" placeholder="请选择Purpose of message"> <c-select
disabled
v-model="model.trnmod.swiadd.purpos"
style="width:100%"
:code="codes.purpos5"
placeholder="请选择Purpose of message">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
<c-col :span="20"> <c-col :span="20">
<el-form-item label="货物描述" prop="lidgrp.blk.lcrgod"> <el-form-item label="货物描述" prop="lidgrp.blk.lcrgod">
<c-input disabled <c-input
:rows="30" :autosize="{ minRows: 30, maxRows: 800}"
type="textarea" v-model="model.lidgrp.blk.lcrgod" maxlength="65" show-word-limit placeholder="请输入货物描述" ></c-input> disabled
type="textarea" v-model="model.lidgrp.blk.lcrgod" maxlength="52000" show-word-limit placeholder="请输入货物描述" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="4"> <c-col :span="4">
<c-button disabled size="small" type="primary" icon="el-icon-search" @click="onLcrgodButtxmsel"> <c-button size="small" type="primary" icon="el-icon-search" @click="onLcrgodButtxmsel">
</c-button> </c-button>
</c-col> </c-col>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-col :span="11">
<c-col :span="24"> <el-col :span="11">
<c-col :span="24">
<el-form-item label="货物/服务描述" prop="lidgrp.blk.lcrgod"> <el-form-item label="货物/服务描述" prop="lidgrp.blk.lcrgod">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 800}"
disabled type="textarea" v-model="model.lidgrp.blk.lcrgod" maxlength="65" show-word-limit placeholder="请输入货物描述" ></c-input> :disabled="this.flag1"
type="textarea" v-model="model.lidgrp.blk.lcrgod" maxlength="52000" show-word-limit placeholder="请输入描述信息" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="22">
<el-form-item label="在当前修订中添加/删除文本" prop="litamep.lcrgodamep.usrblk"> <el-form-item label="在当前修订中添加/删除文本" prop="litamep.lcrgodamep.usrblk">
<c-input <c-input
:rows="6" :disabled="this.flag2"
type="textarea" v-model="model.litamep.lcrgodamep.usrblk" maxlength="65" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input> :autosize="{ minRows: 22, maxRows: 800}"
type="textarea" v-model="model.litamep.lcrgodamep.usrblk" maxlength="52000" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-col> <c-col :span="2">
<!-- ================================================================================ --> <c-button size="small" type="primary" icon="el-icon-search"
<el-col :span="11" :offset="1"> :disabled="this.flag2"
<c-col :span="24"> @click="showGridPromptDialog('litamep.lcrgodame.buttxmsel',null,null,{TXT: 'litamep.lcrgodamep.usrblk'}, {TXT: false},'doxpDialog')">
</c-button>
</c-col>
</el-col>
<el-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrgodame"> <el-form-item label="历史概述" prop="lidgrp.blk.lcrgodame">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 999}"
disabled type="textarea" v-model="model.lidgrp.blk.lcrgodame" maxlength="50" show-word-limit placeholder="请输入Description of Goods Amendment History" ></c-input> disabled
type="textarea" v-model="model.lidgrp.blk.lcrgodame" maxlength="4950" show-word-limit placeholder="请输入Description of Goods Amendment History" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.lcrgodamep.modflg">修改要替换的文本</c-checkbox> <c-col :span="12">
<c-checkbox
@change="open"
style=" margin: 0px 0 10px 150px;"
v-model="model.litamep.lcrgodamep.modflg">修改要替换的文本</c-checkbox>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="12">
<c-checkbox v-model="model.litamep.lcrgodamep.modmanflg">手动更新的修改字段</c-checkbox> <c-checkbox
@change="open1"
style=" margin: 0px 0 10px 125px;"
v-model="model.litamep.lcrgodamep.modmanflg">内部修改文本</c-checkbox>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button size="small" type="primary" @click="onLcrgodamepButdif"> <c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onLcrgodamepButdif">
显示差异 显示差异
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button size="small" disabled type="primary" @click="onLcrgodamepButadd"> <c-button
添加文本 style=" margin: 0px 0 10px 150px;"
disabled
size="small" type="primary" @click="onLcrgodamepButadd">
添加文本
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button size="small" disabled type="primary" icon="el-icon-delete" @click="onLcrgodamepButdel"> <c-button
style=" margin: 0px 0 10px 150px;"
disabled
size="small" type="primary" icon="el-icon-delete" @click="onLcrgodamepButdel">
删除文本 删除文本
</c-button> </c-button>
</c-col> </c-col>
</el-col> </el-col>
</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 Event from "~/model/Litdla/Event" import Event from "~/model/Litame/Event"
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -74,10 +93,135 @@ export default { ...@@ -74,10 +93,135 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
flag1:true,
flag2:false,
}
},
watch:{
"model.litamep.lcrgodamep.modflg":{
immediate:true,
handler(val,oldval){
if(this.model.litamep.lcrgodamep.modflg == 'X' && this.model.litamep.lcrgodamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrgodamep.usrblk='';
}else if(this.model.litamep.lcrgodamep.modflg == 'X' && this.model.litamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.litamep.lcrgodamep.modflg == '' && this.model.litamep.lcrgodamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.litamep.lcrgodamep.modflg == '' && this.model.litamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrgodamep.usrblk='';
}
}
},
"model.litamep.lcrgodamep.modmanflg":{
immediate:true,
handler(val,oldval){
if(this.model.litamep.lcrgodamep.modflg == 'X' && this.model.litamep.lcrgodamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrgodamep.usrblk='';
}else if(this.model.litamep.lcrgodamep.modflg == 'X' && this.model.litamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.litamep.lcrgodamep.modflg == '' && this.model.litamep.lcrgodamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.litamep.lcrgodamep.modflg == '' && this.model.litamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrgodamep.usrblk='';
}
}
}
},
methods:{...Event,
open(val){
if(val === '' && !(this.model.lidgrp.blk.lcrgod == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrgod='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.litamep.lcrgodamep.modflg='X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(val == 'X' && this.model.litamep.lcrgodamep.modmanflg =='X'){
this.$confirm('Please reset internal modification first','提示',{
confirmButtonText: 'Ok',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrgodamep.modflg='';
this.flag1=true;
this.flag2=false;
})
} }
},
open1(val){
if(val === '' && !(this.model.lidgrp.blk.lcrgod == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrgod='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.litamep.lcrgodamep.modmanflg = 'X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(this.model.litamep.lcrgodamep.modflg == 'X' && this.model.litamep.lcrgodamep.modmanflg =='X'){
this.$confirm('Please reset modification to replace first','提示',{
confirmButtonText: 'Ok',
cancelButtonText: '',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrgodamep.modmanflg='';
this.flag1=true;
this.flag2=false;
})
}
}
}, },
methods:{...Event},
created:function(){ created:function(){
} }
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<el-form-item label="单据要求" prop="lidgrp.blk.lcrdoc"> <el-form-item label="单据要求" prop="lidgrp.blk.lcrdoc">
<c-input <c-input
disabled disabled
:rows="30" :autosize="{ minRows: 30, maxRows: 800}"
type="textarea" v-model="model.lidgrp.blk.lcrdoc" maxlength="65" show-word-limit placeholder="请输入单据要求" ></c-input> type="textarea" v-model="model.lidgrp.blk.lcrdoc" maxlength="52000" show-word-limit placeholder="请输入单据要求" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-col :span="11"> <c-col :span="11">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="单据要求" prop="lidgrp.blk.lcrdoc"> <el-form-item label="单据要求" prop="lidgrp.blk.lcrdoc">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 800}"
disabled :disabled="this.flag1"
type="textarea" v-model="model.lidgrp.blk.lcrdoc" maxlength="65" show-word-limit placeholder="请输入单据要求" ></c-input> type="textarea" v-model="model.lidgrp.blk.lcrdoc" maxlength="52000" show-word-limit placeholder="请输入单据要求" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="在当前修订中添加/删除文本" prop="litamep.lcrdocamep.usrblk"> <c-col :span="22">
<c-input <el-form-item label="添加/删除当前修订中的文本" prop="litamep.lcrdocamep.usrblk">
:rows="7" <c-input type="textarea"
type="textarea" v-model="model.litamep.lcrdocamep.usrblk" maxlength="65" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input> :disabled="this.flag2"
v-model="model.litamep.lcrdocamep.usrblk"
maxlength="52000"
show-word-limit placeholder="请输入添加/删除补充信息"
:autosize="{ minRows: 22, maxRows: 800}"
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-col> <c-col :span="2">
<!--======================== --> <c-button size="small" type="primary" icon="el-icon-search"
<el-col :span="11" :offset="1"> :disabled="this.flag2"
<c-col :span="24"> @click="showGridPromptDialog('litamep.lcrdocame.buttxmsel',null,null,{TXT: 'litamep.lcrdocamep.usrblk'}, {TXT: false},'doxpDialog')">
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrdocame"> <el-form-item label="历史概述" prop="lidgrp.blk.lcrdocame">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 999}"
disabled disabled
type="textarea" v-model="model.lidgrp.blk.lcrdocame" maxlength="50" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input> type="textarea" v-model="model.lidgrp.blk.lcrdocame" maxlength="4950" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.lcrdocamep.modflg">修改要替换的文本</c-checkbox>
<c-col :span="12">
<c-checkbox
@change="open"
style=" margin: 0px 0 10px 150px;"
v-model="model.litamep.lcrdocamep.modflg">修改要替换的文本</c-checkbox>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="12">
<c-checkbox v-model="model.litamep.lcrdocamep.modmanflg">手动更新的修改字段</c-checkbox> <c-checkbox
@change="open1"
style=" margin: 0px 0 10px 125px;"
v-model="model.litamep.lcrdocamep.modmanflg">内部修改文本</c-checkbox>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="12">
<c-button size="small" type="primary" @click="onLcrdocamepButdif"> <c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onLcrdocamepButdif">
显示差异 显示差异
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button size="small" <c-button
style=" margin: 0px 0 10px 150px;"
disabled disabled
type="primary" @click="onLcrdocamepButadd"> size="small" type="primary" @click="onLcrdocamepButadd">
添加文本 添加文本
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button <c-button
style=" margin: 0px 0 10px 150px;"
disabled disabled
size="small" type="primary" icon="el-icon-delete" @click="onLcrdocamepButdel"> size="small" type="primary" icon="el-icon-delete" @click="onLcrdocamepButdel">
删除文本 删除文本
</c-button> </c-button>
</c-col> </c-col>
</el-col> </c-col>
</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 Event from "~/model/Litdla/Event" import Event from "~/model/Litame/Event"
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -79,10 +98,135 @@ export default { ...@@ -79,10 +98,135 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
flag1:true,
flag2:false,
}
},
watch:{
"model.litamep.lcrdocamep.modflg":{
immediate:true,
handler(val,oldval){
if(this.model.litamep.lcrdocamep.modflg == 'X' && this.model.litamep.lcrdocamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrdocamep.usrblk='';
}else if(this.model.litamep.lcrdocamep.modflg == 'X' && this.model.litamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.litamep.lcrdocamep.modflg == '' && this.model.litamep.lcrdocamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.litamep.lcrdocamep.modflg == '' && this.model.litamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrdocamep.usrblk='';
}
}
},
"model.litamep.lcrdocamep.modmanflg":{
immediate:true,
handler(val,oldval){
if(this.model.litamep.lcrdocamep.modflg == 'X' && this.model.litamep.lcrdocamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrdocamep.usrblk='';
}else if(this.model.litamep.lcrdocamep.modflg == 'X' && this.model.litamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.litamep.lcrdocamep.modflg == '' && this.model.litamep.lcrdocamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.litamep.lcrdocamep.modflg == '' && this.model.litamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.litamep.lcrdocamep.usrblk='';
}
}
}
},
methods:{...Event,
open(val){
if(val === '' && !(this.model.lidgrp.blk.lcrdoc == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrdoc='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.litamep.lcrdocamep.modflg='X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(val == 'X' && this.model.litamep.lcrdocamep.modmanflg =='X'){
this.$confirm('Please reset internal modification first','提示',{
confirmButtonText: 'Ok',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrdocamep.modflg='';
this.flag1=true;
this.flag2=false;
})
} }
},
open1(val){
if(val === '' && !(this.model.lidgrp.blk.lcrdoc == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrdoc='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.litamep.lcrdocamep.modmanflg = 'X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(this.model.litamep.lcrdocamep.modflg == 'X' && this.model.litamep.lcrdocamep.modmanflg =='X'){
this.$confirm('Please reset modification to replace first','提示',{
confirmButtonText: 'Ok',
cancelButtonText: '',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrdocamep.modmanflg='';
this.flag1=true;
this.flag2=false;
})
}
}
}, },
methods:{...Event},
created:function(){ created:function(){
} }
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Special Payment Conditions for Beneficiary" prop="lidgrp.blk.spcben"> <el-form-item label="Special Payment Conditions for Beneficiary" prop="lidgrp.blk.spcben">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 800}"
:disabled="this.flag1" :disabled="this.flag1"
type="textarea" v-model="model.lidgrp.blk.spcben" maxlength="65" show-word-limit placeholder="请输入单据要求" ></c-input> type="textarea" v-model="model.lidgrp.blk.spcben" maxlength="52000" show-word-limit placeholder="请输入单据要求" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
<c-input type="textarea" <c-input type="textarea"
:disabled="this.flag2" :disabled="this.flag2"
v-model="model.litamep.spcbenamep.usrblk" v-model="model.litamep.spcbenamep.usrblk"
maxlength="1650" maxlength="52000"
show-word-limit placeholder="请输入添加/删除补充信息" show-word-limit placeholder="请输入添加/删除补充信息"
:rows="22" :autosize="{ minRows: 22, maxRows: 800}"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.spcbename"> <el-form-item label="历史概述" prop="lidgrp.blk.spcbename">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 800}"
disabled disabled
type="textarea" v-model="model.lidgrp.blk.spcbename" maxlength="50" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input> type="textarea" v-model="model.lidgrp.blk.spcbename" maxlength="4950" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -3,7 +3,13 @@ ...@@ -3,7 +3,13 @@
<c-col :span="18"> <c-col :span="18">
<el-form-item label="存在受益人的特殊付款条件" prop="lidgrp.blk.spcben"> <el-form-item label="存在受益人的特殊付款条件" prop="lidgrp.blk.spcben">
<c-input disabled type="textarea" v-model="model.lidgrp.blk.spcben" maxlength="65" :rows="30" show-word-limit placeholder="请输入Special Payment Conditions" ></c-input> <c-input
disabled type="textarea"
v-model="model.lidgrp.blk.spcben"
maxlength="52000"
:autosize="{ minRows: 30, maxRows: 800}"
show-word-limit
placeholder="请输入Special Payment Conditions" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -3,7 +3,14 @@ ...@@ -3,7 +3,14 @@
<c-col :span="18"> <c-col :span="18">
<el-form-item label="仅适用于指定银行的特殊付款条件" prop="lidgrp.blk.spcrcb"> <el-form-item label="仅适用于指定银行的特殊付款条件" prop="lidgrp.blk.spcrcb">
<c-input disabled type="textarea" v-model="model.lidgrp.blk.spcrcb" maxlength="65" :rows="30" show-word-limit placeholder="请输入Special Payment " ></c-input> <c-input
disabled
type="textarea"
v-model="model.lidgrp.blk.spcrcb"
maxlength="52000"
:autosize="{ minRows: 30, maxRows: 800}"
show-word-limit
placeholder="请输入Special Payment " ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="仅适用于银行的特殊付款条件" prop="lidgrp.blk.spcrcb"> <el-form-item label="仅适用于银行的特殊付款条件" prop="lidgrp.blk.spcrcb">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 800}"
:disabled="this.flag1" :disabled="this.flag1"
type="textarea" v-model="model.lidgrp.blk.spcrcb" maxlength="65" show-word-limit placeholder="请输入单据要求" ></c-input> type="textarea" v-model="model.lidgrp.blk.spcrcb" maxlength="52000" show-word-limit placeholder="请输入单据要求" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
<c-input type="textarea" <c-input type="textarea"
:disabled="this.flag2" :disabled="this.flag2"
v-model="model.litamep.spcrcbamep.usrblk" v-model="model.litamep.spcrcbamep.usrblk"
maxlength="1650" maxlength="52000"
show-word-limit placeholder="请输入添加/删除补充信息" show-word-limit placeholder="请输入添加/删除补充信息"
:rows="22" :autosize="{ minRows: 22, maxRows: 800}"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.spcrcbame"> <el-form-item label="历史概述" prop="lidgrp.blk.spcrcbame">
<c-input <c-input
:rows="12" :autosize="{ minRows: 12, maxRows: 800}"
disabled disabled
type="textarea" v-model="model.lidgrp.blk.spcrcbame" maxlength="50" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input> type="textarea" v-model="model.lidgrp.blk.spcrcbame" maxlength="4950" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
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