Tiroble 3 rokov pred
rodič
commit
9f8f3f40e0

+ 2 - 4
build/utils.js

@@ -15,10 +15,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 // ['index','appoint','configManager','homepage',''inward,'queue','RMS','sale','serviceManager','SporadicManage'
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
-
- // let devModules = ['index','WMS']
- let devModules = ['all']
-// let devModules = ['index','statisticalReport','appoint','sale','RMS','TMS'];
+let devModules = ['all']
+// let devModules = ['index','TMS','sale'];
 // let devModules = ['index','appoint','WMS'];
 // let devModules = ['index','inward','SporadicManage']
 // let devModules = ['index','sale','RMS']

+ 1 - 0
src/views/TMS/components/domesticMine/approveWagonPleaseEdit.vue

@@ -1,6 +1,7 @@
 <template>
   <!-- 修改批车作业页面 -->
   <div class="contractDetails">
+    <page-title>返回</page-title>
     <div class="form">
       <div class="form_box">
         <dil-form :formId="140" v-model="form1"></dil-form>

+ 20 - 3
src/views/TMS/components/domesticMine/wagonLoadAdd.vue

@@ -2,9 +2,8 @@
   <!-- 添加车皮装车实绩 -->
   <div class="addWagonLoad">
     <page-title>新增</page-title>
-    <el-divider content-position="left">车皮装车实绩</el-divider>
     <div class="cp">
-      <span>车皮号:</span>
+      <span style="width:80px">车皮号:</span>
       <el-input
         placeholder="请输入内容"
         v-model="input"
@@ -42,6 +41,11 @@
       <el-input v-model="supplierName" disabled> </el-input>
       <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
     </div>
+    <div class="forwardingUnit from" v-if="matching">
+      <span class="text">卸货点:</span>
+      <el-input v-model="unloadPointName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(3)">浏览</el-button>
+    </div>
     <div class="remark from" v-if="matching">
       <span class="text">船名/备注:</span>
       <el-input
@@ -101,6 +105,12 @@
           @radio-change="currentRadioChange2"
         ></dilTable>
       </div>
+       <div v-show="a == 3">
+        <dilTable
+          v-bind.sync="unloadPoint"
+          @radio-change="currentRadioChange3"
+        ></dilTable>
+      </div>
     </el-drawer>
   </div>
 </template>
@@ -133,6 +143,8 @@ export default {
       supplierId: null,
       //物资id
       materialId: null,
+      unloadPointName:null,
+      unloadPointId:null,
       //是否需要打开模态窗口
       drawer: false,
       a: 1,
@@ -183,6 +195,10 @@ export default {
         this.getPurchaseOrderNo();
       }
     },
