Adcpame.vue 9.26 KB
Newer Older
孟冬雪 committed
1
<template>
2
  <div class="eibs">
Wuyuqiu committed
3
    <el-col :span="12" style="padding-right: 20px;">
4 5 6 7 8 9
         <c-col :span="24">
        <el-form-item label="附加条款" prop="ltdgrp.blk.adlcnd">
            <c-input 
            :rows="12"
            :disabled="this.flag1"
            type="textarea" v-model="model.ltdgrp.blk.adlcnd" maxlength="1650" show-word-limit placeholder="请输入附加条款" ></c-input>
孟冬雪 committed
10 11
        </el-form-item>
        </c-col>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
        <c-col :span="24">
        <el-form-item
          label="在当前修改中添加或删除文本"
          prop="lttamep.adlcndamep.usrblk"
        >
          <c-fullbox>
            <c-input 
            :disabled="this.flag2"
           :rows="22"
            type="textarea" v-model="model.lttamep.adlcndamep.usrblk" maxlength="1650" show-word-limit placeholder="请输入" ></c-input>
            <template slot="footer">
              <c-button size="small" type="primary" icon="el-icon-search" 
            :disabled="this.flag2"
        @click="showGridPromptDialog('lttamep.adlcndame.buttxmsel',null,null,{TXT: 'lttamep.adlcndamep.usrblk'}, {TXT: false},'doxpDialog')"> 
        </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
         <!-- <c-col :span="22">
wangna committed
32
        <el-form-item label="在当前修改中添加或删除文本" prop="lttamep.adlcndamep.usrblk">
33 34 35
            <c-input 
            :disabled="this.flag2"
           :rows="22"
wangna committed
36
            type="textarea" v-model="model.lttamep.adlcndamep.usrblk" maxlength="1650" show-word-limit placeholder="请输入" ></c-input>
37 38 39 40 41 42 43
        </el-form-item>
        </c-col>
        <c-col :span="2">
            <c-button size="small" type="primary" icon="el-icon-search" 
            :disabled="this.flag2"
        @click="showGridPromptDialog('lttamep.adlcndame.buttxmsel',null,null,{TXT: 'lttamep.adlcndamep.usrblk'}, {TXT: false},'doxpDialog')"> 
        </c-button>
44
        </c-col> -->
45 46
    </el-col>

Wuyuqiu committed
47
    <el-col :span="12" style="padding-left: 20px;">
48
        <c-col :span="24">
wangna committed
49
        <el-form-item label="历史概要" prop="ltdgrp.blk.adlcndame">
50 51 52
            <c-input 
            :rows="12"
            disabled
wangna committed
53
            type="textarea" v-model="model.ltdgrp.blk.adlcndame" maxlength="50" show-word-limit placeholder="请输入历史概要" ></c-input>
54 55 56 57 58
        </el-form-item>
        </c-col>

        <c-col :span="12">
	    <c-checkbox 
59
        style=" margin: 0px 0 10px 120px;float:left;"
60 61 62 63 64
        v-model="model.ltdgrp.rec.redclsflg">红/绿条款</c-checkbox>
       </c-col>

        <c-col :span="12">
	    <c-checkbox 
65
        style=" margin: 0px 0 10px 100px;float:left;"
jianglong committed
66
        v-model="model.ltdgrp.rec.spcbenflg">受益人的特殊付款条款</c-checkbox>
67 68
       </c-col>

孟冬雪 committed
69
       <c-col :span="12">
70 71
	    <c-checkbox 
        @change="open"
72
        style=" margin: 0px 0 10px 120px;float:left;"
wangna committed
73
        v-model="model.lttamep.adlcndamep.modflg">修改要替换的文本</c-checkbox>
74 75 76 77
       </c-col>

        <c-col :span="12">
	    <c-checkbox 
78
        style=" margin: 0px 0 10px 100px;float:left;"
jianglong committed
79
        v-model="model.ltdgrp.rec.spcrcbflg">仅适用于银行的特殊付款条款</c-checkbox>
孟冬雪 committed
80 81
       </c-col>
                  
82 83
       
                  
孟冬雪 committed
84
       <c-col :span="12">
85 86
	    <c-checkbox 
        @change="open1"
87
        style=" margin: 0px 0 10px 120px;float:left;"
wangna committed
88
        v-model="model.lttamep.adlcndamep.modmanflg">修改内部文本</c-checkbox>
孟冬雪 committed
89 90
       </c-col>
                  
91 92
       <c-col :span="24">
        <c-button 
93
        style=" margin: 0px 0 10px 120px;float:left;"
94
        size="small" type="primary"  @click="onAdlcndamepButdif">
wangna committed
95
            显示差异
96
        </c-button>
孟冬雪 committed
97
       </c-col>
98 99 100
                  
       <c-col :span="24">
        <c-button 
