Rclp.vue 8.11 KB
<template>
  <div class="eibs-tab">

    <c-row> 
        <!--=================顶部=================  --> 
            <c-col :span="11">
                <c-form-item label="父交易参考号" prop="trdgrp.rec.pntref">
                    <c-input  v-model="model.trdgrp.rec.pntref" maxlength="16" :disabled="true"></c-input>
                </c-form-item>
            </c-col>
                        
            <c-col :span="11">
                <c-form-item label="简略信息" prop="trdgrp.rec.pntnam">
                    <c-input  v-model="model.trdgrp.rec.pntnam" maxlength="40" :disabled="true" ></c-input>
                </c-form-item>
            </c-col>
                        
                        
            <c-col :span="11">
                <c-form-item label="参考号" prop="trdgrp.rec.ownref">
                    <c-input  v-model="model.trdgrp.rec.ownref" maxlength="16" :disabled="true"></c-input>
                </c-form-item>
            </c-col>
                        
                        
            <c-col :span="11">
                <c-form-item label="简略信息" prop="trdgrp.rec.nam">
                    <c-input  v-model="model.trdgrp.rec.nam" maxlength="40" :disabled="true"></c-input>
                </c-form-item>
            </c-col>

        <!--=================中部-左=================  -->
        <c-col :span="11">
            <c-col :span="24">
                <c-form-item label="融资比例" prop="trdgrp.rec.pctfin">
                    <c-input  v-model="model.trdgrp.rec.pctfin"  style="width:95%" :disabled="true"></c-input>%
                </c-form-item>
            </c-col>
                                
            <c-col :span="24">
                <el-form-item label="融资金额" prop="trdgrp.cbs.max.cur">
                    <c-fullbox>
                        <c-select v-model="model.trdgrp.cbs.max.cur" style="width:34%" :disabled="true">
                            <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value"></el-option>
                        </c-select>
                        <c-input  v-model="model.trdgrp.cbs.max.amt" style="width:66%" :disabled="true" ></c-input>
                    </c-fullbox>
                </el-form-item>
            </c-col>
                        
            <c-col :span="24">
                <c-form-item label="余额" prop="trdgrp.cbs.opn1.cur">
                    <c-fullbox>
                        <c-input  v-model="model.trdgrp.cbs.opn1.cur" style="width:34%" maxlength="3" :disabled="true"></c-input>
                        <c-input  v-model="model.trdgrp.cbs.opn1.amt" style="width:66%" :disabled="true"></c-input>
                    </c-fullbox>
                </c-form-item>
            </c-col>

            <c-col :span="12">
                <el-form-item label="起息日期" prop="trdgrp.rec.stttendat">
                    <c-date-picker type="date"  v-model="model.trdgrp.rec.stttendat"  style="width:100%"  :disabled="true"></c-date-picker>
                </el-form-item>
            </c-col>
                        
            <c-col :span="12">
                <el-form-item label="押汇到期日期" prop="trdgrp.rec.matdat">
                    <c-date-picker type="date"  v-model="model.trdgrp.rec.matdat" style="width:100%"  :disabled="true"></c-date-picker>
                </el-form-item>
            </c-col>

            <c-col :span="22" :offset="2">
                <c-istream-table
                ref="table"
                :list="model.liaall.tenstm.rows || []"
                :columns="trnData.columns"
                :showSelection="true"
                v-on:multipleSelect="multipleSelect"
                prop="liaall.tenstm"
                >
                </c-istream-table>
            </c-col>

            <c-col :span="24">
                <c-ptap :model="model" :argadr="{
                    title: '偿付行',
                    grp: 'trdgrp',
                    rol: 'rmb',
                }" :noRef="true" :disabled="true" :disabledExtkey="true" @onSeainf="onSeainf">
                </c-ptap>
            </c-col>

                        
            
        </c-col>             
        <!--=================中部-右=================  -->
        <c-col :span="11">
            <c-col :span="24">
                <c-form-item label="融资客户" prop="trdgrp.fip.pts.ref">
                    <c-input  v-model="model.trdgrp.fip.pts.ref" maxlength="16" :disabled="true"></c-input>
                </c-form-item>
            </c-col>

            <c-col :span="24">
                <c-form-item label="客户地址" prop="trdgrp.fip.pts.nam">
                    <c-input  v-model="model.trdgrp.fip.pts.nam" maxlength="40"  :disabled="true"></c-input>
                </c-form-item>
            </c-col>
            

                        
            <c-col :span="24">
                <c-form-item label="融资品种" prop="trdgrp.rec.fintyp">
                    <c-input  v-model="model.trdgrp.rec.fintyp" maxlength="3" :disabled="true"></c-input>
                </c-form-item>
            </c-col>
 
                        
            <c-col :span="24">
                <c-form-item label="融资账号" prop="trdgrp.rec.finact">
                    <c-input  v-model="model.trdgrp.rec.finact" maxlength="21" :disabled="true" ></c-input>
                </c-form-item>
            </c-col>
                        
            <c-col :span="24">
                <c-form-item label="叙述内容(77A)" prop="trnmod.trndoc.nar754">
                    <c-input type="textarea" v-model="model.trnmod.trndoc.nar754" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'叙述内容(77A)'" ></c-input>
                </c-form-item>
            </c-col>

            <c-col :span="24">
                <c-ptap :model="model" :argadr="{
                    title: '开证行',
                    grp: 'trdgrp',
                    rol: 'iss',
                }" :noRef="true" :disabled="true" :disabledExtkey="true" @onSeainf="onSeainf">
                </c-ptap>
            </c-col>

        </c-col>        

                  
      
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trtrcl/Event"
import Ptap from "~/views/Public/Ptap";

export default {
    components: { "c-ptap": Ptap },
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess, commonFuncs],
    data(){
        return {
      typ1: true,
     // flag1: false,
      trnData: {
        columns: [
          '1 1 "类型" 60',
          '2 2 "Dbt" 60',
          '3 3 "Cdt" 80',
          '4 4 "币种" 50',
          '5 5 "金额" 120 2 8 1 4',
          // '6 6 "Mat.Dat." 120 4 7 1',
          {
            index: 6,
            position: 6,
            width: 250,
            render: (item, scope) => {
              return scope.row[item.prop] === "null"
                ? ""
                : scope.row[item.prop];
            },
            label: "Mat.Dat.",
          },
        ],
        data: [],
      },
    };
    },
    methods:{...Event,
        async multipleSelect(selection) {
      console.log(selection);
      if (selection.length > 1) {
        this.$notify({
          title: "错误",
          message: "您不能选择多个期限",
          type: "error",
        });
      } else {
        let chkIds;
        if (selection.length === 0) {
          chkIds = [];
          // this.model.liaall.tensetstm.rows = []
          // this.model.liaall.tenstm.rows = []
        } else {
          chkIds = [selection[0] + 1];
        }
        //
        console.log(this.model.liaall.tensetstm);
        let params = { chkDst: "liaall.tenstm", chkIds };
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
        if (rtnmsg.respCode == SUCCESS) {
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
        }
      }
    },},
    created:function(){

    }
}
</script>
<style>

</style>