From 7220683e68d6cdccd1a7358aee7824b37f2b8e98 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期三, 05 一月 2022 10:47:15 +0800
Subject: [PATCH] 车辆加油卡号

---
 src/views/your/area-manage/areaManage.vue                 |    1 +
 src/views/your/car-manage/carManage.vue                   |   13 +++++++++++++
 src/views/your/customerReceive-manage/customerReceive.vue |    5 ++---
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/views/your/area-manage/areaManage.vue b/src/views/your/area-manage/areaManage.vue
index 640243c..aa45a16 100644
--- a/src/views/your/area-manage/areaManage.vue
+++ b/src/views/your/area-manage/areaManage.vue
@@ -928,6 +928,7 @@
       let str = JSON.stringify(v);
       let roleInfo = JSON.parse(str);
       this.areaForm = roleInfo;
+      console.log(this.areaForm);
       this.roleModalVisible = true;
     },
     editEquipment(v) {
diff --git a/src/views/your/car-manage/carManage.vue b/src/views/your/car-manage/carManage.vue
index 2e08b84..aa41752 100644
--- a/src/views/your/car-manage/carManage.vue
+++ b/src/views/your/car-manage/carManage.vue
@@ -80,6 +80,9 @@
         <FormItem label="鐗岀収" prop="carNo">
           <Input v-model="carForm.carNo" />
         </FormItem>
+        <FormItem label="鍔犳补鍗″彿" prop="addOilCode">
+          <Input v-model="carForm.addOilCode" type="number"/>
+        </FormItem>
         <FormItem label="椹鹃┒浜�" prop="userId">
           <Select v-model="carForm.userId" filterable>
             <Option v-for="item in userList" :value="item.id" :key="item.id">{{ item.nickname }}</Option>
@@ -377,6 +380,12 @@
         {
           title: "璐疆骞翠唤",
           key: "buyYear",
+          minWidth: 120,
+          sortable: true,
+        },
+        {
+          title: "鍔犳补鍗″彿",
+          key: "addOilCode",
           minWidth: 120,
           sortable: true,
         },
@@ -750,6 +759,7 @@
                 this.$Message.success("鎿嶄綔鎴愬姛");
                 this.getDataList();
                 this.roleModalVisible = false;
+                this.carForm={};
               }
             });
           } else {
@@ -760,6 +770,7 @@
                 this.$Message.success("鎿嶄綔鎴愬姛");
                 this.getDataList();
                 this.roleModalVisible = false;
+                this.carForm={};
               }
             });
           }
@@ -780,6 +791,7 @@
                 this.getEquipmentList(this.carId);
                 this.addEquipmentVisible = false;
                 this.getEquipmentList(this.carId);
+                this.equipmentForm={};
               }
             });
           } else {
@@ -790,6 +802,7 @@
                 this.$Message.success("鎿嶄綔鎴愬姛");
                 this.getEquipmentList(this.carId);
                 this.addEquipmentVisible = false;
+                this.equipmentForm={};
               }
             });
           }
diff --git a/src/views/your/customerReceive-manage/customerReceive.vue b/src/views/your/customerReceive-manage/customerReceive.vue
index c304e1f..13419ff 100644
--- a/src/views/your/customerReceive-manage/customerReceive.vue
+++ b/src/views/your/customerReceive-manage/customerReceive.vue
@@ -522,7 +522,7 @@
       addOil() {
         this.getAllCar();
         this.modalType = 0;
-        this.modalTitle = "娣诲姞鍔犳补璁板綍";
+        this.modalTitle = "娣诲姞璁板綍";
         this.$refs.addOilForm.resetFields();
         delete this.addOilForm.id;
         this.roleModalVisible = true;
@@ -531,7 +531,7 @@
         this.getAllCar();
         this.addDate = v.addDate;
         this.modalType = 1;
-        this.modalTitle = "缂栬緫鍔犳补淇℃伅";
+        this.modalTitle = "缂栬緫淇℃伅";
         this.$refs.addOilForm.resetFields();
         // 杞崲null涓�""
         for (let attr in v) {
@@ -541,7 +541,6 @@
         }
         let str = JSON.stringify(v);
         let roleInfo = JSON.parse(str);
-
         this.addOilForm = roleInfo;
         this.roleModalVisible = true;
       },

--
Gitblit v1.9.1