Commit 0515ae6f by jianglong

新增外币本币账号查询控制

parent 45bf0ea6
......@@ -13,10 +13,59 @@ export default {
console.log("~~~~~~~~~");
console.log(this.model.fxdgrp);
Utils.copyValueFromVoData(this.model.aplacc, this.model.fxdgrp.acc, ignoreModFlg);
Utils.copyValueFromVoData(this.model.aplacc, this.model.fxdgrp.acc, true);
// this.model.aplacc=this.model.fxdgrp.acc;
console.log("~~~~~~~~~");
console.log(this.model.fxdgrp);
this.defaultAcc2N1000();
},
async onActChange(){
debugger
this.defaultAcc1N1000();
},
async defaultAcc2N1000(){
if (this.model.aplacc.pts.ptainr == ""||this.model.aplacc.pts.ptainr == undefined) {
return;
}
if (this.model.fxdgrp.cbs.max.cur == ""||this.model.fxdgrp.cbs.max.cur == undefined) {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtfcm/defaultAcc2N1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.acc2List=res.data;
if(this.acc2List.length>0 && (this.model.acc2 ==""||this.model.acc2 ==undefined)){
this.model.acc2=acc2List[0];
}
},
async defaultAcc1N1000(){
if (this.model.fxdgrp.act.pts.ptainr == ""||this.model.fxdgrp.act.pts.ptainr == undefined) {
return;
}
if (this.model.fxdgrp.cbs.max.cur == ""||this.model.fxdgrp.cbs.max.cur == undefined) {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtfcm/defaultAcc1N1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.acc1List=res.data;
if(this.acc1List.length>0 && (this.model.acc1 ==""||this.model.acc1 ==undefined)){
this.model.acc1=acc1List[0];
}
},
}
}
\ No newline at end of file
......@@ -147,10 +147,24 @@
</c-col>
<c-col :span="24">
<el-form-item prop="acc2">
<!-- <el-form-item prop="acc2">
<c-select v-model="model.acc2" style="width:100%">
</c-select>
</el-form-item>
</el-form-item> -->
<el-form-item label="Account" prop="acc2">
<el-select
v-model="model.acc2" clearablex
placeholder="请选择账号"
>
<el-option v-for="item in acc2List" :key="item" :label="item"
:value="item">
<span style="float: left">{{ item }}</span>
</el-option>
</el-select>
</el-form-item>
</c-col>
......@@ -158,6 +172,7 @@
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false"
@handleChange="onActChange"
:argadr="{title: '我行账户行', grp: 'fxdgrp', rol: 'act',}"
:label="{labelExtkey:'我行账户行',labelNam:'名称',labelAdrblk:'地址',}"
ptytyp="B">
......@@ -166,10 +181,25 @@
</c-col>
<c-col :span="24">
<el-form-item prop="acc1">
<!-- <el-form-item prop="acc1">
<c-select v-model="model.acc1" style="width:100%">
</c-select>
</el-form-item>
</el-form-item> -->
<el-form-item label="Account" prop="acc1">
<el-select
v-model="model.acc1" clearablex
placeholder="请选择账号"
>
<el-option v-for="item in acc1List" :key="item" :label="item"
:value="item">
<span style="float: left">{{ item }}</span>
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col>
......@@ -178,20 +208,20 @@
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [Event,commonProcess],
mixins: [Event],
data(){
return {
acc1List:['1111120209999','1111120209998'],
acc2List:['2222220209999','2222220209998'],
}
},
methods:{...Event},
methods:{},
created:function(){
}
......
......@@ -324,17 +324,17 @@
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "../model/Event";
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
mixins: [Event],
data() {
return {};
},
methods: {
...Event
},
created: function () {},
};
......
......@@ -76,7 +76,7 @@ export default {
root: this
}
},
mixins: [commonProcess,operationFunc,commonDepend,event,buildFn], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc,commonDepend,event,buildFn], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "ovwp",
......
......@@ -8,12 +8,12 @@ export default {
async getOwnref() {
},
async onAccChange(){
onAccChange(){
console.log("~~~~~~~~~");
console.log(this.model.fxdgrp);
Utils.copyValueFromVoData(this.model.aplacc, this.model.fxdgrp.acc, ignoreModFlg);
Utils.copyValueFromVoData(this.model.aplacc, this.model.fxdgrp.acc, true);
// this.model.aplacc=this.model.fxdgrp.acc;
console.log("~~~~~~~~~");
console.log(this.model.fxdgrp);
......
......@@ -9,11 +9,60 @@ export default {
console.log("~~~~~~~~~");
console.log(this.model.fxdgrp);
Utils.copyValueFromVoData(this.model.aplacc, this.model.fxdgrp.acc, ignoreModFlg);
console.log(this.model);
Utils.copyValueFromVoData(this.model.aplacc, this.model.fxdgrp.acc, true);
// this.model.aplacc=this.model.fxdgrp.acc;
console.log("~~~~~~~~~");
console.log(this.model.fxdgrp);
console.log(this.model);
this.defaultAcc2N1000();
},
async onActChange(){
this.defaultAcc1N1000();
},
async defaultAcc2N1000(){
if (this.model.aplacc.pts.ptainr == ""||this.model.aplacc.pts.ptainr == undefined) {
return;
}
if (this.model.fxdgrp.cbs.max.cur == ""||this.model.fxdgrp.cbs.max.cur == undefined) {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtlcm/defaultAcc2N1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.acc2List=res.data;
if(this.acc2List.length>0 && (this.model.acc2 ==""||this.model.acc2 ==undefined)){
this.model.acc2=acc2List[0];
}
},
async defaultAcc1N1000(){
if (this.model.fxdgrp.act.pts.ptainr == ""||this.model.fxdgrp.act.pts.ptainr == undefined) {
return;
}
if (this.model.fxdgrp.cbs.max.cur == ""||this.model.fxdgrp.cbs.max.cur == undefined) {
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fxtlcm/defaultAcc1N1000`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.acc1List=res.data;
if(this.acc1List.length>0 && (this.model.acc1 ==""||this.model.acc1 ==undefined)){
this.model.acc1=acc1List[0];
}
},
}
}
\ No newline at end of file
......@@ -188,6 +188,7 @@
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false"
@handleChange="onActChange"
:argadr="{title: '我行账户行', grp: 'fxdgrp', rol: 'act',}"
:label="{labelExtkey:'我行账户行',labelNam:'名称',labelAdrblk:'地址',}"
ptytyp="B">
......@@ -216,21 +217,19 @@
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [Event,commonProcess],
mixins: [Event],
data(){
return {
acc1List:['1111120209999','1111120209998'],
acc2List:['2222220209999','2222220209998'],
}
},
methods:{...Event},
methods:{},
created:function(){},
watch: {
......
......@@ -58,7 +58,7 @@ export default {
root: this
}
},
mixins: [operationFunc, event, commonDepend, buildFn,commonProcess],
mixins: [operationFunc, event, commonDepend, buildFn],
data(){
return {
tabVal: "ovwp",
......
......@@ -960,8 +960,8 @@ export default {
methods: {},
mounted () {
this.getdbCode('lcrtyp','EN','lcrtyp');
this.getdbCode('avbby0','EN','avbby');
// this.getdbCode('lcrtyp','EN','lcrtyp');
// this.getdbCode('avbby0','EN','avbby');
},
created: function() {}
};
......
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