| | |
| | | cs[cs_arr[i].split('=')[0]] = cs_arr[i].split('=')[1] |
| | | } |
| | | //this.outParkId = cs.code; |
| | | this.code2 = cs.code; |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/findByBarrierCode', {code:cs.code}, res => { |
| | | this.code2 = cs.code2; |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/findByBarrierCode', {code2:cs.code2}, res => { |
| | | this.statisticData = res.data; |
| | | this.outParkId = this.statisticData.id; |
| | | this.status3 = this.statisticData.status3; |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | pay(){ |
| | | this.payFlag = true; |
| | | if(this.status3==1){ |
| | | this.$message({ |
| | | message: '您有违章未处理,请先处理或联系停车场管理人员', |
| | | type: 'error', |
| | | duration:3000, |
| | | }); |
| | | return; |
| | | } |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/api/park', {id:this.outParkId}, res => { |
| | | window.location.href = res.msg |
| | | this.showFlag = false; |
| | | }) |
| | | }, |
| | | noCarOut(){ |
| | | if(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; |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$message({ |
| | | message: '请输入手机号', |
| | | type: 'error', |
| | | }); |
| | | } |
| | | }else { |
| | | this.$message({ |
| | | message: '非法输入', |
| | | type: 'error', |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | } |
| | | } |
| | | |