From 1618162f712fc414702bce924ff367397ff8ec1d Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期三, 08 一月 2025 08:49:11 +0800 Subject: [PATCH] 月卡 --- src/components/page/MonthFeePay.vue | 53 +++++++++++++++++++++++++++++------------------------ src/assets/js/ByUtils.js | 4 +++- 2 files changed, 32 insertions(+), 25 deletions(-) diff --git a/src/assets/js/ByUtils.js b/src/assets/js/ByUtils.js index c296143..bca4ed1 100644 --- a/src/assets/js/ByUtils.js +++ b/src/assets/js/ByUtils.js @@ -277,7 +277,9 @@ console.log(response) if (data && data.code==0) { callBackFunction(data); - } else { + } else if(data.code==1) { + callBackFunction(data); + }else { if(data.message=='-9999'){ vm.$router.push({'path': '/login'}); vm.$alert('浼氳瘽缁撴潫锛岃閲嶆柊鐧诲綍', {'title': '鎻愮ず', 'type': 'warning', 'center': true, 'showClose': false}); diff --git a/src/components/page/MonthFeePay.vue b/src/components/page/MonthFeePay.vue index 2e53812..9787191 100644 --- a/src/components/page/MonthFeePay.vue +++ b/src/components/page/MonthFeePay.vue @@ -6,7 +6,7 @@ <div class="weizhang-main-box"> <div class="weizhang-main-bootom"> <div class="weizhang-main-form"> - <el-form label-width="100px" :model="statisticData" ref="statisticData" :rules="rules" label-position="left"> + <el-form label-width="110px" :model="statisticData" ref="statisticData" :rules="rules" label-position="left"> <el-form-item label="杞︾墝鍙凤細" style="margin-left: 25px;" prop="carNo"> <el-input readonly @focus="isShow=true" v-model="statisticData.carNo" ></el-input> </el-form-item> @@ -169,27 +169,6 @@ pay(){ this.$refs.statisticData.validate((valid) => { if(valid) { - this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/monthFeePay/pay', this.statisticData, res => { - console.log(res,'res====') - if(res.code == 0){ - this.searchShow = true - this.activeIndex = '' //閲嶇疆 - this.money = null - this.compStartTime = '' - this.compEndTime = '' - //鏈煡璇㈠埌鏈堢エ锛屽彲姝e父缂磋垂 - if(res.data) { - this.startTime = res.data.startTime - this.endTime = res.data.endTime - }else { - this.startTime = '' - this.endTime = '' - } - }else { - - } - }) - this.getYuezuMoney() } }) @@ -199,12 +178,36 @@ parkId:this.statisticData.parkId, type:this.statisticData.allFlag } + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/whiteListRule/getByPark', params, res => { + console.log(res,'res====111') if(res.code == 0){ - this.yueZuObj = res.data + this.yueZuObj = res.data + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/monthFeePay/pay', this.statisticData, res => { + console.log(res,'res====') + if(res.code == 0){ + this.searchShow = true + this.activeIndex = '' //閲嶇疆 + this.money = null + this.compStartTime = '' + this.compEndTime = '' + //鏈煡璇㈠埌鏈堢エ锛屽彲姝e父缂磋垂 + if(res.data) { + this.startTime = res.data.startTime + this.endTime = res.data.endTime + }else { + this.startTime = '' + this.endTime = '' + } + }else { + + } + }) }else { this.searchShow = false + this.$message.error(res.msg) } + }) }, handleSelect(key) { @@ -307,7 +310,6 @@ changePark(val){ console.log(val,'鏀瑰彉鍋滆溅鍦�---') this.statisticData.parkId = val - this.pay() }, changeAll(){ @@ -328,6 +330,9 @@ height: 5.33vw /* 40/7.5 */; line-height: 5.33vw; } + .el-select{ + width: 100%; + } } .weizhang-main-bootom{ .el-input__inner{ -- Gitblit v1.9.1