Engp.vue 7.04 KB
Newer Older
zhengxiaokui committed
1
<template>
2 3 4 5
  <div class="eibs-tab">
    <!-- <c-col :span="24" style="margin-bottom:18px">
        Liability
    </c-col> -->
潘际乾 committed
6
    <c-col :span="24" style="">
Wuyuqiu committed
7 8 9 10 11 12 13 14 15
      <c-table
        :list="model.liaall.liaallg"
        style="width:80%,text-align:center,margin-bottom:18px"
        :border="true"
      >
        <el-table-column prop="bussec" label="BS" width="40px">
        </el-table-column>
        <el-table-column prop="cbtpfx" label="Type" width="60px">
        </el-table-column>
16
        <el-table-column prop="matdat" label="Maturity" width="150px">
Wuyuqiu committed
17
          <template slot-scope="scope">
Wuyuqiu committed
18 19 20 21
            <el-form-item
              label-width="0"
              :prop="'liaall.liaallg.' + scope.$index + '.matdat'"
            >
22 23 24 25 26 27 28 29 30 31
              <c-date-picker
                type="date"
                v-model="scope.row.matdat"
                value-format="yyyy-MM-dd"
                placeholder="请选择Date"
                style="width: 100%"
                @change="executeDefault('liaall.liaallg.matdat')"
              >
              </c-date-picker>
            </el-form-item>
Wuyuqiu committed
32 33 34
          </template>
        </el-table-column>
        <el-table-column prop="tenday" label="Tenor" width="70px">
Wuyuqiu committed
35
          <template slot-scope="scope">
Wuyuqiu committed
36 37 38
            <el-form-item
              label-width="0"
              :prop="'liaall.liaallg.' + scope.$index + '.tenday'"
Wuyuqiu committed
39
            >
Wuyuqiu committed
40 41 42 43 44 45 46
              <c-input
                v-model="scope.row.tenday"
                style="width: 100%"
                placeholder="请输入"
              >
              </c-input>
            </el-form-item>
Wuyuqiu committed
47
          </template>
Wuyuqiu committed
48 49 50
        </el-table-column>
        <el-table-column prop="rol" label="Dbt." width="70px">
        </el-table-column>
hulei committed
51
        <!--
潘际乾 committed
52
        <el-table-column prop="nam" label="Name" width="300"> </el-table-column>
hulei committed
53
        -->
Wuyuqiu committed
54 55
        <el-table-column prop="cdtrol" label="Cdt." width="70px">
        </el-table-column>
56
        <el-table-column prop="cur" label="Cur" width="55px"> </el-table-column>
57
        <el-table-column prop="oldamt" label="Old Amount" width="150px">
Wuyuqiu committed
58
          <!-- <template slot-scope="scope">
59 60
                  {{moneyFormat(scope.row.oldamt)}}
         </template> -->
zhengxiaokui committed
61
        </el-table-column>
62
        <el-table-column prop="amt" label="Booking Amo" width="100px">
Wuyuqiu committed
63
          <!-- <template slot-scope="scope">
64 65
                  {{moneyFormat(scope.row.amt)}}
         </template> -->
zhengxiaokui committed
66
        </el-table-column>
Wuyuqiu committed
67 68 69 70
        <el-table-column prop="tenpct" label="%" width="80px">
        </el-table-column>
        <el-table-column prop="acc" label="Account" width="150px">
        </el-table-column>
71
        <el-table-column prop="valdat" label="Value Date" width="200px">
72
          <template slot-scope="scope">
Wuyuqiu committed
73 74
            {{ dateFormat(scope.row.valdat) }}
          </template>
zhengxiaokui committed
75
        </el-table-column>
76
        <el-table-column label="" prop="det" width="80px" fixed="right">
