Browse Source

修改发料提示

pda_nev
李俊城 10 months ago
parent
commit
7d81c4a941
  1. 3
      fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue
  2. 12
      fe/PDA/pages/task/assembleIssueJobDetailByQty.vue
  3. 16
      fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue
  4. 12
      fe/PDA/pages/task/injectionIssueJobDetailByQty.vue
  5. 12
      fe/PDA/pages/task/kittingIssueJobDetailByQty.vue
  6. 13
      fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

3
fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue

@ -37,7 +37,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
navigateBack navigateBack,
goHome
} from '@/common/basic.js'; } from '@/common/basic.js';
import comRequestDetail from '@/mycomponents/comRequest/comRequestDetail.vue' import comRequestDetail from '@/mycomponents/comRequest/comRequestDetail.vue'

12
fe/PDA/pages/task/assembleIssueJobDetailByQty.vue

@ -142,6 +142,9 @@
getCountByItemCode, getCountByItemCode,
getRecommendBalance getRecommendBalance
} from '@/api/index.js'; } from '@/api/index.js';
import {
calc
} from '@/common/calc.js';
import { import {
getJobStatuStyle, getJobStatuStyle,
getJobStatuDesc, getJobStatuDesc,
@ -464,7 +467,15 @@
this.showMessage('发料数量必须大于0'); this.showMessage('发料数量必须大于0');
return; return;
} }
if(that.details[0].tempHandledToQty>calc.sub(this.allCount,this.scanCount)){
showConfirmMsg("发料数量大于未发数量,是否提交?",res=>{
if(res){
that.finsh(); that.finsh();
}
})
}else {
that.finsh();
}
}, },
@ -536,7 +547,6 @@
return; return;
} }
item.tempHandledFromQty = value; item.tempHandledFromQty = value;
console.log('item', item.tempHandledFromQty);
this.$forceUpdate(); this.$forceUpdate();
}, },

16
fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue

@ -151,6 +151,9 @@
getCountByItemCode, getCountByItemCode,
getRecommendBalance getRecommendBalance
} from '@/api/index.js'; } from '@/api/index.js';
import {
calc
} from '@/common/calc.js';
import { import {
getJobStatuStyle, getJobStatuStyle,
getJobStatuDesc, getJobStatuDesc,
@ -451,7 +454,7 @@
mask: true mask: true
}) })
getRecommendBalance(itemCode,productLine).then(res=>{ getRecommendBalance(itemCode,productLine,false).then(res=>{
uni.hideLoading() uni.hideLoading()
if (res.length > 0) { if (res.length > 0) {
var list = []; var list = [];
@ -511,7 +514,17 @@
this.showMessage('发料数量必须大于0'); this.showMessage('发料数量必须大于0');
return; return;
} }
if(that.details[0].tempHandledToQty>calc.sub(this.allCount,this.scanCount)){
showConfirmMsg("发料数量大于未发数量,是否提交?",res=>{
if(res){
that.finsh(); that.finsh();
}
})
}else {
that.finsh();
}
}, },
@ -583,7 +596,6 @@
return; return;
} }
item.tempHandledFromQty =value; item.tempHandledFromQty =value;
console.log('item', item.tempHandledFromQty);
this.$forceUpdate(); this.$forceUpdate();
}, },

12
fe/PDA/pages/task/injectionIssueJobDetailByQty.vue

@ -141,6 +141,9 @@
getCountByItemCode, getCountByItemCode,
getRecommendBalance getRecommendBalance
} from '@/api/index.js'; } from '@/api/index.js';
import {
calc
} from '@/common/calc.js';
import { import {
getJobStatuStyle, getJobStatuStyle,
getJobStatuDesc, getJobStatuDesc,
@ -460,7 +463,15 @@
this.showMessage('发料数量必须大于0'); this.showMessage('发料数量必须大于0');
return; return;
} }
if(that.details[0].tempHandledToQty>calc.sub(this.allCount,this.scanCount)){
showConfirmMsg("发料数量大于未发数量,是否提交?",res=>{
if(res){
that.finsh(); that.finsh();
}
})
}else {
that.finsh();
}
}, },
@ -532,7 +543,6 @@
return; return;
} }
item.tempHandledFromQty = value; item.tempHandledFromQty = value;
console.log('item', item.tempHandledFromQty);
this.$forceUpdate(); this.$forceUpdate();
}, },

12
fe/PDA/pages/task/kittingIssueJobDetailByQty.vue

@ -141,6 +141,9 @@
getCountByItemCode, getCountByItemCode,
getRecommendBalance getRecommendBalance
} from '@/api/index.js'; } from '@/api/index.js';
import {
calc
} from '@/common/calc.js';
import { import {
getJobStatuStyle, getJobStatuStyle,
getJobStatuDesc, getJobStatuDesc,
@ -463,7 +466,15 @@
this.showMessage('发料数量必须大于0'); this.showMessage('发料数量必须大于0');
return; return;
} }
if(that.details[0].tempHandledToQty>calc.sub(this.allCount,this.scanCount)){
showConfirmMsg("发料数量大于未发数量,是否提交?",res=>{
if(res){
that.finsh(); that.finsh();
}
})
}else {
that.finsh();
}
}, },
@ -535,7 +546,6 @@
return; return;
} }
item.tempHandledFromQty = value; item.tempHandledFromQty = value;
console.log('item', item.tempHandledFromQty);
this.$forceUpdate(); this.$forceUpdate();
}, },

13
fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

@ -141,6 +141,10 @@
getCountByItemCode, getCountByItemCode,
getRecommendBalance getRecommendBalance
} from '@/api/index.js'; } from '@/api/index.js';
import {
calc
} from '@/common/calc.js';
import { import {
getJobStatuStyle, getJobStatuStyle,
getJobStatuDesc, getJobStatuDesc,
@ -460,7 +464,15 @@
this.showMessage('发料数量必须大于0'); this.showMessage('发料数量必须大于0');
return; return;
} }
if(that.details[0].tempHandledToQty>calc.sub(this.allCount,this.scanCount)){
showConfirmMsg("发料数量大于未发数量,是否提交?",res=>{
if(res){
that.finsh();
}
})
}else {
that.finsh(); that.finsh();
}
}, },
@ -532,7 +544,6 @@
return; return;
} }
item.tempHandledFromQty = value; item.tempHandledFromQty = value;
console.log('item', item.tempHandledFromQty);
this.$forceUpdate(); this.$forceUpdate();
}, },

Loading…
Cancel
Save