|
@@ -137,6 +137,7 @@
|
|
|
v-model:scanType="scanType"
|
|
v-model:scanType="scanType"
|
|
|
v-model:checkAllType="checkAllType"
|
|
v-model:checkAllType="checkAllType"
|
|
|
:searchCount="searchCount"
|
|
:searchCount="searchCount"
|
|
|
|
|
+ :combine-set-count="combineReceivingSetCount"
|
|
|
:asnInfo="asnInfo"
|
|
:asnInfo="asnInfo"
|
|
|
:resolve-panpass-codes="isCombinePanpass ? resolvePanpassScan : undefined"
|
|
:resolve-panpass-codes="isCombinePanpass ? resolvePanpassScan : undefined"
|
|
|
@setUniqueCode="onConfirm"
|
|
@setUniqueCode="onConfirm"
|
|
@@ -345,6 +346,8 @@ const combineMatchedSku = ref([])
|
|
|
const combineAsnSelectList = ref([])
|
|
const combineAsnSelectList = ref([])
|
|
|
const isCombineSelectMode = ref(false)
|
|
const isCombineSelectMode = ref(false)
|
|
|
const combineReceivingData = ref([]) // 确认实收数后暂存,完成收货时提交
|
|
const combineReceivingData = ref([]) // 确认实收数后暂存,完成收货时提交
|
|
|
|
|
+/** 组合商品收货套数 */
|
|
|
|
|
+const combineReceivingSetCount = ref(0)
|
|
|
|
|
|
|
|
/** 重置组合收货状态 */
|
|
/** 重置组合收货状态 */
|
|
|
function resetCombineProductState() {
|
|
function resetCombineProductState() {
|
|
@@ -353,6 +356,7 @@ function resetCombineProductState() {
|
|
|
combineAsnSelectList.value = []
|
|
combineAsnSelectList.value = []
|
|
|
isCombineSelectMode.value = false
|
|
isCombineSelectMode.value = false
|
|
|
combineReceivingData.value = []
|
|
combineReceivingData.value = []
|
|
|
|
|
+ combineReceivingSetCount.value = 0
|
|
|
asnDetailsTrueFalseBy.value = false
|
|
asnDetailsTrueFalseBy.value = false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -529,6 +533,7 @@ const onCombineCancel = () => {
|
|
|
const total = combineMatchedSku.value.reduce((sum, row) => sum + (row.matchedJson?.quantity || 0), 0)
|
|
const total = combineMatchedSku.value.reduce((sum, row) => sum + (row.matchedJson?.quantity || 0), 0)
|
|
|
searchCount.value = total ? String(total) : '1'
|
|
searchCount.value = total ? String(total) : '1'
|
|
|
combineReceivingData.value = []
|
|
combineReceivingData.value = []
|
|
|
|
|
+ combineReceivingSetCount.value = 0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const _onCombineAsnSelected = (item) => {
|
|
const _onCombineAsnSelected = (item) => {
|
|
@@ -539,12 +544,14 @@ const _onCombineAsnSelected = (item) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 组合商品确认实收数
|
|
// 组合商品确认实收数
|
|
|
-const setCombineReceiving = ({ dataList }) => {
|
|
|
|
|
|
|
+const setCombineReceiving = ({ dataList, count: setCount }) => {
|
|
|
if (!dataList?.length) return
|
|
if (!dataList?.length) return
|
|
|
const total = dataList.reduce((sum, row) => sum + (row.quantity || 0), 0)
|
|
const total = dataList.reduce((sum, row) => sum + (row.quantity || 0), 0)
|
|
|
searchCount.value = String(total)
|
|
searchCount.value = String(total)
|
|
|
combineReceivingData.value = dataList
|
|
combineReceivingData.value = dataList
|
|
|
- showNotify({ type: 'success', duration: 2000, message: `已填入收货数量:${total},请点击完成收货提交` })
|
|
|
|
|
|
|
+ const sets = Number(setCount) > 0 ? Number(setCount) : 0
|
|
|
|
|
+ combineReceivingSetCount.value = sets
|
|
|
|
|
+ showNotify({ type: 'success', duration: 2000, message: `收货套数:${sets},共 ${total} 件,请点击完成收货提交` })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 条码扫描:scanType 2商品/4数量/3唯一码/5容器
|
|
// 条码扫描:scanType 2商品/4数量/3唯一码/5容器
|
|
@@ -878,7 +885,7 @@ const isCheck = () => {
|
|
|
if (needUnique && uniqueCodeList.value.length != searchCount.value) {
|
|
if (needUnique && uniqueCodeList.value.length != searchCount.value) {
|
|
|
scanType.value = 3
|
|
scanType.value = 3
|
|
|
const tips = isCombinePanpass.value
|
|
const tips = isCombinePanpass.value
|
|
|
- ? `收货数量:${searchCount.value},请逐套扫描组合外箱唯一码`
|
|
|
|
|
|
|
+ ? `收货数量:${searchCount.value},请扫描组合外箱唯一码`
|
|
|
: `收货数量:${searchCount.value}`
|
|
: `收货数量:${searchCount.value}`
|
|
|
uniqueCodeRef.value?.show('', '请扫描唯一码', tips, uniqueRuleMap.value)
|
|
uniqueCodeRef.value?.show('', '请扫描唯一码', tips, uniqueRuleMap.value)
|
|
|
return false
|
|
return false
|