成交簿记修改 价格,联动修改成交金额
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="formlabel ">成交均价</label>
|
||||
<vue-number-input v-model="swapflow.TradingAmountAvg" v-bind:format="inputFormatTradePrice"></vue-number-input>
|
||||
<vue-number-input v-model="swapflow.TradingAmountAvg" v-bind:format="inputFormatTradePrice" v-on:input="changeSpotPrice()"></vue-number-input>
|
||||
</div>
|
||||
@*<div class="form-group">
|
||||
<label class="formlabel ">成交均价含费</label>
|
||||
|
||||
@@ -1155,6 +1155,10 @@ var vue = new Vue({
|
||||
this.swapflow.ClientId = client.id;
|
||||
this.swapflow.ClientName = client.Name;
|
||||
},
|
||||
//变更标的单价
|
||||
changeSpotPrice() {
|
||||
this.swapflow.TradingAmount = main.toNumber(this.swapflow.TradingAmountAvg * this.swapflow.TradingQty * this.swapflow.ContractSize*100, 2);
|
||||
},
|
||||
deleteSwapflow(id, st) {
|
||||
main.confirm("确定要删除吗?", function () {
|
||||
main.post("/swaptrade2/DeleteSwapflow?enid=" + id + "&step=" + st).done(function (resp) {
|
||||
|
||||
Reference in New Issue
Block a user