<template> <div class="eibs-tab"> <!-- ==============================左边============================== --> <c-col :span="12" style="padding-right: 20px;"> <!-- 业务参考号 --> <c-col :span="24"> <c-form-item :label="$t('fxtlcm.业务参考号')" prop="fxdgrp.rec.ownref"> <c-fullbox> <c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled > </c-input> <template slot="footer"> <c-button style="margin: 0 0" size="small" type="primary" :disabled="model.fxdgrp.apl.pts.ptainr === ''" @click="getOwnref" > 获取 </c-button> </template> </c-fullbox> </c-form-item> </c-col> <!-- 资金部负责人 --> <c-col :span="24"> <c-form-item :label="$t('fxtlcm.资金部负责人')" prop="fxdgrp.rec.ownusr"> <c-input v-model="model.fxdgrp.rec.ownusr" maxlength="8"></c-input> </c-form-item> </c-col> <!-- 清算中心负责人 --> <c-col :span="24"> <c-form-item :label="$t('fxtlcm.清算中心负责人')" prop="fxdgrp.rec.usr"> <c-input v-model="model.fxdgrp.rec.usr" maxlength="8"></c-input> </c-form-item> </c-col> <!-- 平盘类型 --> <c-col :span="24"> <el-form-item :label="$t('fxtlcm.平盘类型')" prop="fxdgrp.rec.fxtyp"> <c-select v-model="model.fxdgrp.rec.fxtyp" :code="codes.fxt_fxtyp" style="width:100%" > </c-select> </el-form-item> </c-col> <!-- 卖出金额 --> <c-col :span="24"> <c-col :span="12"> <el-form-item :label="$t('fxtsqo.卖出金额')" prop="fxdgrp.cbs.max.cur"> <c-select v-model="model.fxdgrp.cbs.max.cur" :code="codes.bopcur" style="width:100%"> </c-select> </el-form-item> </c-col> <c-col :span="12"> <c-form-item label-width="5px" prop="fxdgrp.cbs.max.amt"> <c-input v-model="model.fxdgrp.cbs.max.amt"></c-input> </c-form-item> </c-col> </c-col> <!-- 买入金额 --> <c-col :span="24"> <c-col :span="12"> <el-form-item :label="$t('fxtsqo.买入金额')" prop="fxdgrp.cbs.nom1.cur"> <c-select v-model="model.fxdgrp.cbs.nom1.cur" :code="codes.bopcur" style="width:100%"> </c-select> </el-form-item> </c-col> <c-col :span="12"> <c-form-item label-width="5px" prop="fxdgrp.cbs.nom1.amt"> <c-input v-model="model.fxdgrp.cbs.nom1.amt"></c-input> </c-form-item> </c-col> </c-col> <!-- 平盘牌价 --> <c-col :span="24"> <c-form-item :label="$t('fxtlcm.平盘牌价')" prop="fxdgrp.rec.rat"> <c-input v-model="model.fxdgrp.rec.rat" ></c-input> </c-form-item> </c-col> <!-- 中间价 --> <c-col :span="24"> <c-form-item :label="$t('fxtlcm.中间价')" prop="fxdgrp.rec.midrat"> <c-input v-model="model.fxdgrp.rec.midrat" ></c-input> </c-form-item> </c-col> <!-- 平盘日期 --> <c-col :span="24"> <el-form-item :label="$t('fxtsqo.登记日期')" prop="fxdgrp.rec.opndat"> <c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%"></c-date-picker> </el-form-item> </c-col> <!-- 起息日 --> <c-col :span="24"> <el-form-item :label="$t('fxtsqo.起息日')" prop="fxdgrp.rec.valdat"> <c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%"></c-date-picker> </el-form-item> </c-col> <!-- 备注 --> <c-col :span="24"> <c-form-item :label="$t('fxtsqo.备注')" prop="fxdgrp.blk.remark"> <c-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="35" show-word-limit></c-input> </c-form-item> </c-col> </c-col> <!-- ==============================右边============================== --> <c-col :span="12" style="padding-right: 20px;"> <!-- 名称 --> <c-col :span="24"> <c-form-item :label="$t('fxtsqo.名称')" prop="fxdgrp.rec.nam"> <c-input v-model="model.fxdgrp.rec.nam" maxlength="40"></c-input> </c-form-item> </c-col> <c-col :span="24"> <el-card class="box-card"> <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="true" :isAdrblk="true" :haveAdrLabel="true" :argadr="{ title: '平盘对手', grp: 'fxdgrp', rol: 'apl' }" :label="{ labelExtkey: '平盘对手', labelNam: '名称', labelAdrblk: '地址', }" ptytyp="C" > </c-ptap> </el-card> </c-col> <!-- 平盘对手账号 对应model下面的aplacc ,优化时需要修改grp 和rol --> <c-col :span="24"> <el-card class="box-card"> <c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" :haveAdrLabel="true" :isShowCard="false" :argadr="{ title: '平盘对手账号', grp: 'fxdgrp', rol: 'act' }" ptytyp="C" > </c-ptap> </el-card> </c-col> <c-col :span="24"> <el-card class="box-card"> <c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" :haveAdrLabel="true" :isShowCard="false" :argadr="{ title: '我行账户行', grp: 'fxdgrp', rol: 'act' }" ptytyp="B" > </c-ptap> </el-card> </c-col> </c-col> </div> </template> <script> import Api from "~/service/Api" import commonProcess from "~/mixin/commonProcess"; export default { inject: ['root'], props:["model","codes"], mixins: [commonProcess], data(){ return {} }, methods:{}, created:function(){} } </script> <style> </style>