luobang 3 năm trước cách đây
mục cha
commit
965e5de1eb
25 tập tin đã thay đổi với 984 bổ sung421 xóa
  1. 1 1
      build/utils.js
  2. 1 1
      config/index.js
  3. 0 1
      src/views/TMS/components/domesticMine/approveWagonPlease.vue
  4. 29 26
      src/views/TMS/components/domesticMine/approveWagonPleaseAdd.vue
  5. 70 43
      src/views/TMS/components/domesticMine/approveWagonPleaseEdit.vue
  6. 28 20
      src/views/TMS/components/domesticMine/entrustMine.vue
  7. 62 13
      src/views/TMS/components/domesticMine/wagonLoadAdd.vue
  8. 38 17
      src/views/TMS/components/domesticMine/wagonLoadEdit.vue
  9. 124 11
      src/views/TMS/components/domesticMine/wagonLoadbu.vue
  10. 145 37
      src/views/TMS/components/domesticMine/wagonPleaseAdd.vue
  11. 41 16
      src/views/TMS/components/domesticMine/wagonPleaseEdit.vue
  12. 6 3
      src/views/TMS/components/domesticMine/wagonPleaseMine.vue
  13. 12 15
      src/views/TMS/components/domesticMine/wagonUnLoadAdd.vue
  14. 38 13
      src/views/TMS/components/domesticMine/wagonUnLoadEdit.vue
  15. 30 30
      src/views/TMS/components/domesticMine/wagonUnLoadMine.vue
  16. 1 2
      src/views/TMS/components/importedEmergency/addWagonLoadEmergency.vue
  17. 4 0
      src/views/TMS/components/importedEmergency/addWagonUnLoadEmergency.vue
  18. 45 33
      src/views/TMS/components/importedEmergency/editWagonLoadEmergency.vue
  19. 50 16
      src/views/TMS/components/importedEmergency/editWagonUnLoadEmergency.vue
  20. 49 30
      src/views/TMS/components/importedEmergency/entrustEmergency.vue
  21. 31 31
      src/views/TMS/components/importedEmergency/wagonUnLoadEmergency.vue
  22. 4 5
      src/views/TMS/components/importedMine/addWagonLoad.vue
  23. 106 11
      src/views/TMS/components/importedMine/addWagonPlease.vue
  24. 38 15
      src/views/TMS/components/importedMine/entrust.vue
  25. 31 31
      src/views/TMS/components/importedMine/wagonUnLoad.vue

+ 1 - 1
build/utils.js

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

+ 1 - 1
config/index.js

@@ -64,7 +64,7 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    target: "http://192.168.1.106:8019",
+    target: "http://192.168.1.107:8019",
     // target: "http://172.16.33.166:8080",
     // target: "http://192.168.1.114:8019",
     ws: true,

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

@@ -27,7 +27,6 @@
   </div>
 </template>
 
