Amep.vue 10 KB
Newer Older
jxl committed
1 2 3 4 5
<template>
 <c-row>
<!-- =================顶部====================== -->
  <c-col :span="24">
    <c-col :span="11">
6
        <c-col :span="22">
jxl committed
7
          <el-form-item
8
            label="Reference"
jxl committed
9 10 11 12 13 14 15 16 17 18 19 20
            prop="bodgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.bodgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入Reference"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
21
          <c-col :span="2">
jxl committed
22 23 24 25 26 27 28
              <c-button
               style="margin:0 10px 0 0;padding: 0 10px;"
                size="small"
                type="primary"
                icon="el-icon-search"
              ></c-button>
          </c-col>
29
          
jxl committed
30 31
    </c-col>
    <c-col :span="11" :offset="1">
32
        <el-form-item label="Name" prop="bodgrp.rec.nam">
jxl committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
          <c-input
            align="middle"
            v-model="model.bodgrp.rec.nam"
            maxlength="40"
            disabled
            placeholder="请输入Externally Displayed Name to Identify the Contract"
          ></c-input>
        </el-form-item>
    </c-col>
  </c-col>
<!-- ====================左边======================= -->
  <c-col :span="11">            
    <c-col :span="24">
        <el-form-item label="Amendment Date" prop="botamep.amedat">
            <c-date-picker type="date"  v-model="model.botamep.amedat" style="width:100%"  placeholder="请选择Amendment Date"></c-date-picker>
        </el-form-item>
    </c-col>
    
    <c-col :span="24">
52
    <c-col :span="12" >
jxl committed
53 54 55
        <el-form-item label="" >
        </el-form-item>
    </c-col>  
huangxin committed
56
    <c-col :span="12" :offset="4">
jxl committed
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
        <el-form-item label="Amount" >
        </el-form-item>
    </c-col>
    </c-col>
    
    <c-col :span="12">
        <el-form-item label="Original Amount" prop="oldbodgrp.cbs.max.cur">
          <c-select
            disabled
            v-model="model.oldbodgrp.cbs.max.cur"
            style="width: 100%"
            placeholder="请选择Currency"
            
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    <c-col :span="12">
        <el-form-item
          style="text-align: left"
84
          label-width="5px"
jxl committed
85 86
          prop="oldbodgrp.cbs.max.amt"
        >
huangxin committed
87
          <c-input
88
          disabled
jxl committed
89 90
            v-model="model.oldbodgrp.cbs.max.amt"
            style="text-align: left; width: 100%"
91
            placeholder="请输入Original Amount"
huangxin committed
92 93
            
          ></c-input>
jxl committed
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
        </el-form-item>
      </c-col>
    
    <c-col :span="12">
        <el-form-item label="Amended" prop="trnmod.swiadd.amecur">
          <c-select
            disabled
            v-model="model.trnmod.swiadd.amecur"
            style="width: 100%"
            placeholder="请选择Currency"
            
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    <c-col :span="12">
        <el-form-item
          style="text-align: left"
119
          label-width="5px"
jxl committed
120 121
          prop="trnmod.swiadd.ameamt"
        >
huangxin committed
122
          <c-input
jxl committed
123 124 125
            v-model="model.trnmod.swiadd.ameamt"
            style="text-align: left; width: 100%"
            placeholder="请输入Amended"
huangxin committed
126 127
            @keyup.enter.native="showGridPromptDialog('trnmod.swiadd.ameamt')"
          ></c-input>
jxl committed
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
        </el-form-item>
      </c-col>
    
    <c-col :span="12">
        <el-form-item label="New Amount" prop="trnmod.swiadd.newcur">
          <c-select
            disabled
            v-model="model.trnmod.swiadd.newcur"
            style="width: 100%"
            placeholder="请选择Currency"
            
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    <c-col :span="12">
        <el-form-item
          style="text-align: left"
153
          label-width="5px"
jxl committed
154 155
          prop="trnmod.swiadd.newamt"
        >
huangxin committed
156
          <c-input
jxl committed
157 158 159
            v-model="model.trnmod.swiadd.newamt"
            style="text-align: left; width: 100%"
            placeholder="请输入New Amount"
huangxin committed
160 161
            @keyup.enter.native="showGridPromptDialog('trnmod.swiadd.newamt')"
          ></c-input>
jxl committed
162 163 164 165 166 167 168
        </el-form-item>
      </c-col>
  </c-col>


<!-- ====================底部======================= -->
<c-col>
169
  <el-row>
huangxin committed
170
   <c-col :span="11">       
171
     <c-col :span="24">                           
172
       <c-col :span="9">
huangxin committed
173 174
        <el-form-item label="Tenor Data" prop="oldbodgrp.rec.matpercnt">
            <c-input disabled v-model="model.oldbodgrp.rec.matpercnt"  placeholder="请输入New Tenor Data"></c-input>
jxl committed
175 176
        </el-form-item>
       </c-col>
177
                  
178
       <c-col :span="4">
huangxin committed
179 180
        <el-form-item label="" prop="oldbodgrp.rec.matpertyp" label-width="5px">
            <c-select disabled v-model="model.oldbodgrp.rec.matpertyp" style="width: 100%"  placeholder="请选择Days/Month or Year for Maturity Period">
181
            <el-option
huangxin committed
182
              v-for="item in matpertyp"
183 184 185 186 187
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
huangxin committed
188 189
            </c-select>
            
