Mt799.vue 2.75 KB
<template>
	<div class="eibs-tab">
		<c-col :span="24">
			<el-form-item label="MT799 (79) 受益人英文名称" prop="ditp.bennam">
				<c-input v-model="model.ditp.bennam" maxlength="100" placeholder="请输入MT799 (79) 受益人英文名称"></c-input>
			</el-form-item>
		</c-col>
		<c-col :span="24">
			<el-form-item label="MT799(79)申请人英文名称" prop="ditp.aplname">
				<c-input v-model="model.ditp.aplname" maxlength="100" placeholder="请输入MT799(79)申请人英文名称"></c-input>
			</el-form-item>
		</c-col>
		<c-col :span="24">
			<el-form-item label="MT799 (79) 签名" prop="ditp.signam">
				<c-input v-model="model.ditp.signam" maxlength="50" placeholder="请输入MT799 (79) 签名"></c-input>
			</el-form-item>
		</c-col>
		<c-col :span="24">
			<el-form-item label="MT799(79) 备注" prop="ditp.remark">
				<!-- <c-mul-row-input :cols="65" :rows="12" :autosize="{ minRows: 15, maxRows: 15}" placeholder="请输入MT799(79) 备注" v-model="model.ditp.remark">
				</c-mul-row-input> -->
				<c-input type="textarea" :rows="15" v-model="model.ditp.remark" maxlength="780" show-word-limit ></c-input>
			</el-form-item>
		</c-col>
		<c-col :span="24">
			<el-form-item label="MT799(79) 备注" v-show="false">
				<!-- <c-mul-row-input :cols="65" :rows="12" :autosize="{ minRows: 15, maxRows: 15}" placeholder="请输入MT799(79) 备注" v-model="ditpremark">
				</c-mul-row-input> -->
				<c-input type="textarea" :rows="15" v-model="ditpremark" maxlength="780" show-word-limit ></c-input>
			</el-form-item>
		</c-col>
	</div>
</template>
<script>
import event from "../event";
import moment from 'moment';

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {};
  },
  created() {},
  computed: {
	  ditpremark: {
			get() {
				if(this.isInDisplay){
                        return this.model.ditp.remark;
				}
				let txt01 = "Acknowledgement for amendment of LC";
				let txt02 = "We hereby confirm that we have amended LC";
				let txt03 = "issued on" + " " +  moment(this.model.didgrp.rec.opndat).format("DD/MM/YYYY");
				let txt030 = "by letter in the following details:";
				let txt04 = this.model.didgrp.rec.ownref;
				let txt05 = "1\\ date of amendment:";
				let txt050 = moment(this.model.swiadd.amedat).format("DD/MM/YYYY");
				let txt06 = "2\\ number of amendment:";
				let txt060 = this.model.ditamep.amenbr;
				let txt07 = "3\\ name of authorized signatory: ";
				let txt070 = this.model.ditp.signam;
				let txts=  txt01 + "\n" + txt02 + " " + txt04 + " " + "\n" + txt03 + " " + txt030 + "\n" + txt05 + txt050 + "\n" + txt06 + txt060 + "\n" + txt07 + txt070
				this.model.ditp.remark =  txts;
				return txts;
			},
			set(newVal) {
				return newVal;
			}
	  }
  }
};
</script>
<style>
</style>