<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'; import BigNumber from "bignumber.js"; 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 issuance of LC"; let txt02 = "We hereby confirm that we have issued LC by letter in the following details:" let txt03 = "1\\ issuing date:" + moment(this.model.didgrp.rec.opndat).format("DD/MM/YYYY"); let txt04 = "2\\ LC number:" + this.model.didgrp.rec.ownref; let txt08 = "3\\ LC amount:" + " " +this.model.didgrp.cbs.nom1.cur + " " + new BigNumber(this.model.didgrp.cbs.nom1.amt).toFormat(2); let txt05 = "4\\ applicant:" + this.model.ditp.aplname; let txt06 = "5\\ beneficiary:" + this.model.ditp.bennam; let txt07 = "6\\ name of authorized signatory: " + this.model.ditp.signam; let txts= txt01 + "\n" + txt02 + "\n" + txt03 + "\n" + txt04 + "\n" + txt08 + "\n" + txt05 + "\n" + txt06 + "\n" + txt07; this.model.ditp.remark = txts; return txts; }, set(newVal) { return newVal; } } } }; </script> <style> </style>