Commit b9ab07b0 by liuxin
parents e707193c 94007ba7
......@@ -2077,8 +2077,7 @@
"version": "3.21.1",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
"dev": true,
"hasInstallScript": true
"dev": true
},
"node_modules/@vue/babel-preset-jsx": {
"version": "1.2.4",
......@@ -3246,8 +3245,7 @@
"version": "2.6.12",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"deprecated": "core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.",
"hasInstallScript": true
"deprecated": "core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js."
},
"node_modules/balanced-match": {
"version": "1.0.2",
......@@ -4735,8 +4733,7 @@
"node_modules/core-js": {
"version": "3.21.1",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
"hasInstallScript": true
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig=="
},
"node_modules/core-js-compat": {
"version": "3.21.1",
......@@ -5756,7 +5753,6 @@
"resolved": "https://registry.npmmirror.com/ejs/-/ejs-2.7.4.tgz",
"integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==",
"dev": true,
"hasInstallScript": true,
"engines": {
"node": ">=0.10.0"
}
......@@ -5957,7 +5953,6 @@
"version": "0.10.59",
"resolved": "https://registry.npmmirror.com/es5-ext/-/es5-ext-0.10.59.tgz",
"integrity": "sha512-cOgyhW0tIJyQY1Kfw6Kr0viu9ZlUctVchRMZ7R0HiH3dxTSp5zJDLecwxUqPUrGKMsgBI1wd1FL+d9Jxfi4cLw==",
"hasInstallScript": true,
"dependencies": {
"es6-iterator": "^2.0.3",
"es6-symbol": "^3.1.3",
......@@ -6731,7 +6726,6 @@
"resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
......@@ -13318,7 +13312,6 @@
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"deprecated": "fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
......@@ -13741,7 +13734,6 @@
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"deprecated": "fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
......
No preview for this file type
src/assets/logo.png

9.34 KB | W: | H:

src/assets/logo.png

74.7 KB | W: | H:

src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
  • 2-up
  • Swipe
  • Onion skin
import Vue from "vue"
import Api from "~/service/Api"
import { display } from "~/service/business/file"
import { getTrnNameByInr } from "~/service/business/common"
import Utils from "../utils"
export default {
......@@ -149,5 +150,18 @@ export default {
}
return rtnmsg
},
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
}
}
}
\ No newline at end of file
......@@ -106,5 +106,8 @@ export default {
async handlePass(data) {
this.$store.state.Transaction.operateFuns[data.operateId]["pass"]()
},
async handleRefuse(data) {
this.$store.state.Transaction.operateFuns[data.operateId]["refuse"]()
},
},
};
......@@ -197,6 +197,7 @@ export default {
}
}
}
this.$el.querySelectorAll('input').forEach(input => input.blur())
})
},
/**
......
import Utils from "~/utils"
let checkObj = {
"assposref" :null,
"accamt" :null,
"accdat" :null, //承付日期
"assbustyp":null, //资产业务类型
"assregref":null, //资产登记编号
"assregtyp":null, //资产登记类型
"asssta":null, //资产状态
"asstrasta":null, //资产交易状态
"avbby":null, //信用证兑付类型
"docsta":null,//单据状态
"ownbch":null,//业务归属机构
"usrbch":null,//业务经办机构
"fromdate":null,
"todate":null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"assposref" :Utils.defaultFunction,
"accamt" :Utils.defaultFunction,
"accdat" :Utils.defaultFunction, //承付日期
"assbustyp" :Utils.defaultFunction, //资产业务类型
"assregref" :Utils.defaultFunction, //资产登记编号
"assregtyp" :Utils.defaultFunction, //资产登记类型
"asssta" :Utils.defaultFunction, //资产状态
"asstrasta" :Utils.defaultFunction, //资产交易状态
"avbby" :Utils.defaultFunction, //信用证兑付类型
"docsta" :Utils.defaultFunction,//单据状态
"ownbch" :Utils.defaultFunction,//业务归属机构
"usrbch" :Utils.defaultFunction,
"fromdate":Utils.defaultFunction,
"todate":Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onAss(){
const that = this.root;
let rtnmsg = await that.executeRule("assposref")
if(rtnmsg.respCode == "AAAAAA")
{
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows
this.$message({
type: 'success',
message: '查询成功!'
});
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAsstyp(){
let rtnmsg = await this.executeRule("assbustyp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAssdat(){
let rtnmsg = await this.executeRule("accdat")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"assposref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"assbustyp":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"accamt":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"assregref":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"accdat":[
{type: "date", required: true, message: "必输项"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class AssetInfo{
constructor () {
this.data = {
assposref:"", //资产发布编号
accamt:"", //承付金额
accdat:"", //承付日期
assbustyp:"", //资产业务类型
assregref:"", //资产登记编号
assregtyp:"", //资产登记类型
asssta:"", //资产状态
asstrasta:"", //资产交易状态
avbby:"", //信用证兑付类型
docsta:"",//单据状态
ownbch:"",//业务归属机构
usrbch:"",//业务经办机构
fromdate:"",
todate:"",
edit:{
assposref:"", //资产发布编号
accamt:"", //承付金额
accdat:"", //承付日期
assbustyp:"", //资产业务类型
assregref:"", //资产登记编号
assregtyp:"", //资产登记类型
asssta:"", //资产状态
asstrasta:"", //资产交易状态
avbby:"", //信用证兑付类型
docsta:"",//单据状态
ownbch:"",//业务归属机构
usrbch:"",//业务经办机构
},
query:{
assposref:"", //资产发布编号
accamt:"", //承付金额
accdat:"", //承付日期
assbustyp:"", //资产业务类型
assregref:"", //资产登记编号
assregtyp:"", //资产登记类型
asssta:"", //资产状态
asstrasta:"", //资产交易状态
avbby:"", //信用证兑付类型
docsta:"",//单据状态
ownbch:"",//业务归属机构
usrbch:"",//业务经办机构
}
}
}
}
\ No newline at end of file
import Utils from "~/utils"
let checkObj = {
"assposref":null,//资产发布编号
"assregref":null,//资产登记编号
"offtyp":null, //要约类型
"settyp":null,//结息方式
"credat":null,//资产发布日期
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"assposref" :Utils.defaultFunction,
"assregref" :Utils.defaultFunction, //资产登记编号
"offtyp" :Utils.defaultFunction, //要约类型
"settyp" :Utils.defaultFunction, //结息方式
"credat" :Utils.defaultFunction, //资产发布日期
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onAss(){
const that = this.root;
let rtnmsg = await that.executeRule("assposref")
if(rtnmsg.respCode == "AAAAAA")
{
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows
this.$message({
type: 'success',
message: '查询成功!'
});
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAssreg(){
let rtnmsg = await this.executeRule("assregref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAssdat(){
let rtnmsg = await this.executeRule("credat")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"assposref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"offtyp":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"settyp":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"assregref":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"credat":[
{type: "date", required: true, message: "必输项"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class AssetPub{
constructor () {
this.data = {
assposref:"",//资产发布编号
assregref:"",//资产登记编号
offtyp:"", //要约类型
settyp:"",//结息方式
credat:"",//资产发布日期
}
}
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async handleSearch(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async handleSearch(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleReset(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow(){
......@@ -140,12 +139,5 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow(){
......@@ -145,19 +144,5 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow () {
......@@ -111,19 +110,4 @@ export default {
}
},
display (index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow(){
......@@ -30,20 +29,6 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
display(index, row) {
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
......
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow () {
......@@ -200,20 +199,4 @@ export default {
}
},
display (index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
async onInfbutSearow() {
......@@ -198,20 +197,5 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
// 顶部查询按钮
......@@ -363,20 +362,6 @@ export default {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
getDetails(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default {
/*async onInfbutSearow() {
......@@ -91,22 +90,6 @@ export default {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
},
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async onInfbutDsp(row) {
let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -97,7 +97,7 @@ export default {
const operateId = await this.$store.dispatch('Transaction/setOperateFuns', {
pass: this.onRelrow.bind(this, idx),
refuse: () => { alert("功能开发中") }
refuse: this.onReprow.bind(this, idx),
});
this.$router.push({ path: viewurl, query: { trn: row['INR'], operateId: operateId } });
......@@ -227,15 +227,61 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onReprow() {
let rtnmsg = await this.executeRule("reprow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
async onReprow(idx) {
this.$confirm('您确定退回该笔交易?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
const selIds = [idx + 1]; //rowno选中行
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule("reprow", params)
if (rtnmsg.respCode == SUCCESS) {
let errorMsg = "";
let fieldErrorsFlag = (JSON.stringify(rtnmsg.fieldErrors) == "{}");
if (!fieldErrorsFlag) {
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in rtnmsg.fieldErrors) {
errorMsgkey = key;
errorMsgVal = rtnmsg.fieldErrors[key];
}
errorMsg = errorMsgkey + ':' + errorMsgVal;
this.$notify.error({ title: '错误', message: '退回失败!错误信息[' + errorMsg + ']' });
} else {
this.$notify({
title: '成功',
message: '退回成功',
type: 'success'
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'trnrel');
this.handleSearch()
});
}
}
else {
let errorMsg = "";
let fieldErrorsFlag = (JSON.stringify(rtnmsg.fieldErrors) == "{}");
if (!fieldErrorsFlag) {
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in rtnmsg.fieldErrors) {
errorMsgkey = key;
errorMsgVal = rtnmsg.fieldErrors[key];
errorMsg = errorMsg + errorMsgkey + ':' + errorMsgVal + ";";
}
} else if (rtnmsg.respMsg) {
errorMsg = rtnmsg.respMsg;
}
this.$notify.error({ title: '错误', message: '退回失败!错误信息[' + errorMsg + ']' });
}
})
},
async onRejrow() {
console.log(this.getSelectedData())
......@@ -381,12 +427,6 @@ export default {
onSeainf() {
},
// display(index, row) {
// const d = this.stmData.data[index]
// const ds = d.split("\t")
// let viewurl = "/#/display/" + ds['10'].toLowerCase() + "?trn=" + ds['1']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// },
async handleSearch() {
const that = this.root;
// if (this.model.searchAllUsers) {
......
import Api from "~/service/Api"
export function getTrnNameByInr(data) {
return Api.post('/business/getTrnNameByInr', data)
}
\ No newline at end of file
import Api from "~/service/Api"
export function display(inr, data) {
return Api.post(`/business/display/${inr}`, data)
export function display(inr) {
return Api.post(`/business/display/${inr}`)
}
export function getPdf(data) {
......
import Api from "~/service/Api"
export function asset(data) {
return Api.post("/elec/hall/asset", data)
}
export function assetpub(data) {
return Api.post("/elec/hall/assetpub", data)
}
export function fund(data) {
return Api.post("/elec/hall/fund", data)
}
export function assInfo(data) {
return Api.post("/elec/hall/assInfo", data)
}
export function assPubInfo(data) {
return Api.post("/elec/hall/assPubInfo", data)
}
export function assQueryId(data) {
return Api.post("/elec/hall/assQueryId",data)
}
......@@ -10,4 +10,16 @@ export function my(data) {
export function ins(data) {
return Api.post("/report/task/ins", data)
}
\ No newline at end of file
}
export function busvolume(data) {
return Api.post("/report/customer/businessVolume", data)
}
export function finamount(data) {
return Api.post("/report/customer/financedAmount", data)
}
export function expincome(data) {
return Api.post("/report/customer/expenseIncome", data)
}
......@@ -107,7 +107,7 @@ const Status = {
},
setTaskList(state, options) {
state.taskList[options.key] = options.val;
}
},
}
}
export default Status
\ No newline at end of file
......@@ -3,14 +3,6 @@
* UUID
*/
const map = {
'开立信用证':'ditopn',
'到单':'ditdck',
'付款':'bdtset',
'Incoming payment':'cptopn',
'Outgoing payment':'cptadv'
}
var PubFun = {
getUUID:function() {
var s = [];
......@@ -24,10 +16,6 @@ var PubFun = {
return s.join("");
},
getTrnNameByDesc:function(descri){
return map[descri]||'';
}
}
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="资产信息查询" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/AssetInfo/Check"
import Default from "~/model/AssetInfo/Default"
import Pattern from "~/model/AssetInfo/Pattern"
import Infsea from "./Infsea"
import AssetInfo from "~/model/AssetInfo"
import Ccvpan from "~/views/Public/Ccvpan"
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
//import Doctre from "~/views/Public/Doctre"
import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan";
export default {
components:{
"m-infsea" : Infsea,
 "m-ccvpan" : Ccvpan,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-engp":Engp,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "assetInfo",
model: new AssetInfo().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes:{},
}
},
methods:{
tabClick(){
}
},
created:async function(){
// console.log("进入assetInfo交易");
// let rtnmsg = await this.init({})
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="资产发布信息查询" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/AssetPub/Check"
import Default from "~/model/AssetPub/Default"
import Pattern from "~/model/AssetPub/Pattern"
import Infsea from "./Infsea"
import AssetPub from "~/model/AssetPub"
import Ccvpan from "~/views/Public/Ccvpan"
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
//import Doctre from "~/views/Public/Doctre"
import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan";
export default {
components:{
"m-infsea" : Infsea,
 "m-ccvpan" : Ccvpan,
"m-setpan" : Setpan,
"m-glepan" : Glepan,
"m-engp":Engp,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "assetPub",
model: new AssetPub().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes:{},
}
},
methods:{
tabClick(){
}
},
created:async function(){
// console.log("进入assetInfo交易");
// let rtnmsg = await this.init({})
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
}
}
</script>
<style>
</style>
......@@ -180,7 +180,7 @@
width="100">
<template slot-scope="scope">
<!-- <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>-->
<a href="javascript:void(0)" @click="display(scope.$index, scope.row)">处理</a>
<a href="javascript:void(0)" @click="display(scope.row['INR'])">处理</a>
</template>
</el-table-column>
......
......@@ -127,6 +127,11 @@ import Infpty from "./Infpty"
import Dbipty from "./Dbipty"
import Notice from "./Notice"
import Iaefts from "./Iaefts"
import Expben from "./Expben"
import AssetInfo from "./AssetInfo"
import AssetPub from "./AssetPub"
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -266,6 +271,15 @@ const BusRouter = [
{ path: 'getset', component: Getset, name: 'Getset', meta: { title: 'Getset' } },
{ path: 'getsel', component: Getsel, name: 'Getsel', meta: { title: 'Getsel' } },
{ path: 'getcrq', component: Getcrq, name: 'Getcrq', meta: { title: 'Getcrq' } },
{ path: 'notice', component: Notice, name: 'Notice', meta: { title: '通知公告' } },
{ path: 'notice', component: Notice, name: 'Notice', meta: { title: '通知公告设置' } },
{ path: 'Iaefts', component: Iaefts, name: 'Iaefts', meta: { title: '进出口融资交易' } },
{ path: 'Expben', component: Expben, name: 'Expben', meta: { title: '费用收益交易' } },
{ path: 'assetinfo', component: AssetInfo, name: 'AssetInfo', meta: { title: '资产信息管理' } },
{ path: 'assetpub', component: AssetPub, name: 'AssetPub', meta: { title: '资产发布信息管理' } },
]
export default BusRouter
<template>
<div class="eibs-tab">
<c-col :span="8">
<el-form-item label="客户名称">
<c-input
v-model="customername"
placeholder="请输入客户名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起止日期">
<c-col :span="11">
<c-date-picker
type="date"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择Date"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
style="width: 100%"
value-format="yyyy-MM-dd"
placeholder="请选择Date"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务编号">
<c-input placeholder="请输入Reference"> </c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="经办柜员">
<c-select style="width: 100%" palceholder="请选择User"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="请选择费用变化状态">
<c-select style="width: 100%" placeholder="费用变化状态"></c-select>
</el-form-item>
</c-col>
<c-col :span="8" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="handleSearch"
>查询</el-button
>
</c-col>
<c-col class="clearfix" :span="24" style="margin-top: 10px">
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
</c-col>
<c-col :span="24" style="">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="165px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="onInfbutDsp(scope.$index, scope.row)"
>
详情
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="continueEdit(scope.row)"
>
处理
</c-button>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0"
>指派</c-button
>
</li>
<li>
<c-button size="small" style="margin-left: 0"
>删除</c-button
>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
><i class="el-icon-more"></i
></a>
</el-popover>
</template>
</c-table-column>
</c-istream-table>
</c-col>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess";
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Expben/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
trnName: "ExpenseIncome",
customername:"",
stmData: {
columns: [
'4 1 "客户名称" 0 ',
'5 2 "业务编号" 0',
'7 3 "经办柜员" 0',
'20 4 "费用变化状态" 0',
'21 5 "融资状态" 0',
],
data: [],
},
};
},
computed: {},
//注意此处应为$route当前组件的this 不是$router vuerouter的this其不含query值
created(){
if(this.$route.query){
this.customername=this.$route.query.name
}},
methods: {...Event},
};
</script>
<style></style>
<template>
<div class="eContainer">
<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">
<el-tab-pane label="费用收益" name="ExpenseIncome">
<m-ExpenseIncome :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess"
import CodeTable from "~/config/CodeTable"
import ExpenseIncome from "./ExpenseIncome"
export default {
name:"Expben",
components:{
"m-ExpenseIncome" : ExpenseIncome,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess],
data(){
return {
tabVal: "ExpenseIncome",
trnName: "expenseIncome",
model: null,
rules:null,
codes: {...CodeTable},
};
},
methods:{
tabClick(){
}
},
created:async function(){
console.log("进入费用收益")
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="客户名称">
<c-input
v-model="customername"
placeholder="请输入客户名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起止日期" style="width: 100%">
<c-col :span="11">
<c-date-picker
type="date"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择Date"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择Date"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务编号">
<c-input placeholder="请输入Reference"> </c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="经办柜员">
<c-select style="width: 100%" palceholder="请选择User"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="请选择融资种类">
<c-select style="width: 100%" placeholder="融资种类"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="请选择融资状态">
<c-select style="width: 100%" placeholder="融资状态"></c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="请选择收支标志">
<c-select style="width: 100%" placeholder="收支标志"></c-select>
</el-form-item>
</c-col>
<c-col :span="16" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="handleSearch"
>查询</el-button
>
</c-col>
<c-col class="clearfix" :span="24" style="margin-top: 10px">
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
</c-col>
<c-col :span="24" style="">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="165px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="onInfbutDsp(scope.$index, scope.row)"
>
详情
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="continueEdit(scope.row)"
>
处理
</c-button>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0"
>指派</c-button
>
</li>
<li>
<c-button size="small" style="margin-left: 0"
>删除</c-button
>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
><i class="el-icon-more"></i
></a>
</el-popover>
</template>
</c-table-column>
</c-istream-table>
</c-col>
</c-col>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess";
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Iaefts/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
trnName: "Finance",
customername:"",
stmData: {
columns: [
'4 1 "客户名称" 0 ',
'5 2 "收支标志" 0',
'7 3 "业务编号" 0',
'20 4 "融资种类" 0',
'21 5 "融资状态" 0',
],
data: [],
},
};
},
computed: {},
//注意此处应为$route当前组件的this 不是$router vuerouter的this其不含query值
created () {
if(this.$route.query){
this.customername=this.$route.query.name
}
},
methods: {...Event,},
};
</script>
<style></style>
<template>
<div class="eContainer">
<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">
<el-tab-pane label="进出口融资量" name="Finance">
<m-Finance :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess"
import CodeTable from "~/config/CodeTable"
import Finance from "./Finance"
export default {
name:"Iaefts",
mixins: [commonProcess],
components:{
"m-Finance" : Finance,
},
provide() {
return {
root: this
}
},
data(){
return {
tabVal: "Finance",
trnName: "iaefts",
model: null,
rules: null,
codes: {
},
}
},
methods:{
tabClick(){
}
},
created:async function(){
console.log("进入进出口融资")
}
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -265,7 +265,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
......@@ -196,7 +196,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
查看详情
</c-button>
......
......@@ -194,7 +194,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
......@@ -396,7 +396,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
......@@ -365,7 +365,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
......@@ -567,7 +567,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
......@@ -331,7 +331,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
......@@ -212,7 +212,7 @@
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.$index, scope.row)"
@click="display(scope.row['INR'])"
>
详情
</c-button>
......
<template>
<div class="eibs-tab">
<c-content>
<!-- ----------左 ---------->
<c-col :span="11">
<c-col :span="24">
......@@ -202,7 +202,7 @@
</c-table-column>
</c-istream-table>
</c-col>
</c-content>
<!-- <c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutDsp">
Display
......
......@@ -32,7 +32,7 @@
</el-form-item>
</c-col>
<c-col :span="11" style="text-align:right;">
<c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0" @click="display(model.trn.inr)">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
<c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
</c-col>
......@@ -481,21 +481,6 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList");
},
display() {
debugger
const inr = this.model.trn.inr;
const trnName = this.model.trn.inifrm;
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// const inr = this.model.trn.inr;
// Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + inr
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
......
......@@ -32,7 +32,7 @@
</el-form-item>
</c-col>
<c-col :span="11" style="text-align:right;">
<c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0" @click="display(model.trn.inr)">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
<c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
</c-col>
......@@ -479,22 +479,6 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList");
},
display() {
debugger
const inr = this.model.trn.inr;
const trnName = this.model.trn.inifrm;
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// const inr = this.model.trn.inr;
// Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + inr
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
......
......@@ -11,6 +11,15 @@
<script>
export default {
name: "Business",
watch: {
$route() {
if (this.$route.path.startsWith("/review")) {
this.$store.commit("setMode", "display");
} else {
this.$store.commit("setMode", "normal");
}
},
},
created: () => {
console.log("进入业务交易界面");
},
......
......@@ -20,6 +20,7 @@
<script>
import CellWrapper from "../common/CellWrapper.vue";
import * as echarts from "echarts";
import { busvolume, finamount, expincome } from "~/service/report";
export default {
name: "CustomerAnalyse",
......@@ -28,6 +29,12 @@ export default {
data() {
return {
echartInstance: null,
//componentIndex
mapping: {
0: "trnfnd",
1: "iaefts",
2: "expben",
},
};
},
mounted() {
......@@ -38,17 +45,101 @@ export default {
});
},
methods: {
loadCharts() {
//加载图标函数
async loadCharts() {
if (this.echartInstance) {
this.echartInstance.dispose();
}
this.echartInstance = echarts.init(
this.$el.querySelector(".chart-container .chartWrapper .chart")
);
//统计 业务量
let volume = await busvolume();
//统计 融资量
let amount = await finamount();
//统计 费用收益
let income = await expincome();
//定义 seriesData数组 金额 category数组 客户名
let seriesData = [];
let seriesData1 = [];
let seriesData2 = [];
let category = [];
// 优先遍历客户名,方便后续的数组匹配
// volume.forEach((v) => {
// console.log(v.nam1)
// category.push(v.nam1);
// console.log(category.toString());
// console.log(category)
// });
console.log("volume.length:" + volume.length);
console.log(category);
for (let i = 0; i < volume.length; i++) {
let v = volume[i].nam1;
// console.log(typeof v);
// console.log(volume[i].nam1);
category.push(v);
// console.log(category.toString());
// console.log(category);
// console.log(typeof category);
}
//存在bug后续要解决
// amount.forEach((v) => {
// for (let i = 0; i < category.length; i++) {
// if (category[i] == v.nam1) {
// continue;
// } else {
// category.push(v.nam1);
// }
// }
// });
//存在bug后续要解决
// income.forEach((v) => {
// for (let i = 0; i < category.length; i++) {
// if (category[i] == v.nam1) {
// continue;
// } else {
// category.push(v.nam1);
// }
// }
// });
volume.forEach((v) => {
for (let i = 0; i < category.length; i++) {
if (category[i] == v.nam1) {
seriesData[i] = v.amount;
break;
}
}
});
amount.forEach((v) => {
for (let i = 0; i < category.length; i++) {
if (category[i] == v.nam1) {
seriesData1[i] = v.amount;
break;
}
}
});
income.forEach((v) => {
for (let i = 0; i < category.length; i++) {
if (category[i] == v.nam1) {
seriesData2[i] = v.amount;
break;
}
}
});
console.log(category);
console.log(seriesData);
console.log(seriesData1);
console.log(seriesData2);
const option = {
title: {
// text: "Test Demo",
},
tooltip: {
trigger: "axis",
axisPointer: {
......@@ -66,47 +157,82 @@ export default {
},
xAxis: {
type: "value",
boundaryGap: [0, 0.01],
boundaryGap: ["10%", "20%"],
},
yAxis: {
type: "category",
data: [
"海康威视",
"春晖指控",
"苏奥传感",
"东方财富",
"隆基股份",
"贵州茅台",
],
data: category,
},
series: [
{
name: "业务量(万美元)",
name: "业务量金额(美元)",
type: "bar",
data: [18203, 23489, 29034, 104970, 131744, 230230],
data: seriesData,
},
{
name: "融资量(万美元)",
name: "融资量金额(万美元)",
type: "bar",
data: [19325, 23438, 31000, 121594, 134141, 381807],
data: seriesData1,
},
{
name: "费用收益(千美元)",
name: "费用收益金额(千美元)",
type: "bar",
data: [49325, 53438, 11000, 221594, 43241, 455807],
data: seriesData2,
},
],
};
this.echartInstance.setOption(option);
//echart on事件来跳转页面
// this.echartInstance.on(
// 'click',
// function (params) =>{
// alert(params.name);
// this.$router.push('/taskList')
// }
this.echartInstance.on("click", (params) => {
console.log(params);
console.log(params.name);
var name = parseInt(params.name);
let path = params.componentIndex;
// 要使用=>函数使内外的this指向一致
if (path === 0) {
this.$router.push("/taskList").then(() => {
this.$store.commit(
"setTaskListTabVal",
this.mapping[params.componentIndex]
);
});
} else if (path === 1) {
//{path:"/xxxpath",query:"id:xxx"} router跳转页面传参业务 接受页面用created(){if(this.$route.query){todo}}
this.$router.push({
path:"/business/Iaefts",
query:{name: params.name}
});
} else {
//{path:"/xxxpath",query:"id:xxx"} router跳转页面传参业务 接受页面用created(){if(this.$route.query){todo}}
this.$router.push({
path:"/business/Expben",
query:{name:params.name}
});
}
});
},
destroyed() {
window.removeEventListener("resize", this.loadChartsBind);
},
},
destroyed() {
window.removeEventListener("resize", this.loadChartsBind);
},
};
</script>
<style scoped>
<style>
.chart-container {
height: 100%;
display: flex;
......@@ -126,5 +252,7 @@ export default {
.chartWrapper .chart {
width: 100%;
height: 100%;
/* 将指针改变为可以跳转 */
cursor: pointer;
}
</style>
<template>
<CellWrapper title="电子大厅" :cellContentHeight="cellContentHeight">
<template v-slot:header>
<span class="el-icon-refresh" title="刷新"></span>
<span class="el-icon-more" title="操作"></span>
</template>
<div class="card-wrapper">
<div class="card-item" v-for="(item, idx) in itemList" :key="idx">
<CellWrapper title="电子大厅" :cellContentHeight="cellContentHeight">
<template v-slot:header>
<span class="el-icon-refresh" title="刷新"></span>
<span class="el-icon-more" title="操作" ></span>
</template>
<div class="cell-content">
<div class="card-item1">
<div class="dept-name">
<div class="first-word1"></div>
<div class="dz-title" @click="openassInfo">资产信息</div>
</div>
<div class="display1">
<div class="type-count" v-for="(item, idx) in itemList" :key="idx">
<div class="count-item">{{item.name}}</div>
<div class="count-number">{{item.count}}</div>
</div>
</div>
</div>
<div class="card-item2">
<div class="dept-name">
<div
class="first-word"
:style="{ 'background-color': item.backColor }"
>
{{ item.title.substr(0, 1) }}
<div class="first-word2">
</div>
<div class="dz-title">{{ item.title }}</div>
<div class="dz-title" @click="openassInfoPub">资产发布信息</div>
</div>
<div class="type-count">
<div class="count-item">
操作处理类 <span class="count-number">26</span>
</div>
<div class="count-item">
提示信息类 <span class="count-number">3</span>
<div class="display2">
<div class="type-count" v-for="(item, idx) in apub" :key="idx">
<div class="count-item" >{{item.name}}</div>
<div class="count-number">{{item.count}}</div>
</div>
</div>
</div>
<div class="card-item3">
<div class="dept-name">
<div class="first-word3">
</div>
<div class="dz-title">资金信息</div>
</div>
<div class="display3">
<div class="type-count" v-for="(item, idx) in fund" :key="idx">
<div class="count-item">{{item.name}}</div>
<div class="count-number">{{item.count}}</div>
</div>
</div>
</div>
</div>
</CellWrapper>
</template>
<script>
import CellHeader from "../common/CellHeader.vue";
import CellWrapper from "../common/CellWrapper.vue";
import { asset } from "~/service/elec";
import { assetpub } from "~/service/elec";
import { fund } from "~/service/elec";
export default {
name: "Hall",
props: ['cellContentHeight'],
components: { CellWrapper },
props: ['cellContentHeight'],
components: { CellHeader,CellWrapper},
data() {
return {
itemList: [
{
title: "资产管理大厅",
backImg: "linear-gradient(#2073ef, #bec2f3",
backColor: "#2073ef",
},
{
title: "我行发布资产大厅",
backImg: "linear-gradient(rgb(28 190 241), rgb(201 229 237))",
backColor: "rgb(28 190 241)",
},
{
title: "他行发布资产大厅",
backImg: "linear-gradient(rgb(243, 195, 12), rgb(239 228 197))",
backColor: "rgb(243, 195, 12)",
},
{
title: "资金发布大厅",
backImg: "linear-gradient(#ff9800, rgb(251 234 210))",
backColor: "#ff9800",
},
],
// colors: ['#2073ef','rgb(28 190 241)','rgb(243, 195, 12)'],
//titles:['资产信息','资产发布信息','资金信息'],
itemList: [ ],
apub:[],
fund:[],
};
},
created() {
asset().then(res => {
this.itemList=res
}),
assetpub().then(res =>{
this.apub = res;
}),
fund().then(res =>{
this.fund = res;
})
},
methods: {
openassInfo(){
window.location.href="#/business/AssetInfo"
},
openassInfoPub(){
window.location.href="#/business/AssetPub"
}
},
};
</script>
<style scoped>
.card-wrapper {
height: 100%;
.cell-content {
display: flex;
flex-wrap: wrap;
height: 100%;
}
.cell-content {
justify-content: space-around;
align-items: center;
}
.card-item {
width: 45%;
height: 45%;
.cell-content .card-item1 {
width: 30%;
height: 85%;
background-color: #e6e8ef;
border-radius: 12px;
padding: 0 10px 0 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
font-size: 14px;
}
.cell-content .card-item2 {
width: 30%;
height: 85%;
background-color: #e6e8ef;
border-radius: 12px;
padding: 0 10px 0 15px;
......@@ -84,15 +150,43 @@ export default {
flex-direction: column;
font-size: 14px;
}
.cell-content .card-item3 {
width: 30%;
height: 85%;
background-color: #e6e8ef;
border-radius: 12px;
padding: 0 10px 0 15px;
box-sizing: border-box;
display: flex;
flex-direction: column;
font-size: 14px;
}
.dept-name {
display: flex;
align-items: center;
/* margin-top: 20px; */
}
.dept-name,
.type-count {
flex: 1;
}
.first-word {
.first-word1 {
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-weight: bolder;
font-family: emoji;
border-radius: 8px;
font-size: 20px;
background-color: #2073ef;
}
.first-word2 {
width: 40px;
height: 40px;
display: flex;
......@@ -103,21 +197,58 @@ export default {
font-family: emoji;
border-radius: 8px;
font-size: 20px;
background-color:rgb(28 190 241);
}
.first-word3 {
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-weight: bolder;
font-family: emoji;
border-radius: 8px;
font-size: 20px;
background-color:rgb(243, 195, 12);
}
.dz-title {
margin-left: 10px;
font-weight: bold;
}
.display1 {
padding: 5px 0 35px 0;
}
.display2 {
padding: 5px 0 55px 0;
}
.display3 {
padding: 5px 0 55px 0;
}
.type-count .count-item {
display: flex;
align-items: center;
font-weight: 400;
/* font-weight: 400; */
color: #6c6f72;
float: left;
}
.type-count .count-number {
font-size: 20px;
margin-left: 20px;
/* font-size: 20px;*/
/* margin-left: 10px; */
color: #000;
font-size: 18px;
margin-top: 2px;
}
</style>
......@@ -183,6 +183,7 @@ export default {
justify-content: center;
align-items: center;
border-right: 1px solid;
/* 鼠标改为指针可以跳转 */
cursor: pointer;
}
.task-stat-display.total .display-wrapper .stat-item:last-child .stat-count {
......
<template>
<div class="self-header">
<div style="display: inline-block; margin: 5px 15px 5px 0; height: 50px">
<img src="../../assets/logo_guangda.png" alt="" style="height: 100%" />
<img src="../../assets/logo.png" alt="" style="height: 100%" />
</div>
<div class="self_header_label">
<h2>光大银行国际结算系统</h2>
......
......@@ -140,6 +140,11 @@ export default {
{ inifrm: "switsk", ininam: "Switsk", pntmiu: "14" },
{ inifrm: "mgrtsk", ininam: "Mgrtsk", pntmiu: "14" },
{ inifrm: "sptrel", ininam: "sptrel", pntmiu: "14" },
{ inifrm: "15",ininam: "福费廷管理", pntmiu: "" },
{ inifrm: "assetInfo", ininam: "资产信息管理", pntmiu: "15" },
{ inifrm: "assetPub", ininam: "资产发布信息管理", pntmiu: "15" },
{ inifrm: "fund", ininam: "资金信息管理", pntmiu: "15" },
],
menus: [],
menusHeight: 0,
......
......@@ -71,11 +71,6 @@ export default {
},
watch: {
$route() {
if (this.$route.path.startsWith("/review")) {
this.$store.commit("setMode", "display");
} else {
this.$store.commit("setMode", "normal");
}
this.addTags();
this.moveToCurrentTag();
},
......
......@@ -61,6 +61,14 @@ module.exports = {
'^/gjjs/devtools': '/gjjs/devtools'
}
},
'/gjjs/elec/': {
target: 'http://127.0.0.1:8083',
changeOrigin: true,
pathRewrite: {
'^/gjjs/elec': '/gjjs/elec'
}
},
/**
* ocr智能识别服务
*/
......
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