|
|
@ -11,7 +11,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="page-main"> |
|
|
|
<scroll-view scroll-y="true" class=""> |
|
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
|
<view v-for="(toLocation, index) in detailSource"> |
|
|
|
<com-repleish-detail-card ref='comIssueDetailCard' :dataContent="toLocation" |
|
|
|
@updateData='updateData'> |
|
|
@ -213,15 +213,30 @@ |
|
|
|
|
|
|
|
submit() { |
|
|
|
var scanCount = this.getScanCount(this.subList); |
|
|
|
if (scanCount == 0) { |
|
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
|
return; |
|
|
|
|
|
|
|
//允许部分提交 |
|
|
|
if(this.jobContent.allowPartialComplete=="TRUE"){ |
|
|
|
// 如果扫描数是0,提示扫描数为0,是否提交,点击确定提交,取消提示消失 |
|
|
|
if(scanCount == 0){ |
|
|
|
this.$refs.comMessage.showQuestionMessage("扫描数为0,是否提交?",res=>{ |
|
|
|
if(res){ |
|
|
|
this.setSubmitParamsAndSubmit(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
this.setSubmitParamsAndSubmit(); |
|
|
|
} |
|
|
|
}else { |
|
|
|
//不允许部分提交,扫描数必须等于任务数量才可以提交 |
|
|
|
if(scanCount == 0){ |
|
|
|
this.showErrorMessage("扫描数为0,当前补料任务不允许部分提交,请先扫描") |
|
|
|
}else { |
|
|
|
this.setSubmitParamsAndSubmit(); |
|
|
|
} |
|
|
|
} |
|
|
|
uni.showLoading({ |
|
|
|
title: "提交中....", |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
setSubmitParamsAndSubmit(){ |
|
|
|
//目前任务只到一个库位 |
|
|
|
var itemCodes = [] |
|
|
|
let locationCode = this.toLocationCode |
|
|
@ -230,7 +245,7 @@ |
|
|
|
itemCodes.push(item.itemCode) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
//使用在途库,不查询管理模式 |
|
|
|
if (this.jobContent.useOnTheWayLocation == 'TRUE') { |
|
|
|
this.submitJob(); |
|
|
@ -249,6 +264,10 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
submitJob() { |
|
|
|
uni.showLoading({ |
|
|
|
title: "提交中....", |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
var params = this.setParams() |
|
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
|
|