Browse Source

采购收货新需求

intex
zhang_li 1 week ago
parent
commit
c1227af623
  1. 2
      src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
  2. 20
      src/pages/purchaseReceipt/job/receiptDetail.vue

2
src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue

@ -11,7 +11,7 @@
</uni-swipe-action-item>
</uni-swipe-action>
</template>
<package-list ref='packageListRef' :dataContent="dataContent.subList" :isEdit="settingParam.allowModifyQty=='TRUE'"
<package-list ref='packageListRef' :dataContent="dataContent.subList" :isEdit="false"
:settingParam="settingParam" @collapseChange="collapseChange" @updateData="updateData"
:isShowFromLocation="false" :isShowPackingNumberProps='true'></package-list>
</uni-collapse-item>

20
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -507,7 +507,8 @@
pack.qty = batchDetailList[i].qty
pack.toLocationCode = this.toLocationCode;
pack.labelQty = Number(qty);
console.log(999,result.package)
pack.labelQty = Number(result.package.packQty);
pack.scaned = true;
//
if(handleQtySub >= parseFloat(qty)){
@ -691,15 +692,16 @@
let str = ''
let str1 = ''
var scanCount=0;
this.jobContent.allowBiggerQty = "FALSE"
this.detailSource.forEach((item) => {
item.subList.forEach(cur=>{
if(cur.scaned){
scanCount++;
if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){
str += `物料号【${item.itemCode}】批次【${cur.batch}实际提交数量【${cur.handleQty}不可以小于任务数量【${cur.qty}\n`
str += `物料号【${item.itemCode}】批次【${cur.batch}扫描数量【${cur.handleQty}】小于任务推荐数量【${cur.qty}\n请修改后再提交`
}
if(parseFloat(cur.qty)<parseFloat(cur.handleQty)){
str1 += `物料号【${item.itemCode}】批次【${cur.batch}实际提交数量【${cur.handleQty}不可以大于任务数量【${cur.qty}\n`
str1 += `物料号【${item.itemCode}】批次【${cur.batch}扫描数量【${cur.handleQty}】大于任务推荐数量【${cur.qty}\n请修改后再提交`
}
}
})
@ -710,12 +712,12 @@
return;
}
}
if(this.jobContent.allowSmallerQty == "FALSE"){
if(str){
this.$refs.comMessage.showErrorMessage(str);
return;
}
}
// if(this.jobContent.allowSmallerQty == "FALSE"){
// if(str){
// this.$refs.comMessage.showErrorMessage(str);
// return;
// }
// }
if(this.scanCount < this.subList.length){
//
if (this.jobContent.allowPartialComplete == "TRUE") {

Loading…
Cancel
Save