库存盘点
This commit is contained in:
@@ -654,13 +654,13 @@ export default {
|
|||||||
PurchasePartOut: [], // 外购件出库记录
|
PurchasePartOut: [], // 外购件出库记录
|
||||||
PurchasePartIn: [], // 外购件入库记录
|
PurchasePartIn: [], // 外购件入库记录
|
||||||
tableDataStandard: [], // 标准件
|
tableDataStandard: [], // 标准件
|
||||||
ProjectValue: ' ',
|
ProjectValue: '',
|
||||||
Project: [],
|
Project: [],
|
||||||
ProjectValue_check: 1,
|
ProjectValue_check: 1,
|
||||||
MachineValue: ' ',
|
MachineValue: '',
|
||||||
Machine: [],
|
Machine: [],
|
||||||
MachineValue_check: 1,
|
MachineValue_check: 1,
|
||||||
GroupNumValue: ' ',
|
GroupNumValue: '',
|
||||||
GroupNumValue_check: 1,
|
GroupNumValue_check: 1,
|
||||||
GroupNum: [],
|
GroupNum: [],
|
||||||
ContractDetailValue: '',
|
ContractDetailValue: '',
|
||||||
@@ -712,10 +712,13 @@ export default {
|
|||||||
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
||||||
},
|
},
|
||||||
searchMachine() { // 查询机床
|
searchMachine() { // 查询机床
|
||||||
if (this.ProjectValue === ' ') {
|
this.Machine = []
|
||||||
this.ProjectValue_check = 0
|
this.GroupNum = []
|
||||||
}
|
this.MachineValue = ''
|
||||||
searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => {
|
this.GroupNumValue = ''
|
||||||
|
console.log(this.ProjectValue)
|
||||||
|
if (this.ProjectValue !== '') {
|
||||||
|
searchmachine(1, this.ProjectValue).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.Machine.push({
|
this.Machine.push({
|
||||||
label: response.data[i].机床图号,
|
label: response.data[i].机床图号,
|
||||||
@@ -723,12 +726,15 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
searchGroupList() { // 查询组号
|
searchGroupList() { // 查询组号
|
||||||
|
this.GroupNum = []
|
||||||
|
this.GroupNumValue = ''
|
||||||
searchTeam(this.MachineValue).then(response => {
|
searchTeam(this.MachineValue).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.GroupNum.push({
|
this.GroupNum.push({
|
||||||
label: response.data[i].组件名称,
|
label: response.data[i].组号,
|
||||||
value: response.data[i].组件流水号
|
value: response.data[i].组件流水号
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -738,23 +744,26 @@ export default {
|
|||||||
searchPurchasePartinfo() {
|
searchPurchasePartinfo() {
|
||||||
this.listLoading6 = true
|
this.listLoading6 = true
|
||||||
this.tableDataPurchase = []
|
this.tableDataPurchase = []
|
||||||
if (this.ProjectValue === ' ') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === ' ') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === ' ') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchPurchasePart(this.PageCurrent2, this.PageSize2, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchPurchasePart(this.PageCurrent2, this.PageSize2, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataPurchase = response.data.rows
|
this.tableDataPurchase = response.data.rows
|
||||||
this.total2 = response.data.total
|
this.total2 = response.data.total
|
||||||
this.listLoading6 = false
|
this.listLoading6 = false
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
// 查询外购件记录
|
// 查询外购件记录
|
||||||
searchPurchasePartRecord(row) {
|
searchPurchasePartRecord(row) {
|
||||||
@@ -775,14 +784,20 @@ export default {
|
|||||||
searchStandardPartinfo() {
|
searchStandardPartinfo() {
|
||||||
this.listLoading9 = true
|
this.listLoading9 = true
|
||||||
this.tableDataStandard = []
|
this.tableDataStandard = []
|
||||||
if (this.ProjectValue === ' ') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === ' ') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === ' ') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchStandardPart(this.PageCurrent3, this.PageSize3, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchStandardPart(this.PageCurrent3, this.PageSize3, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataStandard = response.data.rows
|
this.tableDataStandard = response.data.rows
|
||||||
@@ -790,9 +805,6 @@ export default {
|
|||||||
this.listLoading9 = false
|
this.listLoading9 = false
|
||||||
console.log(this.tableDataPurchase)
|
console.log(this.tableDataPurchase)
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
standardselecting(row) {
|
standardselecting(row) {
|
||||||
this.contractDeatilNumber = row.采购合同明细流水号
|
this.contractDeatilNumber = row.采购合同明细流水号
|
||||||
@@ -820,45 +832,51 @@ export default {
|
|||||||
searchGeneralPartinfo() {
|
searchGeneralPartinfo() {
|
||||||
this.listLoading3 = true
|
this.listLoading3 = true
|
||||||
this.tableDataGeneral = []
|
this.tableDataGeneral = []
|
||||||
if (this.ProjectValue === ' ') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === ' ') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === ' ') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchGeneralPart(this.PageCurrent1, this.PageSize1, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchGeneralPart(this.PageCurrent1, this.PageSize1, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataGeneral = response.data.rows
|
this.tableDataGeneral = response.data.rows
|
||||||
this.total1 = response.data.total
|
this.total1 = response.data.total
|
||||||
this.listLoading3 = false
|
this.listLoading3 = false
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
// 查询基本件
|
// 查询基本件
|
||||||
searchBasciPartinfo() {
|
searchBasciPartinfo() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.tableDataBasic = []
|
this.tableDataBasic = []
|
||||||
if (this.ProjectValue === ' ') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === ' ') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === ' ') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchBasicPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchBasicPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataBasic = response.data.rows
|
this.tableDataBasic = response.data.rows
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
// 查询基本件记录
|
// 查询基本件记录
|
||||||
searchBasicPartRecord(row) {
|
searchBasicPartRecord(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user