101
        style=" margin: 0px 0 10px 120px;float:left;"
102
        size="small" type="primary" disabled @click="onAdlcndamepButadd">
wangna committed
103
            添加文本
104 105 106 107 108
        </c-button>
       </c-col>
                  
       <c-col :span="24">
        <c-button 
109
        style=" margin: 0px 0 10px 120px;float:left;"
110
        size="small" type="primary" disabled icon="el-icon-delete" @click="onAdlcndamepButdel">
wangna committed
111
            删除文本
112 113
        </c-button>
       </c-col>
wangna committed
114
    </el-col>      
孟冬雪 committed
115 116 117 118
  </div>
</template>
<script>
import Api from "~/service/Api"
wangren committed
119
import commonProcess from "~/mixin/commonProcess";
孟冬雪 committed
120 121 122 123 124 125
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Lttame/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
wangren committed
126
    mixins: [commonProcess],
孟冬雪 committed
127 128 129 130 131
    data(){
        return {

        }
    },
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
    watch:{
        "model.lttamep.adlcndamep.modflg":{
            immediate:true,
            handler(val,oldval){
                if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== ''){
                    this.flag1=false;
                    this.flag2=true;
                    this.model.lttamep.adlcndamep.usrblk='';
                }else if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
                    this.flag1=false;
                    this.flag2=true;
                    
                }else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== ''){
                    this.flag1=true;
                    this.flag2=false;
                }else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
                    this.flag1=false;
                    this.flag2=true;
                    this.model.lttamep.adlcndamep.usrblk='';
                }
            }
        },
        "model.lttamep.adlcndamep.modmanflg":{
            immediate:true,
            handler(val,oldval){
                 if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== ''){
                    this.flag1=false;
                    this.flag2=true;
                    this.model.lttamep.adlcndamep.usrblk='';
                }else if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
                    this.flag1=false;
                    this.flag2=true;
                    
                }else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== ''){
                    this.flag1=true;
                    this.flag2=false;
                }else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
                    this.flag1=false;
                    this.flag2=true;
                    this.model.lttamep.adlcndamep.usrblk='';
                }
            }
        }

    },
    methods:{...Event,
    open(val){
        if(val === '' && !(this.model.ltdgrp.blk.adlcnd == '')){
wangna committed
180
          this.$confirm('是否确定要重置手动修改?','提示',{
181
           
wangna committed
182 183
            cancelButtonText: '撤销',
            confirmButtonText: '确定',
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
            type: 'warning',
            showClose:false
          }).then(() => {
            //yes的执行在这里写
          this.model.ltdgrp.blk.adlcnd='';
            this.$message({
                  type: 'success',
                  message: '删除成功!'
            });
            
          }).catch(() => {
            //No的功能在这里写
            this.model.lttamep.adlcndamep.modflg='X'
                this.$message({
                  type: 'info',
                  message: '已取消'
                });  
          });
        }else if(val == 'X' && this.model.lttamep.adlcndamep.modmanflg =='X'){
wangna committed
203 204
            this.$confirm('请先重置内部修改','提示',{
            confirmButtonText: '确定',
205 206 207 208 209 210 211 212 213 214 215 216 217 218
            showCancelButton:false,
            type: 'warning',
            showClose:false
          }).then(() => {
            //yes的执行在这里写
          this.model.lttamep.adlcndamep.modflg='';
          this.flag1=true;
          this.flag2=false;
          })
        }
    
    },
    open1(val){
        if(val === '' && !(this.model.ltdgrp.blk.adlcnd == '')){
wangna committed
219
          this.$confirm('是否确定要重置手动修改?','提示',{
220
           
wangna committed
221 222
            cancelButtonText: '撤销',
            confirmButtonText: '确定',
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
            type: 'warning',
            showClose:false
          }).then(() => {
            //yes的执行在这里写
          this.model.ltdgrp.blk.adlcnd='';
            this.$message({
                  type: 'success',
                  message: '删除成功!'
            });
            
          }).catch(() => {
            //No的功能在这里写
            this.model.lttamep.adlcndamep.modmanflg = 'X'
                this.$message({
                  type: 'info',
                  message: '已取消'
                });  
        }); 
    }else if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg =='X'){
wangna committed
242 243
            this.$confirm('请先重置修改以替换','提示',{
            confirmButtonText: '确定',
244 245 246 247 248 249 250 251 252 253 254 255 256
            cancelButtonText: '',
            showCancelButton:false,
            type: 'warning',
            showClose:false
          }).then(() => {
            //yes的执行在这里写
          this.model.lttamep.adlcndamep.modmanflg='';
          this.flag1=true;
          this.flag2=false;
          })
    }
    }
    },
孟冬雪 committed
257 258 259 260 261 262 263 264
    created:function(){

    }
}
</script>
<style>

</style>