|
@ -18,6 +18,7 @@ |
|
|
:dataContent="item" @removeItem="removeItem(index,item)" |
|
|
:dataContent="item" @removeItem="removeItem(index,item)" |
|
|
@updateData="updateData" |
|
|
@updateData="updateData" |
|
|
:queryBalance="false" |
|
|
:queryBalance="false" |
|
|
|
|
|
:allowModifyQty="true" |
|
|
:isShowLocation="false" @removePack="removePack"> |
|
|
:isShowLocation="false" @removePack="removePack"> |
|
|
</com-receipt-record> |
|
|
</com-receipt-record> |
|
|
</view> |
|
|
</view> |
|
@ -109,7 +110,6 @@ |
|
|
dataContent: {}, |
|
|
dataContent: {}, |
|
|
managementList: [], |
|
|
managementList: [], |
|
|
toLocationAreaTypeList:[], |
|
|
toLocationAreaTypeList:[], |
|
|
managementType:import.meta.env.VITE_MANAGE_MODEL |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -137,50 +137,7 @@ |
|
|
this.toLocationCode = code; |
|
|
this.toLocationCode = code; |
|
|
}, |
|
|
}, |
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
|
var managementTypeParams =this.managementType |
|
|
|
|
|
if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") { |
|
|
|
|
|
this.setDataBatch(result) |
|
|
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(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setDataBatch(result){ |
|
|
setDataBatch(result){ |
|
|