Merge remote-tracking branch 'origin/main'

This commit is contained in:
zhaotianfeng 2024-09-18 10:21:45 +08:00
commit 71244af165
7 changed files with 51 additions and 6 deletions

View File

@ -83,6 +83,7 @@ export default {
}) })
}, },
initAMap() { initAMap() {
console.log("86",this.pform)
let _this = this; let _this = this;
AMapLoader.load({ AMapLoader.load({
key: "b5abec514cab7c71cb0572765131e6fc", // WebKey load key: "b5abec514cab7c71cb0572765131e6fc", // WebKey load
@ -102,6 +103,8 @@ export default {
}); });
// //
this.AutoComplete = new AMap.AutoComplete({ city: "全国" }); this.AutoComplete = new AMap.AutoComplete({ city: "全国" });
//
this.setMapMarker();
//; //;
this.map.on("click", (e) => { this.map.on("click", (e) => {
// //
@ -113,6 +116,7 @@ export default {
this.setMapMarker(); this.setMapMarker();
}); });
}).catch(() => {}); }).catch(() => {});
}, },
// //
setMapMarker() { setMapMarker() {

View File

@ -51,7 +51,7 @@
<img src="@/assets/menu_icon/youqiang.png" v-if="!activeMenu.includes(item.path)" style="width: 21px;height: 21px;"/> <img src="@/assets/menu_icon/youqiang.png" v-if="!activeMenu.includes(item.path)" style="width: 21px;height: 21px;"/>
<img src="@/assets/menu_icon/youqiang_b.png" v-else style="width: 21px;height: 21px;"/> <img src="@/assets/menu_icon/youqiang_b.png" v-else style="width: 21px;height: 21px;"/>
</span> </span>
<span style="margin-right: 10px;" v-if="item.meta.title=='便利店'"> <span style="margin-right: 10px;" v-if="item.meta.title=='便利店管理'">
<img src="@/assets/menu_icon/car.png" v-if="!activeMenu.includes('/convenience')" style="width: 21px;height: 21px;"/> <img src="@/assets/menu_icon/car.png" v-if="!activeMenu.includes('/convenience')" style="width: 21px;height: 21px;"/>
<img src="@/assets/menu_icon/car_b.png" v-else style="width: 21px;height: 21px;"/> <img src="@/assets/menu_icon/car_b.png" v-else style="width: 21px;height: 21px;"/>
</span> </span>

View File

@ -46,13 +46,22 @@
<span v-if="scope.row.putType==3">积分兑换</span> <span v-if="scope.row.putType==3">积分兑换</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="优惠内容"></el-table-column> <el-table-column prop="createTime" label="优惠内容">
<template slot-scope="scope">
<span>{{ scope.row.remark }}</span>
</template>
</el-table-column>
<el-table-column prop="createTime" label="有效期"> <el-table-column prop="createTime" label="有效期">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.effectiveDateStart }}~{{ scope.row.effectiveDateEnd }}</span> <span>{{ scope.row.effectiveDateStart }}~{{ scope.row.effectiveDateEnd }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="已领/投放数量"></el-table-column> <el-table-column prop="tfGetNum" label="已领/投放数量">
<template slot-scope="scope">
<span>{{ scope.row.tfGetNum || 0 }}</span>
</template>
</el-table-column>
<el-table-column prop="createTime" label="已核销"></el-table-column> <el-table-column prop="createTime" label="已核销"></el-table-column>
<el-table-column prop="status" label="状态"> <el-table-column prop="status" label="状态">
<template slot-scope="scope"> <template slot-scope="scope">

View File

@ -21,7 +21,7 @@
</div> </div>
<div class="nbox" :class="pointerClass" @click="updateRedio('积分商城订单')"> <div class="nbox" :class="pointerClass" @click="updateRedio('积分商城订单')">
<div class="fount-box" :style="{ color: radio1 === '积分商城订单' ? '#FF770F' : '#999999' }">积分兑换订单</div> <div class="fount-box" :style="{ color: radio1 === '积分商城订单' ? '#FF770F' : '#999999' }">积分商城订单</div>
<div class="heng-box" v-if="radio1 == '积分商城订单'"></div> <div class="heng-box" v-if="radio1 == '积分商城订单'"></div>
<div class="heng-box" style="background-color: #FFFFFF" v-else></div> <div class="heng-box" style="background-color: #FFFFFF" v-else></div>
</div> </div>

View File

@ -19,4 +19,8 @@ public class IntegralOrdersDTO extends IntegralOrders {
private String coverImage; private String coverImage;
private Long deptId; private Long deptId;
private List<Long> storeIds; private List<Long> storeIds;
/**
* 支付类型
*/
private String paymentType;
} }

View File

@ -181,6 +181,8 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper, All
} }
List<allorderVOo> fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo); List<allorderVOo> fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo);
record.setPayMoney(convertPayMoneyToWanYuan(record.getPayMoney()));
record.setFenxiByDaili2(fenxiByDaili2); record.setFenxiByDaili2(fenxiByDaili2);
} }
return fenxiByDaili; return fenxiByDaili;
@ -1693,4 +1695,17 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper, All
sysDept.setDailyAmount(meanAmountStr); sysDept.setDailyAmount(meanAmountStr);
sysDept.setStrokesPerDay(meanStrokeCountStr); sysDept.setStrokesPerDay(meanStrokeCountStr);
} }
/**
* 将支付金额转换为万圆
* @param payMoney
*/
public Double convertPayMoneyToWanYuan(Double payMoney) {
if (payMoney != null) {
BigDecimal payMoneyInYuan = BigDecimal.valueOf(payMoney);
BigDecimal payMoneyInWanYuan = payMoneyInYuan.divide(BigDecimal.valueOf(10000), 2, RoundingMode.HALF_UP);
return payMoneyInWanYuan.doubleValue();
}
return null;
}
} }

View File

@ -36,6 +36,7 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -145,8 +146,8 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
leiJiInfo.put("tongjMoney","0"); leiJiInfo.put("tongjMoney","0");
} }
dataByZt.put("tongjMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjMoney"))?leiJiInfo.get("tongjMoney"):"0"); dataByZt.put("tongjMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjMoney"))?convertYuanToWanYuan((BigDecimal) leiJiInfo.get("tongjMoney")):"0");
dataByZt.put("tongjXfMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjXfMoney"))?leiJiInfo.get("tongjXfMoney"):"0"); dataByZt.put("tongjXfMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjXfMoney"))?convertYuanToWanYuan((BigDecimal) leiJiInfo.get("tongjXfMoney")):"0");
return dataByZt; return dataByZt;
} }
@ -361,4 +362,16 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
// 新增会员余额信息 // 新增会员余额信息
return insertUserBalance(userBalanceAdd); return insertUserBalance(userBalanceAdd);
} }
/**
* 将金额从元转换为万元
*
* @param amountInYuan 以元为单位的金额
* @return 以万元为单位的金额
*/
public static BigDecimal convertYuanToWanYuan(BigDecimal amountInYuan) {
// 将元转换为万元使用 BigDecimal 进行精确的数学运算
BigDecimal divisor = new BigDecimal("10000");
return amountInYuan.divide(divisor, 2, RoundingMode.HALF_UP);
}
} }