Ver Fonte

船名航次修改

caojunjie há 4 anos atrás
pai
commit
a32d153d11

+ 3 - 4
src/views/kaihe/containerNews/boxDistributionStatistics/index.vue

@@ -62,14 +62,14 @@ export default {
     this.getList()
   },
   methods: {
+    //查询所有箱信息
     getList() {
       listCorps().then(res => {
-        console.log(res)
+        // console.log(res)
         this.list = res.rows
         for (let item in this.list){
           for(let li in this.list[item].boxAddressMessages){
             for (let i in this.list[item].boxAddressMessages[li].boxMessages){
-              console.log(this.list[item].haven)
               this.tableData.push({
                 haven: i==0&&li==0?this.list[item].haven:false,
                 number: i==0&&li==0?this.list[item].number:false,
@@ -82,18 +82,17 @@ export default {
                 fortyot: this.list[item].boxAddressMessages[li].boxMessages[i].fortyot,
                 fortytk: this.list[item].boxAddressMessages[li].boxMessages[i].fortytk,
                 opcTnStatus: this.list[item].boxAddressMessages[li].boxMessages[i].opcTnStatus,
-                teu: this.list[item].boxAddressMessages[li].boxMessages[i].teu,
                 twentyfr: this.list[item].boxAddressMessages[li].boxMessages[i].twentyfr,
                 twentygp: this.list[item].boxAddressMessages[li].boxMessages[i].twentygp,
                 twentyot: this.list[item].boxAddressMessages[li].boxMessages[i].twentyot,
                 twentyrf: this.list[item].boxAddressMessages[li].boxMessages[i].twentyrf,
                 twentytk: this.list[item].boxAddressMessages[li].boxMessages[i].twentytk,
                 unit: this.list[item].boxAddressMessages[li].boxMessages[i].unit,
+                teu: this.list[item].boxAddressMessages[li].boxMessages[i].teu
               })
             }
           }
         }
-        console.log(this.tableData)
       })
     },
   }

+ 4 - 1
src/views/kaihe/domesticTrade/myOrder/index.vue

@@ -280,6 +280,7 @@
                   size="small"
                   width="240px"
                   v-model="ship.fVslid"
+                  @change="voyageRemthods"
               >
                 <el-option
                     v-for="item in vesselOptions"
@@ -580,8 +581,9 @@ export default {
   },
   methods: {
     voyageRemthods() {
-      getVoyageName().then(response => {
+      getVoyageName({fPid:this.ship.fVslid}).then(response => {
         this.voyageOptions = response.rows
+        if (this.ship.fVslid) this.ship.fVoyid = ''
       })
     },
     //获取船名
@@ -765,6 +767,7 @@ export default {
         this.shipAllocation = true
         this.ship.fVoyid = this.selection[0].fVoyid
         this.ship.fVslid = this.selection[0].fVslid
+        // this.ship.fPid = this.selection[0].fVslid
       }else {
         this.ship.fCargoPlanning = 0
         this.ship.orderId = []