|
|
@ -42,6 +42,7 @@ |
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<win-scan-pack ref="scanPopup" @getResult='getScanResult' headerType="HPQ,HMQ"></win-scan-pack> |
|
|
|
|
|
|
|
<detail-info-popup ref="detailInfoPopup"></detail-info-popup> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -80,6 +81,7 @@ |
|
|
|
import comReceiptDetailCard from '@/pages/unPlanned/coms/comReceiptDetailCard.vue' |
|
|
|
import jobTop from '@/mycomponents/job/jobTop.vue' |
|
|
|
import comRecommendDetailCard from "@/mycomponents/detail/comRecommendDetailCard.vue" |
|
|
|
import detailInfoPopup from '@/pages/unPlanned/coms/detailInfoPopup.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'receipt_detail', |
|
|
@ -89,7 +91,8 @@ |
|
|
|
comReceiptDetailCard, |
|
|
|
locationCompare, |
|
|
|
jobTop, |
|
|
|
comRecommendDetailCard |
|
|
|
comRecommendDetailCard, |
|
|
|
detailInfoPopup |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -229,6 +232,16 @@ |
|
|
|
|
|
|
|
|
|
|
|
updateData() { |
|
|
|
//删除新添加的 |
|
|
|
for (var i = 0; i < this.detailSource.length; i++) { |
|
|
|
var item =this.detailSource[i] |
|
|
|
for (var j = 0; j < item.subList.length; j++) { |
|
|
|
var sub =item.subList[j] |
|
|
|
if(!sub.isRecommend&&!sub.scaned){ |
|
|
|
item.subList.splice(j,1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
@ -279,13 +292,13 @@ |
|
|
|
toLocationCode:locationCode, |
|
|
|
// inventoryStatus:inventoryStatus, |
|
|
|
// toInventoryStatus:inventoryStatus, |
|
|
|
// balance:result.balance, |
|
|
|
balance:{}, |
|
|
|
isRecommend:false, |
|
|
|
isNewAdd:"newAdd" |
|
|
|
} |
|
|
|
// newAdd.balance.balanceQty = Number(result.balance.qty); |
|
|
|
// newAdd.balance.packQty = Number(result.package.packQty) |
|
|
|
// newAdd.balance.packUnit = result.package.packUnit |
|
|
|
newAdd.balance.packQty = Number(result.package.packQty) |
|
|
|
newAdd.balance.packUnit = result.package.packUnit |
|
|
|
newAdd.scaned = true; |
|
|
|
detail.subList.push(newAdd) |
|
|
|
} else { |
|
|
@ -302,11 +315,11 @@ |
|
|
|
this.continueScan() |
|
|
|
} |
|
|
|
} |
|
|
|
let array = this.detailSource.map((item=>{ |
|
|
|
return { |
|
|
|
...item, |
|
|
|
subList: item.subList.filter(cur=>cur.isRecommend == true) |
|
|
|
} |
|
|
|
let array = [] |
|
|
|
this.detailSource.forEach((item=>{ |
|
|
|
let obj = {...item} |
|
|
|
obj.subList=item.subList.filter(cur=>cur.isRecommend == true) |
|
|
|
array.push(obj) |
|
|
|
})) |
|
|
|
calcHandleQty(array); |
|
|
|
} |
|
|
@ -523,6 +536,9 @@ |
|
|
|
return this.jobContent; |
|
|
|
}, |
|
|
|
|
|
|
|
openDetail(item) { |
|
|
|
this.$refs.detailInfoPopup.openPopup(item) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|