Commit be792c18 by wuqian

US播种墙加上仓库必选校验

parent 01701ca7
...@@ -406,7 +406,11 @@ const podOrderDetailsColumns = computed(() => [ ...@@ -406,7 +406,11 @@ const podOrderDetailsColumns = computed(() => [
<div> <div>
{operationNo} {operationNo}
{statusText && ( {statusText && (
<ElTag size="small" type={type} style={{ marginLeft: '6px', ...style }}> <ElTag
size="small"
type={type}
style={{ marginLeft: '6px', ...style }}
>
{statusText} {statusText}
</ElTag> </ElTag>
)} )}
...@@ -879,6 +883,9 @@ const initOrderDetailBox = async () => { ...@@ -879,6 +883,9 @@ const initOrderDetailBox = async () => {
if (!factoryNo) { if (!factoryNo) {
return return
} }
if (!warehouseId.value) {
return ElMessage.warning('请选择仓库')
}
const loading = ElLoading.service({ const loading = ElLoading.service({
fullscreen: true, fullscreen: true,
text: '加载中...', text: '加载中...',
...@@ -1159,6 +1166,9 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => { ...@@ -1159,6 +1166,9 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
} }
const factoryNo = userStore.user?.factory.id const factoryNo = userStore.user?.factory.id
if (!factoryNo) return if (!factoryNo) return
if (!warehouseId.value) {
return ElMessage.warning('请选择仓库')
}
orderStore.setPodBoxList({ orderStore.setPodBoxList({
url: props.initUrl, url: props.initUrl,
fromUser: userStore.user ? userStore.user.id : 0, fromUser: userStore.user ? userStore.user.id : 0,
......
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