소스 검색

集装箱显示一条

zhangyuewww 3 년 전
부모
커밋
31d9992101
2개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 0
      src/views/tranManagement/tranManagementShippingArrangemen.vue
  2. 7 3
      src/views/tranManagement/tranManagementShippingLook.vue

+ 4 - 0
src/views/tranManagement/tranManagementShippingArrangemen.vue

@@ -498,6 +498,10 @@ export default {
         .then((response) => {
           this.deptBudgetList = response
           if (response.tranCarInfoList.length > 0) {
+            if(response.tranCarInfoList[0].shipType =='集装箱') {
+              this.deptBudgetList.tranCarInfoList=[this.deptBudgetList.tranCarInfoList[0]]
+
+            }
             // for (
             //   var i = 0;
             //   i < this.deptBudgetList.tranCarInfoList.length;

+ 7 - 3
src/views/tranManagement/tranManagementShippingLook.vue

@@ -180,9 +180,13 @@
           .toPromise()
           .then((response) => {
             this.deptBudgetList = response
-            this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
-            console.log(this.deptBudgetList.tranCarInfoList[0].driverPhone)
-            console.log(this.deptBudgetList.tranCarInfoList[1].driverPhone)
+            if(response.tranCarInfoList[0].shipType =='集装箱') {
+              this.deptBudgetList.tranCarInfoList=[this.deptBudgetList.tranCarInfoList[0]]
+
+            }else{
+               this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
+
+            }
           })
       },
       //返回按钮