-
 <script>
 export default {
   name: "wagonPlease",

+ 29 - 26
src/views/TMS/components/domesticMine/approveWagonPleaseAdd.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 新增批车作业页面 -->
-  <div id="contractDetails">
+  <div id="trainTransport">
     <page-title>返回</page-title>
     <div>
       <dilTable
@@ -19,7 +19,7 @@
         </div>
       </div>
     </div>
-    <div class="button-box">
+    <div class="button_box">
       <el-button @click="onClickCancel">返回</el-button>
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
     </div>
@@ -52,6 +52,11 @@ export default {
   mounted() {
     // this.unit();
   },
+  created() {
+    this.form1 = {
+      arrivalStationId: 1,
+    };
+  },
   methods: {
     handleCheckedCitiesChange(value) {
       console.log(value);
@@ -104,39 +109,37 @@ export default {
 </script>
 <style lang="scss">
 // @import "@/styles/appoint/contract/ContractInsert.scss";
-#contractDetails {
+#trainTransport {
   .form {
     display: flex;
     .form_box {
-      width: 240px;
+      width: 340px;
       margin-left: 35%;
       margin-top: 30px;
-      margin-right: 22px;
-     
-    }
-    .el-form-item {
-      .el-form-item__label {
-        display: inline-block;
-        width: 70px !important;
-        padding-right: 200px;
-        margin-bottom: 0px;
-      }
-      .el-form-item__content {
-        .el-select {
-          width: 230px;
-        }
-        .el-input {
-          width: 160px;
-          margin-left: -300px;
-          padding-bottom: 0%;
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+            }
+          }
         }
       }
     }
   }
-
-  .button-box {
-    margin-top: 50px;
-    margin-left: 550px;
+  .button_box {
+    margin-left: 42%;
+    margin-top: 55px;
   }
 }
 </style>

+ 70 - 43
src/views/TMS/components/domesticMine/approveWagonPleaseEdit.vue

@@ -1,35 +1,28 @@
 <template>
   <!-- 修改批车作业页面 -->
-  <div id="contractDetails">
-    <page-title>批车作业</page-title>
-    <div class="main">
-      <span class="text">修改批车车作业</span>
-      <span class="a"></span>
-    </div>
-    <div class="contractTitle">
-      <div class="form-box">
-        <div class="form-one">
-          <dil-form :formId="140" v-model="form1"></dil-form>
-        </div>
+  <div class="contractDetails">
+    <page-title>返回</page-title>
+    <div class="form">
+      <div class="form_box">
+        <dil-form :formId="140" v-model="form1"></dil-form>
       </div>
-    </div>  
- 
-    <div class="button-box">
+    </div>
+    <div class="button_box">
       <el-button @click="onClickCancel">返回</el-button>
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
     </div>
   </div>
 </template>
-
 <script>
 import PageTitle from "@/components/Page/Title";
+import { sjTime,isNumber } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
-    data(){
-          return {
-          form1: {},
-        }
-    },
+  data() {
+    return {
+      form1: {},
+    };
+  },
   mounted() {
     this.information();
   },
@@ -37,14 +30,16 @@ export default {
     information() {
       //编辑批车作业 渲染数据
       this.axios
-        .post("/api/v1/tms/getApproveWagonPleaseById/" + this.$route.params.resultId)
+        .post(
+          "/api/v1/tms/getApproveWagonPleaseById/" + this.$route.params.resultId
+        )
         .then((res) => {
           res.data.data.forEach((e) => {
             this.form1 = e;
           });
         });
     },
-     // 返回
+    // 返回
     onClickCancel() {
       this.$router.go(-1);
     },
@@ -52,12 +47,12 @@ export default {
     onClickConfirm() {
       let approveWagonPlease = {
         resultId: this.$route.params.resultId,
-        resultApproveDate: this.form1.resultApproveDate,
+        resultApproveDate: sjTime(this.form1.resultApproveDate),
         resultApproveNumber: this.form1.resultApproveNumber,
         shipperId: this.form1.shipperId,
         resultCategory: this.form1.resultCategory,
         sendStationId: this.form1.sendStationId,
-        toTheStationId: this.form1.toTheStationId
+        toTheStationId: this.form1.toTheStationId,
       };
       function isNumber() {
         var value = approveWagonPlease.resultApproveNumber;
@@ -71,29 +66,61 @@ export default {
       }
       var val = this.value;
       if (
-        approveWagonPlease.resultApproveDate==null||
-        approveWagonPlease.resultApproveNumber==null||
-        approveWagonPlease.shipperId==null||
-        approveWagonPlease.resultCategory==null||
-        approveWagonPlease.sendStationId==null||
-        approveWagonPlease.toTheStationId==null
-      ) this.$message.error("存在空值!");
+        approveWagonPlease.resultApproveDate == null ||
+        approveWagonPlease.resultApproveNumber == null ||
+        approveWagonPlease.shipperId == null ||
+        approveWagonPlease.resultCategory == null ||
+        approveWagonPlease.sendStationId == null ||
+        approveWagonPlease.toTheStationId == null
+      )
+        this.$message.error("存在空值!");
+      else if (!isNumber(val)) this.$message.error("请车数必须是数字!");
       else
-      if (!isNumber(val)) this.$message.error("请车数必须是数字!");
-      else
-      this.axios
-        .post("/api/v1/tms/updateApproveWagonPlease", approveWagonPlease)
-        .then(() => {
-          this.$message({
-            type: "success",  
-            message: "修改成功!",
+        this.axios
+          .post("/api/v1/tms/updateApproveWagonPlease", approveWagonPlease)
+          .then(() => {
+            this.$message({
+              type: "success",
+              message: "修改成功!",
+            });
+            this.$router.go(-1);
           });
-          this.$router.go(-1);
-        });
     },
   },
 };
 </script>
-<style lang="scss" scoped>
-// @import "@/styles/appoint/contract/ContractInsert.scss";
+<style lang="scss">
+.contractDetails {
+  .form {
+    display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .button_box {
+    margin-left: 42%;
+    margin-top: 55px;
+  }
+}
 </style>

+ 28 - 20
src/views/TMS/components/domesticMine/entrustMine.vue

@@ -2,7 +2,13 @@
   <!-- 计量委托 -->
   <div class="homeworkPath">
     <div class="top">
-      <el-input class="el-input" placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-input
+        class="el-input"
+        placeholder="请输入内容"
+        v-model="input"
+        clearable
+      >
+      </el-input>
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
@@ -36,7 +42,12 @@ export default {
         "/api/v1/tms/getLoadResultToSendMC?apiId=209&resultType=1&con=" +
         this.input;
     },
+
     btnclick() {
+      let map = {
+        resultIdList: this.selectionListMap,
+      };
+      console.log("map" + map);
       if (this.selectionListMap.length == 0) {
         this.$message({
           message: "请勾选要发送计量委托的实绩!",
@@ -44,9 +55,7 @@ export default {
         });
       } else {
         this.axios
-          .post("/api/v1/tms/batchSendMeasureCommission", {
-            resultIdList: this.selectionListMap,
-          })
+          .post("/api/v1/tms/batchSendMeasureCommission", map)
           .then((res) => {
             if (res.data.code == "200") {
               this.$message({
@@ -61,9 +70,8 @@ export default {
     },
     selectionChange(selection) {
       this.selectionListMap = [];
-      selection.forEach((element) => {
-        this.selectionListMap.push(element.resultId);
-      });
+      console.log(selection);
+      this.selectionListMap = selection;
     },
   },
 };
@@ -71,19 +79,19 @@ export default {
 <style lang='scss'>
 .homeworkPath {
   .top {
-     padding: 1.25rem 0.375rem;
-     .el-input{
-       width: 20%;
-       margin-right: 40rpx;
-     }
-     .btn{
-       width: 5.5%;
-       margin-left: 0.25rem;
-     }
-     .btn1{
-       width: 7%;
-       margin-left: 00.375rem;
-     }
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 40rpx;
+    }
+    .btn {
+      width: 5.5%;
+      margin-left: 0.25rem;
+    }
+    .btn1 {
+      width: 7%;
+      margin-left: 00.375rem;
+    }
   }
 }
 </style>

+ 62 - 13
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
@@ -52,8 +56,8 @@
       </el-input>
       <span class="span"></span>
     </div>
-    <div class="purchaseOrder from" v-if="matching">
-      <span class="text">采购订单号:</span>
+    <div class="purchaseOrder from" v-if="matching" style="width:330px;margin-left:544px;padding-bottom:15px">
+      <span class="text" style="width:140px">采购订单号:</span>
       <el-input
         v-model="purchaseOrderNo"
         placeholder="请选择物资和发货单位"
@@ -64,11 +68,12 @@
     </div>
 
     <div class="form">
-      <div class="form-box" style="margin-right: 10rem">
+      <div class="form_box" style="margin-right: 10rem">
         <dil-form :formId="364" v-model="form1" ref="from1"></dil-form>
       </div>
     </div>
-    <div class="button-box">
+
+    <div class="button_box">
       <el-button @click="cancel">取消</el-button>
       <el-button type="primary" @click="makeSure">确定</el-button>
     </div>
@@ -100,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>
@@ -132,6 +143,8 @@ export default {
       supplierId: null,
       //物资id
       materialId: null,
+      unloadPointName:null,
+      unloadPointId:null,
       //是否需要打开模态窗口
       drawer: false,
       a: 1,
@@ -163,7 +176,7 @@ export default {
   },
   created() {
     this.form1 = {
-      arrivalStationId: 2,
+      arrivalStationId: 1,
     };
   },
   methods: {
@@ -182,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;
@@ -238,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;
       }
@@ -446,6 +463,7 @@ export default {
     display: flex;
     justify-content: center;
     align-items: center;
+    margin-left: 160px;
     .text {
       width: 8.75rem;
     }
@@ -493,6 +511,10 @@ export default {
       width: 1.875rem;
       height: 1.25rem;
     }
+    .el-input{
+      width: 13.5rem;
+      margin-right: 2.375rem;
+    }
   }
   .purchaseOrder {
     display: flex;
@@ -505,12 +527,39 @@ export default {
     }
   }
   .form {
-    margin-top: 1.25rem;
-    display: flex;
-    justify-content: center;
-    padding-left: 9.375rem;
+   display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 37%; 
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+              .el-textarea{
+                .el-textarea__inner{
+                  width: 220px;
+                
+                  margin-top: 0.03rem;
+                }
+              }
+            }
+          }
+        }
+      }
+    }
   }
-  .button-box {
+  .button_box {
     display: flex;
     justify-content: center;
     padding-top: 30px;

+ 38 - 17
src/views/TMS/components/domesticMine/wagonLoadEdit.vue

@@ -1,20 +1,12 @@
 <template>
   <!-- 修改车皮装车实绩 -->
-  <div id="contractDetails">
-    <page-title>编辑</page-title>
-    <div class="main">
-      <span class="text">车皮装车实绩</span>
-      <span class="a"></span>
-    </div>
-    <div class="contractTitle">
-      <div class="form-box">
-        <div class="form-one">
+  <div class="contractDetails"> 
+      <div class="form">
+        <div class="form_box">
           <dil-form :formId="254" v-model="form1"></dil-form>
         </div>
-      </div>
     </div>
-
-    <div class="button-box">
+    <div class="button_box">
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
       <el-button @click="onClickCancel">返回</el-button>
     </div>
@@ -23,7 +15,7 @@
 
 <script>
 import PageTitle from "@/components/Page/Title";
-
+import { sjTime } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
  data(){
@@ -42,9 +34,6 @@ export default {
         .then((res) => {
           res.data.data.forEach((e) => {
             this.form1 = e;
-            console.log(e);
-            console.log(this.form1);
-            console.log(this.$route.params.resultId);
           });
         });
     },
@@ -99,5 +88,37 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
-// @import "@/styles/TMS/addwagonload.scss";
+.contractDetails {
+  .form {
+    display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .button_box {
+    margin-left: 42%;
+    margin-top: 55px;
+  }
+}
 </style>

+ 124 - 11
src/views/TMS/components/domesticMine/wagonLoadbu.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="wagonLoadbu">
-    <el-divider content-position="left">选择需要补录的装车信息</el-divider>
+    <span> </span>
     <div class="wagonLoadbu_table">
       <dilTable
         v-bind.sync="option"
@@ -20,13 +20,15 @@
       <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
     </div>
     <div class="remark from">
-      <span class="text">船名(备注):</span>
-      <el-input v-model="remark" @blur="onBlur"> </el-input>
+      <span class="text" style="margin-left: 60px; ">船名(备注):</span>
+      <el-input v-model="remark" @blur="onBlur" style="width: 230px; margin-right:140px"> </el-input>
       <span class="span"></span>
     </div>
 
     <div class="form">
+      <div class="form_box">
       <dil-form :formId="361" v-model="form1" ref="from1"></dil-form>
+      </div>
     </div>
     <div class="button_box">
       <el-button @click="cancel">取消</el-button>
@@ -226,14 +228,79 @@ export default {
 
 <style lang="scss">
 .wagonLoadbu {
+  color: #606266;
+  font-size: 0.675rem;
+  font-weight: 500;
+  .cp {
+    width: 49%;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    padding-top: 0.625rem;
+    padding-bottom: 0.625rem;
+    margin-left: 364px;
+    .cp_title {
+      .cp_top {
+        width: 3.125rem;
+        padding-right: 1.55rem;
+      }
+    }
+  }
+  .cpList {
+    display: flex;
+    justify-content: center;
+    width: 100%;
+    height: 10rem;
+    .list {
+      width: 45%;
+      border: #000 0.0625rem solid;
+      padding: 0.625rem;
+      display: flex;
+      flex-wrap: wrap;
+      .cpList1 {
+        background-color: #c9c7c7;
+        height: 1.875rem;
+        margin-right: 0.5rem;
+        padding: 0.625rem;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        position: relative;
+        .itu {
+          position: absolute;
+          top: -0.125rem;
+          right: 0.0625rem;
+          width: 0.625rem;
+          height: 0.625rem;
+        }
+      }
+    }
+  }
+  .matching {
+    width: 100%;
+    height: 3.125rem;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    .text {
+      width: 8.75rem;
+    }
+    .span {
+      display: inline-block;
+      width: 310px;
+      height: 0.0625rem;
+    }
+  }
   .material {
     display: flex;
     justify-content: center;
     align-items: center;
     height: 3.75rem;
+    margin-left: 27rem;
+    width: 20rem;
     .text {
       text-align: right;
-      width: 150px;
+      width: 8.125rem;
     }
   }
   .forwardingUnit {
@@ -241,9 +308,11 @@ export default {
     justify-content: center;
     align-items: center;
     height: 3.75rem;
+    margin-left: 27rem;
+    width: 20rem;
     .text {
       text-align: right;
-      width: 9.375rem;
+      width: 8.125rem;
     }
   }
   .remark {
@@ -253,20 +322,64 @@ export default {
     height: 3.75rem;
     .text {
       text-align: right;
-      width: 80px;
+      width: 5.625rem;
+    }
+    .span {
+      display: inline-block;
+      width: 1.875rem;
+      height: 1.25rem;
+    }
+    .el-input{
+      width: 13.5rem;
+      margin-right: 2.375rem;
     }
   }
-  .form {
-    margin-top: 1.25rem;
+  .purchaseOrder {
     display: flex;
     justify-content: center;
+    align-items: center;
+    .span {
+      display: inline-block;
+      width: 1.875rem;
+      height: 0.0625rem;
+    }
+  }
+  .form {
+   display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 37%; 
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+              .el-textarea{
+                .el-textarea__inner{
+                  width: 240px;  
+                  margin-top: 0.03rem;
+                }
+              }
+            }
+          }
+        }
+      }
+    }
   }
   .button_box {
-    width: 100%;
-    height: 6.25rem;
     display: flex;
     justify-content: center;
-    align-items: center;
+    padding-top: 30px;
   }
 }
 </style>

+ 145 - 37
src/views/TMS/components/domesticMine/wagonPleaseAdd.vue

@@ -1,44 +1,77 @@
 <template>
   <!-- 新增请作业页面 -->
- <div class="contractDetails">
+  <div class="contractDetails">
     <page-title>返回</page-title>
 
     <div class="form">
       <div class="form_box">
-         <dil-form :formId="122" v-model="form1" ></dil-form>
+        <dil-form :formId="122" v-model="form1"></dil-form>
       </div>
     </div>
 
-     <div class="fromOther">
-          <el-form
+    <div class="fromOther">
+      <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="stateSupplier"
-          :fetch-suggestions="querySearchSupplier"
-          placeholder="请输入发货单位名称"
-          :trigger-on-focus="false"
-          @select="handleSelectSupplier"
-        >
-        <template slot-scope="{ item }">
-          <div class="name">{{ item.supplierName }}</div>
-        </template>
-        </el-autocomplete>
+          <el-autocomplete
+            class="inline-input"
+            v-model="stateSupplier"
+            :fetch-suggestions="querySearchSupplier"
+            placeholder="请输入发货单位名称"
+            :trigger-on-focus="false"
+            @select="handleSelectSupplier"
+          >
+            <template slot-scope="{ item }">
+              <div class="name">{{ item.supplierName }}</div>
+            </template>
+          </el-autocomplete>
         </el-form-item>
-        </el-form>
+      </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">
-    <!-- 确定和取消 -->
-    <div class="button_box">
-      <el-button @click="onClickCancel">返回</el-button>
-      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    <div class="trainTransport">
+      <!-- 确定和取消 -->
+      <div class="button_box">
+        <el-button @click="onClickCancel">返回</el-button>
+        <el-button type="primary" @click="onClickConfirm">确认</el-button>
+      </div>
     </div>
   </div>
- </div>
 </template>
 
 <script>
@@ -54,15 +87,90 @@ 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;
@@ -104,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,
@@ -135,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);
           });
     },
   },
@@ -174,19 +282,19 @@ export default {
               margin-top: 55px;
             }
           }
-          .fromOther {
-            margin-left: 34.5%;
-            width: 50%;
-            .inline-input {
-              width: 300px;
-              .button_box {
-                margin-left: 45%;
-              }
-            }
-          }
         }
       }
     }
   }
 }