jxl committed
190 191 192
        </el-form-item>
       </c-col>
                  
huangxin committed
193
       <c-col :span="11">
huangxin committed
194 195 196 197 198 199 200 201 202
        <el-form-item label="" prop="oldbodgrp.rec.matperbeg" label-width="5px">
            <c-select disabled v-model="model.oldbodgrp.rec.matperbeg" style="width:100%" placeholder="请选择Start of Maturity Period">
            <el-option
              v-for="item in codes.matperbeg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
jxl committed
203 204 205
              </c-select>
        </el-form-item>
       </c-col>
206 207
     </c-col>
   </c-col>
208
   </el-row>
209

210
    <el-row>
huangxin committed
211
    <c-col :span="11">       
212
      <c-col :span="24">                           
213
       <c-col :span="9">
huangxin committed
214 215
        <el-form-item label="New Tenor Data" prop="trnmod.swiadd.newmatpercnt">
            <c-input  :disabled="model.bodgrp.rec.doctypcod === 'P'" v-model="model.trnmod.swiadd.newmatpercnt"   placeholder="请输入Tenor Data"></c-input>
jxl committed
216 217
        </el-form-item>
       </c-col>
218
   
219
       <c-col :span="4">
huangxin committed
220 221
        <el-form-item label="" prop="trnmod.swiadd.newmatpertyp" label-width="5px">
            <c-select  :disabled="model.bodgrp.rec.doctypcod === 'P'" v-model="model.trnmod.swiadd.newmatpertyp"  style="width: 100%"  placeholder="请输入Days/Months or Years for Maturity Period">
222
            <el-option
huangxin committed
223
              v-for="item in matpertyp"
224 225 226 227 228 229
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
            </c-select>
jxl committed
230 231 232
        </el-form-item>
       </c-col>
                  
huangxin committed
233
       <c-col :span="11">
huangxin committed
234 235
        <el-form-item label="" prop="trnmod.swiadd.newmatperbeg" label-width="5px">
            <c-select :disabled="model.bodgrp.rec.doctypcod === 'P'" v-model="model.trnmod.swiadd.newmatperbeg" style="width:100%" placeholder="请选择Start of Maturity Period MATBEG">
236 237 238 239 240 241 242
            <el-option
              v-for="item in codes.matperbeg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
jxl committed
243 244 245
              </c-select>
        </el-form-item>
       </c-col>
246 247
       </c-col>
    </c-col>
248
    </el-row>
249

jxl committed
250 251 252 253 254 255
</c-col>

<!-- ====================左边======================= -->
  <c-col :span="11">                       
       <c-col :span="24">
        <el-form-item label="Maturity Date" prop="oldbodgrp.rec.matdat">
256
            <c-date-picker type="date" disabled v-model="model.oldbodgrp.rec.matdat" style="width:100%"  placeholder="请选择Maturity Date"></c-date-picker>
jxl committed
257 258 259 260 261
        </el-form-item>
       </c-col>
                                   
       <c-col :span="24">
        <el-form-item label="New Maturity Date" prop="trnmod.swiadd.newmatdat">
huangxin committed
262
            <c-date-picker type="date"  :disabled="model.bodgrp.rec.doctypcod === 'P'" v-model="model.trnmod.swiadd.newmatdat" style="width:100%"  placeholder="请选择New Maturity Date"></c-date-picker>
jxl committed
263 264 265 266 267
        </el-form-item>
       </c-col>
                                                    
       <c-col :span="24">
        <el-form-item label="Further Amendments" prop="trnmod.swiadd.ametxt">
huangxin committed
268
            <c-input-format type="textarea" v-model="model.trnmod.swiadd.ametxt" :maxRows="6" :maxCols="35" placeholder="请输入Further Amendments" ></c-input-format>
jxl committed
269 270 271 272 273 274 275
        </el-form-item>
        </c-col>
  </c-col>
 </c-row>
</template>
<script>
import Api from "~/service/Api"
wangren committed
276
import commonProcess from "~/mixin/commonProcess";
jxl committed
277 278 279 280 281 282
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botame/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
wangren committed
283
    mixins: [commonProcess],
jxl committed
284 285
    data(){
        return {
huangxin committed
286 287
          matpertyp: [
        { label: "Days", value: "D" },
288
        { label: "Months", value: "M" },
huangxin committed
289
    ],
jxl committed
290 291 292

        }
    },
huangxin committed
293 294 295 296
    watch:{
        "model.bodgrp.rec.doctypcod":function(){
            if(this.model.bodgrp.rec.doctypcod=='P'){
                this.model.trnmod.swiadd.newmatdat="";
huangxin committed
297
                this.model.bodgrp.rec.matdat="";
huangxin committed
298 299
            }
        },
huangxin committed
300
      },
huangxin committed
301
    methods:{...Event,
huangxin committed
302 303 304 305 306 307 308 309
    // change() {
    // if(this.model.trnmod.swiadd.newmatdat!="" ){
    //         this.model.bodgrp.rec.matdat=this.model.trnmod.swiadd.newmatdat;
    //         }
    //       else{
    //           this.model.bodgrp.rec.matdat=this.model.oldbodgrp.rec.matdat;
    //         }
    // },
huangxin committed
310
    },
jxl committed
311 312 313 314 315 316 317 318
    created:function(){

    }
}
</script>
<style>

</style>