Commit b0401a71 by zhuzhequan

工厂端 播种墙配合鼠标聚焦

parent 0127e945
...@@ -33,7 +33,6 @@ axios.interceptors.response.use( ...@@ -33,7 +33,6 @@ axios.interceptors.response.use(
(response) => { (response) => {
// 1. 判断响应码 // 1. 判断响应码
const data = response.data const data = response.data
if (data && typeof data === 'object' && typeof data.code === 'number') { if (data && typeof data === 'object' && typeof data.code === 'number') {
// token 过期 // token 过期
if (data.code === 403) { if (data.code === 403) {
......
...@@ -221,7 +221,7 @@ const historyData = ref<HistoryDataItem[]>([]) ...@@ -221,7 +221,7 @@ const historyData = ref<HistoryDataItem[]>([])
const placeholderText = ref('') const placeholderText = ref('')
const sendNum = ref(0) const sendNum = ref(0)
const isDownloadImage = ref(false) const isDownloadImage = ref(false)
const isAutoSure = ref(false) const isAutoSure = ref(true)
const detail = ref<PodOrderRes>({ const detail = ref<PodOrderRes>({
id: -1, id: -1,
podJomallOrderCnId: -1, podJomallOrderCnId: -1,
...@@ -290,7 +290,7 @@ watch( ...@@ -290,7 +290,7 @@ watch(
trackingNumberRef.value && trackingNumberRef.value.focus() trackingNumberRef.value && trackingNumberRef.value.focus()
TrackingNumber.value = '' TrackingNumber.value = ''
isAutoSure.value = false isAutoSure.value = true
sendNum.value = 0 sendNum.value = 0
} }
}, },
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<div class="box-top-item-btn"> <div class="box-top-item-btn">
<ElButton <ElButton
type="primary" type="primary"
@click="podOrderDetailsData && print(podOrderDetailsData, true)" @click="manualPrint"
>手动打印 >手动打印
</ElButton> </ElButton>
<ElButton type="primary" @click="printNormal">普货拣货 </ElButton> <ElButton type="primary" @click="printNormal">普货拣货 </ElButton>
...@@ -603,6 +603,14 @@ const messageChange = (data: WebSocketMessage) => { ...@@ -603,6 +603,14 @@ const messageChange = (data: WebSocketMessage) => {
setPodBoxList(more) setPodBoxList(more)
} }
} }
const manualPrint = ()=>{
if(podOrderDetailsData.value){
print(podOrderDetailsData.value, true )
productionOrderRef.value.focus()
}
}
const setPodBoxList = (data: WebSocketMessage) => { const setPodBoxList = (data: WebSocketMessage) => {
const obj = data.txt const obj = data.txt
if (obj && typeof obj === 'string') { if (obj && typeof obj === 'string') {
...@@ -634,7 +642,9 @@ const printNormal = async () => { ...@@ -634,7 +642,9 @@ const printNormal = async () => {
} }
const res = await printNormalPdf(arr.join()) const res = await printNormalPdf(arr.join())
ElMessage.success('操作成功') ElMessage.success('操作成功')
productionOrderRef.value.focus()
window.open(filePath + res.message) window.open(filePath + res.message)
} }
const initPrintDevice = () => { const initPrintDevice = () => {
const lodop = getCLodop(null, null) const lodop = getCLodop(null, null)
......
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