bug
This commit is contained in:
parent
70ba76875d
commit
1669c9150e
@ -60,8 +60,8 @@ Vue.prototype.imgurl = 'http://192.168.0.138:8008'
|
||||
// Vue.prototype.pcUrl = 'http://192.168.31.178:83/#/homeindex' // 收银台
|
||||
// Vue.prototype.ztUrl = 'http://192.168.31.178:82/' // 中台
|
||||
Vue.prototype.cashierUrl = 'https://cashier.youkerr.com/#/homeindex' // 收银台
|
||||
Vue.prototype.pcUrl = 'https://www.youkerr.com' // 收银台
|
||||
Vue.prototype.ztUrl = 'https://192.168.31.178:82/' // 中台
|
||||
Vue.prototype.pcUrl = 'https://www.youkerr.com/' // 收银台
|
||||
Vue.prototype.ztUrl = 'https://oil.youkerr.com/' // 中台
|
||||
const Collapse= false
|
||||
Vue.prototype.isCollapse = Collapse
|
||||
|
||||
|
@ -50,9 +50,11 @@
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
type="datetimerange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期">
|
||||
end-placeholder="结束日期"
|
||||
@change="getStoreAmount">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div style="margin-right: 40px">
|
||||
@ -136,9 +138,10 @@
|
||||
{{item}}
|
||||
</div>
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
v-model="value2"
|
||||
type="datetimerange"
|
||||
range-separator="至"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
@ -154,6 +157,7 @@
|
||||
import echarts from "echarts";
|
||||
import {storeAmountIndex, storeTotalIndex} from "@/api/indexBanner";
|
||||
import {selectChildByDeptId} from "@/api/system/Site/site";
|
||||
import {parseTime} from "@/utils/fuint";
|
||||
export default {
|
||||
|
||||
data(){
|
||||
@ -183,7 +187,8 @@ export default {
|
||||
label: '北京烤鸭'
|
||||
}],
|
||||
value: '',
|
||||
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
|
||||
value1: [],
|
||||
value2: [],
|
||||
imagePath: process.env.VUE_APP_SERVER_URL,
|
||||
queryParams:{},
|
||||
// 店铺数量
|
||||
@ -193,6 +198,10 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
let nowDate = new Date();
|
||||
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||
this.value1 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||
console.log("this.value1",this.value1)
|
||||
this.getStoreTotal()
|
||||
this.selectChildByDeptIdApi()
|
||||
this.getStoreAmount()
|
||||
|
@ -285,10 +285,10 @@ export default {
|
||||
if (Cookies.get("IS_BK_LOGIN")) {
|
||||
location.replace(this.bkUrl+"resource_oilstore");
|
||||
}else {
|
||||
app.$router.push({ path: "/Service/index" }).catch(()=>{});
|
||||
// app.$router.push({ path: "/Service/index" }).catch(()=>{});
|
||||
}
|
||||
|
||||
// app.$router.push({ path: this.redirect || "/" }).catch(()=>{});
|
||||
app.$router.push({ path: this.redirect || "/" }).catch(()=>{});
|
||||
|
||||
// app.$router.push({ path: this.redirect || "/" }).catch(()=>{});
|
||||
// app.$router.push({ path: "index" }).catch(()=>{});
|
||||
|
@ -1004,13 +1004,13 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
|
||||
@Override
|
||||
public Map<String, Object> getAmount(AllOrderInfoVo allOrderInfoVo) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
Integer tradeTotal = baseMapper.selectTotal(allOrderInfoVo);
|
||||
Double tradeAmount = baseMapper.selectAllAmount(allOrderInfoVo);
|
||||
Integer tradeTotal = ObjectUtil.isNotEmpty(baseMapper.selectTotal(allOrderInfoVo)) ? baseMapper.selectTotal(allOrderInfoVo) : 0;
|
||||
Double tradeAmount = ObjectUtil.isNotEmpty(baseMapper.selectAllAmount(allOrderInfoVo)) ? baseMapper.selectAllAmount(allOrderInfoVo) : 0;
|
||||
allOrderInfoVo.setStatus("refund");
|
||||
Integer refundTotal = baseMapper.selectTotal(allOrderInfoVo);
|
||||
Double refundAmount = baseMapper.selectAllAmount(allOrderInfoVo);
|
||||
Integer refundTotal = ObjectUtil.isNotEmpty(baseMapper.selectTotal(allOrderInfoVo)) ? baseMapper.selectTotal(allOrderInfoVo) : 0;
|
||||
Double refundAmount = ObjectUtil.isNotEmpty(baseMapper.selectAllAmount(allOrderInfoVo)) ? baseMapper.selectAllAmount(allOrderInfoVo) : 0;
|
||||
Double averagePrice = tradeAmount/tradeTotal;
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
Double dayTradeAmount = 0.0;
|
||||
Integer dayTradeTotal = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user