+
@@ -256,6 +268,7 @@ export default {
name: 'MaterialOut',
data() {
return {
+ dateRange: '',
multipleSelection1: [],
multipleSelection: [],
pickingListNum: '', // 领料单流水号
@@ -531,9 +544,10 @@ export default {
},
// 查询领料单列表
searchList() {
- let check
+ let check, check1
this.pickingListNumber ? check = 1 : check = 0
- searchList(this.pageCurrent3, this.pageSize3, check, this.pickingListNumber).then(response => {
+ this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '')
+ searchList(this.pageCurrent3, this.pageSize3, check, this.pickingListNumber, check1, this.dateRange[0], this.dateRange[1]).then(response => {
this.pickListTable1 = response.data.rows
this.total3 = response.data.total
})
@@ -562,9 +576,11 @@ export default {
if (res.data[i].请购单明细流水号 !== 0 && res.data[i].请购单明细流水号 !== '' && res.data[i].请购单明细流水号 !== null) {
res.data[i].货位存量1 = res.data[i].货位存量
}
+ if (res.data[i].货位存量1 > res.data[i].总数量) {
+ res.data[i].出库数量 = res.data[i].总数量
+ }
}
this.pickListTable2 = res.data
- console.log(this.pickListTable2, 111)
})
},
tableRowClassName({ row }) {