外协预算
This commit is contained in:
@@ -184,6 +184,7 @@ import { machine, getToolNum, getNum, searchPartNum1, searchTable, saveWeightAre
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
a: '',
|
||||||
entryNameValue: '',
|
entryNameValue: '',
|
||||||
entryName: [], // 项目名称
|
entryName: [], // 项目名称
|
||||||
toolNumValue: '',
|
toolNumValue: '',
|
||||||
@@ -383,12 +384,16 @@ export default {
|
|||||||
if (this.tableData.length === 0) {
|
if (this.tableData.length === 0) {
|
||||||
this.$message.error('请选择零件')
|
this.$message.error('请选择零件')
|
||||||
} else {
|
} else {
|
||||||
|
this.a = 0
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
saveRowPrice(this.tableData[i].工序流水号, parseFloat(this.tableData[i].外协预算价格_计算), this.tableData[i].工艺计划流水号, this.cailiaofei).then(response => {
|
saveRowPrice(this.tableData[i].工序流水号, parseFloat(this.tableData[i].外协预算价格_计算), this.tableData[i].工艺计划流水号, this.cailiaofei).then(response => {
|
||||||
|
this.a += parseInt(response.data[0].result)
|
||||||
|
if (this.a === this.tableData.length) {
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
this.searchPartNum()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.$message.success('保存成功')
|
|
||||||
this.searchPartNum()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSizeChange2(val) {
|
handleSizeChange2(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user