From 3d9acc2b9bb236d5791269ebd5891a138da4577b Mon Sep 17 00:00:00 2001 From: yangxin <2509699647@qq.com> Date: Wed, 19 Mar 2025 19:19:37 +0800 Subject: [PATCH] '最新' --- admin-web-master/dist.zip | Bin 6005088 -> 0 bytes admin-web-master/src/api/orderany.js | 17 +++++++++++++++++ admin-web-master/src/utils/request.js | 6 ++---- admin-web-master/src/views/activity/activityHis.vue | 648 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- admin-web-master/src/views/atmosphere/atmosphereHis.vue | 435 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- admin-web-master/src/views/order/orderany/index.vue | 424 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------- ceres-uniapp-master/pages_category_page1/orderModule/logisticsInfo.vue | 14 +++++++++++--- ceres-uniapp-master/pages_category_page1/orderModule/orderDetails.vue | 13 +++++++++++-- lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue | 2 +- merchant-web-master/src/api/dataSta.js | 9 ++++++++- merchant-web-master/src/views/comprehensive/pcdetails/index.vue | 13 ++++++++++--- merchant-web-master/src/views/dashboard/index.vue | 8 ++++---- merchant-web-master/src/views/salesSta/dataSta.vue | 46 ++++++++++++++++++++++++++-------------------- merchant-web-master/src/views/stockControl/inventory/index.vue | 7 ++++--- 14 files changed, 958 insertions(+), 684 deletions(-) delete mode 100644 admin-web-master/dist.zip diff --git a/admin-web-master/dist.zip b/admin-web-master/dist.zip deleted file mode 100644 index 8771508..0000000 Binary files a/admin-web-master/dist.zip and /dev/null differ diff --git a/admin-web-master/src/api/orderany.js b/admin-web-master/src/api/orderany.js index dde77b5..a6990c0 100644 --- a/admin-web-master/src/api/orderany.js +++ b/admin-web-master/src/api/orderany.js @@ -8,6 +8,23 @@ export function orderGetAll(data) { data }) } +// 不分页订单查询 +export function getAllNotPage(data) { + return request({ + url: '/order/getAllNotPage', + method: 'post', + data + }) +} + +// 订单支付趋势 +export function orderIndex(data) { + return request({ + url: '/order/index', + method: 'post', + data + }) +} //导出订单模型 export function exportOrderModel(data) { diff --git a/admin-web-master/src/utils/request.js b/admin-web-master/src/utils/request.js index 429d95f..1d3ffb8 100644 --- a/admin-web-master/src/utils/request.js +++ b/admin-web-master/src/utils/request.js @@ -21,11 +21,9 @@ if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; -<<<<<<< HEAD + baseURL = 'http://128.10.249.23:9003'; -======= - // baseURL = 'http://128.10.249.13:9003'; ->>>>>>> 89bb9f2b58e667e7b1bc81a97a5c37f15bfe7980 + } else { console.error('---------------------') diff --git a/admin-web-master/src/views/activity/activityHis.vue b/admin-web-master/src/views/activity/activityHis.vue index 5e3fb59..92ad91b 100644 --- a/admin-web-master/src/views/activity/activityHis.vue +++ b/admin-web-master/src/views/activity/activityHis.vue @@ -562,8 +562,8 @@
历史活动策划方案搜索
- + -
-
-
实际成本
-
-
内部人力
-
- {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:0}}元 +
+
+
+
实际成本
+
+
内部人力
+
+ {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:0}}元 +
-
-
-
外部人力
-
- {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:0}}元 +
+
外部人力
+
+ {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:0}}元 +
-
-
-
商品成本
-
{{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:0}}元 +
+
商品成本
+
{{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:0}}元 +
-
-
-
设备成本
-
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:0}}元
-
-
-
宣传费用
-
- {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:0}}元 +
+
设备成本
+
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:0}}元
-
-
-
其他成本
-
- {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:0}}元 +
+
宣传费用
+
+ {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:0}}元 +
-
-
-
总成本
-
{{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:0}}元 +
+
其他成本
+
+ {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:0}}元 +
-
-
-
-
增长率
-
- {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:0}}% -
-
- {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:0}}% -
-
- {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:0}}% -
-
- {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:0}}% -
-
- {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:0}}% -
-
- {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:0}}% -
-
- {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:0}}% -
- - -
-
-
实际成本
-
-
内部人力
-
- {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:0}}元 +
+
总成本
+
{{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:0}}元 +
-
-
外部人力
-
- {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:0}}元 +
+
增长率
+
+ {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:0}}%
-
-
-
商品成本
-
{{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:0}}元 +
+ {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:0}}%
-
-
-
设备成本
-
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:0}}元
-
-
-
宣传费用
-
- {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:0}}元 +
+ {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:0}}%
-
-
-
其他成本
-
- {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:0}}元 +
+ {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:0}}% +
+
+ {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:0}}% +
+
+ {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:0}}% +
+
+ {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:0}}%
+ +
-
-
总成本
-
{{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:0}}元 +
+
实际成本
+
+
内部人力
+
+ {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:0}}元 +
+
+
+
外部人力
+
+ {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:0}}元 +
+
+
+
商品成本
+
{{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:0}}元 +
+
+
+
设备成本
+
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:0}}元
+
+
+
宣传费用
+
+ {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:0}}元 +
+
+
+
其他成本
+
+ {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:0}}元 +
+
+
+
总成本
+
{{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:0}}元 +
@@ -1591,7 +1593,8 @@ dataOwnership: '1', pageNumber: 1, pageSize: 10, - isDraft: 0 + isDraft: 0, + state:'5' }, planFen: '', @@ -1780,7 +1783,7 @@ }, contentStyle: { width: '300px', - + // height:'42px', }, labelStyleOne: { @@ -1806,7 +1809,7 @@ ListTwo: '', effectivenessListOne: {}, effectivenessListTwo: {}, - zhixingRules:{ + zhixingRules: { planName: [{ required: true, message: '请输入活动名称', @@ -1915,14 +1918,14 @@ this.tableData = res.data.content }, formatTimestampToDate(timestamp) { - const date = new Date(timestamp); - const year = date.getFullYear(); - const month = String(date.getMonth() + 1).padStart(2, '0'); - const day = String(date.getDate()).padStart(2, '0'); - const hours = String(date.getHours()).padStart(2, '0'); - const minutes = String(date.getMinutes()).padStart(2, '0'); - const seconds = String(date.getSeconds()).padStart(2, '0'); - return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; + const date = new Date(timestamp); + const year = date.getFullYear(); + const month = String(date.getMonth() + 1).padStart(2, '0'); + const day = String(date.getDate()).padStart(2, '0'); + const hours = String(date.getHours()).padStart(2, '0'); + const minutes = String(date.getMinutes()).padStart(2, '0'); + const seconds = String(date.getSeconds()).padStart(2, '0'); + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; }, //重置按钮 resetting() { @@ -1932,7 +1935,8 @@ dataOwnership: '1', pageNumber: 1, pageSize: 10, - isDraft: 0 + isDraft: 0, + state:'5' } this.getAll() }, @@ -1956,17 +1960,17 @@ } else if (val == 3) { this.zhixingBian = flag this.activeName = 'fourd' - + } effectivenessLog({ activityEffectivenessId: item.id }).then(res => { this.effectivenessList = res.data // let actName = this.effectivenessList.operationType.split('') - this.effectivenessList.map((item,index)=>{ - let actName = item.operationType.split(' ') - this.effectivenessList[index].operationType = actName[0] - }) + this.effectivenessList.map((item, index) => { + let actName = item.operationType.split(' ') + this.effectivenessList[index].operationType = actName[0] + }) // console.log(this.effectivenessList.operationType,'actName') // this.effectivenessList.operationType = actName[0] }) @@ -2315,16 +2319,16 @@ effectivenessLog({ activityEffectivenessId: item.id }).then(res => { - + this.effectivenessList = res.data - this.effectivenessList.map((item,index)=>{ - let actName = item.operationType.split(' ') - this.effectivenessList[index].operationType = actName[0] - }) + this.effectivenessList.map((item, index) => { + let actName = item.operationType.split(' ') + this.effectivenessList[index].operationType = actName[0] + }) }) - this.ListOne ='' + this.ListOne = '' this.ListTwo = '' - this.effectivenessListOne ={} + this.effectivenessListOne = {} this.effectivenessListTwo = {} // actPage({ @@ -2513,58 +2517,84 @@ this.searchShow = true }, lichange(e) { - + // this.lishiList = e let msg = this.effectivenessList[e] // this.duibiList = JSON.parse(msg.modifyContent) - + this.duibiList = JSON.parse(msg.modifiedData) }, lichangeOne(e) { let msg = this.effectivenessList[e] - if(typeof msg.modifiedData == 'string'){ + if (typeof msg.modifiedData == 'string') { this.effectivenessListOne = JSON.parse(msg.modifiedData) - }else{ + } else { this.effectivenessListOne = msg.modifiedData } - - if (this.effectivenessListOne.internalLaborCostEstimation!=undefined&&this.effectivenessListTwo.internalLaborCostEstimation!=undefined && this.effectivenessListOne.internalLaborCostEstimation != '' && this.effectivenessListTwo - .internalLaborCostEstimation != '') { - this.effectivenessListOne.sumNei = Number(this.effectivenessListOne.internalLaborCostEstimation) / - Number(this.effectivenessListTwo.internalLaborCostEstimation) * 100 - } - if (this.effectivenessListOne.externalLaborCostEstimation!=undefined&&this.effectivenessListTwo.externalLaborCostEstimation!=undefined &&this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo - .externalLaborCostEstimation != '') { - this.effectivenessListOne.sumWai = Number(this.effectivenessListOne.externalLaborCostEstimation) / - Number(this.effectivenessListTwo.externalLaborCostEstimation) * 100 - } - if (this.effectivenessListOne.costEstimationGoods!=undefined&&this.effectivenessListTwo.costEstimationGoods!=undefined &&this.effectivenessListOne.costEstimationGoods != '' && this.effectivenessListTwo - .costEstimationGoods != '') { - this.effectivenessListOne.sumShop = Number(this.effectivenessListOne.costEstimationGoods) / - Number(this.effectivenessListTwo.costEstimationGoods) * 100 - } - if (this.effectivenessListOne.setCostEstimate!=undefined&&this.effectivenessListTwo.setCostEstimate!=undefined &&this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo - .setCostEstimate != '') { - this.effectivenessListOne.sumSe = Number(this.effectivenessListOne.setCostEstimate) / - Number(this.effectivenessListTwo.setCostEstimate) * 100 - } - if (this.effectivenessListOne.estimatedPromotionalExpenses!=undefined&&this.effectivenessListTwo.estimatedPromotionalExpenses!=undefined &&this.effectivenessListOne.estimatedPromotionalExpenses != '' && this.effectivenessListTwo - .estimatedPromotionalExpenses != '') { - this.effectivenessListOne.sumXuan = Number(this.effectivenessListOne.estimatedPromotionalExpenses) / - Number(this.effectivenessListTwo.estimatedPromotionalExpenses) * 100 - } - if (this.effectivenessListOne.otherNecessaryEstimates!=undefined&&this.effectivenessListTwo.otherNecessaryEstimates!=undefined &&this.effectivenessListOne.otherNecessaryEstimates != '' && this.effectivenessListTwo - .otherNecessaryEstimates != '') { - this.effectivenessListOne.sumQi = Number(this.effectivenessListOne.otherNecessaryEstimates) / - Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 - } - if (this.effectivenessListOne.totalCostEstimation!=undefined&&this.effectivenessListTwo.totalCostEstimation!=undefined &&this.effectivenessListOne.totalCostEstimation != '' && this.effectivenessListTwo - .totalCostEstimation != '') { - - this.effectivenessListOne.sumAll = Number(this.effectivenessListOne.totalCostEstimation) / - Number(this.effectivenessListTwo.totalCostEstimation) * 100 - } + + if (this.effectivenessListOne.internalLaborCostEstimation != undefined && this.effectivenessListTwo + .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != + '' && this.effectivenessListTwo + .internalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.internalLaborCostEstimation) - Number(this + .effectivenessListTwo.internalLaborCostEstimation)) / Number(this.effectivenessListTwo + .internalLaborCostEstimation) * 100 + this.effectivenessListOne.sumNei = sum.toFixed(2) + } + if (this.effectivenessListOne.externalLaborCostEstimation != undefined && this.effectivenessListTwo + .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != + '' && this.effectivenessListTwo + .externalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this + .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + .externalLaborCostEstimation) * 100 + this.effectivenessListOne.sumWai = sum.toFixed(2) + + } + if (this.effectivenessListOne.costEstimationGoods != undefined && this.effectivenessListTwo + .costEstimationGoods != undefined && this.effectivenessListOne.costEstimationGoods != '' && this + .effectivenessListTwo + .costEstimationGoods != '') { + let sum = (Number(this.effectivenessListOne.costEstimationGoods) - Number(this.effectivenessListTwo + .costEstimationGoods)) / Number(this.effectivenessListTwo.costEstimationGoods) * 100 + this.effectivenessListOne.sumShop = sum.toFixed(2) + + } + if (this.effectivenessListOne.setCostEstimate != undefined && this.effectivenessListTwo.setCostEstimate != + undefined && this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo + .setCostEstimate != '') { + let sum = (Number(this.effectivenessListOne.setCostEstimate) - Number(this.effectivenessListTwo + .setCostEstimate)) / Number(this.effectivenessListTwo.setCostEstimate) * 100 + this.effectivenessListOne.sumSe = sum.toFixed(2) + + } + if (this.effectivenessListOne.estimatedPromotionalExpenses != undefined && this.effectivenessListTwo + .estimatedPromotionalExpenses != undefined && this.effectivenessListOne.estimatedPromotionalExpenses != + '' && this.effectivenessListTwo + .estimatedPromotionalExpenses != '') { + let sum = (Number(this.effectivenessListOne.estimatedPromotionalExpenses) - Number(this + .effectivenessListTwo.estimatedPromotionalExpenses)) / Number(this.effectivenessListTwo + .estimatedPromotionalExpenses) * 100 + + this.effectivenessListOne.sumXuan = sum.toFixed(2) + } + if (this.effectivenessListOne.otherNecessaryEstimates != undefined && this.effectivenessListTwo + .otherNecessaryEstimates != undefined && this.effectivenessListOne.otherNecessaryEstimates != '' && + this.effectivenessListTwo + .otherNecessaryEstimates != '') { + let sum = (Number(this.effectivenessListOne.otherNecessaryEstimates) - Number(this.effectivenessListTwo + .otherNecessaryEstimates)) / Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 + this.effectivenessListOne.sumQi = sum.toFixed(2) + } + if (this.effectivenessListOne.totalCostEstimation != undefined && this.effectivenessListTwo + .totalCostEstimation != undefined && this.effectivenessListOne.totalCostEstimation != '' && this + .effectivenessListTwo + .totalCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.totalCostEstimation) - Number(this.effectivenessListTwo + .totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 + this.effectivenessListOne.sumAll = sum.toFixed(2) + } // sumNei // sumWai // sumShop @@ -2583,47 +2613,73 @@ }, lichangeTwo(e) { let msg = this.effectivenessList[e] - if(typeof msg.modifiedData == 'string'){ + if (typeof msg.modifiedData == 'string') { this.effectivenessListTwo = JSON.parse(msg.modifiedData) - }else{ + } else { this.effectivenessListTwo = msg.modifiedData } - if (this.effectivenessListOne.internalLaborCostEstimation!=undefined&&this.effectivenessListTwo.internalLaborCostEstimation!=undefined && this.effectivenessListOne.internalLaborCostEstimation != '' && this.effectivenessListTwo - .internalLaborCostEstimation != '') { - this.effectivenessListOne.sumNei = Number(this.effectivenessListOne.internalLaborCostEstimation) / - Number(this.effectivenessListTwo.internalLaborCostEstimation) * 100 - } - if (this.effectivenessListOne.externalLaborCostEstimation!=undefined&&this.effectivenessListTwo.externalLaborCostEstimation!=undefined &&this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo - .externalLaborCostEstimation != '') { - this.effectivenessListOne.sumWai = Number(this.effectivenessListOne.externalLaborCostEstimation) / - Number(this.effectivenessListTwo.externalLaborCostEstimation) * 100 - } - if (this.effectivenessListOne.costEstimationGoods!=undefined&&this.effectivenessListTwo.costEstimationGoods!=undefined &&this.effectivenessListOne.costEstimationGoods != '' && this.effectivenessListTwo - .costEstimationGoods != '') { - this.effectivenessListOne.sumShop = Number(this.effectivenessListOne.costEstimationGoods) / - Number(this.effectivenessListTwo.costEstimationGoods) * 100 - } - if (this.effectivenessListOne.setCostEstimate!=undefined&&this.effectivenessListTwo.setCostEstimate!=undefined &&this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo - .setCostEstimate != '') { - this.effectivenessListOne.sumSe = Number(this.effectivenessListOne.setCostEstimate) / - Number(this.effectivenessListTwo.setCostEstimate) * 100 - } - if (this.effectivenessListOne.estimatedPromotionalExpenses!=undefined&&this.effectivenessListTwo.estimatedPromotionalExpenses!=undefined &&this.effectivenessListOne.estimatedPromotionalExpenses != '' && this.effectivenessListTwo - .estimatedPromotionalExpenses != '') { - this.effectivenessListOne.sumXuan = Number(this.effectivenessListOne.estimatedPromotionalExpenses) / - Number(this.effectivenessListTwo.estimatedPromotionalExpenses) * 100 - } - if (this.effectivenessListOne.otherNecessaryEstimates!=undefined&&this.effectivenessListTwo.otherNecessaryEstimates!=undefined &&this.effectivenessListOne.otherNecessaryEstimates != '' && this.effectivenessListTwo - .otherNecessaryEstimates != '') { - this.effectivenessListOne.sumQi = Number(this.effectivenessListOne.otherNecessaryEstimates) / - Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 - } - if (this.effectivenessListOne.totalCostEstimation!=undefined&&this.effectivenessListTwo.totalCostEstimation!=undefined &&this.effectivenessListOne.totalCostEstimation != '' && this.effectivenessListTwo - .totalCostEstimation != '') { - - this.effectivenessListOne.sumAll = Number(this.effectivenessListOne.totalCostEstimation) / - Number(this.effectivenessListTwo.totalCostEstimation) * 100 - } + if (this.effectivenessListOne.internalLaborCostEstimation != undefined && this.effectivenessListTwo + .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != + '' && this.effectivenessListTwo + .internalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.internalLaborCostEstimation) - Number(this + .effectivenessListTwo.internalLaborCostEstimation)) / Number(this.effectivenessListTwo + .internalLaborCostEstimation) * 100 + this.effectivenessListOne.sumNei = sum.toFixed(2) + } + if (this.effectivenessListOne.externalLaborCostEstimation != undefined && this.effectivenessListTwo + .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != + '' && this.effectivenessListTwo + .externalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this + .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + .externalLaborCostEstimation) * 100 + this.effectivenessListOne.sumWai = sum.toFixed(2) + + } + if (this.effectivenessListOne.costEstimationGoods != undefined && this.effectivenessListTwo + .costEstimationGoods != undefined && this.effectivenessListOne.costEstimationGoods != '' && this + .effectivenessListTwo + .costEstimationGoods != '') { + let sum = (Number(this.effectivenessListOne.costEstimationGoods) - Number(this.effectivenessListTwo + .costEstimationGoods)) / Number(this.effectivenessListTwo.costEstimationGoods) * 100 + this.effectivenessListOne.sumShop = sum.toFixed(2) + + } + if (this.effectivenessListOne.setCostEstimate != undefined && this.effectivenessListTwo.setCostEstimate != + undefined && this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo + .setCostEstimate != '') { + let sum = (Number(this.effectivenessListOne.setCostEstimate) - Number(this.effectivenessListTwo + .setCostEstimate)) / Number(this.effectivenessListTwo.setCostEstimate) * 100 + this.effectivenessListOne.sumSe = sum.toFixed(2) + + } + if (this.effectivenessListOne.estimatedPromotionalExpenses != undefined && this.effectivenessListTwo + .estimatedPromotionalExpenses != undefined && this.effectivenessListOne.estimatedPromotionalExpenses != + '' && this.effectivenessListTwo + .estimatedPromotionalExpenses != '') { + let sum = (Number(this.effectivenessListOne.estimatedPromotionalExpenses) - Number(this + .effectivenessListTwo.estimatedPromotionalExpenses)) / Number(this.effectivenessListTwo + .estimatedPromotionalExpenses) * 100 + + this.effectivenessListOne.sumXuan = sum.toFixed(2) + } + if (this.effectivenessListOne.otherNecessaryEstimates != undefined && this.effectivenessListTwo + .otherNecessaryEstimates != undefined && this.effectivenessListOne.otherNecessaryEstimates != '' && + this.effectivenessListTwo + .otherNecessaryEstimates != '') { + let sum = (Number(this.effectivenessListOne.otherNecessaryEstimates) - Number(this.effectivenessListTwo + .otherNecessaryEstimates)) / Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 + this.effectivenessListOne.sumQi = sum.toFixed(2) + } + if (this.effectivenessListOne.totalCostEstimation != undefined && this.effectivenessListTwo + .totalCostEstimation != undefined && this.effectivenessListOne.totalCostEstimation != '' && this + .effectivenessListTwo + .totalCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.totalCostEstimation) - Number(this.effectivenessListTwo + .totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 + this.effectivenessListOne.sumAll = sum.toFixed(2) + } }, tiaozheng() { this.tiaozhengShow = true @@ -2642,50 +2698,50 @@ }, //执行效果保存 async bianji() { - this.$refs.zhixingFormInfo.validate((valid) => { - if (valid) { - if (this.fileData.length != 0) { - this.zhixingList.feedbackContent = this.fileData[0].url - } - if (this.zhiXing) { - this.zhixingList.eventStartTime = this.zhixingList.planTime[0] - this.zhixingList.eventEndTime = this.zhixingList.planTime[1] - this.zhixingList.detailsId = this.secondData.id - this.zhixingList.createDate = this.updateCurrentTime() - actAdd(this.zhixingList).then(res => { - for (let i = 0; i < this.tableDa.length; i++) { - this.tableDa[i].detailsId = res.data.id - MingAdd(this.tableDa[i]).then(res => { - this.ggXin = false - this.getAll() - }) - } - }) - - } else { - let that = this - Vue.delete(that.zhixingList, 'createDate') - this.zhixingList.eventStartTime = this.zhixingList.planTime[0] - this.zhixingList.eventEndTime = this.zhixingList.planTime[1] - Vue.delete(that.zhixingList, 'planTime') - this.zhixingList.updateDate = '' - actEdit(this.zhixingList).then(()=>{ - this.ggXin = false - this.getAll() - }) - } - - - }else{ - this.$message({ - message: '请填写数据', - type: 'error', - offset: 100 - }) - return false; - } - }) - + this.$refs.zhixingFormInfo.validate((valid) => { + if (valid) { + if (this.fileData.length != 0) { + this.zhixingList.feedbackContent = this.fileData[0].url + } + if (this.zhiXing) { + this.zhixingList.eventStartTime = this.zhixingList.planTime[0] + this.zhixingList.eventEndTime = this.zhixingList.planTime[1] + this.zhixingList.detailsId = this.secondData.id + this.zhixingList.createDate = this.updateCurrentTime() + actAdd(this.zhixingList).then(res => { + for (let i = 0; i < this.tableDa.length; i++) { + this.tableDa[i].detailsId = res.data.id + MingAdd(this.tableDa[i]).then(res => { + this.ggXin = false + this.getAll() + }) + } + }) + + } else { + let that = this + Vue.delete(that.zhixingList, 'createDate') + this.zhixingList.eventStartTime = this.zhixingList.planTime[0] + this.zhixingList.eventEndTime = this.zhixingList.planTime[1] + Vue.delete(that.zhixingList, 'planTime') + this.zhixingList.updateDate = '' + actEdit(this.zhixingList).then(() => { + this.ggXin = false + this.getAll() + }) + } + + + } else { + this.$message({ + message: '请填写数据', + type: 'error', + offset: 100 + }) + return false; + } + }) + }, searchQuit() { this.searPei = { diff --git a/admin-web-master/src/views/atmosphere/atmosphereHis.vue b/admin-web-master/src/views/atmosphere/atmosphereHis.vue index 016b7b8..5bd0f24 100644 --- a/admin-web-master/src/views/atmosphere/atmosphereHis.vue +++ b/admin-web-master/src/views/atmosphere/atmosphereHis.vue @@ -1187,7 +1187,7 @@
+ :value="index">
@@ -1195,140 +1195,142 @@
+ :value="index">
-
-
-
实际成本
-
-
内部人力
-
- {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:0}}元 +
+
+
+
实际成本
+
+
内部人力
+
+ {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:0}}元 +
-
-
-
外部人力
-
- {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:0}}元 +
+
外部人力
+
+ {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:0}}元 +
-
-
-
商品成本
-
{{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:0}}元 +
+
商品成本
+
{{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:0}}元 +
-
-
-
设备成本
-
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:0}}元
-
-
-
宣传费用
-
- {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:0}}元 +
+
设备成本
+
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:0}}元
-
-
-
其他成本
-
- {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:0}}元 +
+
宣传费用
+
+ {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:0}}元 +
-
-
-
总成本
-
{{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:0}}元 +
+
其他成本
+
+ {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:0}}元 +
-
-
-
-
增长率
-
- {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:0}}% -
-
- {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:0}}% -
-
- {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:0}}% -
-
- {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:0}}% -
-
- {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:0}}% -
-
- {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:0}}% -
-
- {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:0}}% -
- - -
-
-
实际成本
-
-
内部人力
-
- {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:0}}元 +
+
总成本
+
{{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:0}}元 +
-
-
外部人力
-
- {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:0}}元 +
+
增长率
+
+ {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:0}}%
-
-
-
商品成本
-
{{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:0}}元 +
+ {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:0}}%
-
-
-
设备成本
-
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:0}}元
-
-
-
宣传费用
-
- {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:0}}元 +
+ {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:0}}%
-
-
-
其他成本
-
- {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:0}}元 +
+ {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:0}}%
+
+ {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:0}}% +
+
+ {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:0}}% +
+
+ {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:0}}% +
+ +
-
-
总成本
-
{{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:0}}元 +
+
实际成本
+
+
内部人力
+
+ {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:0}}元 +
+
+
+
外部人力
+
+ {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:0}}元 +
+
+
+
商品成本
+
{{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:0}}元 +
+
+
+
设备成本
+
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:0}}元
+
+
+
宣传费用
+
+ {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:0}}元 +
+
+
+
其他成本
+
+ {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:0}}元 +
+
+
+
总成本
+
{{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:0}}元 +
@@ -1569,7 +1571,8 @@ dataOwnership: '2', pageNumber: 1, pageSize: 10, - isDraft: 0 + isDraft: 0, + state:'5' }, planFen: '', @@ -1895,7 +1898,8 @@ dataOwnership: '2', pageNumber: 1, pageSize: 10, - isDraft: 0 + isDraft: 0, + state:'5' } this.getAll() @@ -1926,6 +1930,10 @@ activityEffectivenessId: item.id }).then(res => { this.effectivenessList = res.data + this.effectivenessList.map((item, index) => { + let actName = item.operationType.split(' ') + this.effectivenessList[index].operationType = actName[0] + }) }) this.liData = [] this.lixiang = {} @@ -2262,8 +2270,11 @@ effectivenessLog({ activityEffectivenessId: item.id }).then(res => { - console.log(res.data, 'effectivenessListeffectivenessList') this.effectivenessList = res.data + this.effectivenessList.map((item, index) => { + let actName = item.operationType.split(' ') + this.effectivenessList[index].operationType = actName[0] + }) }) this.ListOne ='' this.ListTwo = '' @@ -2466,43 +2477,75 @@ this.duibiList = JSON.parse(msg.modifiedData) }, lichangeOne(e) { - this.effectivenessListOne = JSON.parse(e.modifiedData) - if (this.effectivenessListOne.internalLaborCostEstimation != '' && this.effectivenessListTwo - .internalLaborCostEstimation != '') { - this.effectivenessListOne.sumNei = Number(this.effectivenessListOne.internalLaborCostEstimation) / - Number(this.effectivenessListTwo.internalLaborCostEstimation) * 100 - } - if (this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo - .externalLaborCostEstimation != '') { - this.effectivenessListOne.sumWai = Number(this.effectivenessListOne.externalLaborCostEstimation) / - Number(this.effectivenessListTwo.externalLaborCostEstimation) * 100 - } - if (this.effectivenessListOne.costEstimationGoods != '' && this.effectivenessListTwo - .costEstimationGoods != '') { - this.effectivenessListOne.sumShop = Number(this.effectivenessListOne.costEstimationGoods) / - Number(this.effectivenessListTwo.costEstimationGoods) * 100 - } - if (this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo - .setCostEstimate != '') { - this.effectivenessListOne.sumSe = Number(this.effectivenessListOne.setCostEstimate) / - Number(this.effectivenessListTwo.setCostEstimate) * 100 - } - if (this.effectivenessListOne.estimatedPromotionalExpenses != '' && this.effectivenessListTwo - .estimatedPromotionalExpenses != '') { - this.effectivenessListOne.sumXuan = Number(this.effectivenessListOne.estimatedPromotionalExpenses) / - Number(this.effectivenessListTwo.estimatedPromotionalExpenses) * 100 - } - if (this.effectivenessListOne.otherNecessaryEstimates != '' && this.effectivenessListTwo - .otherNecessaryEstimates != '') { - this.effectivenessListOne.sumQi = Number(this.effectivenessListOne.otherNecessaryEstimates) / - Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 - } - if (this.effectivenessListOne.totalCostEstimation != '' && this.effectivenessListTwo - .totalCostEstimation != '') { - - this.effectivenessListOne.sumAll = Number(this.effectivenessListOne.totalCostEstimation) / - Number(this.effectivenessListTwo.totalCostEstimation) * 100 - } + let msg = this.effectivenessList[e] + if (typeof msg.modifiedData == 'string') { + this.effectivenessListOne = JSON.parse(msg.modifiedData) + } else { + this.effectivenessListOne = msg.modifiedData + } + + if (this.effectivenessListOne.internalLaborCostEstimation != undefined && this.effectivenessListTwo + .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != + '' && this.effectivenessListTwo + .internalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.internalLaborCostEstimation) - Number(this + .effectivenessListTwo.internalLaborCostEstimation)) / Number(this.effectivenessListTwo + .internalLaborCostEstimation) * 100 + this.effectivenessListOne.sumNei = sum.toFixed(2) + } + if (this.effectivenessListOne.externalLaborCostEstimation != undefined && this.effectivenessListTwo + .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != + '' && this.effectivenessListTwo + .externalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this + .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + .externalLaborCostEstimation) * 100 + this.effectivenessListOne.sumWai = sum.toFixed(2) + + } + if (this.effectivenessListOne.costEstimationGoods != undefined && this.effectivenessListTwo + .costEstimationGoods != undefined && this.effectivenessListOne.costEstimationGoods != '' && this + .effectivenessListTwo + .costEstimationGoods != '') { + let sum = (Number(this.effectivenessListOne.costEstimationGoods) - Number(this.effectivenessListTwo + .costEstimationGoods)) / Number(this.effectivenessListTwo.costEstimationGoods) * 100 + this.effectivenessListOne.sumShop = sum.toFixed(2) + + } + if (this.effectivenessListOne.setCostEstimate != undefined && this.effectivenessListTwo.setCostEstimate != + undefined && this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo + .setCostEstimate != '') { + let sum = (Number(this.effectivenessListOne.setCostEstimate) - Number(this.effectivenessListTwo + .setCostEstimate)) / Number(this.effectivenessListTwo.setCostEstimate) * 100 + this.effectivenessListOne.sumSe = sum.toFixed(2) + + } + if (this.effectivenessListOne.estimatedPromotionalExpenses != undefined && this.effectivenessListTwo + .estimatedPromotionalExpenses != undefined && this.effectivenessListOne.estimatedPromotionalExpenses != + '' && this.effectivenessListTwo + .estimatedPromotionalExpenses != '') { + let sum = (Number(this.effectivenessListOne.estimatedPromotionalExpenses) - Number(this + .effectivenessListTwo.estimatedPromotionalExpenses)) / Number(this.effectivenessListTwo + .estimatedPromotionalExpenses) * 100 + + this.effectivenessListOne.sumXuan = sum.toFixed(2) + } + if (this.effectivenessListOne.otherNecessaryEstimates != undefined && this.effectivenessListTwo + .otherNecessaryEstimates != undefined && this.effectivenessListOne.otherNecessaryEstimates != '' && + this.effectivenessListTwo + .otherNecessaryEstimates != '') { + let sum = (Number(this.effectivenessListOne.otherNecessaryEstimates) - Number(this.effectivenessListTwo + .otherNecessaryEstimates)) / Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 + this.effectivenessListOne.sumQi = sum.toFixed(2) + } + if (this.effectivenessListOne.totalCostEstimation != undefined && this.effectivenessListTwo + .totalCostEstimation != undefined && this.effectivenessListOne.totalCostEstimation != '' && this + .effectivenessListTwo + .totalCostEstimation != '') { + let sum = (Number(this.effectivenessListOne.totalCostEstimation) - Number(this.effectivenessListTwo + .totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 + this.effectivenessListOne.sumAll = sum.toFixed(2) + } // sumNei // sumWai // sumShop @@ -2517,46 +2560,76 @@ // estimatedPromotionalExpenses // otherNecessaryEstimates // totalCostEstimation - - console.log(JSON.parse(e.modifiedData)) + }, lichangeTwo(e) { - this.effectivenessListTwo = JSON.parse(e.modifiedData) - if (this.effectivenessListOne.internalLaborCostEstimation != '' && this.effectivenessListTwo + let msg = this.effectivenessList[e] + if (typeof msg.modifiedData == 'string') { + this.effectivenessListTwo = JSON.parse(msg.modifiedData) + } else { + this.effectivenessListTwo = msg.modifiedData + } + if (this.effectivenessListOne.internalLaborCostEstimation != undefined && this.effectivenessListTwo + .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != + '' && this.effectivenessListTwo .internalLaborCostEstimation != '') { - this.effectivenessListOne.sumNei = Number(this.effectivenessListOne.internalLaborCostEstimation) / - Number(this.effectivenessListTwo.internalLaborCostEstimation) * 100 + let sum = (Number(this.effectivenessListOne.internalLaborCostEstimation) - Number(this + .effectivenessListTwo.internalLaborCostEstimation)) / Number(this.effectivenessListTwo + .internalLaborCostEstimation) * 100 + this.effectivenessListOne.sumNei = sum.toFixed(2) } - if (this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo + if (this.effectivenessListOne.externalLaborCostEstimation != undefined && this.effectivenessListTwo + .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != + '' && this.effectivenessListTwo .externalLaborCostEstimation != '') { - this.effectivenessListOne.sumWai = Number(this.effectivenessListOne.externalLaborCostEstimation) / - Number(this.effectivenessListTwo.externalLaborCostEstimation) * 100 + let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this + .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + .externalLaborCostEstimation) * 100 + this.effectivenessListOne.sumWai = sum.toFixed(2) + } - if (this.effectivenessListOne.costEstimationGoods != '' && this.effectivenessListTwo + if (this.effectivenessListOne.costEstimationGoods != undefined && this.effectivenessListTwo + .costEstimationGoods != undefined && this.effectivenessListOne.costEstimationGoods != '' && this + .effectivenessListTwo .costEstimationGoods != '') { - this.effectivenessListOne.sumShop = Number(this.effectivenessListOne.costEstimationGoods) / - Number(this.effectivenessListTwo.costEstimationGoods) * 100 + let sum = (Number(this.effectivenessListOne.costEstimationGoods) - Number(this.effectivenessListTwo + .costEstimationGoods)) / Number(this.effectivenessListTwo.costEstimationGoods) * 100 + this.effectivenessListOne.sumShop = sum.toFixed(2) + } - if (this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo + if (this.effectivenessListOne.setCostEstimate != undefined && this.effectivenessListTwo.setCostEstimate != + undefined && this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo .setCostEstimate != '') { - this.effectivenessListOne.sumSe = Number(this.effectivenessListOne.setCostEstimate) / - Number(this.effectivenessListTwo.setCostEstimate) * 100 + let sum = (Number(this.effectivenessListOne.setCostEstimate) - Number(this.effectivenessListTwo + .setCostEstimate)) / Number(this.effectivenessListTwo.setCostEstimate) * 100 + this.effectivenessListOne.sumSe = sum.toFixed(2) + } - if (this.effectivenessListOne.estimatedPromotionalExpenses != '' && this.effectivenessListTwo + if (this.effectivenessListOne.estimatedPromotionalExpenses != undefined && this.effectivenessListTwo + .estimatedPromotionalExpenses != undefined && this.effectivenessListOne.estimatedPromotionalExpenses != + '' && this.effectivenessListTwo .estimatedPromotionalExpenses != '') { - this.effectivenessListOne.sumXuan = Number(this.effectivenessListOne.estimatedPromotionalExpenses) / - Number(this.effectivenessListTwo.estimatedPromotionalExpenses) * 100 + let sum = (Number(this.effectivenessListOne.estimatedPromotionalExpenses) - Number(this + .effectivenessListTwo.estimatedPromotionalExpenses)) / Number(this.effectivenessListTwo + .estimatedPromotionalExpenses) * 100 + + this.effectivenessListOne.sumXuan = sum.toFixed(2) } - if (this.effectivenessListOne.otherNecessaryEstimates != '' && this.effectivenessListTwo + if (this.effectivenessListOne.otherNecessaryEstimates != undefined && this.effectivenessListTwo + .otherNecessaryEstimates != undefined && this.effectivenessListOne.otherNecessaryEstimates != '' && + this.effectivenessListTwo .otherNecessaryEstimates != '') { - this.effectivenessListOne.sumQi = Number(this.effectivenessListOne.otherNecessaryEstimates) / - Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 + let sum = (Number(this.effectivenessListOne.otherNecessaryEstimates) - Number(this.effectivenessListTwo + .otherNecessaryEstimates)) / Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 + this.effectivenessListOne.sumQi = sum.toFixed(2) } - if (this.effectivenessListOne.totalCostEstimation != '' && this.effectivenessListTwo + if (this.effectivenessListOne.totalCostEstimation != undefined && this.effectivenessListTwo + .totalCostEstimation != undefined && this.effectivenessListOne.totalCostEstimation != '' && this + .effectivenessListTwo .totalCostEstimation != '') { - - this.effectivenessListOne.sumAll = Number(this.effectivenessListOne.totalCostEstimation) / - Number(this.effectivenessListTwo.totalCostEstimation) * 100 + let sum = (Number(this.effectivenessListOne.totalCostEstimation) - Number(this.effectivenessListTwo + .totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 + this.effectivenessListOne.sumAll = sum.toFixed(2) } }, tiaozheng() { diff --git a/admin-web-master/src/views/order/orderany/index.vue b/admin-web-master/src/views/order/orderany/index.vue index 5138b55..95bd330 100644 --- a/admin-web-master/src/views/order/orderany/index.vue +++ b/admin-web-master/src/views/order/orderany/index.vue @@ -91,41 +91,48 @@
-
-
-
- - - - - - - - - - - - - - -
- -
-
共{{total}}条
- -
+
+ + + + + + + + + + + + + + + + + + + + + +
+
共{{ total }}条
+
@@ -140,11 +147,14 @@ importOrderData, orderStatistics, orderStatisticsProductInformation, - orderGetAll + orderGetAll, + orderIndex, + getAllNotPage } from '@/api/orderany' export default { data() { return { + flag:false, list: [], total: 1, pageSize: 10, @@ -200,16 +210,28 @@ field: 'money' } ], + orderPage:{ + startTime:'2000-01-01 00:00:00', + endTime:'2000-01-01 00:00:00' + } } }, mounted() { - + let time = this.getCurrentTime() + this.orderPage.endTime =time+' '+'23:59:59' this.getTotalData() }, methods: { search(){ + if(this.formParams.dates.length == 0){ + let time = this.getCurrentTime() + this.orderPage.endTime =time+' '+'23:59:59' + }else{ + this.orderPage.startTime =this.formParams.dates[0]+' '+'00:00:00' + this.orderPage.endTime =this.formParams.dates[1]+' '+'23:59:59' + } this.getTotalData() }, clear(){ @@ -223,12 +245,26 @@ shopName: '', pageSize: 10 } + this.orderPage = { + startTime:'2000-01-01 00:00:00', + endTime:'2000-01-01 00:00:00' + } + let time = this.getCurrentTime() + this.orderPage.endTime =time+' '+'23:59:59' this.getTotalData() }, + getCurrentTime() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const hour = String(now.getHours()).padStart(2, '0'); + return `${year}-${month}-${hour}`; + }, async getTotalData() { - const res = await orderGetAll(this.formParams) - const Orderlist = await orderStatistics(res.data.list) - const tablelist = await orderStatisticsProductInformation(res.data.list) + + const res = await getAllNotPage(this.formParams) + const Orderlist = await orderStatistics(res.data) + const tablelist = await orderStatisticsProductInformation(res.data) // console.log(tablelist.data.commodityInformation) this.tableData = Object.values(tablelist.data.commodityInformation).flat(); @@ -258,21 +294,9 @@ } this.draw(data) - let lo = { - "names": [ - "支付成功", - "调取支付", - "加购", - "访问" - ], - "rates": [ - 6, - 9, - 8, - 100 - ] - } - this.draws(lo) + const orderIn = await orderIndex(this.orderPage) + + this.draws(orderIn.data.conversion) // this.info = d // } @@ -292,6 +316,21 @@ const myEchart = echarts.init(this.$refs.myEchart, 'light') const option = { + tooltip: { + trigger: 'axis', // 触发类型为坐标轴触发 + axisPointer: { + type: 'cross', // 指示器类型为十字准星 + crossStyle: { + color: '#999' + } + }, + formatter: function (params) { + const data = params[0]; + const name = data.name; // 获取 arr.names 中的名称 + const value = data.value; // 获取 arr.rates 中的次数 + return ` ${value} 人`; // 自定义提示框内容 + } + }, color: "#3F9B6A", xAxis: { type: 'category', @@ -299,7 +338,7 @@ }, yAxis: { type: 'value', - name: '次数' + name: '人数' }, series: [{ data: arr.total, @@ -309,118 +348,171 @@ myEchart.setOption(option) }, + filterData(arr) { + const targetNames = ["加购", "支付成功"]; + const result = { + names: [], + rates: [] + }; + for (let i = 0; i < arr.names.length; i++) { + if (targetNames.includes(arr.names[i])) { + result.names.push(arr.names[i]); + result.rates.push(arr.rates[i]); + } + } + return result; + }, + draws(arr) { - // myEchart - const myEchart = echarts.init(this.$refs.myEcharts, 'light') - // const o = this.chartData - const option = { - // color: ["#74d1fd", "#009ae4", "#0071c1"], - // 设置图表的位置 - grid: { - x: 110, // 左间距 - y: 0, // 上间距 - x2: 60, // 右间距 - y2: 40 // 下间距 - }, - // 提示框组件 - tooltip: { - trigger: 'axis', // 触发类型, axis: 坐标轴触发 - axisPointer: { - // 指示器类型 'line' 直线指示器 'shadow' 阴影指示器 'none' 无指示器 - // 'cross' 十字准星指示器 其实是种简写,表示启用两个正交的轴的 axisPointer - type: 'none' - }, - textStyle: { - color: '#cdd3ee' ,// 文字颜色 - fontSize:'12px' - }, - // 提示框浮层内容格式器,支持字符串模板和回调函数两种形式 折线(区域)图、柱状(条形)图、K线图 - // {a}(系列名称),{b}(类目值),{c}(数值), {d}(无) - formatter: '{b}
{a0}: {c0}%' - }, - // // 图例组件 - // legend: { - // textStyle: { - // // 文本样式 - // fontSize: 16, - // color: "#cdd3ee" - // }, - // top: 13, // 定位 - // data: ["已完成", "进行中", "未完成"] // 图例的数据数组 - // }, - // X轴 - xAxis: { - type: 'value', // 坐标轴类型, 'value' 数值轴,适用于连续数据 - // 坐标轴刻度 - axisTick: { - show: false // 是否显示坐标轴刻度 默认显示 - }, - // 坐标轴轴线 - axisLine: { - // 是否显示坐标轴轴线 默认显示 - show: false // 是否显示坐标轴轴线 默认显示 - }, - // 坐标轴在图表区域中的分隔线 - splitLine: { - show: false // 是否显示分隔线。默认数值轴显示 - }, - // 坐标轴刻度标签 - axisLabel: { - show: false // 是否显示刻度标签 默认显示 - } - }, - yAxis: [ - // 左侧Y轴 - { - // 坐标轴类型, 'category' 类目轴,适用于离散的类目数据 - // 为该类型时必须通过 data 设置类目数据 - type: 'category', - // 坐标轴刻度 - axisTick: { - show: false // 是否显示坐标轴刻度 默认显示 - }, - // 坐标轴轴线 - axisLine: { - // 是否显示坐标轴轴线 默认显示 - show: false, // 是否显示坐标轴轴线 默认显示 - lineStyle: { - // 坐标轴线线的颜色 - color: '#cdd3ee' - } - }, - // 坐标轴在图表区域中的分隔线 - splitLine: { - show: false // 是否显示分隔线。默认数值轴显示 - }, - // 坐标轴刻度标签 - axisLabel: { - show: true, // 是否显示刻度标签 默认显示 - fontSize: 16, // 文字的字体大小 - color: '#cdd3ee', // 刻度标签文字的颜色 - // 使用字符串模板,模板变量为刻度默认标签 {value} - formatter: '{value}' - }, - // 类目数据,在类目轴(type: 'category')中有效 - data: arr.names.reverse() - } - ], - // 系列列表 - series: [{ - type: 'bar', // 系列类型 - name: '已完成', - barMaxWidth: 20, // 柱条的最大宽度,不设时自适应 - // label: { - // show: true, - // position: "inside" - // }, - itemStyle: { - barBorderRadius: [10, 0, 0, 10] // 圆角半径, 单位px, 支持传入数组分别指定 4 个圆角半径 - }, - data: arr.rates.reverse() // 系列中的数据内容数组 - }] - } + const filteredData = this.filterData(arr); + const myEchart = echarts.init(this.$refs.myEcharts, 'light') + const option = { + color: "#3F9B6A", + tooltip: { + trigger: 'axis', // 触发类型为坐标轴触发 + axisPointer: { + type: 'cross', // 指示器类型为十字准星 + crossStyle: { + color: '#999' + } + }, + formatter: function (params) { + const data = params[0]; + const name = data.name; // 获取 arr.names 中的名称 + const value = data.value; // 获取 arr.rates 中的次数 + return `${name}: ${value} 人`; // 自定义提示框内容 + } + }, + xAxis: { + type: 'category', + data: filteredData.names + }, + yAxis: { + type: 'value', + name: '人数', + }, + series: [ + { + data: filteredData.rates, + type: 'line' + } + ] + } + + myEchart.setOption(option) + + + // const myEchart = echarts.init(this.$refs.myEcharts, 'light') + // // const o = this.chartData + // const option = { + // // color: ["#74d1fd", "#009ae4", "#0071c1"], + // // 设置图表的位置 + // grid: { + // x: 110, // 左间距 + // y: 0, // 上间距 + // x2: 60, // 右间距 + // y2: 40 // 下间距 + // }, + // // 提示框组件 + // tooltip: { + // trigger: 'axis', // 触发类型, axis: 坐标轴触发 + // axisPointer: { + // // 指示器类型 'line' 直线指示器 'shadow' 阴影指示器 'none' 无指示器 + // // 'cross' 十字准星指示器 其实是种简写,表示启用两个正交的轴的 axisPointer + // type: 'none' + // }, + // textStyle: { + // color: '#cdd3ee' // 文字颜色 + // }, + // // 提示框浮层内容格式器,支持字符串模板和回调函数两种形式 折线(区域)图、柱状(条形)图、K线图 + // // {a}(系列名称),{b}(类目值),{c}(数值), {d}(无) + // formatter: '{b}
{a0}: {c0}%' + // }, + // // // 图例组件 + // // legend: { + // // textStyle: { + // // // 文本样式 + // // fontSize: 16, + // // color: "#cdd3ee" + // // }, + // // top: 13, // 定位 + // // data: ["已完成", "进行中", "未完成"] // 图例的数据数组 + // // }, + // // X轴 + // xAxis: { + // type: 'value', // 坐标轴类型, 'value' 数值轴,适用于连续数据 + // // 坐标轴刻度 + // axisTick: { + // show: false // 是否显示坐标轴刻度 默认显示 + // }, + // // 坐标轴轴线 + // axisLine: { + // // 是否显示坐标轴轴线 默认显示 + // show: false // 是否显示坐标轴轴线 默认显示 + // }, + // // 坐标轴在图表区域中的分隔线 + // splitLine: { + // show: false // 是否显示分隔线。默认数值轴显示 + // }, + // // 坐标轴刻度标签 + // axisLabel: { + // show: false // 是否显示刻度标签 默认显示 + // } + // }, + // yAxis: [ + // // 左侧Y轴 + // { + // // 坐标轴类型, 'category' 类目轴,适用于离散的类目数据 + // // 为该类型时必须通过 data 设置类目数据 + // type: 'category', + // // 坐标轴刻度 + // axisTick: { + // show: false // 是否显示坐标轴刻度 默认显示 + // }, + // // 坐标轴轴线 + // axisLine: { + // // 是否显示坐标轴轴线 默认显示 + // show: false, // 是否显示坐标轴轴线 默认显示 + // lineStyle: { + // // 坐标轴线线的颜色 + // color: '#cdd3ee' + // } + // }, + // // 坐标轴在图表区域中的分隔线 + // splitLine: { + // show: false // 是否显示分隔线。默认数值轴显示 + // }, + // // 坐标轴刻度标签 + // axisLabel: { + // show: true, // 是否显示刻度标签 默认显示 + // fontSize: 16, // 文字的字体大小 + // color: '#cdd3ee', // 刻度标签文字的颜色 + // // 使用字符串模板,模板变量为刻度默认标签 {value} + // formatter: '{value}' + // }, + // // 类目数据,在类目轴(type: 'category')中有效 + // data: arr.names.reverse() + // } + // ], + // // 系列列表 + // series: [ + // { + // type: 'bar', // 系列类型 + // name: '已完成', + // barMaxWidth: 20, // 柱条的最大宽度,不设时自适应 + // // label: { + // // show: true, + // // position: "inside" + // // }, + // itemStyle: { + // barBorderRadius: [10, 0, 0, 10] // 圆角半径, 单位px, 支持传入数组分别指定 4 个圆角半径 + // }, + // data: arr.rates.reverse() // 系列中的数据内容数组 + // } + // ] + // } - myEchart.setOption(option) + // myEchart.setOption(option) }, //导出 // async userVisitExport() { diff --git a/ceres-uniapp-master/pages_category_page1/orderModule/logisticsInfo.vue b/ceres-uniapp-master/pages_category_page1/orderModule/logisticsInfo.vue index 88c3cf9..9a30128 100644 --- a/ceres-uniapp-master/pages_category_page1/orderModule/logisticsInfo.vue +++ b/ceres-uniapp-master/pages_category_page1/orderModule/logisticsInfo.vue @@ -1,7 +1,15 @@