|
@@ -2,22 +2,47 @@
|
|
<template>
|
|
<template>
|
|
<div class="steel_inbound">
|
|
<div class="steel_inbound">
|
|
<div class="sache">
|
|
<div class="sache">
|
|
- <span>扫码时间:</span>
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="startTime"
|
|
|
|
- type="datetime"
|
|
|
|
- placeholder="选择日期"
|
|
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
- <span>至</span>
|
|
|
|
- <el-date-picker v-model="endTime" type="datetime" placeholder="选择日期">
|
|
|
|
- </el-date-picker>
|
|
|
|
- <el-button type="primary" class="btn" @click="onclick">
|
|
|
|
- <i class="el-icon-search"></i>查询
|
|
|
|
- </el-button>
|
|
|
|
- <el-button type="primary" class="btn" @click="onreserved">
|
|
|
|
- 入库
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-form :inline="true">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <span class="text">入库时间:</span>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ disabled
|
|
|
|
+ v-model="startTime"
|
|
|
|
+ type="datetime"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ style="width: 200px;"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ <span class="text">至</span>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ disabled
|
|
|
|
+ v-model="endTime"
|
|
|
|
+ type="datetime"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ style="width: 200px;"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <span class="text">物资类型</span>
|
|
|
|
+ <el-autocomplete
|
|
|
|
+ class="inputStyle"
|
|
|
|
+ v-model="inputText"
|
|
|
|
+ :fetch-suggestions="querySearch"
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ @select="handleSelect"
|
|
|
|
+ style="width: 200px;"
|
|
|
|
+ ></el-autocomplete>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button type="primary" class="btn" @click="onreserved">
|
|
|
|
+ 入库
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
<dilTable v-bind.sync="options"> </dilTable>
|
|
<dilTable v-bind.sync="options"> </dilTable>
|
|
@@ -88,6 +113,25 @@ export default {
|
|
padLeftZero(str) {
|
|
padLeftZero(str) {
|
|
return ("00" + str).substr(str.length);
|
|
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()) > -1
|
|
|
|
+ );
|
|
|
|
+ };
|
|
|
|
+ },
|
|
// inboundDetails(scope){
|
|
// inboundDetails(scope){
|
|
// this.$router.push("/inboundDetails/" + scope.row.inboundId)
|
|
// this.$router.push("/inboundDetails/" + scope.row.inboundId)
|
|
// },
|
|
// },
|
|
@@ -112,6 +156,9 @@ export default {
|
|
endTime +
|
|
endTime +
|
|
"&i=" +
|
|
"&i=" +
|
|
new Date();
|
|
new Date();
|
|
|
|
+ this.options.requestQuery = {
|
|
|
|
+ materialNames: this.inputText
|
|
|
|
+ };
|
|
// }else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
// }else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
// this.options.requestUrl = "/api/v1/wms/getWmsInboundResult?apiId=371&orderType=13&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
|
|
// this.options.requestUrl = "/api/v1/wms/getWmsInboundResult?apiId=371&orderType=13&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
|
|
// }else{
|
|
// }else{
|
|
@@ -141,10 +188,12 @@ export default {
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.steel_inbound {
|
|
.steel_inbound {
|
|
.sache {
|
|
.sache {
|
|
- height: 5rem;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- padding-left: 1.875rem;
|
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ }
|
|
|
|
+ .table {
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ margin-top: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|