Ovwp1.vue 12 KB
Newer Older
jianglong committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
<template>
  <div class="eibs">
    <c-col :span="24">
      <!-- ======================左边====================== -->
      <c-col :span="12" style="padding-right: 20px">
        <c-col :span="24">
          

          <c-form-item label="业务编号" prop="ftdgrp.rec.ownref">
                    <c-fullbox>
                        <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled>
                        </c-input>
                        <template slot="footer">
                            <c-button style="margin: 0 5px" size="small" type="primary" :disabled="getOwnrefFlg"
                            @click="getOwnref">
                            获取
                            </c-button>
                        </template>
                        </c-fullbox>
                </c-form-item>

        </c-col>
        <c-col :span="24">
          <c-form-item label="资金部负责人" prop="ftdgrp.rec.ownusr">
                    <c-fullbox>
                    <c-input v-model="model.ftdgrp.rec.ownusr" placeholder="请输入业务负责人" ></c-input>
                    <template slot="footer">
                            <c-button style="margin: 0 5px" size="small" type="primary">
                            i
                            </c-button>
                        </template>
                    </c-fullbox>
                </c-form-item>
        </c-col>
        <c-col :span="24">
          <c-form-item label="清算中心负责人" prop="ftdgrp.rec.usr">
                    <c-fullbox>
                    <c-input v-model="model.ftdgrp.rec.usr" placeholder="请输入业务负责人" ></c-input>
                    <template slot="footer">
                            <c-button style="margin: 0 5px" size="small" type="primary">
                            i
                            </c-button>
                        </template>
                    </c-fullbox>
                </c-form-item>

          
        </c-col>
        <c-col :span="24">
          <el-form-item label="定存拆借类型" prop="ftdgrp.rec.fttyp">
51
            <c-select @change="onFttypChange" v-model="model.ftdgrp.rec.fttyp" :code="codes.fttyp" :filterKey="['LO','LI','DO','DI']" style="width:100%"
jianglong committed
52 53 54 55 56 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 84 85 86 87 88 89 90 91 92 93 94 95 96
              placeholder="请输入定存拆借类型">
            </c-select>
          </el-form-item>
        </c-col>
        <!-- S0000009 : 定存拆借金额 -->

        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="定存拆借金额" prop="ftdgrp.cbs.max.cur">
              <c-select  @change="onMaxcurChange" v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
                placeholder="请输入定存拆借金额币种">
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="12" class="pl8">
            <c-form-item label-width="0" prop="ftdgrp.cbs.max.amt">
              <c-input-currency @change="onMaxamtChange"  :currency="model.ftdgrp.cbs.max.cur" v-model="model.ftdgrp.cbs.max.amt" placeholder="请输入定存拆借金额">

              </c-input-currency>
            </c-form-item>
          </c-col>
        </c-col>

        <!-- S0000016 : 开立日期 -->

        <c-col :span="24">
          <el-form-item label="开立日期" prop="ftdgrp.rec.opndat">
            <c-date-picker @change="onOpndatChange" type="date" v-model="model.ftdgrp.rec.opndat" style="width:100%"
              placeholder="请输入开立日期"></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="起息日" prop="ftdgrp.rec.valdat">
            <c-date-picker type="date" v-model="model.ftdgrp.rec.valdat" style="width:100%"
              placeholder="请输入起息日"></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="到期日" prop="ftdgrp.rec.matdat">
            <c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%"
              placeholder="请输入到期日"></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <c-form-item label="年利率" prop="ftdgrp.rec.rat">
97 98 99 100 101 102 103 104 105 106
            <!-- <c-input v-model="model.ftdgrp.rec.rat" placeholder="请输入年利率"></c-input> -->
            <c-fullbox>
            <c-input v-model="model.ftdgrp.rec.rat" placeholder="请输入年利率" ></c-input>
              <template slot="footer">
                  <span style="margin: 0 5px" size="small" type="primary">
                  %
                  </span>
              </template>
          </c-fullbox>
          
jianglong committed
107
          </c-form-item>
108 109 110 111


          

jianglong committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 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 153 154 155 156 157 158 159 160 161
        </c-col>
        <c-col :span="24">
          <el-form-item label="计息方式" prop="ftdgrp.rec.cntfra">
            <c-select v-model="model.ftdgrp.rec.cntfra" :code="codes.cntfra" style="width:100%"
              placeholder="请输入计息方式">
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
            <c-form-item label="利息金额" prop="ftdgrp.cbs.ins.cur">
              <c-select disabled v-model="model.ftdgrp.cbs.ins.cur" :code="codes.curtxt1" style="width:100%"
                placeholder="请输入利息金额">
              </c-select>
            </c-form-item>
          </c-col>
          <c-col :span="12" class="pl8">
            <c-form-item label-width="0" prop="ftdgrp.cbs.ins.amt">
              <c-input-currency :currency="model.ftdgrp.cbs.ins.cur"  v-model="model.ftdgrp.cbs.ins.amt" placeholder="请输入'利息金额'"></c-input-currency>
            </c-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="报文类型" prop="fttp.msgtyp">
              <c-select v-model="model.fttp.msgtyp" :code="codes.msgtyp4" :filterKey="['199', '299', '320']" style="width:100%"
                placeholder="请输入报文类型">
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="银行行类别" prop="ftdgrp.rec.bnktyp">
              <c-select v-model="model.ftdgrp.rec.bnktyp" :code="codes.bnktyp" style="width:100%"
                placeholder="请输入银行行类别">
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <c-form-item label="备注" prop="ftdgrp.blk.remark">
              <c-input type="textarea" v-model="model.ftdgrp.blk.remark" maxlength="35" show-word-limit
                placeholder="请输入备注"></c-input>
            </c-form-item>
          </c-col>
        </c-col>


      </c-col>
      <!-- ======================右边====================== -->
      <c-col :span="12" style="padding-left: 20px">
        <c-col :span="24">
          <c-form-item label="业务摘要" prop="ftdgrp.rec.nam">
