Commit 09b0149e by wuqian

pod-cn也加上仓库选择校验

parent be792c18
......@@ -192,11 +192,7 @@
<span v-else>验货中。。。</span>
</div>
<div class="box-top-item-btn">
<ElButton
type="primary"
@click="manualPrint"
>手动打印
</ElButton>
<ElButton type="primary" @click="manualPrint">手动打印 </ElButton>
<ElButton type="primary" @click="printNormal">普货拣货 </ElButton>
<ElButton type="success" @click="handlePrintFinish"
>打单完成
......@@ -605,9 +601,9 @@ const messageChange = (data: WebSocketMessage) => {
}
}
const manualPrint = ()=>{
if(podOrderDetailsData.value){
print(podOrderDetailsData.value, true )
const manualPrint = () => {
if (podOrderDetailsData.value) {
print(podOrderDetailsData.value, true)
productionOrderRef.value.focus()
}
}
......@@ -645,7 +641,6 @@ const printNormal = async () => {
ElMessage.success('操作成功')
productionOrderRef.value.focus()
window.open(filePath + res.message)
}
const initPrintDevice = () => {
const lodop = getCLodop(null, null)
......@@ -795,6 +790,9 @@ const initOrderDetailBox = async () => {
if (!factoryNo) {
return
}
if (!warehouseId.value) {
return ElMessage.warning('请选择仓库')
}
const loading = ElLoading.service({
fullscreen: true,
text: '加载中...',
......@@ -1056,6 +1054,9 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
}
const factoryNo = userStore.user?.factory.id
if (!factoryNo) return
if (!warehouseId.value) {
return ElMessage.warning('请选择仓库')
}
orderStore.setPodBoxList({
boxList: item ? item.data : null,
factoryNo,
......
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