Browse Source

Merge branch 'hella_online_20240803' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into hella_online_20240803

hella_online_20240829
niexiting 3 months ago
parent
commit
53a6c55676
  1. 4
      src/pages/issue/coms/comScanIssuePack.vue
  2. 11
      src/pages/issue/record/issueRecord.vue
  3. 11
      src/pages/repleinsh/record/repleinshRecord.vue

4
src/pages/issue/coms/comScanIssuePack.vue

@ -488,6 +488,10 @@
} }
if (this.toLocation && result.package.packUnit) { if (this.toLocation && result.package.packUnit) {
let item = this.toLocation.Items.find(r => r.itemCode == result.package.itemCode); let item = this.toLocation.Items.find(r => r.itemCode == result.package.itemCode);
if(!item){
this.showErrorMessage('扫描物料代码不属于该任务');
return
}
if (result.package.packUnit !== item.packUnit) { if (result.package.packUnit !== item.packUnit) {
this.$refs.comMessage.showQuestionMessage( this.$refs.comMessage.showQuestionMessage(
`扫描物料包装【${result.package.packUnit}】与任务推荐包装规格【${item.packUnit}】不一致.是否要继续发料?`, res => { `扫描物料包装【${result.package.packUnit}】与任务推荐包装规格【${item.packUnit}】不一致.是否要继续发料?`, res => {

11
src/pages/issue/record/issueRecord.vue

@ -235,8 +235,15 @@
that.recommendList.forEach(r => r.locationCode = r.fromLocationCode) that.recommendList.forEach(r => r.locationCode = r.fromLocationCode)
let recommendInfo = res.data[0]; let recommendInfo = res.data[0];
if (recommendInfo.batch != result.package.batch) { if (recommendInfo.batch != result.package.batch) {
that.showErrorMessage('扫描的批次【' + result.package.batch + '】,不是系统推荐的批次【' + that.$refs.comMessage.showQuestionMessage('扫描的批次【' + result.package.batch + '】,不是系统推荐的批次【' +
recommendInfo.batch + '】,不满足系统的先进先出规则,请重新扫描'); recommendInfo.batch + '】,不满足系统的先进先出规则,'+'是否继续?',
res => {
if(res){
this.setData(result);
}
})
// that.showErrorMessage('' + result.package.batch + ',' +
// recommendInfo.batch + ',,');
} else { } else {
this.setData(result); this.setData(result);
} }

11
src/pages/repleinsh/record/repleinshRecord.vue

@ -259,8 +259,15 @@
that.recommendList.forEach(r => r.locationCode = r.fromLocationCode) that.recommendList.forEach(r => r.locationCode = r.fromLocationCode)
let recommendInfo = res.data[0]; let recommendInfo = res.data[0];
if (recommendInfo.batch != result.package.batch) { if (recommendInfo.batch != result.package.batch) {
that.showErrorMessage('扫描的批次【' + result.package.batch + '】,不是系统推荐的批次【' + // that.showErrorMessage('' + result.package.batch + ',' +
recommendInfo.batch + '】,不满足系统的先进先出规则,请重新扫描'); // recommendInfo.batch + ',,');
that.$refs.comMessage.showQuestionMessage('扫描的批次【' + result.package.batch + '】,不是系统推荐的批次【' +
recommendInfo.batch + '】,不满足系统的先进先出规则,'+'是否继续?',
res => {
if(res){
this.setData(result);
}
})
} else { } else {
this.setData(result); this.setData(result);
} }

Loading…
Cancel
Save