Engp.vue 9.46 KB
Newer Older
zhengxiaokui committed
1
<template>
Wuyuqiu committed
2
  <div class="eibs">
3 4 5
    <!-- <c-col :span="24" style="margin-bottom:18px">
        Liability
    </c-col> -->
Wuyuqiu committed
6 7 8
        <c-col :span="24" style="">
          <c-table
            :list="model.liaall.liaallg"
9
            style="width:100%,text-align:center,margin-bottom:18px"
Wuyuqiu committed
10
            :border="true"
11
            :total="model.liaall.liaallg.length"
Wuyuqiu committed
12
          >
Wuyuqiu committed
13
            <el-table-column prop="bussec" label="业务" width="70px">
Wuyuqiu committed
14
            </el-table-column>
Wuyuqiu committed
15
            <el-table-column prop="cbtpfx" label="类型" width="70px">
Wuyuqiu committed
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 51 52 53
            </el-table-column>
            <el-table-column prop="matdat" label="到期日" width="150px">
              <template slot-scope="scope">
                <el-form-item
                  label-width="0"
                  :prop="'liaall.liaallg.' + scope.$index + '.matdat'"
                >
                  <c-date-picker
                    type="date"
                    v-model="scope.row.matdat"
                    value-format="yyyy-MM-dd"
                    placeholder="请选择日期"
                    style="width: 100%"
                    @change="executeDefault('liaall.liaallg.matdat')"
                    :disabled="root.trnName == 'letopn'"
                  >
                  </c-date-picker>
                </el-form-item>
              </template>
            </el-table-column>
            <el-table-column prop="tenday" label="效期" width="70px">
              <template slot-scope="scope">
                <el-form-item
                  label-width="0"
                  :prop="'liaall.liaallg.' + scope.$index + '.tenday'"
                >
                  <c-input
                    v-model="scope.row.tenday"
                    style="width: 100%"
                    placeholder="请输入"
                  >
                  </c-input>
                </el-form-item>
              </template>
            </el-table-column>
            <el-table-column prop="rol" label="债务人" width="70px">
            </el-table-column>
            <!--
潘际乾 committed
54
        <el-table-column prop="nam" label="Name" width="300"> </el-table-column>
hulei committed
55
        -->
Wuyuqiu committed
56 57
            <el-table-column prop="cdtrol" label="债权人" width="70px">
            </el-table-column>
Wuyuqiu committed
58
            <el-table-column prop="cur" label="币种" width="70px">
Wuyuqiu committed
59
            </el-table-column>
60
            <el-table-column prop="oldamt" label="原始金额" width="110px">
61
              <!-- <template slot-scope="scope">
62 63 64 65
                  <c-input-currency
                  v-model="scope.row.oldamt"
                  placeholder="0.00"
                ></c-input-currency>
66
              </template> -->
Wuyuqiu committed
67
              <!-- <template slot-scope="scope">
68
                  {{moneyFormat(scope.row.oldamt)}}
69
                  </template> -->
Wuyuqiu committed
70
            </el-table-column>
71
            <el-table-column prop="amt" label="记账金额" width="110px">
Wuyuqiu committed
72
              <!-- <template slot-scope="scope">
73
                  {{moneyFormat(scope.row.amt)}}
74
                </template> -->
75
         <!-- <template slot-scope="scope">
76 77 78 79
            <c-input-currency
            v-model="scope.row.amt"
            placeholder="0.00"
          ></c-input-currency>
80
          </template> -->
Wuyuqiu committed
81
            </el-table-column>
Wuyuqiu committed
82
            <el-table-column prop="tenpct" label="%" width="70px">
Wuyuqiu committed
83
            </el-table-column>
84
            <el-table-column prop="acc" label="核心账号" width="200px">
Wuyuqiu committed
85 86 87 88 89 90
              <!-- check,需用el-form-item标签包起来 -->
              <template slot-scope="scope">
                <el-form-item
                  label-width="0"
                  :prop="'liaall.liaallg.' + scope.$index + '.acc'"
                >
91
                {{scope.row.acc}}
Wuyuqiu committed
92
                  <!-- <c-input
93 94 95 96 97
                v-model="scope.row.acc"
                style="width: 100%"
                placeholder="请输入"
              >
              </c-input> -->
Wuyuqiu committed
98 99 100
                </el-form-item>
              </template>
            </el-table-column>
Wuyuqiu committed
101
            <el-table-column prop="valdat" label="起息日" width="auto">
