刘翔宇-旅管家 2 years ago
parent b2ca9e61eb
commit 73c602c2c0

@ -42,7 +42,7 @@
"@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-eslint": "^8.2.2",
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",

@ -4,7 +4,7 @@
<!-- 最顶部导航栏-->
<div class="top-head-bar">
<div class="top-head-bar__logo">
<img style="height: 20px" src="../assets/logo_test.png" alt="logo" />
<img style="height: 20px" src="../assets/logo.png" alt="logo" />
</div>
<ul>

@ -743,11 +743,11 @@ export default {
prop: "year",
width: 105,
},
{
label: "相关科室",
prop: "plan_department.name",
width: 110,
},
// {
// label: "",
// prop: "plan_department.name",
// width: 110,
// },
{
label: "年初预算金额(元)",
prop: "money",
@ -788,6 +788,7 @@ export default {
year: "",
type: "",
department: "",
is_auth:0
},
departments: [], //
@ -931,6 +932,7 @@ export default {
plan_department_id: this.select.department,
is_tree: this.isTree ? 1 : "",
top_pid: !this.isTree ? 1 : "",
is_auth:this.select.is_auth
}).then((res) => {
if (this.isTree) this.treeData = res.list;
else {

@ -1210,7 +1210,7 @@ export default {
plan_name: "请选择预算计划",
start_plan_price: undefined,
end_plan_price: undefined,
is_myself: 0,
is_myself: 0
},
selectCopy: {
keyword: "",

@ -90,7 +90,7 @@
labelLine: {
show: true
},
center: ['50%', '45%'],
center: ['50%', '50%'],
data: chartdata.yArr,
animationDuration
}]

@ -448,17 +448,25 @@ export default {
this.getStatistic();
},
async getStatistic() {
const res = await statistic(this.select);
console.log(res);
this.statistic = res;
const res = await statistic(this.select);
console.log(res);
this.statistic = res;
let m2 = res.progress.money_total_2;
let m1 = res.progress.money_total_1;
var user_m = res.progress.use_money_total;
var m3=m1-user_m
if (m2 != 0) {
m3=m2-user_m;
} else if (m1 != 0) {
m3=m1-user_m;
}
this.rptChartData = {
xArr: ["预算合计金额", "预算已执行金额"],
xArr: ["预算未执行金额", "预算已执行金额"],
radiusArr: "50%",
yArr: [
{
value: res.progress.money_total_1,
name: "预算合计金额",
value: m3,
name: "预算未执行金额",
label: {
show: false, //labellabel
},
@ -468,7 +476,7 @@ export default {
},
},
},
{ value: res.progress.use_money_total, name: "预算已执行金额" },
{ value: user_m, name: "预算已执行金额" },
],
};
},

@ -316,8 +316,10 @@ export default {
{
prop: "name",
label: "项目名称",
width: 190,
width: 290,
fixed: "left",
align:"left"
},
{
label: this.$route.path.split("_")[1] == 2 ? "报销类型" : "支出类型",

@ -26,7 +26,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/admin/',
outputDir: './dist',
outputDir: '/Users/liuxiangyu/Work/h-huanjingjiance/app/hjjc-workbench-service/public/admin',
assetsDir: 'static',
lintOnSave: false,
productionSourceMap: false,

Loading…
Cancel
Save