Browse Source

修改运价管理起运港目的港调用接口

caojunjie 3 years ago
parent
commit
3ed7baed0a

+ 8 - 0
src/api/warehouseBusiness/shipping.js

@@ -8,6 +8,14 @@ export function checkCode(query) {
         params: query
         params: query
     })
     })
 }
 }
+//查询航线
+export function listRoute(query) {
+    return request({
+        url: '/shipping/address/selectPortDump',
+        method: 'get',
+        params: query
+    })
+}
 
 
 // 查询列表数据
 // 查询列表数据
 export function query(query) {
 export function query(query) {

+ 16 - 13
src/views/warehouse/Shipping/AddOrUpdate.vue

@@ -55,10 +55,10 @@
                 :disabled="formStatus"
                 :disabled="formStatus"
             >
             >
               <el-option
               <el-option
-                  v-for="(item, index) in polList"
-                  :key="index.dictValue"
-                  :label="item.dictLabel"
-                  :value="item.dictValue"
+                  v-for="(item, index) in podList"
+                  :key="index.fId"
+                  :label="item.fName"
+                  :value="item.fId"
               ></el-option>
               ></el-option>
             </el-select>
             </el-select>
           </el-form-item>
           </el-form-item>
@@ -76,9 +76,9 @@
             >
             >
               <el-option
               <el-option
                   v-for="(item, index) in podList"
                   v-for="(item, index) in podList"
-                  :key="index.dictValue"
-                  :label="item.dictLabel"
-                  :value="item.dictValue"
+                  :key="index.fId"
+                  :label="item.fName"
+                  :value="item.fId"
               ></el-option>
               ></el-option>
             </el-select>
             </el-select>
           </el-form-item>
           </el-form-item>
@@ -617,7 +617,7 @@ import {
   addSeaprice,
   addSeaprice,
   getForm,
   getForm,
   listCorpsList,
   listCorpsList,
-  shippingCompany
+  shippingCompany, listRoute
 } from "@/api/warehouseBusiness/shipping";
 } from "@/api/warehouseBusiness/shipping";
 import { listCorps } from "@/api/basicdata/corps";
 import { listCorps } from "@/api/basicdata/corps";
 import { listFees } from "@/api/basicdata/fees";
 import { listFees } from "@/api/basicdata/fees";
@@ -797,11 +797,14 @@ export default {
       console.log(response.data)
       console.log(response.data)
       this.statusList = response.data;
       this.statusList = response.data;
     });
     });
-    this.getDicts("port_start").then((response) => {
-      this.polList = response.data;
-    });
-    this.getDicts("port_end").then((response) => {
-      this.podList = response.data;
+    // this.getDicts("port_start").then((response) => {
+    //   this.polList = response.data;
+    // });
+    // this.getDicts("port_end").then((response) => {
+    //   this.podList = response.data;
+    // });
+    listRoute({}).then(response => {
+      this.podList = response.rows
     });
     });
     this.queryUser();
     this.queryUser();
     this.getRow();
     this.getRow();

+ 16 - 13
src/views/warehouse/Shipping/index.vue

@@ -73,10 +73,10 @@
                 style="width: 100%"
                 style="width: 100%"
               >
               >
                 <el-option
                 <el-option
-                  v-for="(item, index) in polList"
-                  :key="index.dictValue"
-                  :label="item.dictLabel"
-                  :value="item.dictValue"
+                    v-for="(item, index) in podList"
+                    :key="index.fId"
+                    :label="item.fName"
+                    :value="item.fId"
                 ></el-option>
                 ></el-option>
               </el-select>
               </el-select>
             </el-form-item>
             </el-form-item>
@@ -96,9 +96,9 @@
                   >
                   >
                     <el-option
                     <el-option
                       v-for="(item, index) in podList"
                       v-for="(item, index) in podList"
-                      :key="index.dictValue"
-                      :label="item.dictLabel"
-                      :value="item.dictValue"
+                      :key="index.fId"
+                      :label="item.fName"
+                      :value="item.fId"
                     ></el-option>
                     ></el-option>
                   </el-select>
                   </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -442,7 +442,7 @@
 
 
 <script>
 <script>
 import AddOrUpdate from "./AddOrUpdate.vue";
 import AddOrUpdate from "./AddOrUpdate.vue";
-import {listCorpsList, query, shippingCompany} from "@/api/warehouseBusiness/shipping";
+import {listCorpsList, query, shippingCompany,listRoute} from "@/api/warehouseBusiness/shipping";
 import { listCorps } from "@/api/basicdata/corps";
 import { listCorps } from "@/api/basicdata/corps";
 import { listWarehousesss } from "@/api/basicdata/warehouse";
 import { listWarehousesss } from "@/api/basicdata/warehouse";
 import { listGoods } from "@/api/basicdata/goods";
 import { listGoods } from "@/api/basicdata/goods";
@@ -599,11 +599,14 @@ export default {
     this.getDicts("data_status").then((response) => {
     this.getDicts("data_status").then((response) => {
       this.statusList = response.data;
       this.statusList = response.data;
     });
     });
-    this.getDicts("port_start").then((response) => {
-      this.polList = response.data;
-    });
-    this.getDicts("port_end").then((response) => {
-      this.podList = response.data;
+    // this.getDicts("port_start").then((response) => {
+    //   this.polList = response.data;
+    // });
+    // this.getDicts("port_end").then((response) => {
+    //   this.podList = response.data;
+    // });
+    listRoute({}).then(response => {
+      this.podList = response.rows
     });
     });
     this.getRow();
     this.getRow();
     this.getList();
     this.getList();