wangzhuo 1 年之前
父節點
當前提交
81fee364af

+ 38 - 10
src/views/SpecialTrade/dispatchingCars/detailPage.vue

@@ -247,6 +247,7 @@
         </basic-container>
         <containerTitle title="车辆信息"></containerTitle>
         <basic-container>
+          {{entrustList[0].plateNo}}
             <avue-crud
                 :data="entrustList"
                 @selection-change="selectionChange"
@@ -1011,16 +1012,19 @@ export default {
                         res: "data.records"
                     },
                       change: (data) => {
-
-                        if (JSON.parse(localStorage.getItem('saber-tenantId')).content == 119111) {
+                        // if (JSON.parse(localStorage.getItem('saber-tenantId')).content == 119111) {
+                        console.log("a")
                           fleetListS(data.row.fleetId).then(res => {
                             this.driverIddata = res.data.data
                           })
-                        } else {
-                          fleetListT().then(res => {
-                            this.driverIddata = res.data.data
-                          })
-                        }
+                        // } else {
+                        //   fleetListT().then(res => {
+                        //     this.driverIddata = res.data.data
+                        //   })
+                        // }
+
+                        this.entrustList[data.index].tel = null
+                        this.entrustList[data.index].driverName = null
                       }
                 }, {
                     label: '车号',
@@ -1034,6 +1038,8 @@ export default {
                         label: "plateNo",
                         value: "plateNo"
                     },
+                    change: (data) => {
+                    }
                 }, {
                     label: '司机',
                     width: 115,
@@ -1606,7 +1612,7 @@ export default {
                 }, {
                   label: '备注',
                   cell: true,
-                  prop: 'remark'
+                  prop: 'remarks'
                 }
                 ]
             },
@@ -2151,13 +2157,13 @@ export default {
             })
         },
       driverChange(row) {
-        if (JSON.parse(localStorage.getItem('saber-tenantId')).content == 119111) {
+        // if (JSON.parse(localStorage.getItem('saber-tenantId')).content == 119111) {
           this.driverIddata.forEach((driver) => {
             if (driver.name === row.driverName) {
               row.tel = driver.tel
             }
           })
-        }
+        // }
       },
         //刷新数据
         refreshData() {
@@ -2220,7 +2226,29 @@ export default {
                     this.$message.success("保存成功");
                 })
             }
+          console.log(row.plateNo)
+          if (row.fleetId != null) {
+            console.log(1)
+            fleetListS(row.fleetId).then(res => {
+              this.driverIddata = res.data.data
+            })
+          }
+
+
+          this.entrustOptionTwoT.column.forEach(item => {
+            if (item.prop === 'plateNo') {
+              item.cell = true
+              item.value = row.plateNo
+            }
+            if (item.prop === 'tel') {
+              item.cell = true
+            }
+          })
+
             this.$refs.crudBoxTwo.rowCell(row, index)
+
+          console.log("row.plateNo")
+          console.log(row.plateNo)
         },
         //调度并且派车
         rowSaveThree(row, index, done, loading) {

+ 2 - 2
src/views/SpecialTrade/motorcadeDriver/index.vue

@@ -810,13 +810,13 @@ export default {
       })
     },
     driverChange(row) {
-      if (JSON.parse(localStorage.getItem('saber-tenantId')).content == 119111) {
+      // if (JSON.parse(localStorage.getItem('saber-tenantId')).content == 119111) {
         this.driverIddata.forEach((driver) => {
           if (driver.id === row.driverId) {
             row.tel = driver.tel
           }
         })
-      }
+      // }
     },
     //变更信息
     changeFleetT(row, index) {

+ 8 - 0
src/views/SpecialTrade/placeAnOrder/detailPage.vue

@@ -1534,6 +1534,10 @@ export default {
             label: "dictValue",
             value: "dictKey"
           },
+        }, {
+          label: '备注',
+          cell: true,
+          prop: 'remarks'
         }
         ]
       },
@@ -1615,6 +1619,10 @@ export default {
             label: "dictValue",
             value: "dictKey"
           }
+        }, {
+          label: '备注',
+          cell: true,
+          prop: 'remarks'
         }]
       },
       oldgoodsForm:{},