From d435de943589eb60a76ca0844efe2aa96cb68a3c Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 12 十一月 2024 09:46:52 +0800
Subject: [PATCH] feat: 统计日报表
---
src/components/page/IndexXTYH.vue | 50 +++++++++++++++++++++++++++++++-------------------
1 files changed, 31 insertions(+), 19 deletions(-)
diff --git a/src/components/page/IndexXTYH.vue b/src/components/page/IndexXTYH.vue
index 98f676c..1e80da9 100644
--- a/src/components/page/IndexXTYH.vue
+++ b/src/components/page/IndexXTYH.vue
@@ -265,26 +265,29 @@
this.dataLoading = false
this.payFlag = false
if(!this.statisticData.enterTime) { //娌℃湁鍏ュ満
- this.isShowjiaofei = false
- this.pipaiCarNumShow = true //鍖归厤鍖哄煙鏄剧ず
- this.$byutil.getData(this,this.$systemconfig.basePath + '/ffzf/outpark/getLikeCar',{outParkId:this.outParkId},res => {
- if(res.code == 0) {
- if(res.data.length > 0) {
- this.moreCarNumData = res.data.map(item => {
- return {
- ...item,
- createTime: this.$moment(item.createTime).format('YYYY-MM-DD HH:mm:ss')
- }
- })
- }else {
- this.tishiDialogVisiable = true //鍏ュ満淇℃伅 寮傚父鎻愮ず
- }
- }
- })
-
- }else if(this.statisticData.enterTime && (!this.statisticData.price || this.statisticData.price == 0)) { //閲戦涓�0
- if(this.statisticData.carNo !='_鏃燺' && this.statisticData.carNo!='鏃犺溅鐗�') {
+ if(this.statisticData.carNo =='_鏃燺' || this.statisticData.carNo=='鏃犺溅鐗�'){
this.isShowjiaofei = false
+ }else {
+ this.isShowjiaofei = false
+ this.pipaiCarNumShow = true //鍖归厤鍖哄煙鏄剧ず
+ this.$byutil.getData(this,this.$systemconfig.basePath + '/ffzf/outpark/getLikeCar',{outParkId:this.outParkId},res => {
+ if(res.code == 0) {
+ if(res.data.length > 0) {
+ this.moreCarNumData = res.data.map(item => {
+ return {
+ ...item,
+ createTime: this.$moment(item.createTime).format('YYYY-MM-DD HH:mm:ss')
+ }
+ })
+ }else {
+ this.tishiDialogVisiable = true //鍏ュ満淇℃伅 寮傚父鎻愮ず
+ }
+ }
+ })
+ }
+ }else if(this.statisticData.enterTime && (!this.statisticData.price || this.statisticData.price == 0)) { //閲戦涓�0
+ this.isShowjiaofei = false
+ if(this.statisticData.carNo !='_鏃燺' && this.statisticData.carNo!='鏃犺溅鐗�') {
this.tishiDialogVisiable2 = true
}
}else {
@@ -395,6 +398,15 @@
if(res.code===0){
this.statisticData = res.data;
this.outParkId = this.statisticData.id;
+ this.$message({
+ message: '鏌ヨ鎴愬姛',
+ type: 'success',
+ });
+ }else {
+ this.$message({
+ message: res.message,
+ type: 'error',
+ });
}
})
}else{
--
Gitblit v1.9.1