+.trainTransport {
+  margin-left: 41.25%;
+  width: 50%;
+  .inline-input {
+    width: 300px;
+    .button_box {
+      margin-left: 52.5%;
+    }
+  }
+}
 </style>

+ 41 - 16
src/views/TMS/components/domesticMine/wagonPleaseEdit.vue

@@ -1,29 +1,21 @@
 <template>
   <!-- 修改请车作业页面 -->
-  <div id="contractDetails">
-    <page-title>请车作业</page-title>
-    <div class="main">
-      <span class="text">修改请车作业</span>
-      <span class="a"></span>
-    </div>
-    <div class="contractTitle">
-      <div class="form-box">
-        <div class="form-one">
+  <div class="contractDetails">
+    <page-title>返回</page-title>
+      <div class="form">
+        <div class="form_box">
           <dil-form :formId="117" v-model="form1"></dil-form>
         </div>
-      </div>
     </div>  
- 
-    <div class="button-box">
+    <div class="button_box">
       <el-button @click="onClickCancel">返回</el-button>
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
     </div>
   </div>
 </template>
-
 <script>
 import PageTitle from "@/components/Page/Title";
-
+import { sjTime } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
     data(){
@@ -95,6 +87,39 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-// @import "@/styles/appoint/contract/ContractInsert.scss";
+<style lang="scss">
+.contractDetails {
+  .form {
+    display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .button_box {
+    margin-left: 42%;
+    margin-top: 55px;
+  }
+}
+</style>
 </style>

+ 6 - 3
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(() => {
@@ -115,11 +119,10 @@ export default {
             type: "success",
             message: "下发成功!",
           });
-          // console.log(this.arr[0].text_prop);
           this.axios
             .post("/api/v1/tms/sendWagonPlease/" + resultId)
             .then(() => {
-              this.$router.go(0);
+              this.getRequestUrl()
             });
         })
         .catch(() => {

+ 12 - 15
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 },
@@ -46,6 +45,11 @@ export default {
     };
   },
   mounted() {},
+  // created() {
+  //   this.form1 = {
+  //     arrivalStationId: 1,
+  //   };
+  // },
   methods: {
     selectionChange(selection) {
       this.list = [];
@@ -73,7 +77,7 @@ export default {
         tmstrainWagonUnloadResult.resultArrivalDate == null ||
         tmstrainWagonUnloadResult.resultUnloadTime == null
       )
-       this.$message.error("存在空值!");
+        this.$message.error("存在空值!");
       else
         this.axios
           .post(
@@ -87,11 +91,9 @@ export default {
                 message: "新增成功!",
               });
               this.$router.go(-1);
-            }else{
-               ({ type: "failed", message: "新增失败!" });
+            } else {
+              ({ type: "failed", message: "新增失败!" });
             }
-
-            
           });
     },
     // 取消
