UbrInfo.vue 3.34 KB
Newer Older
hewei committed
1
<template>
hewei committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  <div class="eibs">
    <el-form
        ref="modelForm"
        label-width="120px"
        size="small"
        label-position="right"
        :model="ubr"
        :rules="rules"
        :validate-on-rule-change="false"
        :disabled="operate === 'details'"
    >
      <c-col :span="12" class="col-left">
        <c-col :span="24">
          <el-form-item label="交易名" prop="bussec">
            <c-input
                v-model="ubr.bussec"
                placeholder="请输入交易名"
            >
            </c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="授权币种" prop="relcur">
zhouqian committed
25
            <c-select v-model="ubr.relcur" style="width: 100%" placeholder="请选择授权币种" :code="getCodesByKey('curtxt')"> </c-select>
hewei committed
26 27 28 29
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="授权金额" prop="relamt">
30
            <c-input-currency class="input-currency-left"
hewei committed
31 32 33
                v-model="ubr.relamt"
                placeholder="请输入授权金额"
            >
34
            </c-input-currency>
hewei committed
35 36 37 38
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="第二授权金额" prop="relamt2nd">
39
            <c-input-currency class="input-currency-left"
hewei committed
40 41 42
                v-model="ubr.relamt2nd"
                placeholder="请输入第二授权金额"
            >
43
            </c-input-currency>
hewei committed
44 45 46 47
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="授权状态" prop="relgrp">
zhouqian committed
48
            <c-select v-model="ubr.relgrp" style="width: 100%" placeholder="请选择授权状态" :code="getCodesByKey('relgrp')"> </c-select>
hewei committed
49 50
          </el-form-item>
        </c-col>
51 52
      </c-col>
      <c-col :span="12" class="col-right">
hewei committed
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
        <c-col :span="24">
          <el-form-item label="交易代码" prop="trncod">
            <c-input
                v-model="ubr.trncod"
                placeholder="请输入交易代码"
            >
            </c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="交易所属机构" prop="branchinr">
            <c-input
                v-model="ubr.branchinr"
                placeholder="请输入交易所属机构"
            >
            </c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="一次性授权" prop="autcur">
            <c-input
                v-model="ubr.autcur"
                placeholder="请输入一次性授权"
            >
            </c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
hewei committed
81
          <el-form-item label="一次性释放授权" prop="autamt">
82
            <c-input-currency class="input-currency-left"
hewei committed
83 84 85
                v-model="ubr.autamt"
                placeholder="请输入一次性释放授权"
            >
86
            </c-input-currency>
hewei committed
87 88 89 90
          </el-form-item>
        </c-col>
      </c-col>
    </el-form>
hewei committed
91 92 93 94
  </div>
</template>

<script>
hewei committed
95
import { Pattern } from "./Ubr";
zhouqian committed
96
import codes from "~/config/CodeTable";
hewei committed
97

hewei committed
98
export default {
hewei committed
99 100
  name: "",
  props: ['ubr', 'operate'],
hewei committed
101 102
  data() {
    return {
hewei committed
103
      rules: Pattern,
hewei committed
104 105
    };
  },
zhouqian committed
106 107 108 109 110
  methods:{
    getCodesByKey(key) {
      return codes[key] ?? [];
    },
  },
hewei committed
111 112
};
</script>
hewei committed
113 114 115

<style>
</style>