luobang 2 năm trước cách đây
mục cha
commit
7eaf3b1e48

+ 0 - 2
config/index.js

@@ -66,8 +66,6 @@ let proxyTable = {
   // 所有数据的请求域名地址
   "/api/v1": {
     target: "http://172.16.33.166:80",
-    // target: "http://localhost:8080",
-    // target: "http://1",
     ws: true,
     pathRewrite: {
       "^/api/v1": "/api/v1"

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

@@ -96,7 +96,7 @@ export default {
       else
         this.axios
           .post("/api/v1/tms/addApproveWagonPlease", approveWagonPlease)
-          .then(() => {
+          .then((res) => {
             if(res.data.code=="200"){
             this.$message({
               type: "success",
@@ -142,6 +142,7 @@ export default {
   .button_box {
     margin-left: 42%;
     margin-top: 55px;
+    width: 300px;
   }
 }
 </style>

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

@@ -117,6 +117,7 @@ export default {
   .button_box {
     margin-left: 42%;
     margin-top: 55px;
+    width: 300px;
   }
 }
 </style>

+ 91 - 8
src/views/TMS/components/domesticMine/wagonLoadAdd.vue

@@ -3,21 +3,31 @@
   <div class="addWagonLoad">
     <page-title>新增</page-title>
     <div class="cp">
-      <span style="width:80px">车皮号:</span>
-      <el-input
+      <span >车皮号:</span>
+      <el-upload style="margin: 8px;"
+          class="upload-excel"
+          action=""
+          :on-change="importfile"
+          :show-file-list="false"
+          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
+          :auto-upload="false">
+          <el-button  type="primary">导入</el-button>
+      </el-upload>
+      <span >当前车皮号数量:{{list.length}}</span>
+      <!-- <el-input
         placeholder="请输入内容"
         v-model="input"
         @change="onchang"
         clearable
       >
-      </el-input>
+      </el-input> -->
     </div>
     <div class="cpList">
       <div class="list">
-        <span class="cpList1" v-for="(item, i) in list" :key="i">
+        <div class="cpList1" v-for="(item, i) in list" :key="i">
           {{ item }}
           <i class="el-icon-close itu" @click="onclick(i)"></i>
-        </span>
+        </div>
       </div>
     </div>
     <div class="matching item">
@@ -154,6 +164,7 @@ export default {
   components: { PageTitle },
   data() {
     return {
+      file:null,
       list: [],
       form1: {},
       input: "",
@@ -505,6 +516,77 @@ export default {
     cancel() {
       this.$router.push("/wagonLoadMine");
     },
+    // excel表上传
+    importfile(file) {//导入文件
+      let that=this;
+      if (!file) {
+        alert('文件错误,请重新选择');
+        return
+        }
+        var reader = new FileReader();
+        var data=null;
+        var workbook=null;
+        //设置读取操作
+        reader.onload = function (e) {
+          console.log(e);
+          data = e.target.result;
+          workbook= XLSX.read(data, {
+              type: 'binary'
+          });
+          console.log(workbook.SheetNames.length);
+          //读取表格
+          let rows= XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]]);//只取第一页
+          console.log(rows);
+          //绑定品名和发货单位
+          if(rows.length>0){
+            that.list=[];
+            that.materialName=rows[0]['品  名'];
+            that.supplierName=rows[0]['发货单位'];
+            that.setIdForName();
+          }
+          //绑定车号
+          rows.forEach((row,index) => {
+            let carNumber=row['车号'];
+            if((typeof carNumber)!="undefined" && carNumber.length > 6)
+              that.list.push(carNumber);
+            else
+              console.log(carNumber+"不符合格式");
+          });
+        };
+        reader.readAsBinaryString(file.raw); //以二进制方式读取
+    },
+    //导入的时候为品名和发货单位绑定id
+    setIdForName(){
+      let that=this;
+      //绑定品名id
+      that.axios.post("/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          that.materialName).then((res)=>{
+            console.log(res.data.data);
+            if(res.data.code == "200" && res.data.data &&res.data.data.list.length > 0 ) {
+              that.materialId=res.data.data.list[0].materialId;
+              that.materialName=res.data.data.list[0].materialName;
+            }else{
+              that.materialId=null;
+              that.materialName=null;
+              this.$message.error("绑定品名失败,请手动选择!");
+            }
+            
+      });
+      //绑定发货单位id
+      that.axios.post("/api/v1/uc/getSupplierMesByMaterialId?apiId=247&index=" +
+          that.supplierName).then((res)=>{
+            console.log(res.data.data);
+            if(res.data.code == "200" && res.data.data &&res.data.data.list.length > 0 ) {
+              that.supplierId=res.data.data.list[0].supplierId;
+              that.supplierName=res.data.data.list[0].supplierName;
+            }else{
+              that.supplierId=null;
+              that.supplierName=null;
+              this.$message.error("绑定发货单位失败,请手动选择!");
+            }
+      });
+    }
+
   },
 };
 </script>
@@ -539,10 +621,11 @@ export default {
       padding: 0.625rem;
       display: flex;
       flex-wrap: wrap;
+      overflow:auto;
       .cpList1 {
         background-color: #c9c7c7;
         height: 1.875rem;
-        margin-right: 0.5rem;
+        margin: 0.5rem;
         padding: 0.625rem;
         display: flex;
         align-items: center;
@@ -635,7 +718,7 @@ export default {
   .form {
     display: flex;
     width: 340px;
-    margin-left:25rem; 
+    margin-left:37.5%; 
     margin-right: 20px;
     .form_box {
       
@@ -655,7 +738,7 @@ export default {
               }
               .el-textarea{
                 .el-textarea__inner{
-                  width: 220px;
+                  width: 250px;
                 
                   margin-top: 0.03rem;
                 }

+ 3 - 2
src/views/TMS/components/domesticMine/wagonLoadEdit.vue

@@ -8,7 +8,7 @@
         </div>
     </div>
     <div class="fromOther">
-      <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:520px;">
+      <el-form :inline="true" class="demo-form-inline" label-width="70px" style="margin-left:35%;">
         <el-form-item label="发站:">
           <el-autocomplete
             class="inline-input"
@@ -24,7 +24,7 @@
           </el-autocomplete>
         </el-form-item>
       </el-form>
-      <el-form :inline="true" class="demo-form-inline" label-width="80px" style="margin-left:520px;">
+      <el-form :inline="true" class="demo-form-inline" label-width="70px" style="margin-left:35%;">
         <el-form-item label="到站:">
           <el-autocomplete
             class="inline-input"
@@ -227,6 +227,7 @@ export default {
   .button_box {
     margin-left: 42%;
     margin-top: 55px;
+    width: 300px;
   }
 }
 </style>

+ 90 - 6
src/views/TMS/components/domesticMine/wagonLoadbu.vue

@@ -1,14 +1,47 @@
 <template>
   <div class="wagonLoadbu">
     <page-title>返回</page-title>
+    <div class="top">
+      <div class="text">物资:</div>
+      <el-select
+        v-model="materialId"
+        filterable
+        remote
+        reserve-keyword
+        placeholder="选择物资名"
+        :remote-method="searchMaterialName"
+        @change="searchSupplierName();getPurchaseOrderNo()">
+        <el-option
+          v-for="item in materialNames"
+          :key="item.materialId"
+          :label="item.materialName"
+          :value="item.materialId">
+        </el-option>
+      </el-select>
+      <div class="text">发货单位:</div>
+       <el-select
+        v-model="supplierId"
+        filterable
+        remote
+        reserve-keyword
+        placeholder="选择发货单位"
+        :remote-method="searchSupplierName"
+        @change="getPurchaseOrderNo();supplierIdChange()">
+        <el-option
+          v-for="item in supplierNames"
+          :key="item.supplierId"
+          :label="item.supplierName"
+          :value="item.supplierId">
+        </el-option>
+      </el-select>
+    </div>
     <div class="wagonLoadbu_table">
       <dilTable
         v-bind.sync="option"
         @selection-change="selectionChange"
       ></dilTable>
     </div>
-
-    <div class="material form">
+    <!-- <div class="material form">
       <span class="text">物资:</span>
       <el-input v-model="materialName" disabled> </el-input>
       <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
@@ -18,7 +51,7 @@
       <span class="text">发货单位:</span>
       <el-input v-model="supplierName" disabled> </el-input>
       <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
-    </div>
+    </div> -->
     <div class="forwardingUnit form">
       <span class="text">卸货点:</span>
       <el-input v-model="unloadPointName" disabled> </el-input>
@@ -88,7 +121,7 @@ export default {
         // 表格请求数据的地址
         requestUrl: "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10",
         // 控制显示多选列
-        selectionType: "select",
+        selectionType: "select"
       },
       //多选选中的数据
       selecTionListMap: [],
@@ -104,6 +137,12 @@ export default {
       supplierId: null,
       //物资id
       materialId: null,
+      //物资选项
+      materialNames:[],
+      //发货单位选项
+      supplierNames:[],
+      //卸货点
+      unloadPointName:null,
       //是否需要打开模态窗口
       drawer: false,
       a: 1,
@@ -126,6 +165,9 @@ export default {
       },
     };
   },
+  mounted(){
+    this.searchMaterialName('');
+  },
   methods: {
     //确定
     makeSure() {
@@ -238,6 +280,35 @@ export default {
           "/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.inputText;
       }
     },
+    searchMaterialName(index=''){
+      let that=this;
+      that.axios.post("api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index="+index).then((res)=>{
+          console.log(res);
+          if (res.data.code == "200" && res.data.data) {
+            that.materialNames=res.data.data.list;
+          } else {
+            this.$message.error("请求失败");
+          }
+         
+      });
+    },
+    searchSupplierName(index=''){
+      let that=this;
+      that.axios.post("/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId="+that.materialId+"&index="+index).then((res)=>{
+           console.log(res);
+          if (res.data.code == "200" && res.data.data) {
+            that.supplierNames=res.data.data.list;
+          }else{
+            this.$message.error("请求失败");
+          }
+      });
+    },
+    supplierIdChange(){
+      this.option.requestUrl=
+      "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10&materialId="
+      +this.materialId+"&supplierId="
+      +this.supplierId;
+    }
   },
 };
 </script>
@@ -247,6 +318,19 @@ export default {
   color: #606266;
   font-size: 0.675rem;
   font-weight: 500;
+  .top {
+    display: flex;
+    margin:0.375rem;
+    .el-select{
+      width: 15%;
+      // height: 2%;
+    }
+    .text {
+      text-align: left; 
+      margin-top: 0.5rem;
+      margin-left:0.375rem;
+    }
+  }
   .cp {
     width: 49%;
     display: flex;
@@ -377,7 +461,7 @@ export default {
               }
               .el-textarea{
                 .el-textarea__inner{
-                  width: 240px;  
+                  width: 250px;  
                   margin-top: 0.03rem;
                 }
               }
@@ -390,7 +474,7 @@ export default {
   .button_box {
     display: flex;
     justify-content: center;
-    padding-top: 30px;
+    margin-top: 30px;
   }
 }
 </style>

+ 51 - 62
src/views/TMS/components/domesticMine/wagonPleaseAdd.vue

@@ -5,59 +5,57 @@
 
     <div class="form">
       <div class="form_box">
-        <dil-form :formId="122" v-model="form1"></dil-form>
+        <dil-form label-width="60px" :formId="122" v-model="form1"></dil-form>
       </div>
     </div>
 
     <div class="formOther">
       <div class="form_box">
-          <el-form
-        :inline="true"
-        class="demo-form-inline"
-        label-width="80px"
-      >
-        <el-form-item label="发货单位">
-          <el-autocomplete
-            class="inline-input"
-            v-model="stateSupplier"
-            :fetch-suggestions="querySearchSupplier"
-            placeholder="请输入发货单位名称"
-            :trigger-on-focus="false"
-            @select="handleSelectSupplier"
-          >
+        <el-form   label-width="70px"> 
+          <div class="preview-group">
+            <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-form-item>
+          <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.supplierName }}</div>
+                <div class="name">{{ item.arrivalName }}</div>
               </template>
-          </el-autocomplete>
-        </el-form-item>
-        <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-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-autocomplete>
+          </el-form-item>
+          <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>
+        </div>
       </el-form>
     
       </div>
@@ -268,11 +266,8 @@ export default {
               width: 70px !important;
             }
             .el-form-item__content {
-              .el-select {
-                width: 250px;
-              }
-              .el-input {
-                width: 250px;
+              .inline-input{
+                width:270px;
               }
             }
             .button_box {
@@ -287,7 +282,8 @@ export default {
 }
 .trainTransport {
   margin-left: 41.25%;
-  width: 50%;
+  margin-top: 30px;
+  width: 300px;
   .inline-input {
     width: 300px;
     .button_box {
@@ -300,7 +296,7 @@ export default {
     display: flex;
     .form_box {
       width: 340px;
-      margin-left: 35%;
+      margin-left: 36%;
       margin-top: 30px;
       margin-right: 20px;
       .el-form {
@@ -311,17 +307,10 @@ export default {
               width: 70px !important;
             }
             .el-form-item__content {
-              .el-select {
-                width: 250px;
-              }
-              .el-input {
-                width: 250px;
+              .inline-input{
+                width:250px;
               }
             }
-            .button_box {
-              margin-left: 42%;
-              margin-top: 55px;
-            }
           }
         }
       }

+ 10 - 19
src/views/TMS/components/domesticMine/wagonPleaseEdit.vue

@@ -271,31 +271,22 @@ export default {
     margin-top: 55px;
   }
 }
-.formOther {
+.formOther {  
     display: flex;
     .form_box {
       width: 340px;
-      margin-left: 35%;
+      margin-left: 36%;
       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;
+        .el-form-item {
+          .el-form-item__label {
+            display: inline-block;
+            width: 70px !important;
+          }
+          .el-form-item__content {
+            .inline-input{
+              width:250px;
             }
           }
         }

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

@@ -140,8 +140,9 @@ export default {
     }
   }
   .button-box {
-    margin-top: 50px;
-    margin-left: 600px;
+    margin-left: 42%;
+    margin-top: 25px;
+    width: 300px;
   }
 }
 </style>

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

@@ -127,6 +127,7 @@ export default {
   .button_box {
     margin-left: 42%;
     margin-top: 55px;
+    width: 300px;
   }
 }
 </style>

+ 103 - 118
src/views/WMS/components/steel/steel_inbound.vue

@@ -3,29 +3,19 @@
   <div class="steel_inbound">
     <div class="sache">
       <span class="text">入库时间:</span>
-      <el-date-picker
-        disabled
-        v-model="startTime"
-        type="datetime"
-        placeholder="选择日期"
-      >
+      <el-date-picker disabled v-model="startTime" type="datetime" placeholder="选择日期">
       </el-date-picker>
       <span class="text">至</span>
-      <el-date-picker
-        disabled
-        v-model="endTime"
-        type="datetime"
-        placeholder="选择日期"
-      >
+      <el-date-picker disabled v-model="endTime" type="datetime" placeholder="选择日期">
       </el-date-picker>
       <span class="text">物资类型</span>
       <el-autocomplete
-        class="inputStyle"
-        v-model="inputText"
-        :fetch-suggestions="querySearch"
-        placeholder="请输入内容"
-        @select="handleSelect"
-      ></el-autocomplete>
+      class="inputStyle"
+      v-model="inputText"
+      :fetch-suggestions="querySearch"
+      placeholder="请输入内容"
+      @select="handleSelect"
+    ></el-autocomplete>
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
@@ -34,11 +24,7 @@
       </el-button>
     </div>
     <div class="table">
-      <dilTable
-        v-if="tableShow"
-        :selectionType="selectionType"
-        v-bind.sync="options"
-      >
+      <dilTable v-if="tableShow" :selectionType="selectionType"  v-bind.sync="options" >
       </dilTable>
     </div>
   </div>
@@ -46,92 +32,77 @@
 
 <script>
 import { sjTime } from "@/utils/sharedJsFile";
-import { getCookie } from "@/utils/util.js";
+import { getCookie } from '@/utils/util.js';
 export default {
-  data() {
-    return {
-      tableShow: false,
-      selectionType: "",
-      inputText: "",
+  data(){
+    return{
+      tableShow:false,
+      selectionType:"",
+      inputText:"",
       startTime: null,
       endTime: null,
-      options: {
+      options:{
         // first请求数据的地址
-        requestUrl: "/api/v1/wms/getWmsInboundResult?apiId=371&warehouseId=" + 3
+        requestUrl: "/api/v1/wms/getWmsInboundResult?apiId=371&warehouseId="+3,
         // selectionType: "select",
         // mapList: [],
-      }
-    };
+      },
+    }
   },
-  mounted() {
-    var date = new Date();
-    let dateStr = this.formatDate(date, "yyyy-MM-dd hh:mm:ss");
+  mounted(){
 
-    this.startTime = Date.parse(new Date(dateStr));
-    this.endTime = new Date(this.startTime + 86400000);
+    var date = new Date();
+    let dateStr=this.formatDate(date, 'yyyy-MM-dd hh:mm:ss');
+    
+    this.startTime= Date.parse(new Date(dateStr));
+    this.endTime=new Date(this.startTime+86400000);
 
-    this.options.requestUrl =
-      "/api/v1/wms/getWmsInboundResult?apiId=371&warehouseId=" +
-      3 +
-      "&startTime=" +
-      sjTime(this.startTime) +
-      "&endTime=" +
-      sjTime(this.endTime);
-    this.tableShow = true;
+    this.options.requestUrl= "/api/v1/wms/getWmsInboundResult?apiId=371&warehouseId="+3+"&startTime=" + sjTime(this.startTime) + "&endTime=" + sjTime(this.endTime) ;
+    this.tableShow=true;
   },
-  methods: {
-    formatDate(date, fmt) {
-      if (/(y+)/.test(fmt)) {
-        fmt = fmt.replace(
-          RegExp.$1,
-          (date.getFullYear() + "").substr(4 - RegExp.$1.length)
-        );
+  methods:{
+    formatDate (date, fmt) {
+        if (/(y+)/.test(fmt)) {
+          fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
+        }
+        let o = {
+          'M+': date.getMonth() + 1,
+          'd+': date.getDate(),
+          'h+': 0,
+          'm+': 0,
+          's+': 0
       }
-      let o = {
-        "M+": date.getMonth() + 1,
-        "d+": date.getDate(),
-        "h+": 0,
-        "m+": 0,
-        "s+": 0
-      };
       for (let k in o) {
         if (new RegExp(`(${k})`).test(fmt)) {
-          let str = o[k] + "";
-          fmt = fmt.replace(
-            RegExp.$1,
-            RegExp.$1.length === 1 ? str : this.padLeftZero(str)
-          );
+          let str = o[k] + ''
+          fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? str : this.padLeftZero(str))
         }
-      }
-      return fmt;
-    },
-    padLeftZero(str) {
-      return ("00" + str).substr(str.length);
-    },
-    querySearch(queryString, cb) {
-      var restaurants = [
-        { value: "螺纹钢" },
-        { value: "盘螺" },
-        { value: "乱尺" }
-      ];
-      var results = queryString
-        ? restaurants.filter(this.createFilter(queryString))
-        : restaurants;
-      // 调用 callback 返回建议列表的数据
-      cb(results);
+            }
+      return fmt
     },
-    createFilter(queryString) {
-      return restaurant => {
-        return (
-          restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) ===
-          0
-        );
-      };
+    padLeftZero (str) {
+        return ('00' + str).substr(str.length)
     },
+     querySearch(queryString, cb) {
+        var restaurants = [ 
+                            {"value":"螺纹钢"},
+                            {"value":"盘螺"},
+                            {"value":"乱尺"}
+                          ];
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
+        // 调用 callback 返回建议列表的数据
+        cb(results);
+      },
+      createFilter(queryString) {
+        return (restaurant) => {
+          return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
+        };
+      },
     // inboundDetails(scope){
     //   	this.$router.push("/inboundDetails/" + scope.row.inboundId)
     // },
-    onclick() {
+    onclick(){
+
       let startTime = null;
       let endTime = null;
       if (this.startTime) {
@@ -142,18 +113,10 @@ export default {
       }
       if (startTime && endTime) {
         if (startTime < endTime) {
-          this.options.requestUrl =
-            "/api/v1/wms/getWmsInboundResult?apiId=371&warehouseId=" +
-            3 +
-            "&startTime=" +
-            startTime +
-            "&endTime=" +
-            endTime +
-            "&i=" +
-            new Date();
-          this.options.requestQuery = {
-            materialNames: this.inputText
-          };
+          this.options.requestUrl = "/api/v1/wms/getWmsInboundResult?apiId=371&warehouseId="+3+"&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
+          this.options.requestQuery={
+            "materialNames":this.inputText
+          }
           // this.selectionType="select";
         } else {
           this.startTime = null;
@@ -161,7 +124,7 @@ export default {
           this.$message.warning("开始时间要比结束时间早");
         }
       } else {
-        this.$message.warning("没有选择时间段");
+         this.$message.warning("没有选择时间段");
         // this.getRequestUrl()
       }
     },
@@ -169,26 +132,48 @@ export default {
       this.options.mapList = selection;
     },
     handleSelect(item) {
-      console.log(item);
+        console.log(item);
     },
-    onreserved() {
+    onreserved(){
       this.$router.push({
-        path: "/addSteelInbound"
+        path: "/addSteelInbound",
       });
     }
   }
-};
+}
 </script>
 
-<style lang="scss" scoped>
-.steel_inbound {
-  .sache {
-    margin-left: 20px;
-    margin-top: 20px;
-  }
-  .table {
-    margin-left: 20px;
-    margin-top: 20px;
-  }
+<style lang="scss" scode>
+.steel_inbound{
+  margin-top: 30px;
+  margin-left: 20px;
+   
+    .sache{
+      display: flex;
+      margin-bottom: 10px;
+      padding-right: 10px;
+       .inputStyle{
+          width: 200px;
+          margin-right: 5px;
+        margin-left: 5px;
+        }
+      .text {
+        text-align: left;
+        line-height: 40px;
+      }
+      .el-date-editor {
+        margin-right: 5px;
+        margin-left: 5px;
+      }
+      .btn {
+        margin-left: 10px;
+      }
+      .el-select {
+      width: 100%;
+      .el-input__inner {
+        width: 150px;
+      }
+    }
+    }
 }
-</style>
+</style>