Commit e7c03813 by wuqian

刷新商品信息判断

parent 971369b2
...@@ -4052,7 +4052,9 @@ const loadCraftList = async () => { ...@@ -4052,7 +4052,9 @@ const loadCraftList = async () => {
} }
} }
const refreshMaterial = async () => { const refreshMaterial = async () => {
if (status.value === 'PICKING' || status.value === 'TO_BE_REPLENISHMENT') { if (
['PICKING', 'TO_BE_REPLENISHMENT', 'IN_PRODUCTION'].includes(status.value)
) {
if (cardSelection.value.length === 0) { if (cardSelection.value.length === 0) {
return ElMessage.warning('请选择数据') return ElMessage.warning('请选择数据')
} }
...@@ -4068,12 +4070,14 @@ const refreshMaterial = async () => { ...@@ -4068,12 +4070,14 @@ const refreshMaterial = async () => {
}) })
try { try {
const res = await refreshMaterialApi({ const res = await refreshMaterialApi({
orderIds: orderIds: !['PICKING', 'TO_BE_REPLENISHMENT', 'IN_PRODUCTION'].includes(
status.value !== 'PICKING' && status.value !== 'TO_BE_REPLENISHMENT' status.value,
)
? selection.value.map((item) => item.id).join(',') ? selection.value.map((item) => item.id).join(',')
: undefined, : undefined,
productIds: productIds: ['PICKING', 'TO_BE_REPLENISHMENT', 'IN_PRODUCTION'].includes(
status.value === 'PICKING' || status.value === 'TO_BE_REPLENISHMENT' status.value,
)
? cardSelection.value.map((item) => item.id).join(',') ? cardSelection.value.map((item) => item.id).join(',')
: undefined, : undefined,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment