Browse Source

采购收货新需求

intex
zhang_li 2 weeks 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-item>
</uni-swipe-action> </uni-swipe-action>
</template> </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" :settingParam="settingParam" @collapseChange="collapseChange" @updateData="updateData"
:isShowFromLocation="false" :isShowPackingNumberProps='true'></package-list> :isShowFromLocation="false" :isShowPackingNumberProps='true'></package-list>
</uni-collapse-item> </uni-collapse-item>

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

@ -507,7 +507,8 @@
pack.qty = batchDetailList[i].qty pack.qty = batchDetailList[i].qty
pack.toLocationCode = this.toLocationCode; pack.toLocationCode = this.toLocationCode;
pack.labelQty = Number(qty); console.log(999,result.package)
pack.labelQty = Number(result.package.packQty);
pack.scaned = true; pack.scaned = true;
// //
if(handleQtySub >= parseFloat(qty)){ if(handleQtySub >= parseFloat(qty)){
@ -691,15 +692,16 @@
let str = '' let str = ''
let str1 = '' let str1 = ''
var scanCount=0; var scanCount=0;
this.jobContent.allowBiggerQty = "FALSE"
this.detailSource.forEach((item) => { this.detailSource.forEach((item) => {
item.subList.forEach(cur=>{ item.subList.forEach(cur=>{
if(cur.scaned){ if(cur.scaned){
scanCount++; scanCount++;
if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){ 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)){ 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; return;
} }
} }
if(this.jobContent.allowSmallerQty == "FALSE"){ // if(this.jobContent.allowSmallerQty == "FALSE"){
if(str){ // if(str){
this.$refs.comMessage.showErrorMessage(str); // this.$refs.comMessage.showErrorMessage(str);
return; // return;
} // }
} // }
if(this.scanCount < this.subList.length){ if(this.scanCount < this.subList.length){
// //
if (this.jobContent.allowPartialComplete == "TRUE") { if (this.jobContent.allowPartialComplete == "TRUE") {

Loading…
Cancel
Save