@@ -793,14 +792,23 @@ export default {
const option = {
color: [
- '#b7f1e2',
+ '#36b713',
'#fc7150',
'#fea500',
'#5facfe',
+ '#b7f1e2',
],
tooltip: {
trigger: 'item'
},
+ legend: {
+ type:'scroll',
+ orient: 'vertical',
+ right: '0%',
+ bottom: '0%',
+ left:'right',
+ size:8
+ },
series: [
{
name: '',
@@ -812,7 +820,14 @@ export default {
},
radius: ['40%', '80%'],
data: this.dataAnalysisOilNumberList,
- }
+ label: {
+ show: true,
+ position: "inside",
+ color:'#fff',
+ formatter: `{d}%`,
+ },
+ },
+
]
};
const option1 = {
@@ -823,7 +838,14 @@ export default {
tooltip: {
trigger: 'item'
},
-
+ legend: {
+ type:'scroll',
+ orient: 'vertical',
+ right: '0%',
+ bottom: '0%',
+ left:'right',
+ size:8
+ },
series: [
{
name: '',
@@ -837,8 +859,16 @@ export default {
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
- }
- }
+ },
+ label: {
+ show: true,
+ position: "inside",
+ color:'#fff',
+ formatter: `{d}%`,
+ },
+ },
+
+
]
};
const option2 = {
@@ -851,35 +881,19 @@ export default {
tooltip: {
trigger: 'item'
},
-
+ legend: {
+ type:'scroll',
+ orient: 'vertical',
+ right: '0%',
+ bottom: '0%',
+ left:'right',
+ size:8
+ },
series: [
{
name: '',
type: 'pie',
radius: [50, '80%'],
- // data: [
- // // { value: 28, name: '会员充值占比' },
- // // { value: 72, name: '积分商城交易占比' },
- // // { value: 28, name: '油品交易占比' },
- // // { value: 72, name: '便利店交易占比' },
- // {
- // value: this.countPercentage(Number(this.storeAmount.userNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
- // name: '会员充值占比'
- // },
- // {
- // value: this.countPercentage(Number(this.storeAmount.integralNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
- // name: '积分商城交易占比'
- // },
- // {
- // value: this.countPercentage(Number(this.storeAmount.oilNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
- // name: '油品交易占比'
- // },
- // {
- // value: this.countPercentage(Number(this.storeAmount.goodNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
- // name: '便利店交易占比'
- // },
- //
- // ],
data: this.dataAnalysisAllList,
emphasis: {
itemStyle: {
@@ -887,7 +901,14 @@ export default {
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
- }
+ },
+
+ label: {
+ show: true,
+ position: "inside",
+ color:'#fff',
+ formatter: `{d}%`,
+ },
}
]
};
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java
index d5e071c28..b41c9917f 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java
@@ -525,8 +525,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl
储值卡:¥{{ chooseVipUser.cardBalance || 0 }}
-
囤油卡:¥{{ item.fuelAmount }}
+
囤油卡:¥{{
+ item.fuelAmount
+ }}
+
-
车队卡:¥{{ item.totalBalance }}
+
+ 车队卡:¥{{ item.totalBalance }}
+
@@ -1141,17 +1146,21 @@ export default {
},
// 打印商品支付后的订单
oilOrderReport() {
+ console.log(this.goodsOrder,this.goodsList,1095)
//现在油品只有一个了
- let oilOrderR = [
- {
- oilName: this.oilGunClearing.name,
- amount: this.oilGunClearing.amount + '',
- }
- ]
+ let oilOrderR = []
+ if (this.oilGunClearing && this.oilGunClearing.amount>0){
+ oilOrderR = [
+ {
+ oilName: this.oilGunClearing.oilType + this.oilGunClearing.oilName,
+ amount: this.oilGunClearing.amount + '',
+ }
+ ]
+ }
let goodsOrderR = []
- if (this.goodsOrder && this.goodsOrder.length > 0) {
- this.goodsOrder.forEach(order => {
+ if (this.goodsList && this.goodsList.length > 0) {
+ this.goodsList.forEach(order => {
let o = {
oilName: order.name,
unit: order.num + order.unit,
@@ -1168,9 +1177,10 @@ export default {
'WECHAT': '微信',
'ALIPAY': '支付宝',
'UNIONPAY': '银联二维码',
- 'credit': '挂账',
- 'oilCard': '囤油卡',
- 'balance': '储值卡'
+ 'after_pay': '挂账',
+ 'fule_card': '囤油卡',
+ 'card_value': '储值卡',
+ 'car_card_value': '车队卡',
};
let payTypeText = payTypeMap[this.payType] || '小程序码';
@@ -1181,26 +1191,28 @@ export default {
unitName: "", // 挂账单位
// consumeAmount:this.consumeAmount,
- creditAmount: (this.oilAmount + (+this.goodsAmount)).toFixed(2),//挂账金额
+ creditAmount: this.realAmount,//挂账金额
// 优惠合计
- discount: (this.oilDiscount + this.goodsDiscount + this.fullReduction + this.couponAmount).toFixed(2), // 油惠合计
+ discount: this.disTotal, // 油惠合计
// 储值卡付款
- consumeAmount: this.consumeAmount,
+ consumeAmount: this.realAmount,
// 屯油卡付款
- consumeRefuelMoney: this.consumeRefuelMoney ? this.consumeRefuelMoney.toFixed(2) : 0,
+ consumeRefuelMoney: this.realAmount,
// 实付款
- actualPay: ((+this.oilActualPay) + (+this.goodsActualPay)).toFixed(2),
+ actualPay: this.realAmount,
// 找零
seekZero: this.seekZero ? this.seekZero.toFixed(2) : 0,
}
- if (this.form1 && this.form1.unitName) f.unitName = this.form1.unitName
+ if (this.credit && this.credit.unitName) f.unitName = this.credit.unitName
printOilOrderReport(f).then(res => {
console.log(res, 1121)
})
},
//表单重置
resetting1() {
-
+ this.realAmount = 0.00
+ //优惠合计金额
+ this.disTotal = 0.00
//请输入手机号输入框重置
this.userMobile = null
//油枪重置
@@ -1211,6 +1223,8 @@ export default {
this.userInfo = false
//支付方式 默认 支付宝
this.payType = "ALIPAY"
+
+ this.loading = false;
},
// 查询订单支付状态
queryPayStatus() {
@@ -1393,8 +1407,8 @@ export default {
// 油罐id
// 活动id
// 活动类型
-
- if (this.oilGunClearing) {
+ console.log(this.oilGunClearing)
+ if (this.oilGunClearing && this.oilGunClearing.amount>0) {
this.payForm.oilOrder = JSON.stringify({
oilPrice: this.oilGunClearing.oilPrice,
oils: this.oilGunClearing.oilNameId,
@@ -1993,8 +2007,8 @@ export default {
}
this.accountPending = true
}
- if (value == 'car_card_value'){
- if (!this.userInfo){
+ if (value == 'car_card_value') {
+ if (!this.userInfo) {
this.$message.error("请先选择会员")
return
}