Browse Source

修改补料提交提示,盘点是否可以部分提交

wms3.0_pda
lijuncheng 10 months ago
parent
commit
5803c52528
  1. 2
      pages/repleinsh/coms/comRepleishDetailCard.vue
  2. 13
      pages/repleinsh/coms/comScanReplishPack.vue
  3. 39
      pages/repleinsh/job/repleinshDetail.vue

2
pages/repleinsh/coms/comRepleishDetailCard.vue

@ -8,7 +8,7 @@
<uni-collapse-item :open="true" :show-animation="true"> <uni-collapse-item :open="true" :show-animation="true">
<template v-slot:title> <template v-slot:title>
<!-- 物品 --> <!-- 物品 -->
<item-qty :dataContent="item" :handleQty="item.handleQty"></item-qty> <item-qty :dataContent="item" :handleQty="item.handleQty" :isShowBalanceQty="false" ></item-qty>
</template> </template>
<u-line /> <u-line />
<view v-for="(loacation,index) in item.Locations"> <view v-for="(loacation,index) in item.Locations">

13
pages/repleinsh/coms/comScanReplishPack.vue

@ -393,6 +393,19 @@
handleQty = calc.add(handleQty,res.qty) handleQty = calc.add(handleQty,res.qty)
}) })
batch.handleQty = handleQty; batch.handleQty = handleQty;
this.dataContent.forEach(toLocationCode=>{
toLocationCode.Items.forEach(item=>{
var itemCodeHandleQty =0;
item.Locations.forEach(batch=>{
batch.Batchs.forEach(batchHandleQty=>{
itemCodeHandleQty=calc.add(itemCodeHandleQty,batchHandleQty.handleQty)
})
})
item.handleQty=itemCodeHandleQty;
})
})
}, },
addRecord(batch, label, balance, packageInfo) { addRecord(batch, label, balance, packageInfo) {

39
pages/repleinsh/job/repleinshDetail.vue

@ -11,7 +11,7 @@
</view> </view>
<view class="page-main"> <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"> <view v-for="(toLocation, index) in detailSource">
<com-repleish-detail-card ref='comIssueDetailCard' :dataContent="toLocation" <com-repleish-detail-card ref='comIssueDetailCard' :dataContent="toLocation"
@updateData='updateData'> @updateData='updateData'>
@ -213,15 +213,30 @@
submit() { submit() {
var scanCount = this.getScanCount(this.subList); var scanCount = this.getScanCount(this.subList);
if (scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描") //
return; if(this.jobContent.allowPartialComplete=="TRUE"){
// 00
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 = [] var itemCodes = []
let locationCode = this.toLocationCode let locationCode = this.toLocationCode
@ -230,7 +245,7 @@
itemCodes.push(item.itemCode) itemCodes.push(item.itemCode)
}) })
}) })
//使 //使
if (this.jobContent.useOnTheWayLocation == 'TRUE') { if (this.jobContent.useOnTheWayLocation == 'TRUE') {
this.submitJob(); this.submitJob();
@ -249,6 +264,10 @@
}, },
submitJob() { submitJob() {
uni.showLoading({
title: "提交中....",
mask: true
});
var params = this.setParams() var params = this.setParams()
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));

Loading…
Cancel
Save