Browse Source

plm BMM

master
ruanqi 1 year ago
parent
commit
cf64b2ce6b
  1. 8
      src/views/modules/tooling/searchToolApply.vue
  2. 10
      src/views/modules/tooling/toolingInfo.vue

8
src/views/modules/tooling/searchToolApply.vue

@ -1792,10 +1792,10 @@
},
changeSum() {
if(row.standardCost<0||row.standardCost==null||row.standardCost==''){
row.standardCost=''
this.$alert('成本不能为负数或者不填', '错误', {
confirmButtonText: '确定'
})
row.standardCost=0
// this.$alert('', '', {
// confirmButtonText: ''
// })
}
this.dataForm.applySumQty = 0
this.dataForm.totalCost =0

10
src/views/modules/tooling/toolingInfo.vue

@ -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;

Loading…
Cancel
Save