+    currentRadioChange3(selection) {
+      this.unloadPointId = selection.warehouseId;
+      this.unloadPointName = selection.warehouseName;
+    },
     ondrawer(num) {
       this.drawer = true;
       this.a = num;
@@ -239,7 +255,7 @@ export default {
           this.materialId +
           "&index=" +
           this.inputText;
-      } else if (a == 4) {
+      } else if (a == 3) {
         this.unloadPoint.requestUrl =
           "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.inputText;
       }
@@ -447,6 +463,7 @@ export default {
     display: flex;
     justify-content: center;
     align-items: center;
+    margin-left: 160px;
     .text {
       width: 8.75rem;
     }

+ 105 - 3
src/views/TMS/components/domesticMine/wagonPleaseAdd.vue

@@ -31,6 +31,38 @@
           </el-autocomplete>
         </el-form-item>
       </el-form>
+      <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:525px;">
+        <el-form-item label="发站">
+          <el-autocomplete
+            class="inline-input"
+            v-model="sendStation"
+            :fetch-suggestions="querySearchSendStation"
+            placeholder="请输入发站名称"
+            :trigger-on-focus="false"
+            @select="handleSelectSendStation"
+          >
+            <template slot-scope="{ item }">
+              <div class="name">{{ item.arrivalName }}</div>
+            </template>
+          </el-autocomplete>
+        </el-form-item>
+      </el-form>
+      <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:525px;">
+        <el-form-item label="到站">
+          <el-autocomplete
+            class="inline-input"
+            v-model="toTheStation"
+            :fetch-suggestions="querySearchToTheStation"
+            placeholder="请输入到站名称"
+            :trigger-on-focus="false"
+            @select="handleSelectToTheStation"
+          >
+            <template slot-scope="{ item }">
+              <div class="name">{{ item.arrivalName }}</div>
+            </template>
+          </el-autocomplete>
+        </el-form-item>
+      </el-form>
     </div>
     <div class="trainTransport">
       <!-- 确定和取消 -->
@@ -55,6 +87,10 @@ export default {
       supplierId: null,
       supplierName: "",
       stateSupplier: "",
+      sendStationId:null,
+      toTheStationId:1,
+      sendStation:null,
+      toTheStation:"达州站"
     };
   },
   mounted() {
@@ -69,6 +105,72 @@ export default {
     handleCheckedCitiesChange(value) {
       console.log(value);
     },
+    //发站弹出层
+    handleSelectSendStation(item) {
+      this.sendStationId = item.arrivalId;
+      this.sendStation = item.arrivalName;
+    },
+    //以下是发站边输边查搜索
+    querySearchSendStation(queryString, cb) {
+      this.axios
+        .get("/api/v1/uc/getArrivalByLike?index=" + this.sendStation)
+        .then((res) => {
+          if (res.data.code == "200") {
+            var restaurantsSupplier = res.data.data;
+            console.log(restaurantsSupplier)
+            var results = queryString
+              ? restaurantsSupplier.filter(
+                  this.createFilterSendStation(queryString)
+                )
+              : restaurantsSupplier;
+            // 调用 callback 返回建议列表的数据
+            cb(results);
+          }
+        });
+    },
+    //发站
+    createFilterSendStation(queryString) {
+      return (restaurantsSupplier) => {
+        return (
+          restaurantsSupplier.arrivalName
+            .toLowerCase()
+            .indexOf(queryString.toLowerCase()) > -1
+        );
+      };
+    },
+    //到站弹出层
+    handleSelectToTheStation(item) {
+      this.toTheStationId = item.arrivalId;
+      this.toTheStation = item.arrivalName;
+    },
+    //以下是到站边输边查搜索
+    querySearchToTheStation(queryString, cb) {
+      this.axios
+        .get("/api/v1/uc/getArrivalByLike?index=" + this.toTheStation)
+        .then((res) => {
+          if (res.data.code == "200") {
+            var restaurantsSupplier = res.data.data;
+            console.log(restaurantsSupplier)
+            var results = queryString
+              ? restaurantsSupplier.filter(
+                  this.createFilterToTheStation(queryString)
+                )
+              : restaurantsSupplier;
+            // 调用 callback 返回建议列表的数据
+            cb(results);
+          }
+        });
+    },
+    //到站
+    createFilterToTheStation(queryString) {
+      return (restaurantsSupplier) => {
+        return (
+          restaurantsSupplier.arrivalName
+            .toLowerCase()
+            .indexOf(queryString.toLowerCase()) > -1
+        );
+      };
+    },
     //发货单位弹出层
     handleSelectSupplier(item) {
       this.supplierId = item.supplierId;
@@ -110,8 +212,8 @@ export default {
         resultPlanDate: sjTime(this.form1.resultPlanDate),
         resultCategory: this.form1.resultCategory,
         supplierId: this.supplierId,
-        sendStationId: this.form1.sendStationId,
-        toTheStationId: this.form1.toTheStationId,
+        sendStationId: this.sendStationId,
+        toTheStationId: this.toTheStationId,
         resultPleaseNumber: this.form1.resultPleaseNumber,
         userId: getCookie("orgCode"),
         resultType: 3,
@@ -141,11 +243,11 @@ export default {
         this.axios
           .post("/api/v1/tms/addWagonPlease", tmstrainPleaseApproveResult)
           .then(() => {
+            this.$router.go(-1);
             this.$message({
               type: "success",
               message: "新增成功!",
             });
-            this.$router.go(-1);
           });
     },
   },

+ 1 - 0
src/views/TMS/components/domesticMine/wagonPleaseEdit.vue

@@ -1,6 +1,7 @@
 <template>
   <!-- 修改请车作业页面 -->
   <div class="contractDetails">
+    <page-title>返回</page-title>
       <div class="form">
         <div class="form_box">
           <dil-form :formId="117" v-model="form1"></dil-form>

+ 6 - 2
src/views/TMS/components/domesticMine/wagonPleaseMine.vue

@@ -69,6 +69,10 @@ export default {
     };
   },
   methods: {
+    getRequestUrl(){
+      this.option1.requestUrl = "/api/v1/tms/getAllWagonPlease?apiId=57&status=0&resultType=3&i=" + new Date(),
+      this.option2.requestUrl = "/api/v1/tms/getAllWagonPlease?apiId=57&status=1&resultType=3&i=" + new Date()
+    },
     onclick() {
       if(this.activeName == "first"){
         this.option1.requestUrl = "/api/v1/tms/getAllWagonPlease?apiId=57&status=0&resultType=3&con=" +this.input;
@@ -92,7 +96,7 @@ export default {
           this.axios
             .post("/api/v1/tms/deleteApproveWagonPlease/" + resultId)
             .then(() => {
-              this.$router.go(0);
+              this.getRequestUrl()
             });
         })
         .catch(() => {
@@ -118,7 +122,7 @@ export default {
           this.axios
             .post("/api/v1/tms/sendWagonPlease/" + resultId)
             .then(() => {
-              this.$router.go(0);
+              this.getRequestUrl()
             });
         })
         .catch(() => {

+ 1 - 2
src/views/TMS/components/domesticMine/wagonUnLoadAdd.vue

@@ -27,8 +27,7 @@
 </template>
 <script>
 import PageTitle from "@/components/Page/Title";
-
-import { sjTime, isNumber } from "@/utils/sharedJsFile";
+import { sjTime } from "@/utils/sharedJsFile";
 import { getCookie } from "@/utils/util.js";
 export default {
   components: { PageTitle },

+ 1 - 0
src/views/TMS/components/domesticMine/wagonUnLoadEdit.vue

@@ -1,6 +1,7 @@
 <template>
   <!-- 修改车皮装车实绩 -->
   <div id="contractDetails">
+    
       <div class="form">
         <div class="form_box">
           <dil-form :formId="118" v-model="form1"></dil-form>

+ 1 - 1
src/views/TMS/components/importedEmergency/addWagonLoadEmergency.vue

@@ -4,7 +4,7 @@
     <page-title>新增</page-title>
  
     <div class="cp">
-      <span>车皮号:</span>
+      <span style="width:80px">车皮号:</span>
       <el-input
         placeholder="请输入内容"
         v-model="input"

+ 80 - 1
src/views/TMS/components/importedFuel/transportReserveRan.vue

@@ -15,6 +15,22 @@
       <el-button type="primary" class="btn" @click="insertClick">
         <i class="el-icon-plus"></i>新增
       </el-button>
+      <el-input
+        class="input"
+        placeholder="请从表格复制采购订单号"
+        v-model="inputPurOrder"
+        clearable
+        v-if="activeName == 'second'"
+      >
+      </el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="closePurOrder"
+        v-if="activeName == 'second'"
+      >
+        关闭一车多趟
+      </el-button>
       <el-button
         type="primary"
         class="btn"
@@ -24,6 +40,33 @@
         <i class="el-icon-plus"></i>下发
       </el-button>
     </div>
+    <el-dialog
+      title="提醒"
+      :visible.sync="dialogVisible"
+      width="30%"
+    >
+      <div v-if="this.isMoreTrips != 1" style="color:red">
+        <span>该订单不是一车多趟的订单</span>
+      </div>
+      <div>
+        <span>采购订单号:</span>
+        <span>{{inputPurOrder}}</span>
+      </div>
+      <div>
+        <span>发货单位:</span>
+        <span>{{supplierName}}</span>
+      </div>
+      <div>
+        <span>物资名称:</span>
+        <span>{{materialName}}</span>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="closePurOrder1" v-if="this.isMoreTrips == 1"
+          >确 定</el-button
+        >
+      </span>
+    </el-dialog>
     <el-tabs v-model="activeName">
       <!-- 未下发 -->
       <el-tab-pane label="未下发" name="first">
@@ -68,7 +111,7 @@
       </el-tab-pane>
       <!-- 已下发 -->
       <el-tab-pane label="已下发" name="second">
-        <dilTable v-bind.sync="option2"> </dilTable>
+        <dilTable v-bind.sync="option2" @func="func"> </dilTable>
       </el-tab-pane>
     </el-tabs>
   </div>
@@ -93,6 +136,12 @@ export default {
         // 表格请求数据的地址
         requestUrl: "",
       },
+      purOrderList: [],
+      isMoreTrips:null,
+      dialogVisible: false,
+      materialName: null,
+      supplierName: null,
+      inputPurOrder:null,
     };
   },
   created() {
@@ -165,6 +214,36 @@ export default {
         }
       }
     },
+    closePurOrder() {
+      if(this.inputPurOrder == null){
+        this.$message.warning("请输入需要关闭一车多趟的采购订单号")
+        return
+      }
+      this.purOrderList.forEach((e) => {
+        if (e.purchaseOrderNo == this.inputPurOrder) {
+          this.materialName = e.materialName;
+          this.supplierName = e.supplierName;
+          this.isMoreTrips = e.isMoreTrips
+        }
+      });
+      console.log(this.isMoreTrips)
+      this.dialogVisible = true
+    },
+    closePurOrder1(){
+      this.axios.post("/api/v1/bp/closePurOrderMoreTrips?purchaseOrderNo=" + this.inputPurOrder).then((res) =>{
+        console.log(res)
+        if(res.data.code == '200'){
+          this.$message.success("关闭成功")
+        }else{
+          this.$message.error(res.data.data)
+        }
+      })
+      this.dialogVisible = false
+    },
+    func(res) {
+      this.purOrderList = res.list;
+      console.log(res.list);
+    },
     selectionChange(selection) {
       this.mapList = selection;
     },

+ 124 - 37
src/views/TMS/components/importedIngredients/transportReserveFu.vue

@@ -15,6 +15,22 @@
       <el-button type="primary" class="btn" @click="insertClick">
         <i class="el-icon-plus"></i>新增
       </el-button>
+      <el-input
+        class="input"
+        placeholder="请从表格复制采购订单号"
+        v-model="inputPurOrder"
+        clearable
+        v-if="activeName == 'second'"
+      >
+      </el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="closePurOrder"
+        v-if="activeName == 'second'"
+      >
+        关闭一车多趟
+      </el-button>
       <el-button
         type="primary"
         class="btn"
@@ -24,6 +40,33 @@
         <i class="el-icon-plus"></i>下发
       </el-button>
     </div>
+    <el-dialog
+      title="提醒"
+      :visible.sync="dialogVisible"
+      width="30%"
+    >
+      <div v-if="this.isMoreTrips != 1" style="color:red">
+        <span>该订单不是一车多趟的订单</span>
+      </div>
+      <div>
+        <span>采购订单号:</span>
+        <span>{{inputPurOrder}}</span>
+      </div>
+      <div>
+        <span>发货单位:</span>
+        <span>{{supplierName}}</span>
+      </div>
+      <div>
+        <span>物资名称:</span>
+        <span>{{materialName}}</span>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="closePurOrder1" v-if="this.isMoreTrips == 1"
+          >确 定</el-button
+        >
+      </span>
+    </el-dialog>
     <el-tabs v-model="activeName" tab-click="handleClick">
       <!-- 未下发 -->
       <el-tab-pane label="未下发" name="first">
@@ -68,7 +111,7 @@
       </el-tab-pane>
       <!-- 已下发 -->
       <el-tab-pane label="已下发" name="second">
-        <dilTable v-bind.sync="option2"> </dilTable>
+        <dilTable v-bind.sync="option2" @func="func"> </dilTable>
       </el-tab-pane>
     </el-tabs>
   </div>
@@ -83,16 +126,23 @@ export default {
       input: "",
       Time: "",
       activeName: "first",
+      dialogVisible: false,
+      materialName: null,
+      supplierName: null,
+      inputPurOrder:null,
       option1: {
         // 表格请求数据的地址
         requestUrl: "",
         selectionType: "select",
         mapList: [],
+        
       },
+      isMoreTrips:null,
       option2: {
         // 表格请求数据的地址
-        requestUrl: "",
+        requestUrl: ""
       },
+      purOrderList: []
     };
   },
   created() {
@@ -114,26 +164,34 @@ export default {
     }
   },
   methods: {
-    handleClick(){
-      this.getRequestUrl()
+    handleClick() {
+      this.getRequestUrl();
     },
-    getRequestUrl(){
-        //判断是否是承运商
-    if (getCookie("orgCode") == "chengyunshang") {
-      this.option1.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
-        getCookie("userId") + "&i=" + new Date();
-      this.option2.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-        getCookie("userId") + "&i=" + new Date();
-    } else {
-      this.option1.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
-        null + "&i=" + new Date();
-      this.option2.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-        null + "&i=" + new Date();
-    }
+    getRequestUrl() {
+      //判断是否是承运商
+      if (getCookie("orgCode") == "chengyunshang") {
+        this.option1.requestUrl =
+          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
+          getCookie("userId") +
+          "&i=" +
+          new Date();
+        this.option2.requestUrl =
+          "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
+          getCookie("userId") +
+          "&i=" +
+          new Date();
+      } else {
+        this.option1.requestUrl =
+          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
+          null +
+          "&i=" +
+          new Date();
+        this.option2.requestUrl =
+          "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
+          null +
+          "&i=" +
+          new Date();
+      }
     },
     onclick() {
       if (this.activeName == "first") {
@@ -171,14 +229,43 @@ export default {
     selectionChange(selection) {
       this.mapList = selection;
     },
+    closePurOrder() {
+      if(this.inputPurOrder == null){
+        this.$message.warning("请输入需要关闭一车多趟的采购订单号")
+        return
+      }
+      this.purOrderList.forEach(e => {
+        if (e.purchaseOrderNo == this.inputPurOrder) {
+          this.materialName = e.materialName;
+          this.supplierName = e.supplierName;
+          this.isMoreTrips = e.isMoreTrips
+        }
+      });
+      this.dialogVisible = true
+    },
+    closePurOrder1(){
+      this.axios.post("/api/v1/bp/closePurOrderMoreTrips?purchaseOrderNo=" + this.inputPurOrder).then((res) =>{
+        console.log(res)
+        if(res.data.code == '200'){
+          this.$message.success("关闭成功")
+        }else{
+          this.$message.error(res.data.data)
+        }
+      })
+      this.dialogVisible = false
+    },
+    func(res) {
+      this.purOrderList = res.list;
+      console.log(res.list);
+    },
     issue() {
       let mapvalue = {
-        mapList: this.mapList,
+        mapList: this.mapList
       };
       this.axios.post("/api/v1/oms/dispatchOrder", mapvalue).then(() => {
         this.$message({
           type: "success",
-          message: "下发成功!",
+          message: "下发成功!"
         });
         this.option1.requestUrl =
           "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&i=" +
@@ -188,27 +275,27 @@ export default {
     // 下发
     sendClick(orderId) {
       let mapvalue = {
-        mapList: [{ orderId: orderId }],
+        mapList: [{ orderId: orderId }]
       };
       this.$confirm("是否下发", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
-        center: true,
+        center: true
       })
         .then(() => {
           this.axios.post("/api/v1/oms/dispatchOrder", mapvalue).then(() => {
             this.$message({
               type: "success",
-              message: "下发成功!",
+              message: "下发成功!"
             });
-            this.getRequestUrl()
+            this.getRequestUrl();
           });
         })
         .catch(() => {
           this.$message({
             type: "info",
-            message: "取消下发!",
+            message: "取消下发!"
           });
         });
     },
@@ -218,26 +305,26 @@ export default {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
-        center: true,
+        center: true
       })
         .then(() => {
           this.$message({
             type: "success",
-            message: "删除成功!",
+            message: "删除成功!"
           });
           this.axios
             .post("/api/v1/oms/deleteOrder", {
               orderId: orderId,
-              capacityNumber: capacityNumber,
+              capacityNumber: capacityNumber
             })
             .then(() => {
-              this.getRequestUrl()
+              this.getRequestUrl();
             });
         })
         .catch(() => {
           this.$message({
             type: "info",
-            message: "取消删除!",
+            message: "取消删除!"
           });
         });
     },
@@ -248,11 +335,11 @@ export default {
     //修改
     updateClick(orderId) {
       this.$router.push("/transportReserveFuEdit/" + orderId);
-    },
-  },
+    }
+  }
 };
 </script>
-<style lang='scss' scoped>
+<style lang="scss" scoped>
 .homeworkPath {
   .top {
     padding: 40px;
@@ -265,4 +352,4 @@ export default {
     }
   }
 }
-</style>
+</style>

+ 3 - 4
src/views/TMS/components/importedMine/addWagonLoad.vue

@@ -2,9 +2,8 @@
   <!-- 添加车皮装车实绩 -->
   <div class="addWagonLoad">
     <page-title>新增</page-title>
- 
     <div class="cp">
-      <span>车皮号:</span>
+      <span style="width:80px">车皮号:</span>
       <el-input
         placeholder="请输入内容"
         v-model="input"
@@ -57,7 +56,7 @@
       <el-input
         placeholder="请输入内容"
         v-model="inputText"
-        style="margin-top: 0.625rem; margin-left: 1.25rem"
+        style="margin-top: 0.625rem; margin-left: 1.25rem;width:250px"
         clearable
       ></el-input>
       <el-button
@@ -92,7 +91,7 @@
 
 <script>
 import PageTitle from "@/components/Page/Title";
-import { sjTime,isNumber } from "@/utils/sharedJsFile";
+import { sjTime } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
   data() {

+ 106 - 10
src/views/TMS/components/importedMine/addWagonPlease.vue

@@ -8,7 +8,6 @@
         <dil-form :formId="122" v-model="form1"></dil-form>
       </div>
     </div>
-
     <div class="fromOther">
       <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:525px;">
         <el-form-item label="发货单位">
@@ -26,6 +25,38 @@
           </el-autocomplete>
         </el-form-item>
       </el-form>
+      <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:525px;">
+        <el-form-item label="发站">
+          <el-autocomplete
+            class="inline-input"
+            v-model="sendStation"
+            :fetch-suggestions="querySearchSendStation"
+            placeholder="请输入发站名称"
+            :trigger-on-focus="false"
+            @select="handleSelectSendStation"
+          >
+            <template slot-scope="{ item }">
+              <div class="name">{{ item.arrivalName }}</div>
+            </template>
+          </el-autocomplete>
+        </el-form-item>
+      </el-form>
+      <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:525px;">
+        <el-form-item label="到站">
+          <el-autocomplete
+            class="inline-input"
+            v-model="toTheStation"
+            :fetch-suggestions="querySearchToTheStation"
+            placeholder="请输入到站名称"
+            :trigger-on-focus="false"
+            @select="handleSelectToTheStation"
+          >
+            <template slot-scope="{ item }">
+              <div class="name">{{ item.arrivalName }}</div>
+            </template>
+          </el-autocomplete>
+        </el-form-item>
+      </el-form>
     </div>
     <div class="trainTransport">
       <!-- 确定和取消 -->
@@ -39,7 +70,7 @@
 
 <script>
 import PageTitle from "@/components/Page/Title";
-import { sjTime, isNumber } from "@/utils/sharedJsFile";
+import { sjTime } from "@/utils/sharedJsFile";
 import { getCookie } from "@/utils/util.js";
 export default {
   components: { PageTitle },
@@ -50,20 +81,85 @@ export default {
       supplierId: null,
       supplierName: "",
       stateSupplier: "",
+      sendStationId:null,
+      toTheStationId:1,
+      sendStation:null,
+      toTheStation:"达州站"
     };
   },
-  mounted() {
-    // this.unit();
-  },
   created() {
-    this.form1 = {
-      toTheStationId: 1,
-    };
+    
   },
   methods: {
     handleCheckedCitiesChange(value) {
       console.log(value);
     },
+    //发站弹出层
+    handleSelectSendStation(item) {
+      this.sendStationId = item.arrivalId;
+      this.sendStation = item.arrivalName;
+    },
+    //以下是发站边输边查搜索
+    querySearchSendStation(queryString, cb) {
+      this.axios
+        .get("/api/v1/uc/getArrivalByLike?index=" + this.sendStation)
+        .then((res) => {
+          if (res.data.code == "200") {
+            var restaurantsSupplier = res.data.data;
+            console.log(restaurantsSupplier)
+            var results = queryString
+              ? restaurantsSupplier.filter(
+                  this.createFilterSendStation(queryString)
+                )
+              : restaurantsSupplier;
+            // 调用 callback 返回建议列表的数据
+            cb(results);
+          }
+        });
+    },
+    //发站
+    createFilterSendStation(queryString) {
+      return (restaurantsSupplier) => {
+        return (
+          restaurantsSupplier.arrivalName
+            .toLowerCase()
+            .indexOf(queryString.toLowerCase()) > -1
+        );
+      };
+    },
+    //到站弹出层
+    handleSelectToTheStation(item) {
+      this.toTheStationId = item.arrivalId;
+      this.toTheStation = item.arrivalName;
+    },
+    //以下是到站边输边查搜索
+    querySearchToTheStation(queryString, cb) {
+      this.axios
+        .get("/api/v1/uc/getArrivalByLike?index=" + this.toTheStation)
+        .then((res) => {
+          if (res.data.code == "200") {
+            var restaurantsSupplier = res.data.data;
+            console.log(restaurantsSupplier)
+            var results = queryString
+              ? restaurantsSupplier.filter(
+                  this.createFilterToTheStation(queryString)
+                )
+              : restaurantsSupplier;
+            // 调用 callback 返回建议列表的数据
+            cb(results);
+          }
+        });
+    },
+    //到站
+    createFilterToTheStation(queryString) {
+      return (restaurantsSupplier) => {
+        return (
+          restaurantsSupplier.arrivalName
+            .toLowerCase()
+            .indexOf(queryString.toLowerCase()) > -1
+        );
+      };
+    },
     //发货单位弹出层
     handleSelectSupplier(item) {
       this.supplierId = item.supplierId;
@@ -105,8 +201,8 @@ export default {
         resultPlanDate: sjTime(this.form1.resultPlanDate),
         resultCategory: this.form1.resultCategory,
         supplierId: this.supplierId,
-        sendStationId: this.form1.sendStationId,
-        toTheStationId: this.form1.toTheStationId,
+        sendStationId: this.sendStationId,
+        toTheStationId: this.toTheStationId,
         resultPleaseNumber: this.form1.resultPleaseNumber,
         userId: getCookie("orgCode"),
         resultType: 1,