This commit is contained in:
2025-08-26 21:03:23 +08:00
8 changed files with 61 additions and 39 deletions

View File

@ -8,7 +8,7 @@ VITE_APP_ENV = 'development'
# 李陈杰 209
VITE_APP_BASE_API = 'http://192.168.110.180:8899'
# 曾涛
# VITE_APP_BASE_API = 'http://192.168.110.180:8899'
VITE_APP_BASE_API = 'http://192.168.110.180:8899'
# 罗成
# VITE_APP_BASE_API = 'http://192.168.110.213:8899'
# 朱银

View File

@ -15,7 +15,7 @@ export const totalAmount = () => {
/**
* 查询项目位置列表
*
*/ export const projectGis = (clientid) => {
*/ export const projectGis = (clientid?: any) => {
return request({
url: '/money/big/screen/project/gis',
method: 'get',
@ -57,7 +57,8 @@ export const totalAmount = () => {
/**
* 支出合同分析
*
*/ export const expensesAnalyze = (clientid) => {
*/
export const expensesAnalyze = (clientid) => {
return request({
url: '/money/big/screen/expenses/analyze',
method: 'get',
@ -79,14 +80,14 @@ export const totalAmount = () => {
export const monthMoney = () => {
return request({
url: '/money/big/screen/monthMoney',
method: 'get',
method: 'get'
});
};
// 现金流
export const monthCash = () => {
return request({
url: '/money/big/screen/monthCash',
method: 'get',
method: 'get'
});
};
// 现金流总和
@ -94,6 +95,6 @@ export const monthCash = () => {
export const cashTotal = () => {
return request({
url: '/money/big/screen/cashTotal',
method: 'get',
method: 'get'
});
};

View File

@ -44,7 +44,7 @@
</el-form-item>
<el-form-item>
<el-button
type="primary"
type="warning"
icon="view"
@click="handleViewInfo"
v-hasPermi="['bidding:biddingLimitList:getVersionDetail']"

View File

@ -39,7 +39,14 @@
<el-button type="primary" v-if="reviewStatus == 'draft'" @click="clickApprovalSheet()">审核</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" v-if="reviewStatus != 'draft'" @click="clickApprovalSheet()">查看流程</el-button>
<el-button
type="warning"
icon="view"
v-if="reviewStatus != 'draft'"
@click="clickApprovalSheet()"
v-hasPermi="['tender:tenderPlanLimitList:getVersionDetail']"
>查看流程</el-button
>
</el-form-item>
</el-form>
</el-card>

View File

@ -23,7 +23,7 @@ const props = defineProps({
},
// 数值
value: {
type: Number,
type: Number || String,
default: 205805.17
},
// 单位

View File

@ -147,8 +147,14 @@ const initEcharts = () => {
},
tooltip: {
trigger: 'item',
formatter: (params: any) => {
// 自定义提示框内容,显示更多项目信息
backgroundColor: 'rgba(3, 26, 52, 0.8)',
borderColor: '#1e3a6e',
textStyle: {
color: '#fff'
},
formatter: function (params: any) {
if (params.data) {
// 处理散点数据
const data = params.data;
return `
<div style="font-weight: bold;">${data.name}</div>
@ -156,6 +162,7 @@ const initEcharts = () => {
<div>经纬度:${data.value[0].toFixed(6)}, ${data.value[1].toFixed(6)}</div>
`;
}
}
},
series: [
{

View File

@ -1,3 +1,4 @@
import { to } from 'await-to-js';
import * as echarts from 'echarts/core';
import { text } from 'stream/consumers';
// import { PictorialBarChart } from 'echarts/charts'
@ -255,7 +256,6 @@ export const getLineOption = (lineData: any) => {
const maxData = Math.max(...lineData.line1.flat());
const option = {
backgroundColor: '',
tooltip: {
trigger: 'axis',
@ -313,7 +313,7 @@ export const getLineOption = (lineData: any) => {
axisLabel: {
textStyle: {
color: '#fff'
},
}
}
},
yAxis: {
@ -698,7 +698,7 @@ export const getBarOptions = (data: any) => {
const option = {
backgroundColor: '',
grid: {
left: '8%',
left: '9%',
top: '10%', // 顶部留一点空间给 legend
bottom: '8%',
right: '2%'
@ -716,7 +716,8 @@ export const getBarOptions = (data: any) => {
formatter: (params: any) => {
// params 是数组,对应每条柱子
return params
.map((p: any) => `${p.seriesName}${p.value} 万元`)
.map((p: any) => `${p.seriesName}${Number(p.value).toFixed(2)} 万元`)
.join('<br/>');
},
textStyle: {
@ -758,8 +759,11 @@ export const getBarOptions = (data: any) => {
{
axisLabel: {
formatter: function (value) {
value = value + '万';
return value;
if (value >= 1000) {
return value / 1000 + '千万';
} else {
return value + '万';
}
},
color: 'rgba(255, 255, 255, 0.8)'
},
@ -825,7 +829,9 @@ export const getBarOptions = (data: any) => {
},
label: {
show: false,
formatter: '{c}',
formatter: function (params) {
return Number(params.value).toFixed(2);
},
position: 'top',
color: '#fff',
fontSize: 10
@ -864,11 +870,12 @@ export const getBarOptions = (data: any) => {
},
label: {
show: true,
formatter: '{c}',
formatter: function (params) {
return Number(params.value).toFixed(2);
},
position: 'top',
color: '#fff',
fontSize: 10,
padding: 5
fontSize: 10
}
}
]
@ -898,7 +905,6 @@ export const getBarOptions2 = (data: any) => {
tooltip: {
trigger: 'item',
show: true
},
legend: {
top: '5%',
@ -929,10 +935,10 @@ export const getBarOptions2 = (data: any) => {
{ value: 3, name: '100万以下' },
{ value: 4, name: '100-500万' },
{ value: 5, name: '500-1000万' },
{ value: 4, name: '1000万以上' },
{ value: 4, name: '1000万以上' }
]
}
]
};
return option;
}
};

View File

@ -39,13 +39,14 @@
</el-form-item>
<el-form-item>
<el-button
type="primary"
type="warning"
icon="view"
@click="handleAudit()"
v-if="versionsData.status == 'draft'"
v-hasPermi="['tender:tenderPlanLimitList:getVersionDetail']"
>审核</el-button
>
<el-button type="warning" @click="handleAudit()" v-else v-hasPermi="['tender:tenderPlanLimitList:getVersionDetail']"
<el-button type="warning" icon="view" @click="handleAudit()" v-else v-hasPermi="['tender:tenderPlanLimitList:getVersionDetail']"
>查看流程</el-button
>
</el-form-item>