162
            <c-input disabled v-model="defaultNam950" maxlength="40"
jianglong committed
163 164 165 166 167
              placeholder="请输入名称"></c-input>
          </c-form-item>
        </c-col>
        <c-col :span="24">
          <el-card class="box-card">
168 169 170 171 172
            <c-ptap :model="model" @change="onTroChange"   :disabled="true"
            :requiredExtkey="model.ftdgrp.rec.fttyp =='LI'||model.ftdgrp.rec.fttyp =='DI'"
            :disabledExtkey="model.ftdgrp.rec.fttyp =='LO'||model.ftdgrp.rec.fttyp =='DO'|| model.ftdgrp.rec.fttyp ==''||model.ftdgrp.rec.fttyp ==undefined" 
            
            :isAdrblk="true" :haveAdrLabel="true"
jianglong committed
173 174 175 176 177 178 179 180 181 182 183
              :isShowCard="false" :argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B">
            </c-ptap>
          </el-card >
        </c-col>
        <c-col :span="24">
          <!-- <el-form-item label-width="0" prop="fttp.troact">
            <c-select :disabled="model.ftdgrp.rec.fttyp=='DO'||model.ftdgrp.rec.fttyp=='LO'||model.ftdgrp.rec.fttyp==''||model.ftdgrp.rec.fttyp==null" v-model="model.fttp.troact" :code="codes.idtype" style="width:100%" placeholder="请输入'交易账户'">
            </c-select>
          </el-form-item> -->


184
          <el-form-item label="Account" prop="fttp.troact">
jianglong committed
185 186
            <el-select
              v-model="model.fttp.troact" clearablex
187 188 189

              :disabled="model.ftdgrp.rec.fttyp =='LO'||model.ftdgrp.rec.fttyp =='DO'|| model.ftdgrp.rec.fttyp ==''||model.ftdgrp.rec.fttyp ==undefined" 

jianglong committed
190 191 192 193 194 195 196 197 198 199 200 201 202
              placeholder="请选择账号"
            >
              <el-option v-for="item in troActlist" :key="item" :label="item"
                        :value="item">
                <span style="float: left">{{ item }}</span>
              </el-option>
            </el-select>
          </el-form-item>
        </c-col>


        <c-col :span="24">
          <el-card class="box-card">
203 204 205
            <c-ptap :model="model"  @change="onTriChange" :disabled="true"  
            :requiredExtkey="model.ftdgrp.rec.fttyp =='LO'||model.ftdgrp.rec.fttyp =='DO'"
            :disabledExtkey="model.ftdgrp.rec.fttyp =='LI'||model.ftdgrp.rec.fttyp =='DI'|| model.ftdgrp.rec.fttyp ==''||model.ftdgrp.rec.fttyp ==undefined" :isAdrblk="true" :haveAdrLabel="true"
jianglong committed
206 207 208 209 210 211
              :isShowCard="false" :argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B">
            </c-ptap>
          </el-card>
        </c-col>
        <c-col :span="24">
          <el-card class="box-card">
212 213 214 215
            <c-ptap :model="model"  @change="onActChange" :disabled="true" 
            
            :disabledExtkey="model.ftdgrp.rec.fttyp ==''||model.ftdgrp.rec.fttyp ==undefined"
            :isAdrblk="true" :haveAdrLabel="true"
jianglong committed
216 217 218 219 220 221 222 223 224 225 226
              :isShowCard="false" :argadr="{ title: '资金拆出我方账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B">
            </c-ptap>
          </el-card>
        </c-col>
        <c-col :span="24">
          <!-- <el-form-item label-width="0" prop="fttp.triact">
            <c-select :disabled="model.ftdgrp.rec.fttyp==''||model.ftdgrp.rec.fttyp==null" v-model="model.fttp.triact" :code="codes.idtype" style="width:100%" placeholder="请输入账户">
            </c-select>
          </el-form-item> -->


227
          <el-form-item label="Account" prop="fttp.triact">
jianglong committed
228 229
            <el-select
              v-model="model.fttp.triact" clearablex
230
              :disabled="model.ftdgrp.rec.fttyp ==''||model.ftdgrp.rec.fttyp ==undefined" 
jianglong committed
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
              placeholder="请选择账号"
            >
              <el-option v-for="item in triActlist" :key="item" :label="item"
                        :value="item">
                <span style="float: left">{{ item }}</span>
              </el-option>
            </el-select>
          </el-form-item>


        </c-col>
      </c-col>
    </c-col>
  </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 {
257 258
      triActlist:['1111120209999','1111120209998'],
      troActlist:['2222220209999','2222220209998'],
jianglong committed
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279

    }
  },

  computed: {
            getOwnrefFlg: function () {
                
                 console.log(this.model)
                return this.model.ftdgrp.rec.fttyp == '' || this.model.ftdgrp.cbs.max.cur  == '' || this.model.ftdgrp.rec.ownref != '';
            },
            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, "fttyp") + ","
                    + this.model.ftdgrp.cbs.max.cur + " " + amount;
                
                console.log("nam---",nam)    
                this.model.ftdgrp.rec.nam=nam;
                return nam
            },
280 281 282

            

jianglong committed
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
        },

  methods: {
    //获取码值
            getCodelabel(value, codenam) {
                const codeobj = this.codes[codenam].find(obj => obj.value === value)
                return codeobj ? codeobj.label : value;
            },

    },
  created: function () {

  },

  watch: {
            
          
            

        }
}
</script>
<style></style>