@@ -126,14 +128,9 @@ export default {
               }
               .el-textarea {
                 .el-textarea__inner {
-                  display: block;
-                  resize: vertical;
-                  padding: 5px 13px;
-                  line-height: 1.5;
-                  width: 70%;
-                  border-radius: 4px;
-                  margin-left: 56px;
-                  margin-top: -25px;
+                  width: 230px;
+                  // margin-left: 45px;
+                  margin-top: 0.03rem;
                 }
               }
             }

+ 38 - 13
src/views/TMS/components/domesticMine/wagonUnLoadEdit.vue

@@ -1,29 +1,21 @@
 <template>
   <!-- 修改车皮装车实绩 -->
   <div id="contractDetails">
-    <page-title>编辑</page-title>
-    <div class="main">
-      <span class="text">车皮卸车实绩</span>
-      <span class="a"></span>
-    </div>
-    <div class="contractTitle">
-      <div class="form-box">
-        <div class="form-one">
+    
+      <div class="form">
+        <div class="form_box">
           <dil-form :formId="118" v-model="form1"></dil-form>
         </div>
       </div>
-    </div>
-
-    <div class="button-box">
+    <div class="button_box">
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
       <el-button @click="onClickCancel">返回</el-button>
     </div>
   </div>
 </template>
-
 <script>
 import PageTitle from "@/components/Page/Title";
