|
|
|
@ -709,10 +709,10 @@ |
|
|
|
}, |
|
|
|
changeSum(row){ |
|
|
|
if(row.standardCost<0||row.standardCost==null||row.standardCost==''){ |
|
|
|
row.standardCost='' |
|
|
|
this.$alert('成本不能为负数或者不填', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
row.standardCost=0 |
|
|
|
// this.$alert('成本不能为负数或者不填', '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
|
|
|
|
} |
|
|
|
this.dataForm.applySumQty =0 |
|
|
|
@ -785,7 +785,7 @@ |
|
|
|
this.toolData[i].applyQty=0 |
|
|
|
} |
|
|
|
} |
|
|
|
this.dataForm.detailList=this.toolData.filter(item => item.applyQty > 0).filter(item => item.standardCost > 0) |
|
|
|
this.dataForm.detailList=this.toolData.filter(item => item.applyQty > 0).filter(item => item.standardCost >= 0) |
|
|
|
saveProjectToolApply(this.dataForm).then(({data}) => { |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.visible=false; |
|
|
|
|