master
xy 1 year ago
parent 104fe302b6
commit e103a5c73e

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -56,6 +56,26 @@ Vue.prototype.$integrateData = (target,value) => {
}
}
window.$router = router;
// if (window.__POWERED_BY_WUJIE__) {
// let instance;
// window.__WUJIE_MOUNT = () => {
// instance = new Vue({
// router,
// store,
// render: h => h(App)
// }).$mount("#app")
// };
// window.__WUJIE_UNMOUNT = () => {
// instance.$destroy();
// };
// } else {
// new Vue({
// router,
// store,
// render: h => h(App)
// }).$mount("#app")
// }
new Vue({
el: '#app',
router,

@ -1284,6 +1284,7 @@ export default {
hideFormItem () {
let hideJSON;
try {
if (!this.$route.query.hide_json) return;
hideJSON = JSON.parse(this.$route.query.hide_json)
if (!hideJSON) return
console.log(hideJSON)
@ -1302,6 +1303,7 @@ export default {
handleDefaultJSON () {
let defaultJSON;
try {
if (!this.$route.query.default_json) return;
defaultJSON = JSON.parse(this.$route.query.default_json)
if (!defaultJSON) return
for (let key in defaultJSON) {
@ -1490,8 +1492,8 @@ export default {
} else {
this.form.contract_plan_links = []
}
this.form.is_purchase = this.flowIds.find(i => i.id == this.form.flow_mod_id)?.type == 2 ? 1 : 0;
this.form.is_contract = this.flowIds.find(i => i.id == this.form.flow_mod_id)?.type == 2 ? 0 : 1;
this.form.is_purchase = this.flowIds?.find(i => i.id == this.form.flow_mod_id)?.type == 2 ? 1 : 0;
this.form.is_contract = this.flowIds?.find(i => i.id == this.form.flow_mod_id)?.type == 2 ? 0 : 1;
if (this.type === 'add') {
addContrant(this.form,true).then(res => {
this.btnLoading = false

@ -269,7 +269,7 @@
<Button
style="margin-left: 10px"
type="primary"
@click="new RegExp(/contractLedger/g).test($route.path) ? ($refs['addContractLedger'].setType('add'),$refs['addContractLedger'].show()) : isShowAdd = true"
@click="new RegExp(/contractLedger/g).test($route.path) ? ($refs['addContractLedger'].setType('add'),$refs['addContractLedger'].show()) : $router.push('/contract/contractEdit')"
>新增</Button
>
<Button style="margin-left: 10px" type="primary" @click="getContracts"

@ -35,7 +35,7 @@ export default {
return {
list: [
{
name: "内控信息化系统0.0.1",
name: "内控管理系统0.0.1",
support: "wind10+",
src: "http://contract-sqhj-test.ali251.langye.net/api/pc/download"
}

@ -13,29 +13,29 @@
<div class="worker-progress__icon icon-yuan">
<SvgIcon icon-class="yuan"></SvgIcon>
</div>
<div class="progress-card-item__num">{{ 0 }}</div>
<div class="progress-card-item__num">{{ moneyFormatter(statistic.progress.money_total_1 || 0) }}</div>
<div class="progress-card-item__label">年初预算合计金额</div>
</div>
<div class="progress-card-item">
<div class="worker-progress__icon icon-zhangdan">
<SvgIcon icon-class="zhangdan"></SvgIcon>
</div>
<div class="progress-card-item__num">{{ 0}}</div>
<div class="progress-card-item__num">{{ moneyFormatter(statistic.progress.money_total_2 || 0) }}</div>
<div class="progress-card-item__label">调整后预算合计金额</div>
</div>
<div class="progress-card-item">
<div class="worker-progress__icon icon-zhifu">
<SvgIcon icon-class="zhifu"></SvgIcon>
</div>
<div class="progress-card-item__num">{{ 0 }}</div>
<div class="progress-card-item__num">{{moneyFormatter(statistic.progress.use_money_total || 0)}}</div>
<div class="progress-card-item__label">已支付金额</div>
</div>
<div class="progress-card-item">
<MyProgress width="145px" height="145px" title="执行" :percent="0" ></MyProgress>
<MyProgress width="145px" height="145px" title="执行率" :chart-data="[{value:statistic.progress.money_total_2 ? statistic.progress.money_total_2 : statistic.progress.money_total_1,name:''},{value:statistic.progress.use_money_total,name:''}]" ></MyProgress>
</div>
</div>
<Table style="margin-top: 20px;" :data="list" size="small" :columns="table" :max-height="280"></Table>
<Table style="margin-top: 20px;" :data="departments" size="small" :columns="table" :max-height="280"></Table>
</el-card>
</template>
@ -45,6 +45,7 @@ import { moneyFormatter } from "@/utils";
import echarts from 'echarts'
import SvgIcon from "@/components/SvgIcon/index.vue";
import MyProgress from "@/components/Progress/index.vue";
import {statistic} from "@/api/dashboard/notice";
export default {
components: {
@ -60,31 +61,51 @@ export default {
i: "9",
name: "项目支出",
},
inject: {
getStatistic: {
default: () => {
return () => {
return {
statistic: {
departmentList: [
{
money_total_1: "1900000.00",
money_total_2: "0.00",
ids: "11",
plan_department_id: 2,
use_money_total: 0,
money_total: "0.00",
end_money: 0,
plan_department: {
id: 2,
pid: 0,
name: "办公室(党建作风办)",
manager_id: 7,
leader_id: 4,
sortnumber: 1,
created_at: "2021-06-22 07:01:41",
updated_at: "2023-03-22 14:56:51",
deleted_at: null,
},
},
],
},
};
}
},
},
},
data() {
return {
tableHeight: 200,
list: [
{
money_total_1: "1900000.00",
money_total_2: "0.00",
ids: "11",
plan_department_id: 2,
use_money_total: 0,
money_total: "0.00",
end_money: 0,
plan_department: {
id: 2,
pid: 0,
name: "办公室(党建作风办)",
manager_id: 7,
leader_id: 4,
sortnumber: 1,
created_at: "2021-06-22 07:01:41",
updated_at: "2023-03-22 14:56:51",
deleted_at: null,
},
},
],
statistic: {
progress: {
money_total_1: 0,
money_total_2: 0,
use_money_total: 0
}
},
list: [],
table: [
{
title: "序号",
@ -170,6 +191,7 @@ export default {
};
},
methods: {
moneyFormatter,
init() {
let cardDom = this.$el;
let cardTitleH = 58;
@ -179,9 +201,23 @@ export default {
elementResize.listenTo(cardDom,ele => {
this.tableHeight = cardDom.getBoundingClientRect().height - 40 - cardTitleH
})
},
async getStatistics() {
if(/^\/system/.test(this.$route.path)) return
const res = await statistic(this.select,true)
this.statistic = res
this.$emit('send-data',res)
},
},
computed: {
departments () {
return this.getStatistics()?.statistic?.departmentList
}
},
created() {},
created() {
this.getStatistic();
},
mounted() {
this.init();
}

@ -70,7 +70,8 @@ module.exports = {
['^' + process.env.VUE_APP_DOMIAN]: process.env.VUE_APP_DOMIAN
}
}
}
},
headers: { "Access-Control-Allow-Origin": "*" },
},
configureWebpack: {
// provide the app's title in webpack's name field, so that

Loading…
Cancel
Save