Wuyuqiu committed
102 103 104 105
              <template slot-scope="scope">
                {{ dateFormat(scope.row.valdat) }}
              </template>
            </el-table-column>
Wuyuqiu committed
106
            <el-table-column label="" prop="det" width="150px" height="0px" fixed="right" >
Wuyuqiu committed
107
              <template slot-scope="scope" slot="header">
潘际乾 committed
108
                <c-button
Wuyuqiu committed
109 110 111 112 113 114
                  circle
                  style="padding: 4px"
                  class="el-icon-plus"
                  size="mini"
                  @click="addRow(scope)"
                >
潘际乾 committed
115 116
                </c-button>
                <c-button
Wuyuqiu committed
117 118 119 120 121 122
                  style="padding: 4px"
                  circle
                  class="el-icon-minus"
                  size="mini"
                  @click="removeRow(scope)"
                >
潘际乾 committed
123
                </c-button>
Wuyuqiu committed
124 125 126 127 128 129 130 131 132 133 134 135 136
              </template>
              <template slot-scope="scoped">
                <c-button
                  style="margin-left: 0"
                  size="small"
                  type="primary"
                  icon="el-icon-info"
                  @click="detail1(scoped.$index, scoped.row)"
                ></c-button>
              </template>
            </el-table-column>
          </c-table>
        </c-col>
Wuyuqiu committed
137

Wuyuqiu committed
138 139 140 141 142 143 144 145
        <div style="height=500px">
          <engp-dialog
            ref="engpDialog"
            :model="model"
            :idx="index"
            :codes="codes"
          />
        </div>
146

Wuyuqiu committed
147
        <!-- <c-col :span="12">
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
        <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
164

Wuyuqiu committed
165 166 167 168 169 170 171 172 173 174
        <c-col :span="16" style="margin-top: 10px">
          <el-form-item label="未分配金额">
            <c-input
              style="width: 15%"
              disabled
              v-model="model.liaall.concur"
              maxlength="3"
              placeholder=""
            ></c-input>
            <c-input
175
              style="width: 40%;margin-left:10px;"
Wuyuqiu committed
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
              disabled
              v-model="model.liaall.misamt"
              placeholder="请输入金额"
            ></c-input>
            <c-button
              style="width: 20%"
              size="small"
              disabled
              type="primary"
              @click="onLiaallButmisamt"
            >
              添加到当前行
            </c-button>
          </el-form-item>
        </c-col>
Wuyuqiu committed
191

Wuyuqiu committed
192
        <!-- <c-col :span="1" style="text-align:left;margin-left:0">
193 194 195 196 197 198
           <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
199

Wuyuqiu committed
200
        <!-- <c-col :span="12">
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
        <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
219
  </div>
zhengxiaokui committed
220 221
</template>
<script>
Wuyuqiu committed
222
import Api from "~/service/Api";
wangren committed
223
import commonProcess from "~/mixin/commonProcess";
Wuyuqiu committed
224
import CodeTable from "~/config/CodeTable";
225
import EngpDialog from "./EngpDialog.vue";
Wuyuqiu committed
226 227
import Setpan from "./Setpan";
import Glepan from "./Glepan";
zhengxiaokui committed
228 229

export default {
Wuyuqiu committed
230
  inject: ["root"],
Wuyuqiu committed
231 232 233 234 235
  components: {
    EngpDialog,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
  },
Wuyuqiu committed
236 237 238
  mixins: [commonProcess],
  props: ["model", "codes"],
  data() {
239 240
    return {
      dialogVisible: false,
Wuyuqiu committed
241 242
      dialog: {},
      index: 0,
243
    };
Wuyuqiu committed
244 245 246 247 248 249 250 251 252
  },
  methods: {
    async onLiaallButmisamt() {
      let rtnmsg = await this.executeRule("liaall_butmisamt");
      if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
      } else {
        this.$notify.error({ title: "错误", message: "服务请求失败!" });
      }
潘际乾 committed
253
    },
254 255

    detail1(index, row) {
Wuyuqiu committed
256 257 258 259 260 261 262 263 264 265 266 267
      const that = this;
      const rule = "liaall.liaallg(" + (index + 1) + ").det";
      that.executeRule(rule).then((res) => {
        that.$refs.engpDialog.visiable = true;
        that.$refs.engpDialog.formData = Object.assign(
          {},
          that.model.liaall.liaallg[index]
        );
        that.index = index;
        that.dialog = row;
      });
    },
Wuyuqiu committed
268 269 270
  },
  created: function () {},
};
zhengxiaokui committed
271 272 273
</script>
<style>
</style>