Commit 7503d896 by 吴佳

结售汇报价、结售汇平盘-平盘登记、平盘确认 码值和是否启用调整

parent 2f023338
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<!-- 平盘类型 --> <!-- 平盘类型 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('fxtlcm.平盘类型')" prop="fxdgrp.rec.fxtyp"> <el-form-item :label="$t('fxtlcm.平盘类型')" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" > <c-select v-model="model.fxdgrp.rec.fxtyp" :code="codes.fxt_fxtyp" style="width:100%" >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.卖出金额')" prop="fxdgrp.cbs.max.cur"> <el-form-item :label="$t('fxtsqo.卖出金额')" prop="fxdgrp.cbs.max.cur">
<c-select v-model="model.fxdgrp.cbs.max.cur" style="width:100%"> <c-select v-model="model.fxdgrp.cbs.max.cur" :code="codes.bopcur" style="width:100%">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.买入金额')" prop="fxdgrp.cbs.nom1.cur"> <el-form-item :label="$t('fxtsqo.买入金额')" prop="fxdgrp.cbs.nom1.cur">
<c-select v-model="model.fxdgrp.cbs.nom1.cur" style="width:100%"> <c-select v-model="model.fxdgrp.cbs.nom1.cur" :code="codes.bopcur" style="width:100%">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -175,7 +175,6 @@ ...@@ -175,7 +175,6 @@
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
export default { export default {
......
...@@ -61,11 +61,15 @@ export default { ...@@ -61,11 +61,15 @@ export default {
trnName: "fxtlcm", trnName: "fxtlcm",
trnType: "", trnType: "",
model: new Fxtlcm().data, model: new Fxtlcm().data,
codes: {}, codes: { ...CodeTable },
rules: {}, rules: {},
} }
}, },
methods:{}, methods:{
myTabClick(tab) {
this.tabClick(tab);
},
},
created:async function(){}, created:async function(){},
mounted() { mounted() {
console.log("fxtlcm"); console.log("fxtlcm");
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
<c-input <c-input
v-model="model.fxdgrp.rec.ownusr" v-model="model.fxdgrp.rec.ownusr"
placeholder="请输入业务负责人" placeholder="请输入业务负责人"
disabled
/> />
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
v-model="model.fxdgrp.rec.fxtyp" v-model="model.fxdgrp.rec.fxtyp"
style="width: 100%" style="width: 100%"
placeholder="请输入平盘类型" placeholder="请输入平盘类型"
dbCode="" :code="codes.fxt_fxtyp"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -53,7 +52,7 @@ ...@@ -53,7 +52,7 @@
<c-select-cur <c-select-cur
v-model="model.fxdgrp.cbs.max.cur" v-model="model.fxdgrp.cbs.max.cur"
style="width: 100%" style="width: 100%"
dbCode="curtxt" :code="codes.bopcur"
> >
</c-select-cur> </c-select-cur>
</el-form-item> </el-form-item>
...@@ -73,7 +72,8 @@ ...@@ -73,7 +72,8 @@
<c-select-cur <c-select-cur
v-model="model.fxdgrp.cbs.nom1.cur" v-model="model.fxdgrp.cbs.nom1.cur"
style="width: 100%" style="width: 100%"
dbCode="curtxt" :code="codes.bopcur"
disabled
> >
</c-select-cur> </c-select-cur>
</el-form-item> </el-form-item>
...@@ -94,7 +94,6 @@ ...@@ -94,7 +94,6 @@
v-model="model.fxdgrp.rec.rat" v-model="model.fxdgrp.rec.rat"
style="width: 100%" style="width: 100%"
:precision="6" :precision="6"
disabled
placeholder="请输入平盘牌价" placeholder="请输入平盘牌价"
> >
</c-input-currency> </c-input-currency>
......
...@@ -28,6 +28,13 @@ ...@@ -28,6 +28,13 @@
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn">
</c-function-btn>
</div> </div>
</template> </template>
<script> <script>
...@@ -61,28 +68,28 @@ export default { ...@@ -61,28 +68,28 @@ export default {
trnName: "fxtlop", trnName: "fxtlop",
trnType: "", trnType: "",
model: new Fxtlop().data, model: new Fxtlop().data,
codes: {}, codes: {...CodeTable},
rules: {}, rules: {},
}; };
}, },
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
/**
* do it yourself
**/
}, },
}, },
created() { created() {},
console.log("进入fxtlop交易"); mounted() {
let rtnmsg = this.init({}); console.log("fxtlop");
if (rtnmsg.respCode == SUCCESS) { let params = {
this.updateModel(rtnmsg.data); transName: this.trnName,
//TODO 处理数据逻辑 fxdgrp: {
} else { rec: {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); inr: this.$route.query.inr || "",
},
},
};
this.init(params)
} }
},
}; };
</script> </script>
<style></style> <style></style>
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="结售汇报价"> <!-- <c-page title="结售汇报价"> -->
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <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" > <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick" >
<!--Quote --> <!--Quote -->
...@@ -25,11 +25,6 @@ ...@@ -25,11 +25,6 @@
<!-- <el-tab-pane :label="$t('fxtsqo.外汇买卖水单/客户回单')" name="fxtapll2"> <!-- <el-tab-pane :label="$t('fxtsqo.外汇买卖水单/客户回单')" name="fxtapll2">
<m-fxtapll2 :model="model" :codes="codes"/> <m-fxtapll2 :model="model" :codes="codes"/>
</el-tab-pane> --> </el-tab-pane> -->
<el-tab-pane :label="$t('commonModels.保证金')" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes"></m-ccvpan>
</c-content>
</el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn <c-function-btn
...@@ -38,20 +33,19 @@ ...@@ -38,20 +33,19 @@
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning" @handleSureWarning="handleSureWarning"
ref="commonBtn"></c-function-btn> ref="commonBtn"></c-function-btn>
</c-page> <!-- </c-page> -->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Fxtsqo from "../model"; import Fxtsqo from "../model";
import commonProcess from "~/mixin/commonProcess";
import commonDepend from "~/mixin/commonDepend"; import commonDepend from "~/mixin/commonDepend";
import operationFunc from "~/mixin/operationFunc"; import operationFunc from "~/mixin/operationFunc";
import Quop from "./Quop"; import Quop from "./Quop";
import Fxtapll1 from "./Fxtapll1"; import Fxtapll1 from "./Fxtapll1";
import Setmod from "~/components/business/setmod/views"; import Setmod from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import Ccvpan from "~/components/business/ccvpan/views";
import event from "../event"; import event from "../event";
import buildFn from "../event/buildCommons.js"; import buildFn from "../event/buildCommons.js";
...@@ -62,28 +56,25 @@ export default { ...@@ -62,28 +56,25 @@ export default {
"m-fxtapll1" : Fxtapll1, "m-fxtapll1" : Fxtapll1,
"m-setmod": Setmod, "m-setmod": Setmod,
"m-docpan": Docpan, "m-docpan": Docpan,
"m-ccvpan": Ccvpan,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess,event,buildFn,commonDepend,operationFunc], // 里面包含了Default、Check等的公共处理 mixins: [event,buildFn,commonDepend,operationFunc], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "quop", tabVal: "quop",
trnName: "fxtsqo", trnName: "fxtsqo",
trnType: "", trnType: "",
model: new Fxtsqo().data, model: new Fxtsqo().data,
rules: null, rules: {},
codes: { codes: {...CodeTable}
},
} }
}, },
methods:{}, methods:{},
created:async function(){ created:async function(){},
},
mounted() { mounted() {
console.log("进入fxtsqo交易"); console.log("进入fxtsqo交易");
let params = { let params = {
......
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