Ameps20.vue 37.2 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 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 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757
<template>
	<div class="eibs-tab">
		<!-- ======================= 左边 ========================= -->
		<c-col :span="12" style="padding-right: 20px">
			<c-col :span="24">
				<el-form-item :label="$t('gitame.保函编号')" prop="gidgrp.rec.ownref" label-width="140px">
					<c-input disabled maxlength="16" placeholder="请输入保函编号" v-model="model.gidgrp.rec.ownref"></c-input>
				</el-form-item>
			</c-col>

			<c-col :span="24" style="display: flex;align-item: center;justify-content: flex-start;" v-if="model.oldgidgrp.rec.hndtyp == 'OT'">
				<div style="width: calc(100% - 120px);">
					<el-form-item :label="$t('gitame.修改报文的目的')" prop="swiadd.purposamein" label-width="140px">
						<c-select dbCode="PURPOM" :disabled="model.gitp.inc760!='X'" placeholder="请输入修改报文的目的" style="width: 100%" v-model="model.swiadd.purposamein">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: 100px;margin-left: 20px;">
					<c-checkbox v-model="model.gitp.inc760" true-label="X" false-label="" @change="changeInc760">
						Incoming Lose
					</c-checkbox>
				</div>
			</c-col>

      <c-col :span="24" >
          <el-form-item :label="$t('gitame.修改目的')" prop="swiadd.purposame" label-width="140px">
            <c-select placeholder="请输入修改目的" style="width: 100%" v-model="model.swiadd.purposame">
              <el-option v-for="(item,index) in codes.purposameList" :key="index" :label="item.txt" :value="item.cod">
              </el-option>
            </c-select>
          </el-form-item>
      </c-col>

			<c-col :span="24">
				<el-form-item :label="$t('gitame.修改日期')" prop="swiadd.amedat" label-width="140px">
					<c-date-picker placeholder="请选择修改日期" style="width: 100%" type="date" v-model="model.swiadd.amedat" @change="amenbrChange">
					</c-date-picker>
				</el-form-item>
			</c-col>

			<c-col :span="24" class="custom-box-wrap">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.原保函金额')" prop="oldgidgrp.cbs.max.cur" label-width="140px">
						<c-select v-model="model.oldgidgrp.cbs.max.cur" dbCode="curtxt" disabled placeholder="请选择金额币种" sort="SRT"></c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="oldgidgrp.cbs.max.amt">
						<c-input-currency v-model="model.oldgidgrp.cbs.max.amt" :currency="model.oldgidgrp.cbs.max.cur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			<c-col :span="24" class="custom-box-wrap">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.修改金额')" prop="swiadd.amecur" label-width="140px">
						<c-select v-model="model.swiadd.amecur" dbCode="curtxt" disabled placeholder="请选择金额币种" sort="SRT"></c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="swiadd.ameamt">
						<c-input-currency v-model="model.swiadd.ameamt" :currency="model.swiadd.amecur" @blur="changeSwiaddAmeamt" placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			<c-col :span="24" class="custom-box-wrap">
				<div class="box-1">
					<div style="width: 280px;">
						<el-form-item :label="$t('gitame.保函币种和金额')" prop="swiadd.newcur" label-width="140px">
							<c-select v-model="model.swiadd.newcur" dbCode="curtxt" disabled placeholder="请选择金额币种" sort="SRT"></c-select>
						</el-form-item>
					</div>
					<div style="width: calc(100% - 280px);">
						<el-form-item label-width="5px" prop="swiadd.newamt">
							<c-input-currency v-model="model.swiadd.newamt" disabled :currency="model.swiadd.newcur" @change="changeSwiaddNewamt" placeholder="请输入" />
						</el-form-item>
					</div>
				</div>
				<div class="box-2">
					<c-checkbox @change="addamtflgChange" class="checkbox-left" false-label="" true-label="X" v-model="model.swiadd.addamtflg">Add.Amount</c-checkbox>
				</div>
      </c-col>
		
			<!-- 修改前的总金额 -->
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.Old Total Amount')" label-width="140px">
						<c-select v-model="model.oldgidgrp.cbs.max.cur" dbCode="curtxt" disabled placeholder="请选择" sort="SRT">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="swiadd.addnewamt">
						<c-input-currency v-model="oldTotalAmount" :currency="model.oldgidgrp.cbs.max.cur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			<!-- 修改前的总余额 -->
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.Old Total Open Amount')" label-width="140px">
						<c-select v-model="model.oldgidgrp.cbs.max.cur" dbCode="curtxt" disabled placeholder="请选择" sort="SRT">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="swiadd.addnewamt">
						<c-input-currency v-model="oldTotalOpenAmount" :currency="model.swiadd.addnewcur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			
		</c-col>

		<!-- ======================右边====================== -->
		<c-col :span="12" style="padding-left: 20px">
			<c-col :span="24">
				<el-form-item :label="$t('gitame.修改次数')" prop="swiadd.amenbr" label-width="140px">
					<c-input placeholder="请输入修改次数" type="number" v-model="model.swiadd.amenbr" @change="amenbrChange"></c-input>
				</el-form-item>
			</c-col>

			<c-col :span="24">
				<el-form-item :label="$t('gitame.实际修改次数')" prop="gidgrp.rec.amenbr" label-width="140px">
					<c-input disabled placeholder="请输入实际修改次数 " v-model="model.gidgrp.rec.amenbr"></c-input>
				</el-form-item>
			</c-col>

			<c-col :span="24">
				<c-col :span="12">
					<el-form-item label-width="140px">
						<c-checkbox class="checkbox-left" false-label="" true-label="X" v-model="model.swiadd.reqcan">{{ $t('gitame.撤销请求') }}</c-checkbox>
					</el-form-item>
				</c-col>
			</c-col>
		<!--	<c-col :span="24" v-if="this.codes.buttonShow =='1'">
				<c-col :span="12">
            		<el-form-item label-width="140px">
              			<c-checkbox class="checkbox-left" :disabled="!model.needcuscomame" false-label="" true-label="X" v-model="model.gidgrp.rec.needcuscomame">客户确认</c-checkbox>
            		</el-form-item>
				</c-col>
      		</c-col> -->
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.原保函附加金额')" prop="oldgidgrp.cbs.max2.cur" label-width="140px">
						<c-select dbCode="curtxt" disabled placeholder="请选择金额币种" sort="SRT" v-model="model.oldgidgrp.cbs.max2.cur">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="oldgidgrp.cbs.max2.amt">
						<c-input-currency v-model="model.oldgidgrp.cbs.max2.amt" :currency="model.oldgidgrp.cbs.max2.cur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.修改附加金额')" prop="swiadd.addamecur" label-width="140px">
						<c-select v-model="model.swiadd.addamecur" dbCode="curtxt" disabled placeholder="请选择" sort="SRT">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="swiadd.addameamt">
						<c-input-currency v-model="model.swiadd.addameamt" :currency="model.swiadd.addamecur" :disabled="!model.swiadd.addamtflg" @change="changeSwiaddaddAmeamt" placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.Additional Amount')" prop="swiadd.addnewcur" label-width="140px">
						<c-select v-model="model.swiadd.addamecur" dbCode="curtxt" disabled placeholder="请选择" sort="SRT">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px" prop="swiadd.addnewamt">
						<c-input-currency v-model="model.swiadd.addnewamt" :currency="model.swiadd.addamecur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>

			<!-- 修改后的总金额 -->
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.Total Amount')" label-width="140px">
						<c-select v-model="model.oldgidgrp.cbs.max.cur" dbCode="curtxt" disabled placeholder="请选择金额币种" sort="SRT">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px">
						<c-input-currency v-model="totalAmount" :currency="model.oldgidgrp.cbs.max.cur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>
			<!-- 修改后的总余额 -->
			<c-col :span="24" class="custom-box-wrap" v-if="model.swiadd.addamtflg">
				<div style="width: 280px;">
					<el-form-item :label="$t('gitame.Total Open Amount')" label-width="140px">
						<c-select v-model="model.oldgidgrp.cbs.max.cur" dbCode="curtxt" disabled placeholder="请选择金额币种" sort="SRT">
						</c-select>
					</el-form-item>
				</div>
				<div style="width: calc(100% - 280px);">
					<el-form-item label-width="5px">
						<c-input-currency v-model="totalOpenAmount" :currency="model.oldgidgrp.cbs.max.cur" disabled placeholder="请输入" />
					</el-form-item>
				</div>
			</c-col>

			<c-col :span="24" v-if="isShowRedrea">
				<el-form-item :label="$t('gitame.减少/清偿原因')" prop="swiadd.redrea" label-width="140px">
					<c-select dbCode="redrea" placeholder="请输入减少/清偿原因" style="width: 100%" v-model="model.swiadd.redrea">
					</c-select>
				</el-form-item>
			</c-col>
			<c-col :span="24" v-show="false">
				<el-form-item :label="$t('gitame.修改内容 :77C')">
					<c-fullbox>
						<c-input type="textarea"  v-model="gitamepAmetxt" rows="4" maxlength="32500" show-word-limit placeholder="请输入修改内容 :77C"></c-input>
					</c-fullbox>
				</el-form-item>
			</c-col>
		</c-col>
	</div>
