diff --git a/src/views/contract/components/contractSign.vue b/src/views/contract/components/contractSign.vue index cd40359..35daebb 100644 --- a/src/views/contract/components/contractSign.vue +++ b/src/views/contract/components/contractSign.vue @@ -140,6 +140,7 @@
付款计划
+

如需分期付款,请分条填报付款计划

{ - const typeSwitch = (type) => { - let res = this.planTypes.filter((item) => { - return item.id === type; - }); - return res[0]?.value || "未知"; - }; - return ( -
- {typeSwitch(row.type)} {" "} -
- ); - }, + prop: 'type_detail.value' }, { label: "项目", diff --git a/src/views/contract/components/editorContract.vue b/src/views/contract/components/editorContract.vue index 8e4eed5..5d621ba 100644 --- a/src/views/contract/components/editorContract.vue +++ b/src/views/contract/components/editorContract.vue @@ -465,13 +465,7 @@ import { resetSelect } from '@/utils' }, { label: "分类", - prop: 'type', - formatter: (cell, data, value) => { - let res = this.moneyWay.filter(item => { - return item.id === value - }) - return res[0]?.value || '未知' - } + prop: 'type_detail.value', }, { label: "名称", diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue index de611b7..ae5b703 100644 --- a/src/views/contract/components/paymentRegistration.vue +++ b/src/views/contract/components/paymentRegistration.vue @@ -507,7 +507,7 @@ export default { yizhifucishu: this.actNumsTotal(), yizhifujine: this.totalMoney(), zongjia: this.contract?.money, - zhifucishu: this.payment.length, + zhifucishu: this.contract?.sign_plan?.length || 0, total: data.apply_money, out_pay_id: res }); diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index d5ccf39..5e8e013 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -1582,6 +1582,28 @@ export default { } }, }, + { + label: "合同预算价(元)", + width: 140, + prop: "plan_price", + align: "right", + formatter: (v1, v2, value) => { + return Number(value) + .toFixed(2) + .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); + }, + }, + { + label: "合同签订价(元)", + width: 140, + prop: "money", + align: "right", + formatter: (cell, data, value) => { + return Number(value) + .toFixed(2) + .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); + }, + }, { label: "已申请金额(元)", prop: "apply_money_total", @@ -1622,28 +1644,6 @@ export default { ); }, }, - { - label: "合同预算价(元)", - width: 140, - prop: "plan_price", - align: "right", - formatter: (v1, v2, value) => { - return Number(value) - .toFixed(2) - .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); - }, - }, - { - label: "合同签订价(元)", - width: 140, - prop: "money", - align: "right", - formatter: (cell, data, value) => { - return Number(value) - .toFixed(2) - .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); - }, - }, { label: "合同状态", width: 120, @@ -1783,13 +1783,7 @@ export default { }, { label: "分类", - prop: "type", - formatter: (cell, data, value) => { - let res = this.moneyWay.filter((item) => { - return item.id === value; - }); - return res[0]?.value || "未知"; - }, + prop: "type_detail.value", width: 100, fixed: "left", }, @@ -2318,7 +2312,7 @@ export default { let baseInfo = { title: row?.name, 执行部门: row?.carry_department, - total: row?.money, + total: row?.money || row?.plan_price, out_contract_id: row.id, //"承包商\\供应商":row.supply }; diff --git a/src/views/contract/contractProgress.vue b/src/views/contract/contractProgress.vue index 19035e9..3deb710 100644 --- a/src/views/contract/contractProgress.vue +++ b/src/views/contract/contractProgress.vue @@ -593,6 +593,28 @@ export default { } }, }, + { + label: "合同预算价(元)", + width: 140, + prop: "plan_price", + align: "right", + formatter: (v1, v2, value) => { + return Number(value) + .toFixed(2) + .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); + }, + }, + { + label: "合同签订价(元)", + width: 140, + prop: "money", + align: "right", + formatter: (cell, data, value) => { + return Number(value) + .toFixed(2) + .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); + }, + }, { label: "已申请金额(元)", prop: "apply_money_total", @@ -633,28 +655,6 @@ export default { ); }, }, - { - label: "合同预算价(元)", - width: 140, - prop: "plan_price", - align: "right", - formatter: (v1, v2, value) => { - return Number(value) - .toFixed(2) - .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); - }, - }, - { - label: "合同签订价(元)", - width: 140, - prop: "money", - align: "right", - formatter: (cell, data, value) => { - return Number(value) - .toFixed(2) - .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); - }, - }, { label: "合同状态", width: 120, diff --git a/src/views/contract/seeContract.vue b/src/views/contract/seeContract.vue index 57c0390..8130ed9 100644 --- a/src/views/contract/seeContract.vue +++ b/src/views/contract/seeContract.vue @@ -694,6 +694,15 @@ } }, + { + label: "合同预算价(元)", + width: 140, + prop: "plan_price", + align: 'right', + formatter: (v1, v2, value) => { + return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + } + }, { label: '已申请金额(元)', prop: 'apply_money_total', @@ -730,15 +739,7 @@ ) } }, - { - label: "合同预算价(元)", - width: 140, - prop: "plan_price", - align: 'right', - formatter: (v1, v2, value) => { - return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') - } - }, + { label: '合同签订价(元)', width: 140, diff --git a/src/views/dashboard/components/LineChart.vue b/src/views/dashboard/components/LineChart.vue index b3419c2..5c697bf 100644 --- a/src/views/dashboard/components/LineChart.vue +++ b/src/views/dashboard/components/LineChart.vue @@ -61,63 +61,64 @@ }, setOptions(chartdata) { console.log(chartdata.xArr) + this.chart.clear(); this.chart.setOption({ - dataZoom: [ - //给x轴设置滚动条 - // { - // startValue: 0, - // endValue: 6, // 显示条数 - // type: 'slider', - // show: true, - // xAxisIndex: [0], - // // handleSize: 0, //滑动条的 左右2个滑动条的大小 - // height: 8, //组件高度 - // left: 50, //左边的距离 - // right: 40, //右边的距离 - // bottom: 26, //右边的距离 - // handleColor: '#EFEFEF', //h滑动图标的颜色 - // handleStyle: { - // borderColor: '#409EFF', - // borderWidth: '1', - // shadowBlur: 2, - // background: '#EFEFEF', - // shadowColor: '#EFEFEF' - // }, - // fillerColor: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ - // //给颜色设置渐变色 前面4个参数,给第一个设置1,第四个设置0 ,就是水平渐变 - // //给第一个设置0,第四个设置1,就是垂直渐变 - // offset: 0, - // color: '#409EFF' - // }, - // { - // offset: 1, - // color: '#409EFF' - // } - // ]), - // backgroundColor: '#EFEFEF', //两边未选中的滑动条区域的颜色 - // showDataShadow: false, //是否显示数据阴影 默认auto - // showDetail: false, //即拖拽时候是否显示详细数值信息 默认true - // handleIcon: 'M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z', - // filterMode: 'filter' - // } - //下面这个属性是里面拖到 - // { - // type: 'inside', - // show: true, - // xAxisIndex: [0], - // start: 0, //默认为1 - // end: 50, - // }, - ], + // dataZoom: [ + // //给x轴设置滚动条 + // { + // startValue: 0, + // endValue: 6, // 显示条数 + // type: 'slider', + // show: true, + // xAxisIndex: [0], + // // handleSize: 0, //滑动条的 左右2个滑动条的大小 + // height: 8, //组件高度 + // left: 50, //左边的距离 + // right: 40, //右边的距离 + // bottom: 26, //右边的距离 + // handleColor: '#EFEFEF', //h滑动图标的颜色 + // handleStyle: { + // borderColor: '#409EFF', + // borderWidth: '1', + // shadowBlur: 2, + // background: '#EFEFEF', + // shadowColor: '#EFEFEF' + // }, + // fillerColor: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ + // //给颜色设置渐变色 前面4个参数,给第一个设置1,第四个设置0 ,就是水平渐变 + // //给第一个设置0,第四个设置1,就是垂直渐变 + // offset: 0, + // color: '#409EFF' + // }, + // { + // offset: 1, + // color: '#409EFF' + // } + // ]), + // backgroundColor: '#EFEFEF', //两边未选中的滑动条区域的颜色 + // showDataShadow: false, //是否显示数据阴影 默认auto + // showDetail: false, //即拖拽时候是否显示详细数值信息 默认true + // handleIcon: 'M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z', + // filterMode: 'filter' + // }, + // //下面这个属性是里面拖到 + // { + // type: 'inside', + // show: true, + // xAxisIndex: [0], + // start: 0, //默认为1 + // end: 50, + // }, + // ], legendArr:[], legend: { orient: 'horizontal', - bottom: '3%', + bottom: '3%', data:chartdata.legendArr }, - tooltip: { - trigger: 'axis' - }, + tooltip: { + trigger: 'axis' + }, backgroundColor:"#fff", grid: { top: '3%', @@ -127,13 +128,23 @@ containLabel: true }, xAxis: [{ - type: 'category', - axisLabel: {rotate: chartdata.rotate}, + type: 'category', + axisLabel: { + rotate: chartdata.rotate, + lineStyle: { + color: '#4d8bdc' + } + }, data: chartdata.xArr, }], yAxis: [{ type: 'value', minInterval: 1, + axisLabel: { + lineStyle: { + color: '#4d8bdc' + } + } }], series: chartdata.series }) @@ -141,4 +152,4 @@ } } } - + diff --git a/src/views/dashboard/components/PieChart.vue b/src/views/dashboard/components/PieChart.vue index 106d4fa..bc9633b 100644 --- a/src/views/dashboard/components/PieChart.vue +++ b/src/views/dashboard/components/PieChart.vue @@ -73,8 +73,8 @@ series: [{ name: '数据', type: 'pie', - radius: ['60%', '90%'], - center: ['50%', '50%'], //圆心坐标 + radius: ['40%', '70%'], + center: ['50%', '45%'], //圆心坐标 avoidLabelOverlap: true, //是否启用防止标签重叠策略 label: { //每个数据的标签 show: true, //设置为true则显示第一个数据 @@ -83,7 +83,7 @@ fontSize: 20, fontWeight: 'bold' }, - color: ['#695BF9', '#1E3E55'], //系列的颜色 + color: ['#72d6d5','#4979b8'], //系列的颜色 emphasis: { //高亮,即鼠标经过时的样式 scale: false //表示不放大item }, diff --git a/src/views/dashboard/components/carryStatic.vue b/src/views/dashboard/components/carryStatic.vue index 9801c39..b0d198d 100644 --- a/src/views/dashboard/components/carryStatic.vue +++ b/src/views/dashboard/components/carryStatic.vue @@ -2,7 +2,7 @@
@@ -30,19 +30,19 @@

年初预算合计金额(元)

-
{{totalMoneyTotal1.toFixed(2)}}
+
{{moneyFormatter(totalMoneyTotal1)}}

调整后预算合计金额(元)

-
{{totalMoneyTotal2.toFixed(2)}}
+
{{moneyFormatter(totalMoneyTotal2)}}

已使用(元)

-
{{totalUseMoneyTotal.toFixed(2)}}
+
{{moneyFormatter(totalUseMoneyTotal)}}

执行情况

- +
@@ -70,19 +70,19 @@

年初预算合计金额(元)

-
{{totalMoneyTotal1Type.toFixed(2)}}
+
{{moneyFormatter(totalMoneyTotal1Type)}}

调整后预算合计金额(元)

-
{{totalMoneyTotal2Type.toFixed(2)}}
+
{{moneyFormatter(totalMoneyTotal2Type)}}

已使用(元)

-
{{totalUseMoneyTotalType.toFixed(2)}}
+
{{moneyFormatter(totalUseMoneyTotalType)}}

执行情况

- +
@@ -93,6 +93,7 @@