Browse Source

提交陆运

caojunjie 3 years ago
parent
commit
4d06a8898a

+ 4 - 3
src/views/landTransportation/motorcadeDriver/index.vue

@@ -1,5 +1,6 @@
 <template>
   <div class="adds">
+    {{goodsList}}
     <basic-container>
       <div class="home-container">
         <div style="display: flex;justify-content: center;">
@@ -439,7 +440,7 @@ export default {
             index: 8,
             prop: 'driverId',
             type: 'select',
-            dicUrl: "/api/blade-client/land-driver/driver-list?vehicleId={{key}}",
+            dicUrl: "/api/blade-client/land-driver/driver-list?plateNo={{key}}",
             props: {
               label: "name",
               value: "id"
@@ -684,10 +685,10 @@ export default {
   async created() {
     this.entrustOptionTwoT = await this.getColumnData(this.getColumnName(87), this.optionList);
     this.key++
-    this.findObject(this.entrustOptionTwoT.column, "vehicleId").change = (data) => {
+    this.findObject(this.entrustOptionTwoT.column, "plateNo").change = (data) => {
       fleetList().then(res => {
         for (let item in res.data.data) {
-          if (data.value === res.data.data[item].id) {
+          if (data.value === res.data.data[item].plateNo) {
             this.goodsList[data.index].driverId = res.data.data[item].driverId
             this.goodsList[data.index].driverName = res.data.data[item].driverName
             this.goodsList[data.index].tel = res.data.data[item].tel

+ 8 - 4
src/views/landTransportation/placeAnOrder/detailPage.vue

@@ -1808,11 +1808,15 @@ export default {
     },
     //选择地址客户带出地址
     withAddress(row, scope) {
-      this.tableData[scope.$index].contacts = row.attn
-      this.tableData[scope.$index].tel = row.tel
-      this.tableData[scope.$index].address = row.storageAddr
+      this.$set(this.tableData[scope.$index],'contacts',row.attn)
+      this.$set(this.tableData[scope.$index],'tel',row.tel)
+      this.$set(this.tableData[scope.$index],'address',row.storageAddr)
+      // this.tableData[scope.$index].contacts = row.attn
+      // this.tableData[scope.$index].tel = row.tel
+      // this.tableData[scope.$index].address = row.storageAddr
       if (!scope.row.key) scope.row.key = 0
-      this.tableData[scope.$index].corpName = row.cname
+      this.$set(this.tableData[scope.$index],'corpName',row.cname)
+      // this.tableData[scope.$index].corpName = row.cname
       if (row.belongtoarea) {
         addressList(row.belongtoarea.split(',')[0]).then(res => {
           this.tableData[scope.$index].region = [res.data.data.provinceCode, res.data.data.parentId, res.data.data.districtCode]