Commit d48857ab by wangren

litsel 进口信用证入口 模型转化

parent dcdc6c4e
...@@ -363,6 +363,7 @@ export default class Litopn{ ...@@ -363,6 +363,7 @@ export default class Litopn{
advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
advnam:"", // 国内证落款 .trnmod.trndoc.advnam advnam:"", // 国内证落款 .trnmod.trndoc.advnam
amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
doceot:"", //面涵 message
doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
doctrestm:"", // Document tree .trnmod.trndoc.doctrestm doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
......
...@@ -4,10 +4,6 @@ import Utils from "~/utils" ...@@ -4,10 +4,6 @@ import Utils from "~/utils"
* Litsel Check规则 * Litsel Check规则
*/ */
let checkObj = { let checkObj = {
"bpdget.sdamod.dadsnd" :null,
"trdget.sdamod.dadsnd" :null,
"lidget.sdamod.dadsnd" :null,
"brdget.sdamod.dadsnd" :null,
} }
for (const key in checkObj) { for (const key in checkObj) {
......
...@@ -6,43 +6,54 @@ import Api from "~/service/Api"; ...@@ -6,43 +6,54 @@ import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
"brdgrp.prb.pts.nam" :Utils.defaultFunction,
"trpnttyp" :Utils.defaultFunction, "trpnttyp" :Utils.defaultFunction,
"lidgrp.rec.ownref" :Utils.defaultFunction,
"brdgrp.rec.shgref" :Utils.defaultFunction,
"brdgrp.ben.pts.nam" :Utils.defaultFunction,
"cfgfil.subtrn1" :Utils.defaultFunction,
"selbut.sptpenlab_descr" :Utils.defaultFunction,
"selbut.sptpenlab" :Utils.defaultFunction,
"sptpentrbp" :Utils.defaultFunction, "sptpentrbp" :Utils.defaultFunction,
"sptpentrbp_descr" :Utils.defaultFunction, "sptpentrbp_descr" :Utils.defaultFunction,
"dfdgrp.dff.pts.nam" :Utils.defaultFunction,
"lidgrp.rec.ownref" :Utils.defaultFunction,
"brdgrp.rec.ownref" :Utils.defaultFunction, "brdgrp.rec.ownref" :Utils.defaultFunction,
"bpdgrp.rec.ownref" :Utils.defaultFunction,
"bpdgrp.rec.fintyp" :Utils.defaultFunction, "bpdgrp.rec.fintyp" :Utils.defaultFunction,
"brdgrp.apl.pts.nam" :Utils.defaultFunction,
"trdgrp.fip.pts.nam" :Utils.defaultFunction,
"trdgrp.rec.ownref" :Utils.defaultFunction,
"trnpentrbp_descr" :Utils.defaultFunction,
"trnpentrbp" :Utils.defaultFunction,
"lidgrp.adv.pts.nam" :Utils.defaultFunction,
"bpdgrp.rec.ownref" :Utils.defaultFunction,
"selbut.trnpenlab" :Utils.defaultFunction, "selbut.trnpenlab" :Utils.defaultFunction,
"selbut.trnpenlab_descr" :Utils.defaultFunction, "selbut.trnpenlab_descr" :Utils.defaultFunction,
"brdgrp.apl.pts.nam" :Utils.defaultFunction, "bpdgrp.fia.pts.nam" :Utils.defaultFunction,
"dfdgrp.apl.pts.nam" :Utils.defaultFunction,
"brdgrp.prb.pts.nam" :Utils.defaultFunction,
"dfdgrp.dff.pts.nam" :Utils.defaultFunction,
"cfgfil.subtxt10" :Utils.defaultFunction, "cfgfil.subtxt10" :Utils.defaultFunction,
"cfgfil.subtrn10" :Utils.defaultFunction,
"cfgfil.subtrn11" :Utils.defaultFunction,
"cfgfil.subtxt11" :Utils.defaultFunction, "cfgfil.subtxt11" :Utils.defaultFunction,
"brdgrp.cbs.max.cur" :Utils.defaultFunction, "brdgrp.cbs.max.cur" :Utils.defaultFunction,
"brdgrp.rec.shgref" :Utils.defaultFunction,
"bpdgrp.fia.pts.nam" :Utils.defaultFunction,
"lidgrp.ben.pts.nam" :Utils.defaultFunction, "lidgrp.ben.pts.nam" :Utils.defaultFunction,
"dfdgrp.apl.pts.nam" :Utils.defaultFunction,
"dfdgrp.rec.ownref" :Utils.defaultFunction, "dfdgrp.rec.ownref" :Utils.defaultFunction,
"cfgfil.subtxt1" :Utils.defaultFunction, "cfgfil.subtxt1" :Utils.defaultFunction,
"cfgfil.subtrn9" :Utils.defaultFunction,
"cfgfil.subtxt9" :Utils.defaultFunction, "cfgfil.subtxt9" :Utils.defaultFunction,
"cfgfil.subtrn8" :Utils.defaultFunction,
"cfgfil.subtxt8" :Utils.defaultFunction, "cfgfil.subtxt8" :Utils.defaultFunction,
"cfgfil.subtrn7" :Utils.defaultFunction,
"cfgfil.subtxt7" :Utils.defaultFunction, "cfgfil.subtxt7" :Utils.defaultFunction,
"cfgfil.subtrn6" :Utils.defaultFunction,
"cfgfil.subtxt6" :Utils.defaultFunction, "cfgfil.subtxt6" :Utils.defaultFunction,
"cfgfil.subtrn5" :Utils.defaultFunction,
"cfgfil.subtxt5" :Utils.defaultFunction, "cfgfil.subtxt5" :Utils.defaultFunction,
"cfgfil.subtrn4" :Utils.defaultFunction,
"cfgfil.subtxt4" :Utils.defaultFunction, "cfgfil.subtxt4" :Utils.defaultFunction,
"cfgfil.subtrn3" :Utils.defaultFunction,
"cfgfil.subtxt3" :Utils.defaultFunction, "cfgfil.subtxt3" :Utils.defaultFunction,
"cfgfil.subtrn2" :Utils.defaultFunction,
"cfgfil.subtxt2" :Utils.defaultFunction, "cfgfil.subtxt2" :Utils.defaultFunction,
"selbut.sptpenlab" :Utils.defaultFunction,
"trdgrp.fip.pts.nam" :Utils.defaultFunction,
"trdgrp.rec.ownref" :Utils.defaultFunction,
"trnpentrbp_descr" :Utils.defaultFunction,
"trnpentrbp" :Utils.defaultFunction,
"lidgrp.apl.pts.nam" :Utils.defaultFunction, "lidgrp.apl.pts.nam" :Utils.defaultFunction,
"lidgrp.adv.pts.nam" :Utils.defaultFunction,
"brdgrp.ben.pts.nam" :Utils.defaultFunction,
"selbut.sptpenlab_descr" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -2,5 +2,29 @@ import Api from "~/service/Api" ...@@ -2,5 +2,29 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onSyswrnButok(){
let rtnmsg = await this.executeRule("syswrn.butok")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSyswrnButcan(){
let rtnmsg = await this.executeRule("syswrn.butcan")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
} }
\ No newline at end of file
...@@ -351,12 +351,14 @@ export default { ...@@ -351,12 +351,14 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.hotsub2":[ "cfgfil.hotsub2":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.hotsub3":[ "cfgfil.hotsub3":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -389,6 +391,7 @@ export default { ...@@ -389,6 +391,7 @@ export default {
"cfgfil.hotsub4":[ "cfgfil.hotsub4":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -397,18 +400,21 @@ export default { ...@@ -397,18 +400,21 @@ export default {
"cfgfil.hotsub5":[ "cfgfil.hotsub5":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.hotsub6":[ "cfgfil.hotsub6":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.regside3":[ "cfgfil.regside3":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -444,16 +450,19 @@ export default { ...@@ -444,16 +450,19 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.hotsub8":[ "cfgfil.hotsub8":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.hotsub9":[ "cfgfil.hotsub9":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cfgfil.hotreg4":[ "cfgfil.hotreg4":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -490,6 +499,8 @@ export default { ...@@ -490,6 +499,8 @@ export default {
"cfgfil.hotsub11":[ "cfgfil.hotsub11":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -498,4 +509,10 @@ export default { ...@@ -498,4 +509,10 @@ export default {
"selbut.syswrn.dsp":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
} }
\ No newline at end of file
...@@ -15,6 +15,9 @@ export default class Litsel{ ...@@ -15,6 +15,9 @@ export default class Litsel{
trnpenlab_descr:"", // Description for TRNPENLAB .selbut.trnpenlab_descr trnpenlab_descr:"", // Description for TRNPENLAB .selbut.trnpenlab_descr
dsprevnbr:"", // Revolving Done .selbut.dsprevnbr dsprevnbr:"", // Revolving Done .selbut.dsprevnbr
sptpenlab_descr:"", // Description for SPTPENLAB .selbut.sptpenlab_descr sptpenlab_descr:"", // Description for SPTPENLAB .selbut.sptpenlab_descr
syswrn:{
dsp:"", // Display .selbut.syswrn.dsp
},
}, },
dspbrdclsdat:"", // Display Closing Date of Document Set .dspbrdclsdat dspbrdclsdat:"", // Display Closing Date of Document Set .dspbrdclsdat
dsptrdclsdat:"", // Display Closeing Date of Loan .dsptrdclsdat dsptrdclsdat:"", // Display Closeing Date of Loan .dsptrdclsdat
...@@ -24,7 +27,6 @@ export default class Litsel{ ...@@ -24,7 +27,6 @@ export default class Litsel{
trnpentrbp:"", // Label showing stored uncommited transactions for TR/BP .trnpentrbp trnpentrbp:"", // Label showing stored uncommited transactions for TR/BP .trnpentrbp
lidgrp:{ lidgrp:{
rec:{ rec:{
inr:"",
ownref:"", // L/C Reference .lidgrp.rec.ownref ownref:"", // L/C Reference .lidgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .lidgrp.rec.nam nam:"", // Externally Displayed Name to Identify the Contract .lidgrp.rec.nam
avbby:"", // Available by .lidgrp.rec.avbby avbby:"", // Available by .lidgrp.rec.avbby
...@@ -172,7 +174,7 @@ export default class Litsel{ ...@@ -172,7 +174,7 @@ export default class Litsel{
mattxtlab:"", // Label for MATTXT .matp.mattxtlab mattxtlab:"", // Label for MATTXT .matp.mattxtlab
}, },
cfgfil:{ cfgfil:{
btnstm:"", //按钮数据 btnstm: "", //按钮数据
bitmap:"", // Bitmap for folder .cfgfil.bitmap bitmap:"", // Bitmap for folder .cfgfil.bitmap
regside1:"", // Regside .cfgfil.regside1 regside1:"", // Regside .cfgfil.regside1
regside2:"", // Regside .cfgfil.regside2 regside2:"", // Regside .cfgfil.regside2
...@@ -197,17 +199,6 @@ export default class Litsel{ ...@@ -197,17 +199,6 @@ export default class Litsel{
subtxt9:"", // submenu text 9 .cfgfil.subtxt9 subtxt9:"", // submenu text 9 .cfgfil.subtxt9
subtxt10:"", // submenu text 10 .cfgfil.subtxt10 subtxt10:"", // submenu text 10 .cfgfil.subtxt10
subtxt11:"", // submenu text 11 .cfgfil.subtxt11 subtxt11:"", // submenu text 11 .cfgfil.subtxt11
subtrn1:"", // submenu text 1 .cfgfil.subtxt1
subtrn2:"", // submenu text 2 .cfgfil.subtxt2
subtrn3:"", // submenu text 3 .cfgfil.subtxt3
subtrn4:"", // submenu text 4 .cfgfil.subtxt4
subtrn5:"", // submenu text 5 .cfgfil.subtxt5
subtrn6:"", // submenu text 6 .cfgfil.subtxt6
subtrn7:"", // submenu text 7 .cfgfil.subtxt7
subtrn8:"", // submenu text 8 .cfgfil.subtxt8
subtrn9:"", // submenu text 9 .cfgfil.subtxt9
subtrn10:"", // submenu text 10 .cfgfil.subtxt10
subtrn11:"", // submenu text 11 .cfgfil.subtxt11
regtxt1:"", // Register text 1 .cfgfil.regtxt1 regtxt1:"", // Register text 1 .cfgfil.regtxt1
regtxt2:"", // Register text 2 .cfgfil.regtxt2 regtxt2:"", // Register text 2 .cfgfil.regtxt2
regtxt3:"", // Register text 3 .cfgfil.regtxt3 regtxt3:"", // Register text 3 .cfgfil.regtxt3
...@@ -243,6 +234,17 @@ export default class Litsel{ ...@@ -243,6 +234,17 @@ export default class Litsel{
hotreg10:"", // hotspot reg10 .cfgfil.hotreg10 hotreg10:"", // hotspot reg10 .cfgfil.hotreg10
hotreg11:"", // hotspot reg11 .cfgfil.hotreg11 hotreg11:"", // hotspot reg11 .cfgfil.hotreg11
hotreg12:"", // hotspot reg12 .cfgfil.hotreg12 hotreg12:"", // hotspot reg12 .cfgfil.hotreg12
subtrn1:"", // Submenu trn 1 .cfgfil.subtrn1
subtrn2:"", // Submenu trn 2 .cfgfil.subtrn2
subtrn3:"", // Submenu trn 3 .cfgfil.subtrn3
subtrn4:"", // Submenu trn 4 .cfgfil.subtrn4
subtrn5:"", // Submenu trn 5 .cfgfil.subtrn5
subtrn6:"", // Submenu trn 6 .cfgfil.subtrn6
subtrn7:"", // Submenu trn 7 .cfgfil.subtrn7
subtrn8:"", // Submenu trn 8 .cfgfil.subtrn8
subtrn9:"", // Submenu trn 9 .cfgfil.subtrn9
subtrn10:"", // Submenu trn 10 .cfgfil.subtrn10
subtrn11:"", // Submenu trn 11 .cfgfil.subtrn11
}, },
dfdgrp:{ dfdgrp:{
rec:{ rec:{
......
...@@ -139,6 +139,8 @@ import AssetPub from "./AssetPub" ...@@ -139,6 +139,8 @@ import AssetPub from "./AssetPub"
import Fund from "./Fund" import Fund from "./Fund"
import Brtdck from "./Brtdck" import Brtdck from "./Brtdck"
import Litsel from "./Litsel"
/** /**
* 带有name的才会被添加进顶部的标签页里 * 带有name的才会被添加进顶部的标签页里
*/ */
...@@ -293,6 +295,8 @@ const BusRouter = [ ...@@ -293,6 +295,8 @@ const BusRouter = [
{ path: 'assetpub', component: AssetPub, name: 'AssetPub', meta: { title: '资产发布信息管理' } }, { path: 'assetpub', component: AssetPub, name: 'AssetPub', meta: { title: '资产发布信息管理' } },
{ path: 'fund', component: Fund, name: 'Fund', meta: { title: '资金信息管理' } }, { path: 'fund', component: Fund, name: 'Fund', meta: { title: '资金信息管理' } },
{ path: 'Litsel', component: Litsel, name: 'Litsel', meta: { title: '进口信用证入口' } },
] ]
export default BusRouter export default BusRouter
\ No newline at end of file
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
v-model="model.lidgrp.rec.cnfdet" v-model="model.lidgrp.rec.cnfdet"
style="width: 100%" style="width: 100%"
placeholder="请选择Confirm. Instructions" placeholder="请选择Confirm. Instructions"
:code="codes.cnfdet" :code="codes.cnfflg1"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
......
<template>
<div class="eibs-tab">
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<el-table
:data="tableData"
border
stripe
:show-header="false"
:cell-style="cellSttyle"
>
<el-table-column prop="label" align="center">
<template slot-scope="scope">
<c-button
@click="onNarBtnClick(scope.row.url, scope.row.label)"
:label="scope.row.label"
:disabled="scope.row.disabled"
>{{ scope.row.label }}</c-button
>
<!-- <el-link
:disabled="scope.row.disabled"
:href="scope.row.url"
v-if="scope.row.title"
>{{ scope.row.title }}</el-link
> -->
</template>
</el-table-column>
</el-table>
</template>
<script>
import commonProcess from "~/mixin/commonProcess";
export default {
inject: ["root"],
props: ["data", "model"],
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
cellSttyle: { height: "25px" },
meumItem: [],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(url, label) {
let key = 0;
for(let i = 1; i <= 11 ; i++){
let temp_label = this.model.cfgfil['subtxt'+i];
if(temp_label == label){
key = i;
break;
}
}
let rtnmsg = await this.executeRule("cfgfil.hotsub"+key);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
url = url.toLowerCase();
this.$router.history.push("/business/" + url);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
},
computed: {
tableData() {
const arr = [];
var data = this.data;
for (let i = 0; i < data.length; i++) {
const items = data[i].split("\t");
arr.push({
url: items[0],
label: items[1],
disabled: items[2] == "N" ? true : false,
other: items[3],
});
}
return arr;
},
},
};
</script>
<style>
a {
text-decoration-line: none;
color: #606266;
}
a:hover {
color: blue;
}
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Display" prop="selbut.syswrn.dsp">
<c-input v-model="model.selbut.syswrn.dsp" :placeholder="$t('other.please_enter')+'Display'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSyswrnButok">
{{$t('syswrn.CF000003')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSyswrnButcan">
{{$t('syswrn.CF000004')}}
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" 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="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--litsel PD000058 Menu -->
<!--PD000058 --> <el-tab-pane label="Menu" name="sel">
<el-tab-pane label="PD000058" name="sel"> <c-content>
<m-sel :model="model" :codes="codes"/> <m-sel :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> </el-tab-pane>
<!--cfgfil PD000002 -->
<!-- <el-tab-pane :label="$t('cfgfil.PD000002')" name="regp">
<m-regp :model="model" :codes="codes"/>
</el-tab-pane> -->
<!--syswrn PD000005 Warnings -->
<!-- <el-tab-pane :label="$t('syswrn.PD000005')" name="syswrndisplay">
<m-syswrndisplay :model="model" :codes="codes"/>
</el-tab-pane> -->
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
...@@ -20,11 +29,16 @@ import Check from "~/model/Litsel/Check" ...@@ -20,11 +29,16 @@ import Check from "~/model/Litsel/Check"
import Default from "~/model/Litsel/Default" import Default from "~/model/Litsel/Default"
import Pattern from "~/model/Litsel/Pattern" import Pattern from "~/model/Litsel/Pattern"
import Sel from "./Sel" import Sel from "./Sel"
import Regp from "./Regp"
import Syswrndisplay from "./Syswrndisplay"
export default { export default {
name: "Litsel",
components:{ components:{
"m-sel" : Sel, "m-sel" : Sel,
"m-regp" : Regp,
"m-syswrndisplay" : Syswrndisplay,
}, },
provide() { provide() {
return { return {
...@@ -34,19 +48,24 @@ export default { ...@@ -34,19 +48,24 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "", tabVal: "sel",
trnName: "litsel", trnName: "litsel",
trnType: "",
model: new Litsel().data, model: new Litsel().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {...CodeTable
}, },
} }
}, },
methods:{ methods:{
tabClick(){ tabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
} }
}, },
created:async function(){ created:async function(){
...@@ -54,6 +73,7 @@ export default { ...@@ -54,6 +73,7 @@ export default {
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
......
...@@ -54,10 +54,14 @@ export default { ...@@ -54,10 +54,14 @@ export default {
async loadData() { async loadData() {
//统计 业务量 //统计 业务量
const volume = await busvolume(); const volume = await busvolume();
let volumes = Array.from(volume);
//统计 融资量 //统计 融资量
const amount = await finamount(); const amount = await finamount();
let amounts = Array.from(amount);
//统计 费用收益 //统计 费用收益
const income = await expincome(); const income = await expincome();
let incomes = Array.from(income)
let categoryArr = []; let categoryArr = [];
//定义 seriesData数组 金额 category数组 客户名 //定义 seriesData数组 金额 category数组 客户名
// let seriesData = []; // let seriesData = [];
...@@ -107,7 +111,7 @@ export default { ...@@ -107,7 +111,7 @@ export default {
// } // }
// }); // });
const volumeArr = [] const volumeArr = []
volume.forEach((v) => { volumes.forEach((v) => {
for (let i = 0; i < categoryArr.length; i++) { for (let i = 0; i < categoryArr.length; i++) {
if (categoryArr[i] == v.nam1) { if (categoryArr[i] == v.nam1) {
volumeArr.push(v.amount) volumeArr.push(v.amount)
...@@ -117,7 +121,7 @@ export default { ...@@ -117,7 +121,7 @@ export default {
}); });
this.seriesData = volumeArr; this.seriesData = volumeArr;
const amountArr = [] const amountArr = []
amount.forEach((v) => { amounts.forEach((v) => {
for (let i = 0; i < categoryArr.length; i++) { for (let i = 0; i < categoryArr.length; i++) {
if (categoryArr[i] == v.nam1) { if (categoryArr[i] == v.nam1) {
amountArr.push(v.amount); amountArr.push(v.amount);
...@@ -127,7 +131,7 @@ export default { ...@@ -127,7 +131,7 @@ export default {
}); });
this.seriesData1 = amountArr; this.seriesData1 = amountArr;
const incomeArr = [] const incomeArr = []
income.forEach((v) => { incomes.forEach((v) => {
for (let i = 0; i < categoryArr.length; i++) { for (let i = 0; i < categoryArr.length; i++) {
if (categoryArr[i] == v.nam1) { if (categoryArr[i] == v.nam1) {
incomeArr.push(v.amount); incomeArr.push(v.amount);
......
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