From f0cad0c5ea4778036452217b4704c6875dc246e3 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 18 十一月 2024 14:50:47 +0800 Subject: [PATCH] feat: 缴费记录 --- src/components/page/IndexXTYH.vue | 53 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 33 insertions(+), 20 deletions(-) diff --git a/src/components/page/IndexXTYH.vue b/src/components/page/IndexXTYH.vue index 6a5cb17..28bc3c7 100644 --- a/src/components/page/IndexXTYH.vue +++ b/src/components/page/IndexXTYH.vue @@ -221,7 +221,7 @@ var count = url.split('?').length-1; if(count >1){ //鑾峰彇鐢ㄦ埛淇℃伅鍚庤烦鍥炴潵鏈〉闈� let data = this.getCodeFromUrl(url) - // window.location.href = "http://192.168.0.8:8082/#/IndexXTYH39?code="+data.code+"&state=STATE&code2="+data.code2 + //window.location.href = "http://localhost:8082/#/IndexXTYH39?code="+data.code+"&state=STATE&code2="+data.code2 window.location.href = `http://hesuancj.cn/#/index2?code=${encodeURIComponent(data.code)}&state=STATE&code2=${encodeURIComponent(data.code2)}` return; } @@ -241,7 +241,7 @@ // duration:1000, // }); window.location.href = "http://hesuancj.cn/#/index2?code2="+cs.code //姝e紡 - // window.location.href = "http://192.168.0.8:8082/#/IndexXTYH39?code2="+cs.code //娴嬭瘯鐢ㄧ殑 + // window.location.href = "http://localhost:8082/#/IndexXTYH39?code2="+cs.code //娴嬭瘯鐢ㄧ殑 //window.location.href = "http://60.0.121.40:8889/#/IndexXTYH39?code2="+cs.code //娴嬭瘯鐢ㄧ殑 return; } @@ -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 //鍏ュ満淇℃伅 寮傚父鎻愮ず + 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.includes('鏃�')) { + if(this.statisticData.carNo !='_鏃燺' && this.statisticData.carNo!='鏃犵墝杞�') { this.tishiDialogVisiable2 = true } }else { @@ -389,12 +392,22 @@ } }, noCarOut(){ - if(this.oldCarNo == '鏃犺溅鐗�'){ + if(this.oldCarNo == '鏃犵墝杞�' || this.oldCarNo == '_鏃燺'){ if(this.carNo){ this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/car/outParkByPhone', {code2:this.code2,carNo:this.carNo}, res => { if(res.code===0){ this.statisticData = res.data; this.outParkId = this.statisticData.id; + this.isShowjiaofei = true + this.$message({ + message: '鏌ヨ鎴愬姛', + type: 'success', + }); + }else { + this.$message({ + message: res.message, + type: 'error', + }); } }) }else{ -- Gitblit v1.9.1