出库时间

This commit is contained in:
chenjianan
2019-06-14 10:10:13 +08:00
parent a8b564c724
commit e9511c9950
2 changed files with 18 additions and 5 deletions

View File

@@ -32,6 +32,17 @@
<el-input v-model="spec" clearable size="small" style="width:150px" />
<span>图号或型号:</span>
<el-input v-model="model" clearable size="small" style="width:150px" />
<span>出库时间:</span>
<el-date-picker
v-model="outTime"
type="daterange"
size="small"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
range-separator="~"
style="width:250px"
start-placeholder=""
end-placeholder=""/>
<el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="pageCurrent1=1;pageSize1=10;searchRecord()">查询</el-button>
</div>
<el-table :data="tableData" border size="mini" style="width: 100%;" height="600">
@@ -99,7 +110,8 @@ export default {
tableData: [],
pageSize1: 10,
pageCurrent1: 1,
total1: 0
total1: 0,
outTime: '' // 出库时间
}
},
mounted() {
@@ -134,14 +146,15 @@ export default {
})
},
searchRecord() {
let check1, check2, check3, check4, check5, check6
let check1, check2, check3, check4, check5, check6, check7
this.projectValue ? check1 = 1 : check1 = 0
this.machineValue ? check2 = 1 : check2 = 0
this.groupValue ? check3 = 1 : check3 = 0
this.name ? check4 = 1 : check4 = 0
this.spec ? check5 = 1 : check5 = 0
this.model ? check6 = 1 : check6 = 0
searchRecord(check1, this.projectValue, check2, this.machineValue, check3, this.groupValue, check4, this.name, check5, this.spec, check6, this.model, this.pageCurrent1, this.pageSize1).then(res => {
this.outTime ? check7 = 1 : check7 = 0
searchRecord(check1, this.projectValue, check2, this.machineValue, check3, this.groupValue, check4, this.name, check5, this.spec, check6, this.model, check7, this.outTime[0] || '', this.outTime[1] || '', this.pageCurrent1, this.pageSize1).then(res => {
this.tableData = res.data.rows
this.total1 = res.data.total
})