Commit 716e815a by “yanyuxin”

Litdla控件Bug修改

parent 96babd48
<template>
<div class="eibs">
<el-col :span="11">
<div class="eibs">
<el-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="附加条款" prop="lidgrp.blk.adlcnd">
<c-input
disabled
:rows="12"
type="textarea" v-model="model.lidgrp.blk.adlcnd" maxlength="65" show-word-limit placeholder="请输入附加条款" ></c-input>
</el-form-item>
<el-form-item label="附加条款" prop="lidgrp.blk.adlcnd">
<c-input
:autosize="{ minRows: 12, maxRows: 800 }"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.adlcnd"
maxlength="52000"
show-word-limit
placeholder="请输入附加条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="添加/删除补充信息" prop="litamep.adlcndamep.usrblk">
<c-input
:rows="13"
type="textarea" v-model="model.litamep.adlcndamep.usrblk" maxlength="65" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input>
</el-form-item>
<c-col :span="24">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.adlcndamep.usrblk"
>
<c-fullbox>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.adlcndamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
<template slot="footer">
<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>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- <c-col :span="22">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.adlcndamep.usrblk"
>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.adlcndamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
</el-form-item>
</c-col>
</el-col>
<!-- ================================ -->
<el-col :span="11" :offset="1">
<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 :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.adlcndame">
<c-input
disabled
:rows="12"
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 label="历史概述" prop="lidgrp.blk.adlcndame">
<c-input
:autosize="{ minRows: 12, maxRows: 999 }"
disabled
type="textarea"
v-model="model.lidgrp.blk.adlcndame"
maxlength="4950"
show-word-limit
placeholder="请输入Additional Conditions Amendment History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
class="checkbox-left"
style="margin: 0px 0 10px 120px"
v-model="model.lidgrp.rec.redclsflg"
>红/绿条款</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
style="margin: 0px 0 10px 100px"
v-model="model.lidgrp.rec.spcbenflg"
>适用于受益人的特殊付款条款</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open"
class="checkbox-left"
style="margin: 0px 0 10px 120px"
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 :span="12">
<el-form-item label=" " prop="litamep.adlcndamep.modmanflg">
<c-checkbox
@change="open1"
class="checkbox-left"
v-model="model.litamep.adlcndamep.modmanflg"
>内部修改文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.lidgrp.rec.redclsflg" style="margin-left:0px;padding: 0 10px;" >红/绿条款选项</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.lidgrp.rec.spcbenflg" style="margin-left:0px;padding: 0 10px;">受益人特殊付款条件</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.lidgrp.rec.spcrcbflg" style="margin-left:0px;padding: 0 10px;">银行专用特殊付款条件</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.adlcndamep.modflg" style="margin-left:0px;padding: 0 10px;">修改要替换的文本</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.adlcndamep.modmanflg" style="margin-left:0px;padding: 0 10px;">手动更新的修改字段</c-checkbox>
</c-col>
<c-col :span="24">
<c-button
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButdif">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
@click="onAdlcndamepButdif"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButadd">
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
disabled
@click="onAdlcndamepButadd"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButdel">
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
disabled
icon="el-icon-delete"
@click="onAdlcndamepButdel"
>
删除文本
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litdla/Event"
export default {
inject: ['root'],
props:["model","codes"],
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litame/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
return {
data() {
return {};
},
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;
});
}
},
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -209,7 +209,7 @@
</c-col>
<c-col :span="24">
<c-checkbox disabled v-model="model.litp.aamp.aammod.addamtflg">附加金额</c-checkbox>
<c-checkbox v-model="model.litp.aamp.aammod.addamtflg">附加金额</c-checkbox>
</c-col>
......
<template>
<div class="eibs">
<el-col :span="11">
<c-col :span="24">
<el-form-item label="货物/服务描述" prop="lidgrp.blk.lcrgod">
<c-input
:rows="12"
disabled type="textarea" v-model="model.lidgrp.blk.lcrgod" maxlength="65" show-word-limit placeholder="请输入货物描述" ></c-input>
</el-form-item>
</c-col>
<div class="eibs">
<el-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="在当前修订中添加/删除文本" prop="litamep.lcrgodamep.usrblk">
<c-input
:rows="9"
type="textarea" v-model="model.litamep.lcrgodamep.usrblk" maxlength="65" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input>
</el-form-item>
</c-col>
</el-col>
<!-- ================================================================================ -->
<el-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrgodame">
<c-input
:rows="12"
disabled type="textarea" v-model="model.lidgrp.blk.lcrgodame" maxlength="50" show-word-limit placeholder="请输入Description of Goods Amendment History" ></c-input>
</el-form-item>
<el-form-item label="货物/服务描述" prop="lidgrp.blk.lcrgod">
<c-input
:autosize="{ minRows: 12, maxRows: 800 }"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.lcrgod"
maxlength="52000"
show-word-limit
placeholder="请输入描述信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.lcrgodamep.modflg" style="margin-left:0px;padding: 0 10px;">修改要替换的文本</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.lcrgodamep.modmanflg" style="margin-left:0px;padding: 0 10px;">手动更新的修改字段</c-checkbox>
</c-col>
<c-col :span="24">
<c-button
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButdif">
<el-form-item
label="在当前修订中添加/删除文本"
prop="litamep.lcrgodamep.usrblk"
>
<c-fullbox>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.lcrgodamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrgodame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrgodamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- <c-col :span="22">
<el-form-item
label="在当前修订中添加/删除文本"
prop="litamep.lcrgodamep.usrblk"
>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.lcrgodamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrgodame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrgodamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</c-col> -->
</el-col>
<el-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrgodame">
<c-input
:autosize="{ minRows: 12, maxRows: 999 }"
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>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="litamep.lcrgodamep.modflg">
<c-checkbox
@change="open"
class="checkbox-left"
v-model="model.litamep.lcrgodamep.modflg"
>修改要替换的文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.litamep.lcrgodamep.modmanflg"
>内部修改文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
@click="onLcrgodamepButdif"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButadd">
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
@click="onLcrgodamepButadd"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButdel">
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
@click="onLcrgodamepButdel"
>
删除文本
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litdla/Event"
export default {
inject: ['root'],
props:["model","codes"],
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litame/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
return {
data() {
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(){
}
}
</script>
<style>
</style>
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<el-col :span="11">
<c-col :span="24">
<el-form-item label="单据要求" prop="lidgrp.blk.lcrdoc">
<c-input
:rows="12"
disabled
type="textarea" v-model="model.lidgrp.blk.lcrdoc" maxlength="65" show-word-limit placeholder="请输入单据要求" ></c-input>
</el-form-item>
<div class="eibs">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="单据要求" prop="lidgrp.blk.lcrdoc">
<c-input
:autosize="{ minRows: 12, maxRows: 800 }"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.lcrdoc"
maxlength="52000"
show-word-limit
placeholder="请输入单据要求"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="在当前修订中添加/删除文本" prop="litamep.lcrdocamep.usrblk">
<c-input
:rows="9"
type="textarea" v-model="model.litamep.lcrdocamep.usrblk" maxlength="65" show-word-limit placeholder="请输入添加/删除补充信息" ></c-input>
</el-form-item>
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.lcrdocamep.usrblk"
>
<c-fullbox>
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.litamep.lcrdocamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
:autosize="{ minRows: 22, maxRows: 800 }"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrdocame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrdocamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</el-col>
<!--======================== -->
<el-col :span="11" :offset="1">
<!-- <c-col :span="22">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.lcrdocamep.usrblk"
>
<c-input
type="textarea"
: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>
</c-col>
<c-col :span="2">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrdocame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrdocamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</c-col> -->
</c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrdocame">
<c-input
:rows="12"
disabled
type="textarea" v-model="model.lidgrp.blk.lcrdocame" maxlength="50" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input>
</el-form-item>
<el-form-item label="历史概述" prop="lidgrp.blk.lcrdocame">
<c-input
:autosize="{ minRows: 12, maxRows: 999 }"
disabled
type="textarea"
v-model="model.lidgrp.blk.lcrdocame"
maxlength="4950"
show-word-limit
placeholder="请输入单据要求 Amendment History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label=" " prop="litamep.lcrdocamep.modflg">
<c-checkbox
@change="open"
class="checkbox-left"
v-model="model.litamep.lcrdocamep.modflg"
>修改要替换的文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.litamep.lcrdocamep.modmanflg"
>内部修改文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.lcrdocamep.modflg" style="margin-left:0px;padding: 0 10px;">修改要替换的文本</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.litamep.lcrdocamep.modmanflg" style="margin-left:0px;padding: 0 10px;">手动更新的修改字段</c-checkbox>
</c-col>
<c-col :span="24">
<c-button
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButdif">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
@click="onLcrdocamepButdif"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButadd">
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
@click="onLcrdocamepButadd"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small" type="primary" style=" margin: 0px 0px 10px 610px;" @click="onAdlcndamepButdel">
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
@click="onLcrdocamepButdel"
>
删除文本
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litdla/Event"
export default {
inject: ['root'],
props:["model","codes"],
</c-button>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litame/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
return {
data() {
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(){
}
}
</script>
<style>
</style>
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
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