Wuyuqiu committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
          <template slot-scope="scope" slot="header">
            <el-button
              circle
              style="padding: 4px"
              class="el-icon-plus"
              size="mini"
              @click="addRow(scope)"
            >
            </el-button>
            <el-button
              style="padding: 4px"
              circle
              class="el-icon-minus"
              size="mini"
              @click="removeRow(scope)"
            >
            </el-button>
          </template>
          <template slot-scope="scoped">
            <c-button
              style="margin-left: 0"
              size="small"
              type="primary"
              @click="detail1(scoped.$index, scoped.row)"
              >详情</c-button
            >
          </template>
        </el-table-column>
zhengxiaokui committed
105 106
      </c-table>
    </c-col>
Wuyuqiu committed
107 108

    <!-- <c-col :span="12">
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
        <el-form-item label="Sight Amount">
            <c-input style="width:50%"  v-model="model.liaall.outamt"  placeholder="请输入Sight Amount"></c-input>
        </el-form-item>
       </c-col>                 
                  
       <c-col :span="12">
        <el-form-item label="Sight Amount Percentage">
            <c-input style="width:50%"  v-model="model.liaall.outpct"  placeholder="请输入Sight Amount Percentage"></c-input>
        </el-form-item>
       </c-col>             
                                                    
       <c-col :span="12">
        <el-form-item label="External Booking Amount">
            <c-input style="width:70%"  v-model="model.liaall.concur" maxlength="3"  placeholder="请输入External Booking Amount"></c-input>
        </el-form-item>
       </c-col>              -->
Wuyuqiu committed
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

    <c-col :span="16" style="margin-top: 10px">
      <el-form-item label="Amount not yet assigned">
        <c-input
          style="width: 15%"
          disabled
          v-model="model.liaall.concur"
          maxlength="3"
          placeholder="请输入External Booking Amount"
        ></c-input>
        <c-input
          style="width: 40%"
          disabled
          v-model="model.liaall.misamt"
          placeholder="请输入Amount not yet assigned"
        ></c-input>
        <c-button
          style="width: 20%"
          size="small"
          disabled
          type="primary"
          @click="onLiaallButmisamt"
        >
          Add to Current Line
        </c-button>
      </el-form-item>
    </c-col>

    <!-- <c-col :span="1" style="text-align:left;margin-left:0">
154 155 156 157 158 159
           <el-form-item label="">
            <c-button size="small" disabled type="primary"  @click="onLiaallButmisamt">
                Add to Current Line
            </c-button>
           </el-form-item>
       </c-col> -->
Wuyuqiu committed
160 161

    <!-- <c-col :span="12">
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
        <el-form-item label="">
            <c-button size="small" type="primary"  @click="onLiaallButmissig">
                Add to Sight Amount
            </c-button>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Old Amount booked externally">
            <c-input style="width:50%"  v-model="model.liaall.exttotoldamt"  placeholder="请输入Old Amount booked externally"></c-input>
        </el-form-item>
       </c-col>                 
                                   
       <c-col :span="12">
        <el-form-item label="Total booking amount external assinged">
            <c-input style="width:50%"  v-model="model.liaall.exttotamt"  placeholder="请输入Total booking amount external assinged"></c-input>
        </el-form-item>
       </c-col>                  -->
Wuyuqiu committed
180
  </div>
zhengxiaokui committed
181 182
</template>
<script>
Wuyuqiu committed
183
import Api from "~/service/Api";
wangren committed
184
import commonProcess from "~/mixin/commonProcess";
Wuyuqiu committed
185
import CodeTable from "~/config/CodeTable";
zhengxiaokui committed
186 187

export default {
Wuyuqiu committed
188 189 190 191 192 193 194 195 196 197 198 199 200 201
  inject: ["root"],
  mixins: [commonProcess],
  props: ["model", "codes"],
  data() {
    return {};
  },
  methods: {
    async onLiaallButmisamt() {
      let rtnmsg = await this.executeRule("liaall_butmisamt");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
      } else {
        this.$notify.error({ title: "错误", message: "服务请求失败!" });
      }
潘际乾 committed
202
    },
Wuyuqiu committed
203 204 205
  },
  created: function () {},
};
zhengxiaokui committed
206 207 208
</script>
<style>
</style>