Browse Source

修改车队

qukaidi 4 years ago
parent
commit
b9af1d6b62

+ 4 - 0
src/components/Breadcrumb/index.vue

@@ -80,6 +80,10 @@ export default {
   font-size: 14px;
   line-height: 50px;
   margin-left: 8px;
+  .el-breadcrumb__inner.is-link,
+  .el-breadcrumb__inner a {
+    color: #fff;
+  }
   .no-redirect {
     color: #fff;
     cursor: text;

+ 10 - 4
src/views/fleet/plans/AddOrUpdate.vue

@@ -1764,15 +1764,20 @@ export default {
           this.msgSuccess("成功提交");
           if (response.code == 200) {
             this.$set(row, "billStatus", 6);
-            this.$set(row, "disabled", true);
+            // this.$set(row, "disabled", true);
+             this.$set(row, "id", response.data.plan.id);
+            this.$set(row, "orgId", response.data.plan.orgId);
+            this.$parent.getSave2(response.data.cntrs);
           }
         });
       } else if (row.billStatus != 6) {
         singleaddFtmsorderbillsplans(formData).then((response) => {
           this.msgSuccess("成功提交");
           if (response.code == 200) {
-            this.$set(row, "id", response.data.id);
-            this.$set(row, "billStatus", response.data.billStatus);
+            this.$set(row, "billStatus", 6);
+             this.$set(row, "id", response.data.plan.id);
+            this.$set(row, "orgId", response.data.plan.orgId);
+            this.$parent.getSave2(response.data.cntrs);
           }
         });
       } else {
@@ -1796,7 +1801,8 @@ export default {
         revokeFtmsorderbillsplans(row).then((response) => {
           if (response.code == 200) {
             this.msgSuccess("成功撤回");
-            this.$set(row, "billStatus", response.data.billStatus);
+            this.$set(row, "billStatus", 3);
+            this.$parent.getSave2(responsed.data.cntrs);
           }
         });
       } else {

+ 13 - 0
src/views/fleet/plans/index.vue

@@ -940,6 +940,19 @@ export default {
       }
       this.schedulingList = data.data.plans;
     },
+    getSave2(data) {
+      if (data.length != 0) {
+        data.map((e) => {
+          if (e.cntrId) {
+            e.cntrId = e.cntrId.toString();
+          }
+          if (e.priceType) {
+            e.priceType = e.priceType.toString();
+          }
+        });
+      }
+      this.planList = data;
+    },
     /** 删除按钮操作 */
     handleDelete(row) {
       const ids = row.id || this.ids;

+ 1 - 1
src/views/fleet/scheduling/AddOrUpdate.vue

@@ -1732,7 +1732,7 @@ export default {
             this.$set(row, "disabled", true);
             this.$set(row, "id", response.data.plan.id);
             this.$set(row, "orgId", response.data.plan.orgId);
-            this.$parent.getSave2(responsed.data.cntrs);
+            this.$parent.getSave2(response.data.cntrs);
           }
         });
       } else if (row.billStatus != 6) {

+ 0 - 12
src/views/fleet/scheduling/index.vue

@@ -915,17 +915,6 @@ export default {
       this.schedulingList = data.data;
     },
     getSave2(data) {
-      console.log(data);
-      // if (data.data.length != 0) {
-      //   data.data.cntrId = data.data.map((e) => {
-      //     if (e.cntrId) {
-      //       e.cntrId = e.cntrId.toString();
-      //     }
-      //     if (e.billStatus == 6 || e.billStatus == 3) {
-      //       e.disabled = true;
-      //     }
-      //   });
-      // }
       if (data.length != 0) {
         data.map((e) => {
           if (e.cntrId) {
@@ -937,7 +926,6 @@ export default {
         });
       }
       this.planList = data;
-      console.log(this.planList)
     },
     /** 导出按钮操作 */
     handleExport() {