This commit is contained in:
liushuai
2018-12-17 20:37:10 +08:00
parent 916996c1ab
commit 05f44d8b7d
13 changed files with 1501 additions and 233 deletions

View File

@@ -717,7 +717,8 @@ export default {
},
purchaseRequisition() {
if (this.RequisitionList !== '') {
if (this.time !== '') {
console.log(this.time)
if (this.time !== '' && this.time !== null) {
if (this.BasicPartsNumber.length !== 0 || this.StandardPartsAndOutsourcing.length !== 0) {
this.result = 0
if (this.PartType === '基本件') {
@@ -794,7 +795,7 @@ export default {
}
},
PurchasingDepartment() {
if (this.time !== '') {
if (this.time !== '' && this.time !== null) {
if (this.BasicPartsNumber.length !== 0 || this.StandardPartsAndOutsourcing.length !== 0) {
if (this.PartType === '基本件') {
purchaseRequisition2(this.projectFloatValue, this.machineFloatValue, this.groupFloatValue, this.BasicPartsNumber, this.NumberOfParts, this.time).then(response => {
@@ -813,11 +814,11 @@ export default {
this.tableData6 = response.data
})
} else {
this.$message.success('请购失败')
this.$message.error('请购失败')
}
})
} else {
PurchasingDepartment(this.groupFloatValue, this.StandardPartsAndOutsourcing, this.time, this.MaterialNum, this.NumberOfParts, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => {
PurchasingDepartment(this.groupFloatValue, this.StandardPartsAndOutsourcing, this.time, this.MaterialNum, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => {
if (response.data[0].result !== '0') {
this.$message.success('请购成功')
if (this.PartType === '外购件') {
@@ -830,7 +831,7 @@ export default {
})
}
} else {
this.$message.success('请购失败')
this.$message.error('请购失败')
}
})
}