|
|
@ -18,6 +18,7 @@ |
|
|
|
:dataContent="item" @removeItem="removeItem(index,item)" |
|
|
|
@updateData="updateData" |
|
|
|
:queryBalance="false" |
|
|
|
:allowModifyQty="true" |
|
|
|
:isShowLocation="false" @removePack="removePack"> |
|
|
|
</com-receipt-record> |
|
|
|
</view> |
|
|
@ -109,7 +110,6 @@ |
|
|
|
dataContent: {}, |
|
|
|
managementList: [], |
|
|
|
toLocationAreaTypeList:[], |
|
|
|
managementType:import.meta.env.VITE_MANAGE_MODEL |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -137,50 +137,7 @@ |
|
|
|
this.toLocationCode = code; |
|
|
|
}, |
|
|
|
getScanResult(result) { |
|
|
|
var managementTypeParams =this.managementType |
|
|
|
if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") { |
|
|
|
this.setDataBatch(result) |
|
|
|
} else { |
|
|
|
this.setData(result) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
setData(result){ |
|
|
|
let label = result.label; |
|
|
|
let pack = result.package; |
|
|
|
var item = this.detailSource.find(res => { |
|
|
|
if (res.itemCode == label.itemCode) { |
|
|
|
return res |
|
|
|
} |
|
|
|
}) |
|
|
|
if (item == undefined) { |
|
|
|
var itemp = this.createItemInfo(label, pack); |
|
|
|
let newDetail = this.createDetailInfo(label, pack); |
|
|
|
itemp.subList.push(newDetail); |
|
|
|
this.detailSource.push(itemp) |
|
|
|
this.getfocus() |
|
|
|
|
|
|
|
} else { |
|
|
|
var detail = item.subList.find(r => { |
|
|
|
if (r.packingNumber == pack.number && |
|
|
|
r.batch == pack.batch) { |
|
|
|
return r; |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if (detail == undefined) { |
|
|
|
let newDetail = this.createDetailInfo(label, pack); |
|
|
|
item.subList.push(newDetail); |
|
|
|
this.getfocus() |
|
|
|
} else { |
|
|
|
if (detail.scaned) { |
|
|
|
this.showErrorMessage("箱码[" + pack.number + "]批次[" + pack.batch + "]已经扫描") |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.calcHandleQty(); |
|
|
|
this.setDataBatch(result) |
|
|
|
}, |
|
|
|
|
|
|
|
setDataBatch(result){ |
|
|
|