Hwt 2 лет назад
Родитель
Сommit
ac9b07cdd5

+ 7 - 4
smart/src/views/rechargeRecord/index.js

@@ -58,10 +58,13 @@ export default {
                     label: '充值时段',
                     prop: 'payTime'
                 },
-                // {
-                //     label: '收费金额',
-                //     prop: '11'
-                // },
+                {
+                    label: '收费金额',
+                    prop: 'amount',
+                    format(val) {
+                        return val / 100 + '元';
+                    }
+                },
                 {
                     label: '支付方式',
                     prop: 'payStatus',

+ 14 - 2
smart/src/views/vehicleInformation/setpPage/details.vue

@@ -45,6 +45,7 @@
               placeholder="请选择房间"
               clearable
               v-model="formDate.resDate"
+              @click.native='formDateResDate'
             >
               <el-option
                 v-for="(item,index) in room"
@@ -631,10 +632,21 @@ export default {
     };
   },
   methods: {
+    formDateResDate () {
+      // alert(1)
+      // this.formDate.resDate = ''
+      // this.formDate.id = '';
+      // this.formDate.idName = '';
+    },
     resDate (val) {
-      debugger
+      this.formDate.resDate = ''
+      this.formDate.id = '';
+      this.formDate.idName = '';
+      // debugger
+      this.formDate.resDate = val.label;
       this.formDate.id = val.residentId;
       this.formDate.idName = val.name
+      console.log(this.formDate)
     },
 
 
@@ -706,7 +718,7 @@ export default {
                 residentId: data.houseInfos[i].residentId,
               })
             }
-
+            debugger
             this.formDate.resDate = data.houseInfos[0].id;
             this.formDate.id = data.houseInfos[0].residentId;
             this.formDate.idName = data.houseInfos[i].roomNumber

+ 14 - 2
smart/src/views/vehicleInformation/setpPage/recharge.vue

@@ -188,11 +188,16 @@ export default {
       residentId: '',
       ruleId: '',
       ruleNamed: '',
-      credit: ''
+      credit: '',
+      rechargeDatesName: '',
     }
   },
   methods: {
     rechargeDates (item) {
+      debugger
+      if (item.name != undefined) {
+        this.rechargeDatesName = item.name;
+      }
       debugger
       this.rechargeDays = '';
       this.valueselect = '';
@@ -266,6 +271,10 @@ export default {
               label: data[i].ruleId,
               nameId: i
             })
+            if (data[i].ruleId == this.params.ruleId) {
+              debugger
+              this.rechargeDatesName = data[i].ruleName
+            }
 
           }
 
@@ -299,7 +308,8 @@ export default {
         validTo: this.timeValue2,
         platNo: this.fullCarNoStr,
         userId: this.residentId,
-        ruleName: '',
+        // ruleName: '',
+        ruleName: this.rechargeDatesName,
         credit: this.valueselectName,//充值月份
         payStatus: this.paymentMethod
       }).then(({ data, status, msg }) => {
@@ -333,6 +343,8 @@ export default {
 <style scoped>
 h3 {
     margin-bottom: 15px;
+    text-align: center !important;
+    font-size: 22px !important;
 }
 .el-col {
     margin-top: 10px !important;