diff --git a/pages/repleinsh/coms/comRepleinshRequestPopup.vue b/pages/repleinsh/coms/comRepleinshRequestPopup.vue index 8ebc05a6..575334de 100644 --- a/pages/repleinsh/coms/comRepleinshRequestPopup.vue +++ b/pages/repleinsh/coms/comRepleinshRequestPopup.vue @@ -135,6 +135,11 @@ type: Array, default: [] }, + itemCodeTypeList: { + type: Array, + default: [] + }, + }, mounted() { diff --git a/pages/repleinsh/record/repleinshRecord.vue b/pages/repleinsh/record/repleinshRecord.vue index 62446127..f9f7304d 100644 --- a/pages/repleinsh/record/repleinshRecord.vue +++ b/pages/repleinsh/record/repleinshRecord.vue @@ -342,6 +342,10 @@ }, submit() { + if(this.getScanCount()==0){ + this.showErrorMessage("当前扫描数为0,请先扫描在提交"); + return + } uni.showLoading({ title: "提交中....", mask: true @@ -439,7 +443,32 @@ this.dataContent.creator = creator; return this.dataContent; }, - + + getScanCount(){ + var scanCount = 0; + var subList = [] + this.detailSource.forEach(toLocationCode => { + toLocationCode.Items.forEach(item => { + item.Locations.forEach(fromLocation => { + fromLocation.Batchs.forEach(batch => { + let subItem = batch.detail; + subItem.recordList = []; + + if (batch.Records.length > 0) { + batch.Records.forEach(r => { + let record = {}; + record.handleQty = r.qty; + subItem.recordList.push(record); + }) + subList.push(subItem); + } + }) + }) + }) + }) + return scanCount =subList.length; + }, + showMessage(message) { this.$refs.comMessage.showMessage(message, res => {