This commit is contained in:
lixin
2018-11-23 17:04:26 +08:00
parent abb1fe3912
commit c740a9d1d6
5 changed files with 75 additions and 41 deletions

View File

@@ -464,9 +464,9 @@ import { mapGetters } from 'vuex'
export default {
data() {
return {
ProjectValue: null,
ProjectValue: '',
Project: [],
ProjectValue_check: 0,
ProjectValue_check: 1,
MachineValue: null,
Machine: [],
MachineValue_check: 0,
@@ -557,7 +557,8 @@ export default {
dialogFormVisibleWork: false,
time: [],
materialLocate: '',
enableOut: ''
enableOut: '',
pickingListNumber_check: 1
}
},
computed: {
@@ -579,8 +580,14 @@ export default {
console.log(this.picikingPeople)
},
searchMachine() { // 查询机床
if (this.ProjectValue === null) {
this.MachineValue = ''
this.Machine = []
this.GroupNumValue = ''
this.GroupNum = []
if (this.ProjectValue === '') {
this.ProjectValue_check = 0
} else {
this.ProjectValue_check = 1
}
searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -592,6 +599,8 @@ export default {
})
},
searchGroupList() { // 查询组号
this.GroupNumValue = ''
this.GroupNum = []
searchTeam(this.MachineValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.GroupNum.push({
@@ -664,8 +673,11 @@ export default {
},
// 查询领料单
searchListinfor() {
if (this.pickingListNumber === null) {
this.pickingListNumber_check = 0
}
this.listLoading2 = true
searchList(this.PageCurrent2, this.PageSize2, this.pickingListNumber).then(response => {
searchList(this.PageCurrent2, this.PageSize2, this.pickingListNumber_check, this.pickingListNumber).then(response => {
for (let i = 0; i < response.data.rows.length; i++) {
response.data.rows[i].领料时间 = response.data.rows[i].领料时间.substring(0, response.data.rows[i].领料时间.length - 8)
}