diff --git a/admin-web-master/src/App.vue b/admin-web-master/src/App.vue index c531627..a848400 100644 --- a/admin-web-master/src/App.vue +++ b/admin-web-master/src/App.vue @@ -87,7 +87,27 @@ export default { }; + .iterem { + z-index: 99; + margin-left: 10px; + height: 40px; + line-height: 25px; + } + \ No newline at end of file diff --git a/admin-web-master/src/components/chakan/fa.vue b/admin-web-master/src/components/chakan/fa.vue index b35c482..4ed9d6e 100644 --- a/admin-web-master/src/components/chakan/fa.vue +++ b/admin-web-master/src/components/chakan/fa.vue @@ -51,7 +51,7 @@
-
+
实际成本
内部人力
- {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:0}}元 + {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:''}}元
外部人力
- {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:0}}元 + {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:''}}元
商品成本
-
{{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:0}}元 +
+ {{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:''}}元
设备成本
-
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:0}}元
+
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:''}}元
宣传费用
- {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:0}}元 + {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:''}}元
其他成本
- {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:0}}元 + {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:''}}元
总成本
-
{{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:0}}元 +
+ {{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:''}}元
@@ -1277,34 +1280,34 @@
增长率
- {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:0}}% + {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:''}}%
- {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:0}}% + {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:''}}%
- {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:0}}% + {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:''}}%
- {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:0}}% + {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:''}}%
- {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:0}}% + {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:''}}%
- {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:0}}% + {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:''}}%
- {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:0}}% + {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:''}}%
- - + +
实际成本
@@ -1312,45 +1315,47 @@ style="padding:10px 10px;display:flex;justify-content: space-between;border: 1px solid #DEDEDE;margin-top:10px;border-radius: 5px;">
内部人力
- {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:0}}元 + {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:''}}元
外部人力
- {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:0}}元 + {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:''}}元
商品成本
-
{{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:0}}元 +
+ {{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:''}}元
设备成本
-
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:0}}元
+
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:''}}元
宣传费用
- {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:0}}元 + {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:''}}元
其他成本
- {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:0}}元 + {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:''}}元
总成本
-
{{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:0}}元 +
+ {{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:''}}元
@@ -1594,7 +1599,7 @@ pageNumber: 1, pageSize: 10, isDraft: 0, - state:'5' + state: '5' }, planFen: '', @@ -1815,9 +1820,26 @@ message: '请输入活动名称', trigger: 'blur' }], - } + }, + numBerList:0 } }, + watch: { + tableDa: { + handler(newVal, oldVal) { + this.numBerList +=1 + + }, + deep: true + }, + zhixingList: { + handler(newVal, oldVal) { + this.numBerList +=1 + + }, + deep: true + } + }, created() { this.getAll() @@ -1936,7 +1958,7 @@ pageNumber: 1, pageSize: 10, isDraft: 0, - state:'5' + state: '5' } this.getAll() }, @@ -2027,7 +2049,7 @@ this.zhixingList.planTime = [] } else { console.log(typeof this.zhixingList.eventStartTime) - + this.zhixingList.planTime = [this.zhixingList.eventStartTime, this.zhixingList .eventEndTime ] @@ -2107,13 +2129,14 @@ }).then(res => { this.liData = res.data }) + this.numBerList = 0 this.ggXin = true }, formTime(data) { this.zhixingList.planTime = data - + }, - blur(){ + blur() { this.$forceUpdate() }, removeEmptyValues(obj) { @@ -2542,8 +2565,8 @@ .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != '' && this.effectivenessListTwo .internalLaborCostEstimation != '') { - let sum = (Number(this.effectivenessListOne.internalLaborCostEstimation) - Number(this - .effectivenessListTwo.internalLaborCostEstimation)) / Number(this.effectivenessListTwo + let sum = (Number(this.effectivenessListTwo.internalLaborCostEstimation) - Number(this + .effectivenessListOne.internalLaborCostEstimation) ) / Number(this.effectivenessListTwo .internalLaborCostEstimation) * 100 this.effectivenessListOne.sumNei = sum.toFixed(2) } @@ -2551,8 +2574,8 @@ .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo .externalLaborCostEstimation != '') { - let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this - .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + let sum = (Number(this.effectivenessListTwo.externalLaborCostEstimation) - Number(this + .effectivenessListOne.externalLaborCostEstimation)) / Number(this.effectivenessListTwo .externalLaborCostEstimation) * 100 this.effectivenessListOne.sumWai = sum.toFixed(2) @@ -2561,7 +2584,7 @@ .costEstimationGoods != undefined && this.effectivenessListOne.costEstimationGoods != '' && this .effectivenessListTwo .costEstimationGoods != '') { - let sum = (Number(this.effectivenessListOne.costEstimationGoods) - Number(this.effectivenessListTwo + let sum = (Number(this.effectivenessListTwo.costEstimationGoods) - Number(this.effectivenessListOne .costEstimationGoods)) / Number(this.effectivenessListTwo.costEstimationGoods) * 100 this.effectivenessListOne.sumShop = sum.toFixed(2) @@ -2569,7 +2592,7 @@ if (this.effectivenessListOne.setCostEstimate != undefined && this.effectivenessListTwo.setCostEstimate != undefined && this.effectivenessListOne.setCostEstimate != '' && this.effectivenessListTwo .setCostEstimate != '') { - let sum = (Number(this.effectivenessListOne.setCostEstimate) - Number(this.effectivenessListTwo + let sum = (Number(this.effectivenessListTwo.setCostEstimate) - Number(this.effectivenessListOne .setCostEstimate)) / Number(this.effectivenessListTwo.setCostEstimate) * 100 this.effectivenessListOne.sumSe = sum.toFixed(2) @@ -2578,8 +2601,8 @@ .estimatedPromotionalExpenses != undefined && this.effectivenessListOne.estimatedPromotionalExpenses != '' && this.effectivenessListTwo .estimatedPromotionalExpenses != '') { - let sum = (Number(this.effectivenessListOne.estimatedPromotionalExpenses) - Number(this - .effectivenessListTwo.estimatedPromotionalExpenses)) / Number(this.effectivenessListTwo + let sum = (Number(this.effectivenessListTwo.estimatedPromotionalExpenses) - Number(this + .effectivenessListOne.estimatedPromotionalExpenses)) / Number(this.effectivenessListTwo .estimatedPromotionalExpenses) * 100 this.effectivenessListOne.sumXuan = sum.toFixed(2) @@ -2588,16 +2611,14 @@ .otherNecessaryEstimates != undefined && this.effectivenessListOne.otherNecessaryEstimates != '' && this.effectivenessListTwo .otherNecessaryEstimates != '') { - let sum = (Number(this.effectivenessListOne.otherNecessaryEstimates) - Number(this.effectivenessListTwo - .otherNecessaryEstimates)) / Number(this.effectivenessListTwo.otherNecessaryEstimates) * 100 + let sum = (Number(this.effectivenessListTwo.otherNecessaryEstimates) - Number(this.effectivenessListOne.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 + let sum = (Number(this.effectivenessListTwo.totalCostEstimation) - Number(this.effectivenessListOne.totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 this.effectivenessListOne.sumAll = sum.toFixed(2) } // sumNei @@ -2623,12 +2644,13 @@ } else { this.effectivenessListTwo = 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 + let sum = (Number(this.effectivenessListTwo.internalLaborCostEstimation) - Number(this + .effectivenessListOne.internalLaborCostEstimation) ) / Number(this.effectivenessListTwo .internalLaborCostEstimation) * 100 this.effectivenessListOne.sumNei = sum.toFixed(2) } @@ -2636,55 +2658,69 @@ .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo .externalLaborCostEstimation != '') { - let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this - .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + + let sum = (Number(this.effectivenessListTwo.externalLaborCostEstimation) - Number(this + .effectivenessListOne.externalLaborCostEstimation)) / Number(this.effectivenessListTwo .externalLaborCostEstimation) * 100 + console.log(sum.toFixed(2),'console.log(sum.toFixed(2))') 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 + let sum = (Number(this.effectivenessListTwo.costEstimationGoods) - Number(this.effectivenessListOne .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 + let sum = (Number(this.effectivenessListTwo.setCostEstimate) - Number(this.effectivenessListOne .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 + let sum = (Number(this.effectivenessListTwo.estimatedPromotionalExpenses) - Number(this + .effectivenessListOne.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 + let sum = (Number(this.effectivenessListTwo.otherNecessaryEstimates) - Number(this.effectivenessListOne.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 + let sum = (Number(this.effectivenessListTwo.totalCostEstimation) - Number(this.effectivenessListOne.totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 this.effectivenessListOne.sumAll = sum.toFixed(2) } + // sumNei + // sumWai + // sumShop + // sumSe + // sumXuan + // sumQi + // sumAll + // internalLaborCostEstimation + // externalLaborCostEstimation + // costEstimationGoods + // setCostEstimate + // estimatedPromotionalExpenses + // otherNecessaryEstimates + // totalCostEstimation }, tiaozheng() { this.tiaozhengShow = true @@ -2703,6 +2739,16 @@ }, //执行效果保存 async bianji() { + if(this.numBerList>3){ + + }else{ + this.$message({ + message: '请填写或修改数据', + type: 'error', + offset: 100 + }) + return false; + } this.$refs.zhixingFormInfo.validate((valid) => { if (valid) { if (this.fileData.length != 0) { diff --git a/admin-web-master/src/views/activity/index.vue b/admin-web-master/src/views/activity/index.vue index 5cea4ea..d500820 100644 --- a/admin-web-master/src/views/activity/index.vue +++ b/admin-web-master/src/views/activity/index.vue @@ -153,11 +153,11 @@ - + - + @@ -306,7 +306,7 @@
成本分析
-
+
吸引游客流量
-
+
-
+
活动效果数据图表化展示
@@ -1297,9 +1297,26 @@ message: '请输入活动名称', trigger: 'blur' }], - } + }, + numBerList:0 } }, + watch: { + tableDa: { + handler(newVal, oldVal) { + this.numBerList +=1 + + }, + deep: true + }, + zhixingList: { + handler(newVal, oldVal) { + this.numBerList +=1 + + }, + deep: true + } + }, created() { this.getAll() @@ -1587,6 +1604,7 @@ } else { this.formItem = item } + this.numBerList = 0 this.ggXin = true }, formTime(data) { @@ -1634,6 +1652,19 @@ }, //执行效果保存 bianji() { + if(this.numBerList>3){ + + }else{ + this.$message({ + message: '请填写或修改数据', + type: 'error', + offset: 100 + }) + return false; + } + // console.log(this.numBerList,'this.sendflag') + + // return this.$refs.zhixingFormInfo.validate((valid) => { if (valid) { if (this.fileData.length != 0) { @@ -2003,13 +2034,13 @@ }, series: [{ type: 'funnel', - left: '20%', + left: '12%', top: 60, bottom: 30, - width: '100%', + width: '80%', min: 0, max: 100, - minSize: '60%', + minSize: '45%', maxSize: '100%', sort: 'descending', gap: 2, @@ -2050,10 +2081,7 @@ value: list.expectedIndirectBenefitsAnalysis, name: '间接收益' }, - { - value: list.incomeAnalysis, - name: '投入生产比' - }, + ] }] } diff --git a/admin-web-master/src/views/analysis/refund/index.vue b/admin-web-master/src/views/analysis/refund/index.vue index 7900459..4910ced 100644 --- a/admin-web-master/src/views/analysis/refund/index.vue +++ b/admin-web-master/src/views/analysis/refund/index.vue @@ -62,7 +62,7 @@
退票总额(元)
-
{{moyeOne}}
+
{{moyeOne.toFixed(2)}}
平均退票率(%)
diff --git a/admin-web-master/src/views/analysis/statistics/index.vue b/admin-web-master/src/views/analysis/statistics/index.vue index 6a2679f..ac93385 100644 --- a/admin-web-master/src/views/analysis/statistics/index.vue +++ b/admin-web-master/src/views/analysis/statistics/index.vue @@ -35,19 +35,19 @@
-
- +
+
-
-
+
+
{{item.ticketType}}销售数量(张)
{{item.sumNum}}
{{item.ticketType}}销售总额(元)
-
{{item.moyeTwo}}
+
{{item.moyeTwo.toFixed(2)}}
导出
+
- + - + @@ -183,7 +183,7 @@
成本分析
-
+
吸引游客流量
-
+
-
+
氛围效果数据图表化展示
@@ -1344,10 +1344,27 @@ message: '请输入活动名称', trigger: 'blur' }], - } + }, + numBerList:0 } }, + watch: { + tableDa: { + handler(newVal, oldVal) { + this.numBerList +=1 + + }, + deep: true + }, + zhixingList: { + handler(newVal, oldVal) { + this.numBerList +=1 + + }, + deep: true + } + }, created() { this.getAll() @@ -1520,6 +1537,16 @@ }, //执行效果保存 bianji() { + if(this.numBerList>3){ + + }else{ + this.$message({ + message: '请填写或修改数据', + type: 'error', + offset: 100 + }) + return false; + } this.$refs.zhixingFormInfo.validate((valid) => { if (valid) { if (this.fileData.length != 0) { @@ -1686,6 +1713,7 @@ } else { this.formItem = item } + this.numBerList = 0 this.ggXin = true }, removeEmptyValues(obj) { @@ -1973,10 +2001,10 @@ }, series: [{ type: 'funnel', - left: '10%', + left: '12%', top: 60, bottom: 30, - width: '100%', + width: '80%', min: 0, max: 100, minSize: '45%', @@ -2020,10 +2048,6 @@ value: list.expectedIndirectBenefitsAnalysis, name: '间接收益' }, - { - value: list.incomeAnalysis, - name: '投入生产比' - }, ] }] } diff --git a/admin-web-master/src/views/atmosphere/atmosphereHis.vue b/admin-web-master/src/views/atmosphere/atmosphereHis.vue index 5c2387f..17255d3 100644 --- a/admin-web-master/src/views/atmosphere/atmosphereHis.vue +++ b/admin-web-master/src/views/atmosphere/atmosphereHis.vue @@ -68,7 +68,7 @@
- -
-
-
-
-
基本信息
-
- - - - - - - - - - - - - - -
-
+
+ + + + + + +
+
-
氛围明细信息
-
- - - - - - - +
+
基本信息
+
+ + + + - - + + - - - - -
-
-
-
氛围成本信息
-
- - - - + + - - + + - - - - +
-
-
-
预估效果
-
- - - - - - - - - - - - - - +
+
氛围明细信息
+
+ + + + + + + + + + + + + + + +
-
-
-
相关附件信息
-
- - - - - - - - - - - +
+
氛围成本信息
+
+ + + + + + + + + + + + + +
-
-
-
系统信息
-
- - - - - - - - +
+
预估效果
+
+ + + + + + + + + + + + + - - - - +
-
-
-
-
-
-
-
-
- 基本信息 +
+
相关附件信息
+
+ + + + + + + + + + +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
系统信息
+
+ + + + + + + + + + + + + +
-
-
-
-
- 氛围明细信息 +
+
+
+
+
+ 基本信息 +
-
- 添加明细 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- -
- - - - - - - - - - - - - - - - - - +
+
+
+
+
+ 氛围明细信息 +
+
+ 添加明细 +
+
+ +
+ + + + + + + + + + + + + + + + + + +
-
-
-
-
-
- 实际花费成本 +
+
+
+
+ 实际花费成本 +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
- 氛围执行效果 +
+
+
+
+ 氛围执行效果 +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +点击上传 + +
{{zhixingList.feedbackContent}}
+
+
+ +
+
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +点击上传 - -
{{zhixingList.feedbackContent}}
-
-
- -
-
-
-
-
-
-
历史氛围策划方案搜索
- - - - - -
-
-
-
- - - - - {{duibiList.planName}} - - - - {{duibiList.eventAddrs}} - - - - - {{formatTimestampToDate(duibiList.eventStartTime)}}-{{formatTimestampToDate(duibiList.eventEndTime)}} - - - - - {{duibiList.participants}} - - - - - {{duibiList.sponsor}} - - - - - -
-
- -
-
- - - - - {{duibiList.internalLaborCostEstimation}} - - - - {{duibiList.externalLaborCostEstimation}} - - - - - - {{duibiList.costEstimationGoods}} - - - - - {{duibiList.setCostEstimate}} - - - - - {{duibiList.estimatedPromotionalExpenses}} - - - - - {{duibiList.otherNecessaryEstimates}} - - - - - {{duibiList.totalCostEstimation}} - - - - - {{duibiList.notes}} - - - -
-
-
- -
- - - - {{duibiList.expectedAttractTraffic}} - - - - - {{duibiList.expectedParticipation}} - - - - - {{duibiList.expectedDirectBenefits}} - - - - - {{duibiList.expectedIndirectBenefits}} - - - - - -
-
- - -
-
-
-
- +
+
+ + + + + {{duibiList.internalLaborCostEstimation}} + + + + {{duibiList.externalLaborCostEstimation}} + + + + + + {{duibiList.costEstimationGoods}} + + + + + {{duibiList.setCostEstimate}} + + + + + {{duibiList.estimatedPromotionalExpenses}} + + + + + {{duibiList.otherNecessaryEstimates}} + + + + + {{duibiList.totalCostEstimation}} + + + + + {{duibiList.notes}} + + + +
+
+
+ +
+ + + + {{duibiList.expectedAttractTraffic}} + + + + + {{duibiList.expectedParticipation}} + + + + + {{duibiList.expectedDirectBenefits}} + + + + + {{duibiList.expectedIndirectBenefits}} + + + + +
+
+ + +
+
+
+
+ + +
-
取消 @@ -1158,11 +1176,11 @@ - + - + @@ -1203,52 +1221,55 @@ -->
-
+
实际成本
内部人力
- {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:0}}元 + {{effectivenessListOne.internalLaborCostEstimation?effectivenessListOne.internalLaborCostEstimation:''}}元
外部人力
- {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:0}}元 + {{effectivenessListOne.externalLaborCostEstimation?effectivenessListOne.externalLaborCostEstimation:''}}元
商品成本
-
{{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:0}}元 +
+ {{effectivenessListOne.costEstimationGoods?effectivenessListOne.costEstimationGoods:''}}元
设备成本
-
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:0}}元
+
{{effectivenessListOne.setCostEstimate?effectivenessListOne.setCostEstimate:''}}元
宣传费用
- {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:0}}元 + {{effectivenessListOne.estimatedPromotionalExpenses?effectivenessListOne.estimatedPromotionalExpenses:''}}元
其他成本
- {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:0}}元 + {{effectivenessListOne.otherNecessaryEstimates?effectivenessListOne.otherNecessaryEstimates:''}}元
总成本
-
{{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:0}}元 +
+ {{effectivenessListOne.totalCostEstimation?effectivenessListOne.totalCostEstimation:''}}元
@@ -1256,34 +1277,34 @@
增长率
- {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:0}}% + {{effectivenessListOne.sumNei?effectivenessListOne.sumNei:''}}%
- {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:0}}% + {{effectivenessListOne.sumWai?effectivenessListOne.sumWai:''}}%
- {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:0}}% + {{effectivenessListOne.sumShop?effectivenessListOne.sumShop:''}}%
- {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:0}}% + {{effectivenessListOne.sumSe?effectivenessListOne.sumSe:''}}%
- {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:0}}% + {{effectivenessListOne.sumXuan?effectivenessListOne.sumXuan:''}}%
- {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:0}}% + {{effectivenessListOne.sumQi?effectivenessListOne.sumQi:''}}%
- {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:0}}% + {{effectivenessListOne.sumAll?effectivenessListOne.sumAll:''}}%
- - + +
实际成本
@@ -1291,45 +1312,47 @@ style="padding:10px 10px;display:flex;justify-content: space-between;border: 1px solid #DEDEDE;margin-top:10px;border-radius: 5px;">
内部人力
- {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:0}}元 + {{effectivenessListTwo.internalLaborCostEstimation?effectivenessListTwo.internalLaborCostEstimation:''}}元
外部人力
- {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:0}}元 + {{effectivenessListTwo.externalLaborCostEstimation?effectivenessListTwo.externalLaborCostEstimation:''}}元
商品成本
-
{{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:0}}元 +
+ {{effectivenessListTwo.costEstimationGoods?effectivenessListTwo.costEstimationGoods:''}}元
设备成本
-
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:0}}元
+
{{effectivenessListTwo.setCostEstimate?effectivenessListTwo.setCostEstimate:''}}元
宣传费用
- {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:0}}元 + {{effectivenessListTwo.estimatedPromotionalExpenses?effectivenessListTwo.estimatedPromotionalExpenses:''}}元
其他成本
- {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:0}}元 + {{effectivenessListTwo.otherNecessaryEstimates?effectivenessListTwo.otherNecessaryEstimates:''}}元
总成本
-
{{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:0}}元 +
+ {{effectivenessListTwo.totalCostEstimation?effectivenessListTwo.totalCostEstimation:''}}元
@@ -1449,7 +1472,7 @@ :format="() => customFormat(duibiTwo.otherNecessaryEstimates==undefined?'':duibiTwo.otherNecessaryEstimates)">
--> - + @@ -1539,7 +1562,7 @@ excelAdd, effectEvaluation, lishiDeta, - effectivenessLog + effectivenessLog } from '../../api/activityBz' import actbians from "./atmosphereBian" import * as echarts from 'echarts' @@ -1572,7 +1595,7 @@ pageNumber: 1, pageSize: 10, isDraft: 0, - state:'5' + state: '5' }, planFen: '', @@ -1716,7 +1739,7 @@ pageSize: 10, dataOwnership: '2', isDraft: 0, - state:'5' + state: '5' }, multipleSelection: [], options: [], @@ -1782,13 +1805,30 @@ ListTwo: '', effectivenessListOne: {}, effectivenessListTwo: {}, - zhixingRules:{ + zhixingRules: { planName: [{ required: true, message: '请输入活动名称', trigger: 'blur' }], - } + }, + numBerList: 0 + } + }, + watch: { + tableDa: { + handler(newVal, oldVal) { + this.numBerList += 1 + + }, + deep: true + }, + zhixingList: { + handler(newVal, oldVal) { + this.numBerList += 1 + + }, + deep: true } }, created() { @@ -1899,7 +1939,7 @@ pageNumber: 1, pageSize: 10, isDraft: 0, - state:'5' + state: '5' } this.getAll() @@ -1926,7 +1966,7 @@ this.activeName = 'fourd' } - effectivenessLog({ + effectivenessLog({ activityEffectivenessId: item.id }).then(res => { this.effectivenessList = res.data @@ -2018,7 +2058,7 @@ }).then(res => { this.secondData = res.data.content[0] //基本信息 - that.id=res.data.content[0].id + that.id = res.data.content[0].id that.text = res.data.content[0].planName that.tableData1[0].eventTheme = res.data.content[0].planType that.tableData1[0].planName = res.data.content[0].eventAddrs @@ -2069,7 +2109,7 @@ formTime(data) { this.zhixingList.planTime = data }, - blur(){ + blur() { this.$forceUpdate() }, removeEmptyValues(obj) { @@ -2266,7 +2306,7 @@ }, xiaoguo(item) { - this.xiaoDui = true + this.xiaoDui = true this.duibiOne = item console.log(item) let that = this @@ -2279,9 +2319,9 @@ this.effectivenessList[index].operationType = actName[0] }) }) - this.ListOne ='' + this.ListOne = '' this.ListTwo = '' - this.effectivenessListOne ={} + this.effectivenessListOne = {} this.effectivenessListTwo = {} // this.xiaoDui = true @@ -2471,13 +2511,13 @@ this.searchShow = true }, lichange(e) { - + // this.lishiList = e // let msg = this.liData[e] // this.duibiList = JSON.parse(msg.modifyContent) // this.lixiang = JSON.parse(msg.originalData) - let msg = this.effectivenessList[e] - this.duibiList = JSON.parse(msg.modifiedData) + let msg = this.effectivenessList[e] + this.duibiList = JSON.parse(msg.modifiedData) }, lichangeOne(e) { let msg = this.effectivenessList[e] @@ -2491,8 +2531,8 @@ .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != '' && this.effectivenessListTwo .internalLaborCostEstimation != '') { - let sum = (Number(this.effectivenessListOne.internalLaborCostEstimation) - Number(this - .effectivenessListTwo.internalLaborCostEstimation)) / Number(this.effectivenessListTwo + let sum = (Number(this.effectivenessListTwo.internalLaborCostEstimation) - Number(this + .effectivenessListOne.internalLaborCostEstimation) ) / Number(this.effectivenessListTwo .internalLaborCostEstimation) * 100 this.effectivenessListOne.sumNei = sum.toFixed(2) } @@ -2500,53 +2540,52 @@ .externalLaborCostEstimation != undefined && this.effectivenessListOne.externalLaborCostEstimation != '' && this.effectivenessListTwo .externalLaborCostEstimation != '') { - let sum = (Number(this.effectivenessListOne.externalLaborCostEstimation) - Number(this - .effectivenessListTwo.externalLaborCostEstimation)) / Number(this.effectivenessListTwo + + let sum = (Number(this.effectivenessListTwo.externalLaborCostEstimation) - Number(this + .effectivenessListOne.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 + let sum = (Number(this.effectivenessListTwo.costEstimationGoods) - Number(this.effectivenessListOne .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 + let sum = (Number(this.effectivenessListTwo.setCostEstimate) - Number(this.effectivenessListOne .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 + let sum = (Number(this.effectivenessListTwo.estimatedPromotionalExpenses) - Number(this + .effectivenessListOne.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 + let sum = (Number(this.effectivenessListTwo.otherNecessaryEstimates) - Number(this.effectivenessListOne.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 + let sum = (Number(this.effectivenessListTwo.totalCostEstimation) - Number(this.effectivenessListOne.totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 this.effectivenessListOne.sumAll = sum.toFixed(2) } // sumNei @@ -2572,68 +2611,80 @@ } else { this.effectivenessListTwo = 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) - } + if (this.effectivenessListOne.internalLaborCostEstimation != undefined && this.effectivenessListTwo + .internalLaborCostEstimation != undefined && this.effectivenessListOne.internalLaborCostEstimation != + '' && this.effectivenessListTwo + .internalLaborCostEstimation != '') { + let sum = (Number(this.effectivenessListTwo.internalLaborCostEstimation) - Number(this + .effectivenessListOne.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.effectivenessListTwo.externalLaborCostEstimation) - Number(this + .effectivenessListOne.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.effectivenessListTwo.costEstimationGoods) - Number(this.effectivenessListOne + .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.effectivenessListTwo.setCostEstimate) - Number(this.effectivenessListOne + .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.effectivenessListTwo.estimatedPromotionalExpenses) - Number(this + .effectivenessListOne.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.effectivenessListTwo.otherNecessaryEstimates) - Number(this.effectivenessListOne.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.effectivenessListTwo.totalCostEstimation) - Number(this.effectivenessListOne.totalCostEstimation)) / Number(this.effectivenessListTwo.totalCostEstimation) * 100 + this.effectivenessListOne.sumAll = sum.toFixed(2) + } + // sumNei + // sumWai + // sumShop + // sumSe + // sumXuan + // sumQi + // sumAll + // internalLaborCostEstimation + // externalLaborCostEstimation + // costEstimationGoods + // setCostEstimate + // estimatedPromotionalExpenses + // otherNecessaryEstimates + // totalCostEstimation }, tiaozheng() { this.tiaozhengShow = true @@ -2652,44 +2703,54 @@ }, //执行效果保存 async bianji() { + if (this.numBerList > 3) { + + } 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(()=>{ - 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; - } - }) - + 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(() => { + 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/customer/rsaManagement/tanpan.vue b/admin-web-master/src/views/customer/rsaManagement/tanpan.vue index f6338ab..6a50605 100644 --- a/admin-web-master/src/views/customer/rsaManagement/tanpan.vue +++ b/admin-web-master/src/views/customer/rsaManagement/tanpan.vue @@ -35,7 +35,7 @@ {{data.day.split("-").slice(2).join("-")}}
-
+
{{item.negotiationTime == data.day?item.negotiationResult:''}}
diff --git a/admin-web-master/src/views/detect/admap.vue b/admin-web-master/src/views/detect/admap.vue index 2e4ccf6..db9c6f1 100644 --- a/admin-web-master/src/views/detect/admap.vue +++ b/admin-web-master/src/views/detect/admap.vue @@ -368,6 +368,13 @@ resourcesId: this.oncetype + this.oninfo.id, rentalPoliciesIds: ids, } + if(c1.rentalPoliciesIds.length==0){ + this.$message({ + message: '请选择策略进行绑定', + type: 'warning' + }) + return + } console.error(c1) cereResourceStrategy(c1).then(res => { if (res.code == 200) { diff --git a/admin-web-master/src/views/detect/information/index.vue b/admin-web-master/src/views/detect/information/index.vue index f85f505..00531f5 100644 --- a/admin-web-master/src/views/detect/information/index.vue +++ b/admin-web-master/src/views/detect/information/index.vue @@ -205,6 +205,13 @@ resourcesId: this.oncetype+this.oninfo.id, rentalPoliciesIds: ids, } + if(c1.rentalPoliciesIds.length==0){ + this.$message({ + message: '请选择策略进行绑定', + type: 'warning' + }) + return + } console.error(c1) cereResourceStrategy(c1).then(res => { if (res.code == 200) { diff --git a/admin-web-master/src/views/detect/map/index.vue b/admin-web-master/src/views/detect/map/index.vue index 2a82865..3364260 100644 --- a/admin-web-master/src/views/detect/map/index.vue +++ b/admin-web-master/src/views/detect/map/index.vue @@ -223,6 +223,13 @@ resourcesId: this.oncetype + this.oninfo.id, rentalPoliciesIds: ids, } + if(c1.rentalPoliciesIds.length==0){ + this.$message({ + message: '请选择策略进行绑定', + type: 'warning' + }) + return + } console.error(c1) cereResourceStrategy(c1).then(res => { if (res.code == 200) { diff --git a/admin-web-master/src/views/online/transaction/index.vue b/admin-web-master/src/views/online/transaction/index.vue index a48c86a..5689fdc 100644 --- a/admin-web-master/src/views/online/transaction/index.vue +++ b/admin-web-master/src/views/online/transaction/index.vue @@ -26,7 +26,7 @@
-
总销售额
+
总销售额(元)
{{rules.totalSales}}
-
+
  • {{index + 1 }}

    @@ -92,7 +92,7 @@
- @@ -149,7 +149,8 @@ orderStatisticsProductInformation, orderGetAll, orderIndex, - getAllNotPage + getAllNotPage, + salesRanking } from '@/api/orderany' export default { data() { @@ -177,18 +178,7 @@ trigger: 'change' }] }, - info:{ - hotSellProducts:[ - { - "productName": "wo", - "number": 1 - }, - { - "productName": "测试商品", - "number": 3 - } -] - }, + dataList: [{ name: '订单总数 (件)', value: '0', @@ -263,13 +253,16 @@ async getTotalData() { const res = await getAllNotPage(this.formParams) + const biao = await salesRanking(res.data) + this.tableData = biao.data.sort((a, b) => b.multiply - a.multiply); + this.total = biao.data.length 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(); - console.log(this.tableData) - this.total = this.tableData.length + // this.tableData = Object.values(tablelist.data.commodityInformation).flat(); + // console.log(this.tableData) + // this.total = this.tableData.length this.Orderlist = Orderlist.data.bestSellers let length = 0; let keys = [] @@ -298,8 +291,7 @@ this.draws(orderIn.data.conversion) - // this.info = d - // } + }, handleCurrentChange(val) { @@ -637,7 +629,7 @@ async userVisitExport() { height: 500px; } .empty { - height: 450px; + /* height: 450px; */ img { width: 80px; height: 80px; diff --git a/admin-web-master/src/views/renovation/commoditySystem/addCommodity.vue b/admin-web-master/src/views/renovation/commoditySystem/addCommodity.vue index a739c7e..9526014 100644 --- a/admin-web-master/src/views/renovation/commoditySystem/addCommodity.vue +++ b/admin-web-master/src/views/renovation/commoditySystem/addCommodity.vue @@ -42,6 +42,10 @@ 待审核 审核失败
+
+ 商品组合: + {{productItem.combinationName}} +
diff --git a/admin-web-master/src/views/rent/audit/index.vue b/admin-web-master/src/views/rent/audit/index.vue index e66418a..613b745 100644 --- a/admin-web-master/src/views/rent/audit/index.vue +++ b/admin-web-master/src/views/rent/audit/index.vue @@ -94,6 +94,7 @@ @@ -314,6 +315,34 @@ this.detailsinfo = row this.onaction = '3' }, + zhongzhi(item,val){ + + let that = this + this.$confirm('确定要当前记录吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { msgedit({ + id: item.id, + auditStatus: val, + }).then(res => { + if (res.code == 200) { + this.$message({ + message: '处理成功', + type: 'success' + }) + this.getAll() + } else { + this.$message({ + message: '处理失败', + type: 'error' + }) + } + }) + }) + + + }, removeinfo(row, e) { this.contractChangeReason = e this.detailsinfo = row diff --git a/admin-web-master/src/views/revenue/totalsales/index.vue b/admin-web-master/src/views/revenue/totalsales/index.vue index 9a150a7..faac9d8 100644 --- a/admin-web-master/src/views/revenue/totalsales/index.vue +++ b/admin-web-master/src/views/revenue/totalsales/index.vue @@ -58,7 +58,7 @@
{{item.ticketChannel==1?'有赞':''}}销售总额(元)
-
{{item.sum}}
+
{{item.sum.toFixed(2)}}
@@ -190,7 +190,7 @@ numOne:0, moyeOne += Number(item.price) }) - this.moyeOne = moyeOne + this.moyeOne = moyeOne.toFixed(2) this.echar2(this.tableData) this.echar3( this.tableData) diff --git a/admin-web-master/src/views/salesSta/dataSta.vue b/admin-web-master/src/views/salesSta/dataSta.vue index 21e86e1..76037e5 100644 --- a/admin-web-master/src/views/salesSta/dataSta.vue +++ b/admin-web-master/src/views/salesSta/dataSta.vue @@ -28,7 +28,7 @@
- +