Commit 44495a17 by linjinhong

fix:修改问题

parent 676ac2a1
...@@ -358,10 +358,10 @@ watch(visible, async (value: boolean) => { ...@@ -358,10 +358,10 @@ watch(visible, async (value: boolean) => {
if (value) { if (value) {
podOrderDetailsData.value = {} podOrderDetailsData.value = {}
currentCode = '' currentCode = ''
const localRaw = sessionStorage.getItem('locaclCnWarehouseId') const localRaw = localStorage.getItem('locaclWarehouseId')
const localId = localRaw ? JSON.parse(localRaw) : '' const localId = localRaw ? JSON.parse(localRaw) : ''
/* 先找一次,确认本地值是否存在于列表 */ /* 先找一次,确认本地值是否存在于列表 */
const hit = props.warehouseList.find((w) => w.id === localId) const hit = props.warehouseList.find((w) => w.id == localId)
warehouseId.value = hit ? localId : props.warehouseList[0]?.id warehouseId.value = hit ? localId : props.warehouseList[0]?.id
_warehouseId.value = hit ? localId : props.warehouseList[0]?.id _warehouseId.value = hit ? localId : props.warehouseList[0]?.id
...@@ -387,9 +387,7 @@ watch(visible, async (value: boolean) => { ...@@ -387,9 +387,7 @@ watch(visible, async (value: boolean) => {
initOrderDetailBox() initOrderDetailBox()
initPrintDevice() initPrintDevice()
const locaclPrinter = localStorage.getItem('sheetPrinter') const locaclPrinter = localStorage.getItem('sheetPrinter')
const locaclWarehouseId = localStorage.getItem('locaclWarehouseId')
if (locaclPrinter) sheetPrinter.value = JSON.parse(locaclPrinter) if (locaclPrinter) sheetPrinter.value = JSON.parse(locaclPrinter)
if (locaclWarehouseId) warehouseId.value = JSON.parse(locaclWarehouseId)
emit('set-printer', sheetPrinter.value) emit('set-printer', sheetPrinter.value)
} else { } else {
if (userStore.user?.factory.id) { if (userStore.user?.factory.id) {
...@@ -403,11 +401,13 @@ watch(visible, async (value: boolean) => { ...@@ -403,11 +401,13 @@ watch(visible, async (value: boolean) => {
} }
}) })
watch(boxIndex, (value: number | null) => { watch(boxIndex, (value: number | null) => {
if (value) { // if (value) {
const bool = !boxChange.value console.log('boxIndex11111', value)
boxChange.value = false
renderItemBox(bool) const bool = !boxChange.value
} boxChange.value = false
renderItemBox(bool)
// }
}) })
watch( watch(
podBoxList, podBoxList,
......
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