Cnfp.vue 11.4 KB
<template>
  <div class="eibs-tab">
    <el-row>
       <!-- ==================左边================ -->
      <!-- S0000076 : 头寸调拨业务参考号 -->
      <c-col :span="12" style="padding-right: 20px">
        <c-form-item :label="$t('fttpcm.头寸调拨业务参考号')" prop="ftdgrp.rec.ownref">
          <c-fullbox>
            <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"></c-input>
            <template slot="footer">
              <c-button size="small" style="margin-left: 5px" type="primary"
                        @click="getOwnref">
                获取
              </c-button>
            </template>
          </c-fullbox>
        </c-form-item>
      </c-col>
      <!-- S0000077 : 名称 -->
      <c-col :span="12">
        <c-form-item label=名称 prop="ftdgrp.rec.nam">
          <c-input v-model="defaultNam950" maxlength="40" disabled></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <el-divider></el-divider>
      </c-col>

      <c-col :span="12">
        <!-- S0000080 : 资金部负责人 -->
        <c-col :span="24">
          <c-form-item
            :label="$t('fttp.资金部负责人')"
            prop="ftdgrp.rec.usr"
          >
            <c-fullbox>
              <c-input v-model="model.ftdgrp.rec.usr" maxlength="8"></c-input>
              <template slot="footer">
                <c-button size="small" style="margin-left: 5px" type="primary">
                  i
                </c-button>
              </template>
            </c-fullbox>
          </c-form-item>
        </c-col>
        <!-- S0000088 : 清算中心负责人 -->
        <c-col :span="24">
          <c-form-item
            :label="$t('fttp.清算中心负责人')"
            prop="ftdgrp.rec.usr"
          >
            <c-fullbox>
              <c-input v-model="model.ftdgrp.rec.usr" maxlength="8" placeholder="请输入清算中心负责人"></c-input>
              <template slot="footer">
                <c-button size="small" style="margin-left: 5px" type="primary">
                  i
                </c-button>
              </template>
            </c-fullbox>
          </c-form-item>
        </c-col>
        <!-- S0000083 : 头寸调拨金额 -->
        <c-col :span="24">
          <c-col :span="10">
            <c-form-item
              :label="$t('fttp.头寸调拨金额')"
              prop="ftdgrp.cbs.max.cur"
            >
             
              <c-select-cur
                    v-model="model.ftdgrp.cbs.max.cur" 
                    style="width: 100%" 
                    dbCode="curtxt"> 
                </c-select-cur>
              <!-- </c-select> -->
            </c-form-item>
          </c-col>
          <c-col :span="14">
            <c-form-item label-width="20px" prop="ftdgrp.cbs.max.amt">
              <c-input-currency
                v-model="model.ftdgrp.cbs.max.amt"
                :currency="model.ftdgrp.cbs.max.cur"
              ></c-input-currency>
            </c-form-item>
          </c-col>
        </c-col>
        <!-- S0000084 : 调拨日期 -->
        <c-col :span="24">
          <c-form-item
            :label="$t('fttp.调拨日期')"
            prop="ftdgrp.rec.opndat"
          >
            <c-date-picker
              type="date"
              v-model="model.ftdgrp.rec.opndat"
              style="width: 100%"
            ></c-date-picker>
          </c-form-item>
        </c-col>
        <!-- S0000085 : 起息日 -->
        <c-col :span="24">
          <c-form-item :label="$t('fttp.起息日')" prop="ftdgrp.rec.valdat">
            <c-date-picker
              type="date"
              v-model="model.ftdgrp.rec.valdat"
              style="width: 100%"
            ></c-date-picker>
          </c-form-item>
        </c-col>
        <!-- S0000025 : 备注 -->
        <c-col :span="24">
          <c-form-item :label="$t('fttp.备注')" prop="ftdgrp.blk.remark">
            <c-input
              type="textarea"
              v-model="model.ftdgrp.blk.remark"
              :rows="3"
              maxlength="35"
              show-word-limit
            ></c-input>
          </c-form-item>
        </c-col>
        <!---beneficiary受益人-->

        <c-col :span="24">
                    <el-card class="box-card">
                        <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
                                :isAdrblk="true" :haveAdrLabel="true"
                                :isShowCard="false" :argadr="{title: '头寸调拨受益人',grp: 'ftdgrp', rol: 'ben',}"
                                :label="{labelExtkey:'头寸调拨受益人',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="C">
                        </c-ptap>
                    </el-card>
                </c-col>
        <!-- <c-col :span="24">
          <c-form-item
            :label="$t('fttp.受益人')"
            prop="ftdgrp.ben.pts.extkey"
          >
            <c-fullbox>
              <c-input
                v-model="model.ftdgrp.ben.pts.extkey"
                maxlength="34"
              ></c-input>
              <template slot="footer">
                <c-button size="small" style="margin-left: 5px" type="primary">
                  i
                </c-button>
                <c-button size="small" style="margin-left: 5px" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
          </c-form-item>
        </c-col> -->
        <c-col :span="24">
          <c-form-item prop="ftdgrp.ben.pts.nam">
            <c-input
              v-model="model.ftdgrp.ben.pts.nam"
              maxlength="40"
            ></c-input>
          </c-form-item>
        </c-col>
        <!-- S0000104 : 报文类型 -->
        <c-col :span="24">
          <c-form-item :label="$t('fttp.报文类型')" prop="fttp.msgtyp">
            <c-select
              v-model="model.fttp.msgtyp"
              :code="codes.swftyp1"
              style="width: 100%"
            >
            </c-select>
          </c-form-item>
        </c-col>
      </c-col>

      <c-col :span="12">

                    <!-- ==================右边================ -->
        
        <!-- <c-col :span="24">
          <c-form-item
            :label="$t('fttp.头寸调出行')"
            prop="ftdgrp.tro.pts.ref"
          >
            <c-input
              v-model="model.ftdgrp.tro.pts.ref"
              maxlength="20"
            ></c-input>
          </c-form-item>
        </c-col>
        <c-col :span="24">
          <c-form-item label="" prop="ftdgrp.tro.pts.extkey">
            <c-fullbox>
              <c-input
                v-model="model.ftdgrp.tro.pts.extkey"
                maxlength="8"
              ></c-input>
              <template slot="footer">
                <c-button size="small" style="margin-left: 5px" type="primary">
                  i
                </c-button>
                <c-button size="small" style="margin-left: 5px" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
          </c-form-item>
        </c-col>
        <c-col :span="24">
          <c-form-item label="" prop="ftdgrp.tro.pts.adrblk">
            <c-input
              type="textarea"
              v-model="model.ftdgrp.tro.pts.adrblk"
              :rows="3"
              maxlength="35"
              show-word-limit
            ></c-input>
          </c-form-item>
        </c-col> -->

