-
- 0
+
+ {{orderStatistics.salesNum}}
-
- 0
+
+ {{orderStatistics.buyingPrice}}
@@ -52,8 +46,8 @@
-
- 0
+
+ {{orderStatistics.orderNum}}
@@ -62,8 +56,8 @@
-
- 0
+
+ {{orderStatistics.discountAmount}}
@@ -73,8 +67,8 @@
-
- 0
+
+ {{orderStatistics.payAmount}}
-
- 0
+
+ {{orderStatistics.refMoney}}
@@ -99,31 +93,28 @@
border
style="width: 100%;margin-top: 15px">
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
@@ -135,7 +126,9 @@ import {
getRunningWaterByDataApi,
exportExcelOilDeptApi,
getmyDataApi,
- getInstituionListApi2
+ getInstituionListApi2,
+ getInstituionListApi23,
+ getRunningWaterByDataApi25
} from "@/api/allOrder";
export default {
@@ -160,15 +153,15 @@ export default {
beginTime:"",
endTime:"",
deptType:"3",
-
+ dataRange:[]
},
orderStatistics:{
- numberOfStrokes:'0',
- theTotalAmountOfTheOrder:'0',
- theTotalAmountPaid:'0',
- oilDiscounts:'0',
- theTotalAmountOfOil:'0',
- theTotalAmountOfTheItem:'0',
+ salesNum:'0',
+ buyingPrice:'0',
+ orderNum:'0',
+ discountAmount:'0',
+ refMoney:'0',
+ payAmount:'0',
},
total:0,
timeDifference:1,
@@ -180,18 +173,14 @@ export default {
start.setMinutes(0)
start.setSeconds(0)
start.setMilliseconds(0)
- this.dateRange = [start,new Date()];
- this.beginTime = start
- this.endTime = new Date()
-
- this.timeDifferenceMilliseconds = this.endTime - this.beginTime;
- this.timeDifference = timeDifferenceMilliseconds / (1000 * 60 * 60 * 24);
-
- console.log("timeDifference",this.timeDifference)
+ let year = start.getFullYear(); // 获取年份
+ let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1
+ let date = String(start.getDate()).padStart(2, '0'); // 获取日期
+ this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date];
this.isSysDate = true
await this.getDeptList();
this.getList();
-
+ this.getOrderStatistics()
},
methods:{
getDays(){
@@ -215,12 +204,7 @@ export default {
// 获取订单统计信息
getOrderStatistics() {
- let dateRange = []
- if (this.beginTime && this.endTime) {
- dateRange.push(this.beginTime.toLocaleDateString())
- dateRange.push(this.endTime.toLocaleDateString())
- }
- getRunningWaterByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
+ getRunningWaterByDataApi25(this.queryParams).then(res=>{
this.orderStatistics = res.data
})
},
@@ -232,17 +216,12 @@ export default {
// 获取列表信息
getList(val){
- let dateRange = []
- if (this.beginTime && this.endTime) {
- dateRange.push(this.beginTime.toLocaleDateString())
- dateRange.push(this.endTime.toLocaleDateString())
- }
- getInstituionListApi2(this.addDateRange(this.queryParams,dateRange)).then( response => {
+ getInstituionListApi23(this.queryParams).then( response => {
this.orderList = response.data.records;
this.total = response.data.total;
this.isSysDate = false
})
- this.getOrderStatistics()
+
},
// 搜索按钮操作
@@ -261,8 +240,16 @@ export default {
deptType:"3",
}
- this.beginTime = ""
- this.endTime = ""
+ let start = new Date();
+ start.setHours(0)
+ start.setMinutes(0)
+ start.setSeconds(0)
+ start.setMilliseconds(0)
+ let year = start.getFullYear(); // 获取年份
+ let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1
+ let date = String(start.getDate()).padStart(2, '0'); // 获取日期
+ this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date];
+ this.isSysDate = true
await this.getDeptList()
this.handleQuery();
},
diff --git a/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue b/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue
index 16f7001e4..c450f612b 100644
--- a/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue
+++ b/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue
@@ -6,19 +6,14 @@
-
- 至
-
+ v-model="queryParams.dataRange"
+ type="daterange"
+ range-separator="至"
+ start-placeholder="开始日期"
+ end-placeholder="结束日期"
+ format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd"
+ >
@@ -31,26 +26,26 @@
-
- 0/0
+
+ {{orderStatistics.exchangeNum}}
-
- 0/0
+
+ {{orderStatistics.consumeInter}}
-
- 0/0
+
+ {{orderStatistics.orderNum}}
-
- 0/0
+
+ {{orderStatistics.payAmount}}
@@ -73,27 +68,22 @@
border
style="width: 100%;margin-top: 15px">
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+ @pagination="getList"
+ />
@@ -105,7 +95,9 @@ import {
getRunningWaterByDataApi,
exportExcelOilDeptApi,
getmyDataApi,
- getInstituionListApi2
+ getInstituionListApi2,
+ getInstituionListApi27,
+ getRunningWaterByDataApi29
} from "@/api/allOrder";
export default {
name: "runningWater-oilDepot",
@@ -129,15 +121,13 @@ export default {
beginTime:"",
endTime:"",
deptType:"3",
-
+ dataRange:[]
},
orderStatistics:{
- numberOfStrokes:'0',
- theTotalAmountOfTheOrder:'0',
- theTotalAmountPaid:'0',
- oilDiscounts:'0',
- theTotalAmountOfOil:'0',
- theTotalAmountOfTheItem:'0',
+ exchangeNum:'0',
+ consumeInter:'0',
+ orderNum:'0',
+ payAmount:'0',
},
total:0,
timeDifference:1,
@@ -149,18 +139,14 @@ export default {
start.setMinutes(0)
start.setSeconds(0)
start.setMilliseconds(0)
- this.dateRange = [start,new Date()];
- this.beginTime = start
- this.endTime = new Date()
-
- this.timeDifferenceMilliseconds = this.endTime - this.beginTime;
- this.timeDifference = timeDifferenceMilliseconds / (1000 * 60 * 60 * 24);
-
- console.log("timeDifference",this.timeDifference)
+ let year = start.getFullYear(); // 获取年份
+ let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1
+ let date = String(start.getDate()).padStart(2, '0'); // 获取日期
+ this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date];
this.isSysDate = true
await this.getDeptList();
this.getList();
-
+ this.getOrderStatistics()
},
methods:{
getDays(){
@@ -184,13 +170,10 @@ export default {
// 获取订单统计信息
getOrderStatistics() {
- let dateRange = []
- if (this.beginTime && this.endTime) {
- dateRange.push(this.beginTime.toLocaleDateString())
- dateRange.push(this.endTime.toLocaleDateString())
- }
- getRunningWaterByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
+ console.log(11111111)
+ getRunningWaterByDataApi29(this.queryParams).then(res=>{
this.orderStatistics = res.data
+ console.log(this.orderStatistics)
})
},
async getDeptList() {
@@ -201,17 +184,12 @@ export default {
// 获取列表信息
getList(val){
- let dateRange = []
- if (this.beginTime && this.endTime) {
- dateRange.push(this.beginTime.toLocaleDateString())
- dateRange.push(this.endTime.toLocaleDateString())
- }
- getInstituionListApi2(this.addDateRange(this.queryParams,dateRange)).then( response => {
+ getInstituionListApi27(this.queryParams).then( response => {
this.orderList = response.data.records;
this.total = response.data.total;
this.isSysDate = false
})
- this.getOrderStatistics()
+
},
// 搜索按钮操作
@@ -219,6 +197,7 @@ export default {
this.queryParams.page = 1;
await this.getDeptList();
this.getList();
+ this.getOrderStatistics()
},
// 重置按钮操作
@@ -230,8 +209,16 @@ export default {
deptType:"3",
}
- this.beginTime = ""
- this.endTime = ""
+ let start = new Date();
+ start.setHours(0)
+ start.setMinutes(0)
+ start.setSeconds(0)
+ start.setMilliseconds(0)
+ let year = start.getFullYear(); // 获取年份
+ let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1
+ let date = String(start.getDate()).padStart(2, '0'); // 获取日期
+ this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date];
+ this.isSysDate = true
await this.getDeptList()
this.handleQuery();
},
diff --git a/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue b/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue
index 6c37da914..73d64fe19 100644
--- a/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue
+++ b/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue
@@ -104,16 +104,14 @@
-
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java
index 536341fa5..0774f487b 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java
@@ -618,4 +618,78 @@ public class AllOrderInfoController extends BaseController {
StatisticsSaleOilOrderByGunDto map = allOrderInfoService.getRunningWaterByDataApi17(allOrderInfoRes);
return getSuccessResult(map);
}
+
+ /**
+ * 销售员统计
+ * @param allOrderInfoRes
+ * @return
+ */
+ @GetMapping("/getInstituionListApi19")
+ public ResponseObject getInstituionListApi19(AllOrderInfoRes allOrderInfoRes,
+ @RequestParam(value = "page",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
+ Page page =new Page(pageNo,pageSize);
+ IPage