-
+import { sjTime } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
  data(){
@@ -96,4 +88,37 @@ export default {
 </script>
 <style lang="scss" scoped>
 // @import "@/styles/TMS/addwagonload.scss";
+.contractDetails {
+  .form {
+    display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 35%;
+      margin-top: 30px;
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .button_box {
+    margin-left: 42%;
+    margin-top: 55px;
+  }
+}
 </style>

+ 30 - 30
src/views/TMS/components/domesticMine/wagonUnLoadMine.vue

@@ -17,12 +17,12 @@
           <el-button @click="click(scope.row.unloadingId)" type="text" size="small"
             >修改</el-button
           >
-          <el-button
+          <!-- <el-button
             type="text"
             size="small"
             @click="deleteclick(scope.row.unloadingId)"
             >删除</el-button
-          >
+          > -->
         </template>
       </el-table-column>
     </dilTable>
@@ -52,34 +52,34 @@ export default {
     click(unloadingId) {
       this.$router.push("/wagonUnLoadEdit/" + unloadingId);
     },
-    deleteclick(scope) {
-      let unloadingId = scope;
-      this.$confirm("是否删除", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
-      })
-        .then(() => {
-          this.$message({
-            type: "success",
-            message: "删除成功!",
-          });
-          this.axios
-            .post(
-             "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" + unloadingId
-            )
-            .then(() => {
-               this.$router.go(0);
-            });
-        })
-        .catch(() => {
-          this.$message({
-            type: "info",
-            message: "取消删除!",
-          });
-        });
-    },
+    // deleteclick(scope) {
+    //   let unloadingId = scope;
+    //   this.$confirm("是否删除", "提示", {
+    //     confirmButtonText: "确定",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "删除成功!",
+    //       });
+    //       this.axios
+    //         .post(
+    //          "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" + unloadingId
+    //         )
+    //         .then(() => {
+    //            this.$router.go(0);
+    //         });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "取消删除!",
+    //       });
+    //     });
+    // },
   },
 };
 </script>

+ 1 - 2
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"
@@ -141,7 +141,6 @@ export default {
   },
   created(){
     this.form1 = {
-      sendStationId:4,
       arrivalStationId:1,
     }
   },

+ 4 - 0
src/views/TMS/components/importedEmergency/addWagonUnLoadEmergency.vue

@@ -44,17 +44,21 @@ export default {
   },
   mounted() {},
   methods: {
+
     selectionChange(selection) {
       this.list = [];
       selection.forEach((e) => {
         this.list.push({
           resultWagonNo: e.resultWagonNo,
           resultId: e.resultId,
+          purchaseOrderId: e.purchaseOrderId,
+          unloadingPointId: e.unloadingPointId,
         });
       });
     },
     // 确定
     makeSure() {
+      console.log("wagonNoList" +this.list)
       let tmstrainWagonUnloadResult = {
         wagonNoList: this.list,
         resultArrivalDate: sjTime(this.form1.resultArrivalDate),

+ 45 - 33
src/views/TMS/components/importedEmergency/editWagonLoadEmergency.vue

@@ -3,10 +3,10 @@
   <div class="addWagonLoad">
     <page-title>编辑</page-title>
 
-      <div class="form">
-        <div class="form_box">
-          <dil-form :formId="254" v-model="form1"></dil-form>
-        </div>
+    <div class="form">
+      <div class="form_box">
+        <dil-form :formId="254" v-model="form1"></dil-form>
+      </div>
     </div>
 
     <div class="button_box">
@@ -18,23 +18,31 @@
 
 <script>
 import PageTitle from "@/components/Page/Title";
-
+import { sjTime,isNumber } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
- data(){
-     return {
+  data() {
+    return {
       form1: {},
-  }
- },
+    };
+  },
+  created() {
+    this.form1 = {
+      arrivalStationId: 1,
+    };
+  },
   mounted() {
     this.information();
   },
   methods: {
     information() {
-      console.log("add",this.$route.params);
+      console.log("add", this.$route.params);
       //编辑车皮装车作业
       this.axios
-        .post("/api/v1/tms/getTmstrainLoadingResultByResultId/" + this.$route.params.unloadingId)
+        .post(
+          "/api/v1/tms/getTmstrainLoadingResultByResultId/" +
+            this.$route.params.unloadingId
+        )
         .then((res) => {
           res.data.data.forEach((e) => {
             this.form1 = e;
@@ -68,27 +76,31 @@ export default {
         capacityId: this.form1.capacityId,
         resultMaterialNumber: this.form1.resultMaterialNumber,
         resultMaterialTheoryweight: this.form1.resultMaterialTheoryweight,
-        resultRemarks: this.form1.resultRemarks
+        resultRemarks: this.form1.resultRemarks,
       };
       if (
-      tmstrainLoadingResult.resultWagonNo==null||
-      tmstrainLoadingResult.resultBillableTonnage==null||
-      tmstrainLoadingResult.resultClass==null||
-      tmstrainLoadingResult.sendStationId==null||
-      tmstrainLoadingResult.arrivalStationId==null||
-      tmstrainLoadingResult.resultLoadingDate==null||
-      tmstrainLoadingResult.batchId==null
-      ) this.$message.error("必填项存在空值!");
+        tmstrainLoadingResult.resultWagonNo == null ||
+        tmstrainLoadingResult.resultBillableTonnage == null ||
+        tmstrainLoadingResult.resultClass == null ||
+        tmstrainLoadingResult.sendStationId == null ||
+        tmstrainLoadingResult.arrivalStationId == null ||
+        tmstrainLoadingResult.resultLoadingDate == null ||
+        tmstrainLoadingResult.batchId == null
+      )
+        this.$message.error("必填项存在空值!");
       else
-      this.axios
-        .post("/api/v1/tms/upadteTmstrainLoadingResultByResultId",tmstrainLoadingResult)
-        .then(() => {
-          this.$message({
-            type: "success",  
-            message: "修改成功!",
+        this.axios
+          .post(
+            "/api/v1/tms/upadteTmstrainLoadingResultByResultId",
+            tmstrainLoadingResult
+          )
+          .then(() => {
+            this.$message({
+              type: "success",
+              message: "修改成功!",
+            });
+            this.$router.go(-1);
           });
-          this.$router.go(-1);
-        });
     },
   },
 };
@@ -99,10 +111,10 @@ export default {
   font-size: 0.675rem;
   font-weight: 500;
   .form {
-   display: flex;
+    display: flex;
     .form_box {
       width: 340px;
-      margin-left: 37%;   
+      margin-left: 37%;
       margin-right: 20px;
       .el-form {
         .preview-group {
@@ -118,8 +130,8 @@ export default {
               .el-input {
                 width: 250px;
               }
-              .el-textarea{
-                .el-textarea__inner{
+              .el-textarea {
+                .el-textarea__inner {
                   width: 220px;
                   margin-top: 0.03rem;
                 }
@@ -130,7 +142,7 @@ export default {
       }
     }
   }
-  .button_box{
+  .button_box {
     display: flex;
     justify-content: center;
     padding-top: 30px;

+ 50 - 16
src/views/TMS/components/importedEmergency/editWagonUnLoadEmergency.vue

@@ -1,20 +1,14 @@
 <template>
   <!-- 修改车皮装车实绩 -->
-  <div id="contractDetails">
-    <page-title>编辑</page-title>
-    <div class="main">
-      <span class="text">车皮卸车实绩</span>
-      <span class="a"></span>
-    </div>
-    <div class="contractTitle">
-      <div class="form-box">
-        <div class="form-one">
+  <div class="contractDetails">
+      <div class="form">
+        <div class="form_box">
           <dil-form :formId="118" v-model="form1"></dil-form>
         </div>
       </div>
-    </div>
+
       
-    <div class="button-box">
+    <div class="button_box">
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
       <el-button @click="onClickCancel">返回</el-button>
     </div>
@@ -23,7 +17,7 @@
 
 <script>
 import PageTitle from "@/components/Page/Title";
-
+import { sjTime,isNumber } from "@/utils/sharedJsFile";
 export default {
   components: { PageTitle },
  data(){
@@ -31,6 +25,7 @@ export default {
       form1: {},
   }
  },
+
   mounted() {
     this.information();
   },
@@ -42,9 +37,6 @@ export default {
         .then((res) => {
           res.data.data.forEach((e) => {
             this.form1 = e;
-            console.log(e);
-            console.log(this.form1);
-            console.log(this.$route.params.unloadingId);
           });
         });
     },
@@ -96,5 +88,47 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
-// @import "@/styles/TMS/addwagonload.scss";
+.contractDetails {
+  color: #606266;
+  font-size: 0.675rem;
+  font-weight: 500;
+  .form {
+    display: flex;
+    .form_box {
+      width: 340px;
+      margin-left: 37%;
+      margin-right: 20px;
+      .el-form {
+        .preview-group {
+          .el-form-item {
+            .el-form-item__label {
+              display: inline-block;
+              width: 70px !important;
+            }
+            .el-form-item__content {
+              .el-select {
+                width: 250px;
+              }
+              .el-input {
+                width: 250px;
+              }
+              .el-textarea {
+                .el-textarea__inner {
+                  width: 220px;
+                  margin-top: 0.03rem;
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  .button_box {
+    display: flex;
+    justify-content: center;
+    padding-top: 30px;
+    margin-left: 3.5%;
+  }
+}
 </style>

+ 49 - 30
src/views/TMS/components/importedEmergency/entrustEmergency.vue

@@ -2,7 +2,13 @@
   <!-- 计量委托 -->
   <div class="homeworkPath">
     <div class="top">
-      <el-input class="el-input" placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-input
+        class="el-input"
+        placeholder="请输入内容"
+        v-model="input"
+        clearable
+      >
+      </el-input>
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
@@ -14,8 +20,6 @@
     </dilTable>
   </div>
 </template>
-
-
 <script>
 export default {
   data() {
@@ -27,29 +31,44 @@ export default {
         // 控制显示多选列
         selectionType: "select",
       },
-      selectionListMap:[],
+      selectionListMap: [],
     };
   },
   methods: {
     onclick() {
-      this.option.requestUrl = "/api/v1/tms/getTmstrainWagonLoad?apiId=58&resultType=1&con="+this.input;
+      this.option.requestUrl =
+        "/api/v1/tms/getTmstrainWagonLoad?apiId=58&resultType=1&con=" +
+        this.input;
     },
     btnclick() {
-      this.axios.post('/api/v1/tms/batchSendMeasureCommission',{resultIdList:this.selectionListMap}).then((res)=>{
-        if(res.data.code == "200"){
-          this.$message({
-            type: "success",
-            message: "发送成功",
+      let map = {
+        resultIdList: this.selectionListMap,
+      };
+      if (this.selectionListMap.length == 0) {
+        this.$message({
+          message: "请勾选要发送计量委托的实绩!",
+          type: "warning",
+        });
+      } else {
+        this.axios
+          .post("/api/v1/tms/batchSendMeasureCommission", map)
+          .then((res) => {
+            if (res.data.code == "200") {
+              this.$message({
+                type: "success",
+                message: "发送成功",
+              });
+              this.option.requestUrl =
+                "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=2&i=" +
+                new Date();
+            }
           });
-          this.option.requestUrl = "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=2&i=" + new Date();
-        }
-      })
+      }
     },
     selectionChange(selection) {
-      this.selectionListMap = [] 
-      selection.forEach(element => {
-        this.selectionListMap.push(element.resultId);
-      });
+      this.selectionListMap = [];
+      console.log(selection);
+      this.selectionListMap = selection;
     },
   },
 };
@@ -57,19 +76,19 @@ export default {
 <style lang='scss'>
 .homeworkPath {
   .top {
-     padding: 1.25rem 0.375rem;
-     .el-input{
-       width: 20%;
-       margin-right: 40rpx;
-     }
-     .btn{
-       width: 5.5%;
-       margin-left: 0.25rem;
-     }
-     .btn1{
-       width: 7%;
-       margin-left: 00.375rem;
-     }
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 40rpx;
+    }
+    .btn {
+      width: 5.5%;
+      margin-left: 0.25rem;
+    }
+    .btn1 {
+      width: 7%;
+      margin-left: 00.375rem;
+    }
   }
 }
 </style>

+ 31 - 31
src/views/TMS/components/importedEmergency/wagonUnLoadEmergency.vue

@@ -20,12 +20,12 @@
             size="small"
             >修改</el-button
           >
-          <el-button
+          <!-- <el-button
             type="text"
             size="small"
             @click="deleteclick(scope.row.unloadingId)"
             >删除</el-button
-          >
+          > -->
         </template>
       </el-table-column>
     </dilTable>
@@ -56,35 +56,35 @@ export default {
         this.$router.push("/editWagonUnLoadEmergency/" + unloadingId);
       }
     },
-    deleteclick(scope) {
-      let unloadingId = scope;
-      this.$confirm("是否删除", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
-      })
-        .then(() => {
-          this.$message({
-            type: "success",
-            message: "删除成功!",
-          });
-          this.axios
-            .post(
-              "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" +
-                unloadingId
-            )
-            .then(() => {
-              this.$router.go(0);
-            });
-        })
-        .catch(() => {
-          this.$message({
-            type: "info",
-            message: "取消删除!",
-          });
-        });
-    },
+    // deleteclick(scope) {
+    //   let unloadingId = scope;
+    //   this.$confirm("是否删除", "提示", {
+    //     confirmButtonText: "确定",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "删除成功!",
+    //       });
+    //       this.axios
+    //         .post(
+    //           "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" +
+    //             unloadingId
+    //         )
+    //         .then(() => {
+    //           this.$router.go(0);
+    //         });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "取消删除!",
+    //       });
+    //     });
+    // },
   },
 };
 </script>

+ 4 - 5
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() {
@@ -142,7 +141,7 @@ export default {
   created(){
     this.form1 = {
       // sendStationId:1,
-      arrivalStationId:3,
+      arrivalStationId:1,
     }
   },
   methods: {

+ 106 - 11
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,21 +81,85 @@ export default {
       supplierId: null,
       supplierName: "",
       stateSupplier: "",
+      sendStationId:null,
+      toTheStationId:1,
+      sendStation:null,
+      toTheStation:"达州站"
     };
   },
-  mounted() {
-    // this.unit();
-  },
   created() {
-    this.form1 = {
-      sendStationId: 4,
-      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;
@@ -106,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,

+ 38 - 15
src/views/TMS/components/importedMine/entrust.vue

@@ -2,7 +2,13 @@
   <!-- 发送计量委托界面 -->
   <div class="trainTransport">
     <div class="top">
-      <el-input class="el-input" placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-input
+        class="el-input"
+        placeholder="请输入内容"
+        v-model="input"
+        clearable
+      >
+      </el-input>
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
@@ -27,29 +33,46 @@ export default {
         // 控制显示多选列
         selectionType: "select",
       },
-      selectionListMap:[],
+      selectionListMap: [],
+      resultIdList: [],
     };
   },
   methods: {
     onclick() {
-      this.option.requestUrl = "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1&con="+this.input;
+      this.option.requestUrl =
+        "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1&con=" +
+        this.input;
     },
     btnclick() {
-      this.axios.post('/api/v1/tms/batchSendMeasureCommission',{resultIdList:this.selectionListMap}).then((res)=>{
-        if(res.data.code == "200"){
-          this.$message({
-            type: "success",
-            message: "发送成功",
+      let map = {
+        resultIdList: this.selectionListMap,
+      };
+      if (this.selectionListMap.length == 0) {
+        this.$message({
+          message: "请勾选要发送计量委托的实绩!",
+          type: "warning",
+        });
+      } else {
+        this.axios
+          .post("/api/v1/tms/batchSendMeasureCommission", map)
+          .then((res) => {
+            if (res.data.code == "200") {
+              this.$message({
+                type: "success",
+                message: "发送成功",
+              });
+              this.option.requestUrl =
+                "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1" +
+                "&i=" +
+                new Date();
+            }
           });
-          this.option.requestUrl = "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1"+"&i=" + new Date();
-        }
-      })
+      }
     },
     selectionChange(selection) {
-      this.selectionListMap = [] 
-      selection.forEach(element => {
-        this.selectionListMap.push(element.resultId);
-      });
+      this.selectionListMap = [];
+      console.log(selection);
+      this.selectionListMap = selection;
     },
   },
 };

+ 31 - 31
src/views/TMS/components/importedMine/wagonUnLoad.vue

@@ -20,12 +20,12 @@
             size="small"
             >修改</el-button
           >
-          <el-button
+          <!-- <el-button
             type="text"
             size="small"
             @click="deleteclick(scope.row.unloadingId)"
             >删除</el-button
-          >
+          > -->
         </template>
       </el-table-column>
     </dilTable>
@@ -55,35 +55,35 @@ export default {
     click(unloadingId) {
       this.$router.push("/editWagonUnLoad/" + unloadingId);
     },
-    deleteclick(scope) {
-      let unloadingId = scope;
-      this.$confirm("是否删除", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
-      })
-        .then(() => {
-          this.$message({
-            type: "success",
-            message: "删除成功!",
-          });
-          this.axios
-            .post(
-              "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" +
-                unloadingId
-            )
-            .then(() => {
-              this.$router.go(0);
-            });
-        })
-        .catch(() => {
-          this.$message({
-            type: "info",
-            message: "取消删除!",
-          });
-        });
-    },
+    // deleteclick(scope) {
+    //   let unloadingId = scope;
+    //   this.$confirm("是否删除", "提示", {
+    //     confirmButtonText: "确定",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "删除成功!",
+    //       });
+    //       this.axios
+    //         .post(
+    //           "/api/v1/tms/deleteTmstrainWagonUnLoadResultByUnLoadingId?unloadingId=" +
+    //             unloadingId
+    //         )
+    //         .then(() => {
+    //           this.$router.go(0);
+    //         });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "取消删除!",
+    //       });
+    //     });
+    // },
   },
 };
 </script>