Commit 5c892e34 by jianglong

修改fxtfcm,fxtfop

parent f4c41f37
......@@ -28,6 +28,7 @@ export default {
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
fxtyp:model.fxdgrp.rec.fxtyp,
swtflg:model.swtflg,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
......
......@@ -10,7 +10,7 @@
</c-input>
<template slot="footer">
<c-button style="margin: 0 5px" size="small" type="primary" :disabled="getOwnrefFlg"
@click="getOwnref" >
>
获取
</c-button>
</template>
......
......@@ -4,7 +4,7 @@
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtfcm PD000001 Confirmation -->
<el-tab-pane label="Confirmation" name="cnfp">
<el-tab-pane label="平盘确认" name="cnfp">
<m-cnfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
......
......@@ -63,5 +63,33 @@ export default {
// this.updateValueSet(res.codeSet);
this.model.fxdgrp.cbs.nom1.amt =res.data.fxdgrp.cbs.nom1.amt;
},
async onMaxcurChange(){
if (this.model.fxdgrp.cbs.max.cur !== "" && this.model.fxdgrp.cbs.nom1.cur !== null) {
this.defaultRateN1000();
}
},
async onNom1curChange(){
if (this.model.fxdgrp.cbs.max.cur !== "" && this.model.fxdgrp.cbs.nom1.cur !== null) {
this.defaultRateN1000();
}
},
async onMaxamtChange(){
debugger
if (this.model.fxdgrp.cbs.max.amt > 0 && this.model.fxdgrp.rec.rat >0 ) {
this.defaultCalculateN1100();
}
},
async onRatChange(){
debugger
if (this.model.fxdgrp.cbs.max.amt > 0 && this.model.fxdgrp.rec.rat >0 ) {
this.defaultCalculateN1100();
}
},
}
}
\ No newline at end of file
......@@ -40,12 +40,13 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="卖出金额" prop="fxdgrp.cbs.max.cur">
<c-select-cur v-model="model.fxdgrp.cbs.max.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
<c-select-cur @change="onMaxcurChange" v-model="model.fxdgrp.cbs.max.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="fxdgrp.cbs.max.amt">
<c-input-currency
@change="onMaxamtChange"
:currency="model.fxdgrp.cbs.max.cur"
v-model="model.fxdgrp.cbs.max.amt"></c-input-currency>
</el-form-item>
......@@ -54,7 +55,7 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="买入金额" prop="fxdgrp.cbs.nom1.cur">
<c-select-cur v-model="model.fxdgrp.cbs.nom1.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
<c-select-cur @change="onNom1curChange" v-model="model.fxdgrp.cbs.nom1.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
......@@ -68,7 +69,7 @@
</c-col>
<c-col :span="24">
<c-form-item label="平盘牌价" prop="fxdgrp.rec.rat">
<c-input-currency v-model="model.fxdgrp.rec.rat" style="width:100%" :precision="6" placeholder="请输入平盘牌价">
<c-input-currency @change="onRatChange" v-model="model.fxdgrp.rec.rat" style="width:100%" :precision="6" placeholder="请输入平盘牌价">
</c-input-currency>
</c-form-item>
</c-col>
......@@ -137,16 +138,16 @@ export default {
computed: {
getOwnrefFlg: function () {
//debugger
console.log(this.model)
return this.model.fxdgrp.rec.fxtyp == '' || this.model.fxdgrp.apl.pts.extkey == '' || this.model.fxdgrp.rec.ownref != '';
},
defaultNam950: function () {
//debugger;
let amount = this.moneyFormat(this.model.fxdgrp.cbs.max.amt, this.model.fxdgrp.cbs.max.cur)
let nam= this.getCodelabel(this.model.fxdgrp.rec.fxtyp, "fxt_fxtyp") + ","
+ this.model.fxdgrp.cbs.max.cur + " " + amount;
debugger
console.log("nam---",nam)
this.model.fxdgrp.rec.nam=nam;
return nam
......@@ -180,32 +181,32 @@ export default {
},
},
'model.fxdgrp.cbs.max.cur': {
handler(newValue) {
if (newValue !== "" && newValue !== null) {
this.defaultRateN1000();
}
// 'model.fxdgrp.cbs.max.cur': {
// handler(newValue) {
// if (newValue !== "" && newValue !== null) {
// this.defaultRateN1000();
// }
},
},
// },
// },
'model.fxdgrp.cbs.nom1.cur': {
handler(newValue) {
if (newValue !== "" && newValue !== null) {
this.defaultRateN1000();
}
// 'model.fxdgrp.cbs.nom1.cur': {
// handler(newValue) {
// if (newValue !== "" && newValue !== null) {
// this.defaultRateN1000();
// }
},
},
// },
// },
'model.fxdgrp.cbs.max.amt': {
handler(newValue) {
if (newValue !== "" && newValue !== null) {
this.defaultCalculateN1100();
}
// 'model.fxdgrp.cbs.max.amt': {
// handler(newValue) {
// if (newValue !== "" && newValue !== null) {
// this.defaultCalculateN1100();
// }
},
},
// },
// },
}
}
......
......@@ -4,7 +4,7 @@
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtfop PD000001 Registration -->
<el-tab-pane label="Registration" name="regp">
<el-tab-pane label="平盘登记" name="regp">
<m-regp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment