|
|
@ -40,7 +40,9 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class=""> |
|
|
|
<comProductDetailCard :dataContent="item" :settingParam="jobContent" :isShowLocation="false" @remove="updateData" @updateData="updateData" :locationAreaTypeList="toLocationAreaTypeList"> </comProductDetailCard> |
|
|
|
<comProductDetailCard :dataContent="item" :settingParam="jobContent" :isShowLocation="false" |
|
|
|
@remove="updateData" @updateData="updateData" :locationAreaTypeList="toLocationAreaTypeList"> |
|
|
|
</comProductDetailCard> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
@ -49,7 +51,10 @@ |
|
|
|
<view class="page-footer"> |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" style="background-color: ghostwhite; width: 100%"> |
|
|
|
<view class=""> |
|
|
|
<locationCompare ref="comScanLocation" title="收货库位" :isShowEdit="jobContent.allowModifyLocation == 'TRUE'" :recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" @getLocation="scanLocationCode" :locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
|
<<locationCompare ref="comScanLocation" title="收货库位" :isShowEdit="jobContent.allowModifyLocation=='TRUE'" |
|
|
|
:recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
|
:locationAreaTypeList="toLocationAreaTypeList"> |
|
|
|
</locationCompare> |
|
|
|
</view> |
|
|
|
<view class="uni-flex uni-row"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
@ -101,6 +106,7 @@ const jobStatus= ref('') |
|
|
|
const jobToLocationCode = ref('') |
|
|
|
const scanedPackingNumber = ref('') |
|
|
|
const status = ref('') |
|
|
|
const scanMessage = ref('') |
|
|
|
const comScanLocation = ref() |
|
|
|
const scanPopup = ref() |
|
|
|
const comMessageRef = ref() |
|
|
@ -113,7 +119,7 @@ const comMessageRef= ref() |
|
|
|
|
|
|
|
}, 50) |
|
|
|
id.value = option.id |
|
|
|
scanedPackingNumber.value = option.scaned || '' |
|
|
|
scanMessage.value = option.scanMessage || '' |
|
|
|
status.value = option.status || '' |
|
|
|
}) |
|
|
|
onShow(() => { |
|
|
@ -193,19 +199,9 @@ const comMessageRef= ref() |
|
|
|
} |
|
|
|
toLocationAreaTypeList.value = getDirectoryItemArray(jobContent.value.toAreaTypes) |
|
|
|
detailSource.value = getDataSource(subList.value) |
|
|
|
detailSource.value.forEach((r) => { |
|
|
|
r.subList.forEach((s) => { |
|
|
|
if (scanedPackingNumber.value && scanedPackingNumber.value == s.packingNumber) { |
|
|
|
s.scaned = true |
|
|
|
s.cancleScanedHiht = true |
|
|
|
s.copyContent = `HMQ;V1.0;I${s.itemCode};P${s.packingNumber};B${s.batch};Q${s.qty}` |
|
|
|
|
|
|
|
scanPopup.value.simulateScan(s) |
|
|
|
scanedPackingNumber.value = '' |
|
|
|
// s.handleQty =s.qty |
|
|
|
if (scanMessage.value) { |
|
|
|
scanPopup.value.simulateScan(scanMessage.value); |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
showMessage('列表数据为0') |
|
|
|
} |
|
|
@ -230,7 +226,7 @@ const comMessageRef= ref() |
|
|
|
const itemDetail = detail.subList.find((r) => r.packingNumber == packingNumber && r.batch == batch) |
|
|
|
if (itemDetail == undefined) { |
|
|
|
showErrorMessage(`箱码[${packingNumber}]` + `批次[${batch}]不在任务列表中`) |
|
|
|
} else if (!itemDetail.cancleScanedHiht && itemDetail.scaned) { |
|
|
|
} else if (itemDetail.scaned) { |
|
|
|
showErrorMessage(`箱码[${packingNumber}]` + `批次[${batch}]已经扫描`) |
|
|
|
} else { |
|
|
|
itemDetail.scaned = true |
|
|
@ -450,7 +446,6 @@ const comMessageRef= ref() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped lang="scss"></style> |