<!-- S0000078 : 头寸调出行 -->
        <c-col :span="24">
                    <el-card class="box-card">
                        <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
                                :isAdrblk="true" :haveAdrLabel="true"
                                :isShowCard="false" :argadr="{title: '头寸调出行',grp: 'ftdgrp', rol: 'tro',}"
                                :label="{labelExtkey:'头寸调出行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
                        </c-ptap>
                    </el-card>
                </c-col>



        <c-col :span="24">
          <c-form-item label="" prop="fttp.troact">
            <c-select
              v-model="model.fttp.troact"
              :code="[{ label: '7026141140101010009', value: '1' }]"
              style="width: 100%"
            >
            </c-select>
          </c-form-item>
        </c-col>

        <!--头寸调入行Short Position Bank-->

        <c-col :span="24">
                    <el-card class="box-card">
                        <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
                                :isAdrblk="true" :haveAdrLabel="true"
                                :isShowCard="false" :argadr="{title: '头寸调入行',grp: 'ftdgrp', rol: 'tri',}"
                                :label="{labelExtkey:'头寸调入行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
                        </c-ptap>
                    </el-card>
                </c-col>

        <!-- <c-col :span="24">
          <c-form-item
            label="头寸调入行"
            prop="fttp.trop.ptsget.sdamod.dadsnd"
          >
            <c-input v-model="model.fttp.trop.ptsget.sdamod.dadsnd"></c-input>
          </c-form-item>
        </c-col>
        <c-col :span="24">
          <c-form-item prop="ftdgrp.tri.pts.extkey">
            <c-fullbox>
              <c-input
                v-model="model.ftdgrp.tri.pts.extkey"
                maxlength="16"
              ></c-input>
              <template slot="footer">
                <c-button size="small" style="margin-left: 5px" type="primary">
                  i
                </c-button>
                <c-button size="small" style="margin-left: 5px" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
          </c-form-item>
        </c-col>
        <c-col :span="24">
          <c-form-item prop="ftdgrp.tri.pts.adrblk">
            <c-input
              type="textarea"
              v-model="model.ftdgrp.tri.pts.adrblk"
              :rows="3"
              maxlength="35"
              show-word-limit
            ></c-input>
          </c-form-item>
        </c-col> -->


        <c-col :span="24">
          <c-form-item prop="fttp.triact">
            <c-select
              v-model="model.fttp.triact"
              :code="[{ label: '7026141140101010009', value: '1' }]"
              style="width: 100%"
            >
            </c-select>
          </c-form-item>
        </c-col>
      </c-col>
    </el-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import event from "../event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event,commonProcess],
  data() {
    return {};
  },
  computed: {
    defaultNam950: function () {
                let amount = this.moneyFormat(this.model.ftdgrp.cbs.max.amt, this.model.ftdgrp.cbs.max.cur);
                let nam = this.getCodelabel(this.model.ftdgrp.rec.fttyp, "ftt_fttyp") + ","
                    + this.model.ftdgrp.cbs.max.cur + " " + amount
                this.model.ftdgrp.rec.nam = nam;
                return nam;
          },
        },
  methods: { //获取码值
            getCodelabel(value, codenam) {
                const codeobj = this.codes[codenam].find(obj => obj.value === value)
                return codeobj ? codeobj.label : value;
            },},
  created: function () {},
}
</script>
<style></style>