Browse Source

plm BM

master
ruanqi 2 years ago
parent
commit
1df32133f2
  1. 30
      src/views/modules/tooling/toolingInfo.vue

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

@ -699,13 +699,13 @@
this.visible=true; this.visible=true;
}, },
changeSum(row){ changeSum(row){
if(row.applyQty!=null&&row.applyQty!==''&& row.toolQuantity<row.applyQty){
row.applyQty=''
this.$alert('实际申请数量大于表单工具数量!', '错误', {
confirmButtonText: '确定'
})
return false;
}
// if(row.applyQty!=null&&row.applyQty!==''&& row.toolQuantity<row.applyQty){
// row.applyQty=''
// this.$alert('', '', {
// confirmButtonText: ''
// })
// return false;
// }
this.dataForm.applySumQty =0 this.dataForm.applySumQty =0
for (const item of this.toolData) { for (const item of this.toolData) {
// null undefined 0 // null undefined 0
@ -713,14 +713,14 @@
} }
}, },
saveData(){ saveData(){
for (let i = 0; i < this.toolData.length; i++) {
if(this.toolData[i].toolQuantity<this.toolData[i].applyQty){
this.$alert( '工具:'+this.toolData[i].toolNo +' 实际申请数量大于表单工具数量!', '错误', {
confirmButtonText: '确定'
})
return false;
}
}
// for (let i = 0; i < this.toolData.length; i++) {
// if(this.toolData[i].toolQuantity<this.toolData[i].applyQty){
// this.$alert( ''+this.toolData[i].toolNo +' ', '', {
// confirmButtonText: ''
// })
// return false;
// }
// }
if(this.dataForm.applySumQty===0){ if(this.dataForm.applySumQty===0){
this.$alert('未填写申请数量!', '错误', { this.$alert('未填写申请数量!', '错误', {
confirmButtonText: '确定' confirmButtonText: '确定'

Loading…
Cancel
Save