</template>
<script>
import event from "../event";
import Check from "../model/check";
import Default from "../model/default";
import BigNumber from "bignumber.js";

export default {
	inject: ["root"],
	props: ["model", "codes"],
	mixins: [Default, event],
	data() {
		return {
			addamtcovs20Flg: ""
		};
	},

	methods: {},
	mounted() {
	},
	created () {
	},
	computed: {
		// 此计算属性是为了判断this.model.swiadd.ameamt字段的金额值是否为负数,如果为负数则显示redrea字段
		isShowRedrea () {
			if (this.model.swiadd.ameamt) {
				return Number(this.model.swiadd.ameamt) < 0
			} else {
				return false
			}
		},
		// 原始总金额
		oldTotalAmount: {
			get () {
				let oldMaxAmt = this.model.oldgidgrp.cbs.max.amt ? Number(this.model.oldgidgrp.cbs.max.amt) : 0;
				let oldMax2Amt = this.model.oldgidgrp.cbs.max2.amt ? Number(this.model.oldgidgrp.cbs.max2.amt) : 0
				return oldMaxAmt + oldMax2Amt
			},
			set(newVal) {
				return newVal
			}
		},
		// 原始总余额
		oldTotalOpenAmount: {
			get () {
				let oldOpnAmt = this.model.oldgidgrp.cbs.opn1.amt ? Number(this.model.oldgidgrp.cbs.opn1.amt) : 0;
				let oldOpn2Amt = this.model.oldgidgrp.cbs.opn2.amt ? Number(this.model.oldgidgrp.cbs.opn2.amt) : 0
				return oldOpnAmt + oldOpn2Amt
			},
			set(newVal) {
				return newVal
			}
		},
		// 修改后总金额
		totalAmount: {
			get () {
				let newamt = this.model.swiadd.newamt ? Number(this.model.swiadd.newamt) : 0
				let addnewamt = this.model.swiadd.addnewamt ? Number(this.model.swiadd.addnewamt) : 0
				return newamt + addnewamt
			},
			set(newVal) {
				return newVal
			}
		},
		// 修改后总余额
		totalOpenAmount: {
			get () {
				let oldOpnAmt = this.model.oldgidgrp.cbs.opn1.amt ? Number(this.model.oldgidgrp.cbs.opn1.amt) : 0;
				let oldOpn2Amt = this.model.oldgidgrp.cbs.opn2.amt ? Number(this.model.oldgidgrp.cbs.opn2.amt) : 0
				let ameamt = this.model.swiadd.ameamt ? Number(this.model.swiadd.ameamt) : 0
				let addameamt = this.model.swiadd.addameamt ? Number(this.model.swiadd.addameamt) : 0
				return oldOpnAmt + ameamt + oldOpn2Amt + addameamt
			},
			set(newVal) {
				return newVal
			}
		},
		ramrolList() {
			let ramrolList = [];
			if (this.model.gidgrp.rec.hndtyp=='OC' || this.model.gidgrp.rec.hndtyp=='OT') {
				if(this.model.swiadd.purposame=='ICCA'){
					if (this.model.gidgrp.bec && this.model.gidgrp.bec.pts && this.model.gidgrp.bec.pts.extkey) {
						ramrolList.push({"cod":"BEC","txt":"BEC"})
						this.model.gitamep.ramrol = "BEC"
					}
				}else{
					if (this.model.gidgrp.iss && this.model.gidgrp.iss.pts && this.model.gidgrp.iss.pts.extkey) {
						ramrolList.push({"cod":"ISS","txt":"ISS"})
						this.model.gitamep.ramrol = "ISS"
					}
				}
			}
			if (this.model.gidgrp.rec.hndtyp=='FA' || this.model.gidgrp.rec.hndtyp=='FI' || this.model.gidgrp.rec.hndtyp=='OL') {
					if (this.model.gidgrp.atb && this.model.gidgrp.atb.pts && this.model.gidgrp.atb.pts.extkey) {
						ramrolList.push({"cod":"ATB","txt":"ATB"})
						this.model.gitamep.ramrol = "ATB"
				}else{
					if (this.model.gidgrp.ben && this.model.gidgrp.ben.pts && this.model.gidgrp.ben.pts.extkey) {
						ramrolList.push({"cod":"BEN","txt":"BEN"})
						this.model.gitamep.ramrol = "BEN"
					}
				}
			}
			return ramrolList;
		},
		gitamepAmetxt: {
			get() {
					if(this.isInDisplay){
                        return this.model.gitamep.ametxt;
                    }
					if (this.model.gitamep.ametxtflg === '') {
							var res = "";
							//model.gcdgrp.rec.inr
							if (this.model.gcdgrp.rec.inr !== "") {
									res = "Request for extension of the undertaking accepted.";
							}
							//model.gidgrp.rec.gartyp
							if (this.model.gidgrp.rec.gartyp !== this.model.oldgidgrp.rec.gartyp) {
									res = res + "\n" + "The undertaking is changed from " + this.model.oldgidgrp.rec.gartyp + " to " + this.model.gidgrp.rec.gartyp + ".";
							}
							//model.gidgrp.blk.covgodsrv
							if (this.model.gidgrp.blk.covgodsrv !== this.model.oldgidgrp.blk.covgodsrv) {
									res = res + "\n" + "The following goods are now covered: " + this.model.gidgrp.blk.covgodsrv + ".";
							}
							//model.gidgrp.rec.orcdat
							if (this.model.gidgrp.rec.orcdat !== this.model.oldgidgrp.rec.orcdat) {
									if (this.model.oldgidgrp.rec.orcdat !== "") {
											res = res + "\n" + "The Contract Date has changed from " + this.model.oldgidgrp.rec.orcdat + " to " + this.model.gidgrp.rec.orcdat + ".";
									} else {
											res = res + "\n" + "The  Contract Date has been set to " + this.model.gidgrp.rec.orcdat + ".";
									}
							}
							//model.gidgrp.rec.trmdat
							if (this.model.gidgrp.rec.trmdat !== this.model.oldgidgrp.rec.trmdat) {
									res = res + "\n" + "Please transmit until " + this.model.gidgrp.rec.trmdat + ".";
							}
							//model.gidgrp.rec.orcref
							if (this.model.gidgrp.rec.orcref !== this.model.oldgidgrp.rec.orcref) {
									if (this.model.oldgidgrp.rec.orcref !== "") {
											res = res + "\n" + "The Contract reference has changed from " + this.model.oldgidgrp.rec.orcref + " to " + this.model.gidgrp.rec.orcref + ".";
									} else {
											res = res + "\n" + "The  Contract reference has been set to " + this.model.gidgrp.rec.orcref + ".";
									}
							}
							//model.gidgrp.rec.tenclsdat
							if (this.model.gidgrp.rec.tenclsdat !== this.model.oldgidgrp.rec.tenclsdat) {
									if (this.model.oldgidgrp.rec.tenclsdat !== "") {
											res = res + "\n" + "The tender closing date has changed from " + this.model.oldgidgrp.rec.tenclsdat + " to " + this.model.gidgrp.rec.tenclsdat + ".";
									} else {
											res = res + "\n" + "The tender closing date has been set to " + this.model.gidgrp.rec.tenclsdat + ".";
									}
							}
							//model.gidgrp.rec.orcrat
							// if (this.model.gidgrp.rec.orcrat !== this.model.oldgidgrp.rec.orcrat) {
							// 		if (this.model.oldgidgrp.rec.orcrat !== "") {
							// 				res = res + "\n" + "The original rate has changed from " + this.model.oldgidgrp.rec.orcrat + " to " + this.model.gidgrp.rec.orcrat + ".";
							// 		} else {
							// 				res = res + "\n" + "The original rate has been set to " + this.model.gidgrp.rec.orcrat + ".";
							// 		}
							// }
							//model.gidgrp.rec.orcamt
							if (this.model.gidgrp.rec.orcamt !== this.model.oldgidgrp.rec.orcamt) {
									if (this.model.oldgidgrp.rec.orcamt !== "") {
											res = res + "\n" + "The contract amount has changed from " + this.model.oldgidgrp.rec.orccur + " " + this.model.oldgidgrp.rec.orcamt + " to " + this.model.gidgrp.rec.orccur + " " + this.model.gidgrp.rec.orcamt + ".";
									} else {
											res = res + "\n" + "The contract amount has been set to " + this.model.gidgrp.rec.orccur + " " + this.model.gidgrp.rec.orcamt + ".";
									}
							}

							//model.gidgrp.rec.acc
							if (this.model.gidgrp.rec.acc !== this.model.oldgidgrp.rec.acc) {
									if (this.model.oldgidgrp.rec.acc !== "" && this.model.gidgrp.rec.acc !== "") {
											res = res + "\n" + "The account for the advanced payment undertaking has been changed from " + this.model.oldgidgrp.rec.acc + " to " + this.model.gidgrp.rec.acc + ".";
									} else {
											if (this.model.gidgrp.rec.acc !== "") {
													res = res + "\n" + "The account for the advanced payment undertaking has been set to " + this.model.gidgrp.rec.acc + ".";
											} else {
													res = res + "\n" + "The account for the advanced payment undertaking " + this.model.oldgidgrp.rec.acc + " has been deleted.";
											}

									}
							}
							//model.gidgrp.rec.jurlaws20 jurlaw
							if (this.model.gidgrp.rec.jurlaws20 !== this.model.oldgidgrp.rec.jurlaws20 || this.model.gidgrp.rec.jurlaw !== this.model.oldgidgrp.rec.jurlaw) {
									if (this.model.oldgidgrp.rec.jurlaw !== "" && this.model.gidgrp.rec.jurlaw !== "") {
											res = res + "\n" + "The governing law has been changed from " + this.model.oldgidgrp.rec.jurlaw + " to " + this.model.gidgrp.rec.jurlaw + ".";
									} else {
											if (this.model.gidgrp.rec.jurlaw !== "") {
													res = res + "\n" + "The governing law has been set to " + this.model.gidgrp.rec.jurlaw + ".";
											} else {
												if(this.model.oldgidgrp.rec.jurlaw !== ""){
													res = res + "\n" + "The governing law " + this.model.oldgidgrp.rec.jurlaw + " has been deleted.";
												}
											}

									}
							}
							//model.gidgrp.rec.jurplc
							if (this.model.gidgrp.rec.jurplc !== this.model.oldgidgrp.rec.jurplc) {
									if (this.model.oldgidgrp.rec.jurplc !== "" && this.model.gidgrp.rec.jurplc !== "") {
											res = res + "\n" + "The place of jurisdiction has been changed from " + this.model.oldgidgrp.rec.jurplc + " to " + this.model.gidgrp.rec.jurplc + ".";
									} else {
											if (this.model.gidgrp.rec.jurplc !== "") {
													res = res + "\n" + "The place of jurisdiction has been set to " + this.model.gidgrp.rec.jurplc + ".";
											} else {
													res = res + "\n" + "The place of jurisdiction " + this.model.oldgidgrp.rec.jurplc + " has been deleted.";
											}

									}
							}
							//model.gidgrp.rec.tenref
							if (this.model.gidgrp.rec.tenref !== this.model.oldgidgrp.rec.tenref) {
									if (this.model.oldgidgrp.rec.tenref !== "") {
											res = res + "\n" + "The tender reference has changed from " + this.model.oldgidgrp.rec.tenref + " to " + this.model.gidgrp.rec.tenref + ".";
									} else {
											res = res + "\n" + "The tender reference has been set to " + this.model.gidgrp.rec.tenref + ".";
									}
							}
							//model.gidgrp.rec.tendat
							if (this.model.gidgrp.rec.tendat !== this.model.oldgidgrp.rec.tendat) {
									if (this.model.oldgidgrp.rec.tendat !== "") {
											res = res + "\n" + "The tender date has changed from " + this.model.oldgidgrp.rec.tendat + " to " + this.model.gidgrp.rec.tendat + ".";
									} else {
											res = res + "\n" + "The tender date has been set to " + this.model.gidgrp.rec.tendat + ".";
									}
							}
							//model.gidgrp.blk.addinf
							if (this.model.gidgrp.blk.addinf !== this.model.oldgidgrp.blk.addinf) {
									if (this.model.oldgidgrp.blk.addinf !== "" && this.model.gidgrp.blk.addinf !== "") {
											res = res + "\n" + "The additional info has been changed from " + this.model.oldgidgrp.blk.addinf + " to " + this.model.gidgrp.blk.addinf + ".";
									} else {
											if (this.model.gidgrp.blk.addinf !== "") {
													res = res + "\n" + "The additional info has been set to " + this.model.gidgrp.blk.addinf + ".";
											} else {
													res = res + "\n" + "The additional info " + this.model.oldgidgrp.blk.addinf + " has been deleted.";
											}

									}
							}
							//model.gidgrp.rec.legfrm
							if (this.model.gidgrp.rec.legfrm !== this.model.oldgidgrp.rec.legfrm) {
									if (this.model.oldgidgrp.rec.legfrm !== "") {
											res = res + "\n" + "The form of undertaking has changed from " + this.model.oldgidgrp.rec.legfrm + " to " + this.model.gidgrp.rec.legfrm + ".";
									} else {
											res = res + "\n" + "The form of undertaking has been set to " + this.model.gidgrp.rec.legfrm + ".";
									}
							}
							//model.gidgrp.blk.apprul apprultxt
							if (this.model.gidgrp.blk.apprul !== this.model.oldgidgrp.blk.apprul || this.model.gidgrp.blk.apprultxt !== this.model.oldgidgrp.blk.apprultxt) {
									res = res + "\n" + "The applicable rules has changed from " + this.model.oldgidgrp.rec.apprul + " " + this.model.oldgidgrp.blk.apprultxt + " to " + this.model.gidgrp.blk.apprul + " " + this.model.gidgrp.blk.apprultxt + ".";
							}
							//model.gidgrp.apl
              let newapladrblk = this.model.gidgrp.apl.pts.adrblk.replace(/\r?\n/g,'\n');
              let oldapladrblk = this.model.oldgidgrp.apl.pts.adrblk.replace(/\r?\n/g,'\n');
							if (this.model.gidgrp.apl.pts.ptainr !== this.model.oldgidgrp.apl.pts.ptainr || newapladrblk !== oldapladrblk) {
									if (this.model.oldgidgrp.apl.pts.adrblk !== "") {
											res = res + "\n" + "The applicant has changed from " + this.model.oldgidgrp.apl.pts.adrblk + " to " + this.model.gidgrp.apl.pts.adrblk + ".";
									} else {
											res = res + "\n" + "The applicant has been set to " + this.model.gidgrp.apl.pts.adrblk + ".";
									}
							}
              //model.gidgrp.ctr
              let newctradrblk = this.model.gidgrp.ctr.pts.adrblk.replace(/\r?\n/g,'\n');
              let oldctradrblk = this.model.oldgidgrp.ctr.pts.adrblk.replace(/\r?\n/g,'\n');
							if (this.model.gidgrp.ctr.pts.ptainr !== this.model.oldgidgrp.ctr.pts.ptainr || newctradrblk !== oldctradrblk) {
									if (this.model.oldgidgrp.ctr.pts.adrblk !== "") {
											res = res + "\n" + "The obligor has changed from " + this.model.oldgidgrp.ctr.pts.adrblk + " to " + this.model.gidgrp.ctr.pts.adrblk + ".";
									} else {
											res = res + "\n" + "The obligor has been set to " + this.model.gidgrp.ctr.pts.adrblk + ".";
									}
							}
              //model.gidgrp.atb
              let newatbadrblk = this.model.gidgrp.atb.pts.adrblk.replace(/\r?\n/g,'\n');
              let oldatbadrblk = this.model.oldgidgrp.atb.pts.adrblk.replace(/\r?\n/g,'\n');
							if (this.model.gidgrp.atb.pts.ptainr !== this.model.oldgidgrp.atb.pts.ptainr || newatbadrblk !== oldatbadrblk) {
									if (this.model.oldgidgrp.atb.pts.adrblk !== "") {
											res = res + "\n" + "The advising bank has changed from " + this.model.oldgidgrp.atb.pts.adrblk + " to " + this.model.gidgrp.atb.pts.adrblk + ".";
									} else {
											res = res + "\n" + "The advising bank has been set to " + this.model.gidgrp.atb.pts.adrblk + ".";
									}
							}
							//model.gidgrp.atb
							if (this.model.gidgrp.atb.pts.ref !== this.model.oldgidgrp.atb.pts.ref) {
									if (this.model.oldgidgrp.atb.pts.ref !== "") {
											res = res + "\n" + "The advising bank reference has changed from " + this.model.oldgidgrp.atb.pts.ref + " to " + this.model.gidgrp.atb.pts.ref + ".";
									} else {
											res = res + "\n" + "The advising bank reference has been set to " + this.model.gidgrp.atb.pts.ref + ".";
									}
							}

              //model.swiadd.addamtcovs20
              this.model.oldgidgrp.blk.addamtcovs20 = this.model.oldgidgrp.blk.addamtcovs20.trim();
							var addAmtBlk = this.model.oldgidgrp.blk.addamtcovs20;
							if (this.model.swiadd.addamtcovs20 !== "" || this.model.swiadd.addamtflg === "") {
									addAmtBlk = this.model.swiadd.addamtcovs20;
							}
							if (this.model.oldgidgrp.blk.addamtcovs20 !== addAmtBlk) {
									if (this.model.oldgidgrp.blk.addamtcovs20 !== "") {
											res = res + "\n" + "The additional amount information has been changed from " + this.model.oldgidgrp.blk.addamtcovs20 + " to " + addAmtBlk + ".";
									} else {
											res = res + "\n" + "The additional amount information has been set to " + addAmtBlk + ".";
									}
							}
							//model.gidgrp.blk.feetxt
							if (this.model.gidgrp.blk.feetxt !== this.model.oldgidgrp.blk.feetxt) {
									if (this.model.oldgidgrp.blk.feetxt !== "" && this.model.gidgrp.blk.feetxt !== "") {
											res = res + "\n" + "The charges has been changed from " + this.model.oldgidgrp.blk.feetxt + " to " + this.model.gidgrp.blk.feetxt + ".";
									} else {
											if (this.model.gidgrp.blk.feetxt !== "") {
													res = res + "\n" + "Charges has been set to " + this.model.gidgrp.blk.feetxt + ".";
											} else {
													res = res + "\n" + "'Charges have been deleted.";
											}

									}
							}
							//model.gidgrp.blk.preper
							if (this.model.gidgrp.blk.preper !== this.model.oldgidgrp.blk.preper) {
									if (this.model.oldgidgrp.blk.preper !== "" && this.model.gidgrp.blk.preper !== "") {
											res = res + "\n" + "The presentation instructions has been changed from " + this.model.oldgidgrp.blk.preper + " to " + this.model.gidgrp.blk.preper + ".";
									} else {
											if (this.model.gidgrp.blk.preper !== "") {
													res = res + "\n" + "The presentation instructions has been set to " + this.model.gidgrp.blk.preper + ".";
											} else {
													res = res + "\n" + "'The presentation instructions have been deleted.";
											}
									}
							}
							//model.gidgrp.con.
							if (this.model.gidgrp.con.pts.ptainr !== this.model.oldgidgrp.con.pts.ptainr || this.model.gidgrp.con.pts.adrblk !== this.model.oldgidgrp.con.pts.adrblk) {
									if (this.model.oldgidgrp.con.pts.adrblk !== "") {
											var conadrblk;
											if (this.model.gidgrp.con.pts.adrblk === "") {
													conadrblk = "<empty>";
											} else {
													conadrblk = this.model.gidgrp.con.pts.adrblk;
											}
											res = res + "\n" + "The confirmation party has changed from " + this.model.oldgidgrp.con.pts.adrblk + " to " + conadrblk + ".";
									} else {
											res = res + "\n" + "The confirmation party has been set to " + this.model.gidgrp.con.pts.adrblk + ".";
									}
							}
							//model.gidgrp.rec.demand
							if (this.model.gidgrp.rec.demand !== this.model.oldgidgrp.rec.demand) {
									if (this.model.oldgidgrp.rec.demand !== "" && this.model.gidgrp.rec.demand !== "") {
											res = res + "\n" + "The demand indicator has been changed from " + this.model.oldgidgrp.rec.demand + " to " + this.model.gidgrp.rec.demand + ".";
									} else {
											if (this.model.gidgrp.rec.demand !== "") {
													res = res + "\n" + "The demand indicator has been set to " + this.model.gidgrp.rec.demand + ".";
											} else {
													res = res + "\n" + "The demand indicator " + this.model.oldgidgrp.rec.demand + " has been deleted.";
											}

									}
							}
							//model.gidgrp.rec.transfer
							if (this.model.gidgrp.rec.transfer !== this.model.oldgidgrp.rec.transfer) {
									if (this.model.oldgidgrp.rec.transfer !== "") {
											res = res + "\n" + "The transfer indicator has changed from " + this.model.oldgidgrp.rec.transfer + " to " + this.model.gidgrp.rec.transfer + ".";
									} else {
											res = res + "\n" + "The transfer indicator has been set to " + this.model.gidgrp.rec.transfer + ".";
									}
							}
							//model.gidgrp.blk.trfcond
							if (this.model.gidgrp.blk.trfcond !== this.model.oldgidgrp.blk.trfcond) {
									if (this.model.oldgidgrp.blk.trfcond !== "" && this.model.gidgrp.blk.trfcond !== "") {
											res = res + "\n" + "The transfer conditions has been changed from " + this.model.oldgidgrp.blk.trfcond + " to " + this.model.gidgrp.blk.trfcond + ".";
									} else {
											if (this.model.gidgrp.blk.trfcond !== "") {
													res = res + "\n" + "The transfer conditions has been set to " + this.model.gidgrp.blk.trfcond + ".";
											} else {
													res = res + "\n" + "'The transfer conditions have been deleted.";
											}
									}
							}
							//model.gidgrp.ben
              				let newbenadrblk = this.model.gidgrp.ben.pts.adrblk.replace(/\r?\n/g,'\n');
              				let oldbenadrblk = this.model.oldgidgrp.ben.pts.adrblk.replace(/\r?\n/g,'\n');
							if (this.model.gidgrp.ben.pts.ptainr !== this.model.oldgidgrp.ben.pts.ptainr || newbenadrblk !== oldbenadrblk) {
								if (this.model.oldgidgrp.apl.pts.adrblk !== "") {
									res = res + "\n" + "The beneficiary in Sequence B has changed from " + this.model.oldgidgrp.ben.pts.adrblk + " to " + this.model.gidgrp.ben.pts.adrblk + ".";
								} else {
									res = res + "\n" + "The beneficiary in Sequence B has been set to " + this.model.gidgrp.ben.pts.adrblk + ".";
								}
							}
							//model.gidgrp.bec
              				let newbecadrblk = this.model.gidgrp.bec.pts.adrblk.replace(/\r?\n/g,'\n');
              				let oldbecadrblk = this.model.oldgidgrp.bec.pts.adrblk.replace(/\r?\n/g,'\n');
							if (this.model.gidgrp.bec.pts.ptainr !== this.model.oldgidgrp.bec.pts.ptainr || newbecadrblk !== oldbecadrblk) {
								if (this.model.oldgidgrp.bec.pts.adrblk !== "") {
									res = res + "\n" + "The beneficiary in Sequence C has changed from " + this.model.oldgidgrp.bec.pts.adrblk + " to " + this.model.gidgrp.bec.pts.adrblk + ".";
								} else {
									res = res + "\n" + "The beneficiary in Sequence C has been set to " + this.model.gidgrp.bec.pts.adrblk + ".";
								}
							}
							//model.swiadd.newamt
							if(new BigNumber(this.model.swiadd.newamt).comparedTo(new BigNumber(this.model.oldgidgrp.cbs.max.amt))!=0){
								res = res + "\n" + "The guarantee amount has changed from " + this.model.oldgidgrp.cbs.max.cur + new BigNumber(this.model.oldgidgrp.cbs.max.amt).toFormat(2) + " to " + this.model.swiadd.newcur + new BigNumber(this.model.swiadd.newamt).toFormat(2) + ".";
							}
							//model.swiadd.newexpdat
							if(this.model.gidgrp.rec.legfrm != 'DEPU'){
								if(this.model.swiadd.exptyp!=""){
									if(this.model.swiadd.exptyp!=this.model.oldgidgrp.rec.exptyp){
										res = res + "\n" + "The expiry type has changed from " + this.model.oldgidgrp.rec.exptyp + " to " + this.model.swiadd.exptyp + ".";
									}
									if((this.model.swiadd.newexpdat!=""&&this.model.swiadd.newexpdat!=null)||this.model.swiadd.newexpflg!=""){
										if(this.model.swiadd.newexpdat!=""&&this.model.swiadd.newexpdat!=null){
											if(this.model.oldgidgrp.rec.expflg!=""){
												res = res + "\n" + "The expiry date has changed from unlimited to " + this.model.swiadd.newexpdat + ".";
											}
											else{
												if(this.model.oldgidgrp.rec.expdat==""||this.model.oldgidgrp.rec.expdat==null){
													res = res + "\n" + "The expiry date has been set to "+this.model.swiadd.newexpdat + ".";
												}
												else{
													if(this.model.oldgidgrp.rec.expdat!=this.model.swiadd.newexpdat){
														res = res + "\n" + "The expiry date has changed from "+this.model.oldgidgrp.rec.expdat + " to " + this.model.swiadd.newexpdat+ ".";
													}
												}
											}
										}
										if(this.model.swiadd.newexpflg!=""){
											if((this.model.oldgidgrp.rec.expdat==""||this.model.oldgidgrp.rec.expdat==null)&&this.model.oldgidgrp.rec.expflg==""){
												res = res + "\n" + "The expiry date has been set to unlimited.";
											}
											if(this.model.oldgidgrp.rec.expdat!=""&&this.model.oldgidgrp.rec.expdat!=null){
												res = res + "\n" + "The expiry date has changed from " + this.model.oldgidgrp.rec.expdat + " to unlimited.";
											}
										}
									}
									else{
										res = res + "\n" + "The expiry date has not been set."
									} 
									if(this.model.swiadd.exptyp == 'COND'&&this.model.oldgidgrp.rec.exptyp=="COND"){
										if(this.model.oldgidgrp.blk.atxexptxt!=""){
											if(this.model.swiadd.exptxt!=this.model.oldgidgrp.blk.atxexptxt){
												res = res + "\n" + "The expiry condition has changed from "+this.model.oldgidgrp.blk.atxexptxt + " to " + this.model.swiadd.exptxt+ ".";
											}
										}
										else{
											if(this.model.swiadd.exptxt!=this.model.oldgidgrp.blk.exptxt){
												res = res + "\n" + "The expiry condition has changed from "+this.model.oldgidgrp.blk.exptxt + " to " + this.model.swiadd.exptxt+ ".";
											}
										}
									}
									if(this.model.swiadd.exptyp == 'COND'&&this.model.oldgidgrp.rec.exptyp!="COND"){
										if(this.model.swiadd.exptxt!=""){
											res = res + "\n" + "The expiry condition has been set to "+this.model.swiadd.exptxt+ ".";
										}
									}
								}
								if(this.model.swiadd.purposame == 'ISCA' || this.model.swiadd.purposame == 'ICCA'){
									if(this.model.swiadd.liatypc!=""){
										if(this.model.swiadd.liatypc!=this.model.oldgidgrp.rec.liatypc){
											res = res + "\n" + "The liability type has changed from " + this.model.oldgidgrp.rec.liatypc + " to " + this.model.swiadd.liatypc + ".";
										}
										if((this.model.swiadd.newliadat!=""&&this.model.swiadd.newliadat!=null)||this.model.swiadd.newliaflg!=""){
											if(this.model.swiadd.newliadat!=""&&this.model.swiadd.newliadat!=null){
												if(this.model.oldgidgrp.rec.liaflg!=""){
													res = res + "\n" + "The liability date has changed from unlimited to " + this.model.swiadd.newliadat + ".";
												}
												else{
													if(this.model.oldgidgrp.rec.liadat==""||this.model.oldgidgrp.rec.liadat==null){
														res = res + "\n" + "The liability date has been set to "+this.model.swiadd.newliadat + ".";
													}
													else{
														if(this.model.oldgidgrp.rec.liadat!=this.model.swiadd.newliadat){
															res = res + "\n" + "The liability date has changed from "+this.model.oldgidgrp.rec.liadat + " to " + this.model.swiadd.newliadat+ ".";
														}
													}
												}
											}
											if(this.model.swiadd.newliaflg!=""){
												if((this.model.oldgidgrp.rec.liadat==""||this.model.oldgidgrp.rec.liadat==null)&&this.model.oldgidgrp.rec.liaflg==""){
													res = res + "\n" + "The liability date has been set to unlimited.";
												}
												if(this.model.oldgidgrp.rec.liadat!=""&&this.model.oldgidgrp.rec.liadat!=null){
													res = res + "\n" + "The liability date has changed from " + this.model.oldgidgrp.rec.liadat + " to unlimited.";
												}
											}
										}
										else{
											res = res + "\n" + "The liability date has not been set."
										}
										if(this.model.swiadd.liatypc == 'COND'&&this.model.oldgidgrp.rec.liatypc=="COND"){
											if(this.model.oldgidgrp.blk.atxliatxtc!=""){
												if(this.model.swiadd.liatxtc!=this.model.oldgidgrp.blk.atxliatxtc){
													res = res + "\n" + "The liability condition has changed from "+this.model.oldgidgrp.blk.atxliatxtc + " to " + this.model.swiadd.liatxtc+ ".";
												}
											}
											else{
												if(this.model.swiadd.liatxtc!=this.model.oldgidgrp.blk.liatxtc){
													res = res + "\n" + "The liability condition has changed from "+this.model.oldgidgrp.blk.liatxtc + " to " + this.model.swiadd.liatxtc+ ".";
												}
											}
										}
										if(this.model.swiadd.liatypc == 'COND'&&this.model.oldgidgrp.rec.liatypc!="COND"){
											if(this.model.swiadd.liatxtc!=""){
												res = res + "\n" + "The liability condition has been set to "+this.model.swiadd.liatxtc+ ".";
											}
										}
									}
								}
							}
							//待完善
							this.model.gitamep.ametxt = res.replace(/^\s*[\r\n]/gm, '');
					}
					return this.model.gitamep.ametxt;
			},
			set(newVal) {
				// 根据需要在设置计算属性时执行一些操作
				this.model.gitamep.ametxt = newVal.replace(/^\s*[\r\n]/gm, ''); // 这里假设你要将计算属性绑定到 formData 中的 fieldName 属性
			}
		},
	}
}
</script>
<style lang="less" scoped>
.custom-box-wrap {
	width: 100%;
	display: flex;
	justify-content: flex-start;
	.box-1 {
		width: calc(100% - 120px);
		display: flex;align-items: center;
		justify-content: flex-start;
	}
	.box-2 {
		width: 100px;margin-left: 20px;display: flex;align-items: flex-start;
	}
}
</style>