零件导入、整改件导入

This commit is contained in:
liushuai
2018-12-07 18:58:24 +08:00
parent e0a43ab773
commit 3fed67dec1
10 changed files with 962 additions and 10 deletions

View File

@@ -804,10 +804,12 @@ export default {
}
},
Production() {
this.result = 0
if (this.PartType === '基本件' && this.BasicPartsNumber.length !== 0) {
for (let i = 0; i < this.BasicPartsNumber.length; i++) {
Production(this.groupFloatValue, this.BasicPartsNumber[i], this.projectFloatValue, this.machineFloatValue).then(response => {
if (response.data[0].result === '1') {
this.result += parseInt(response.data[0].result)
if (this.result === this.BasicPartsNumber.length) {
this.$message.success('投产成功')
searchPart(this.groupFloatValue).then(response => {
this.tableData1 = response.data