Commit b3d0599d by linjinhong

修改podus 转至待拣胚 提示

parent 10c1edcf
...@@ -74,7 +74,7 @@ const checkAll = ref(false) ...@@ -74,7 +74,7 @@ const checkAll = ref(false)
const selectedList = ref<(string | number)[]>([]) const selectedList = ref<(string | number)[]>([])
// 显示弹窗 // 显示弹窗
const showDialog = (type: string) => { const showDialog = (type?: string) => {
console.log(type) console.log(type)
resultDialog.value = true resultDialog.value = true
......
...@@ -2029,7 +2029,7 @@ const getOrderByIdApi = async (type: string) => { ...@@ -2029,7 +2029,7 @@ const getOrderByIdApi = async (type: string) => {
const res = await operation.Fn(ids) const res = await operation.Fn(ids)
if (res.code === 200) { if (res.code === 200) {
if (isArray(res.data)) { if (isArray(res.data)) {
resultInfo.value = res.data resultInfo.value = res.data || []
resultRefs.value?.showDialog(type) resultRefs.value?.showDialog(type)
} else if (isString(res.data)) { } else if (isString(res.data)) {
window.open(filePath + res.data) window.open(filePath + res.data)
...@@ -2039,6 +2039,7 @@ const getOrderByIdApi = async (type: string) => { ...@@ -2039,6 +2039,7 @@ const getOrderByIdApi = async (type: string) => {
} }
loading.close() loading.close()
} catch (e) { } catch (e) {
resultInfo.value = []
console.error(e) console.error(e)
} }
} else { } else {
...@@ -2241,10 +2242,13 @@ const logisticsToPicking = async () => { ...@@ -2241,10 +2242,13 @@ const logisticsToPicking = async () => {
ids: selection.value.map((item) => item.id).join(','), ids: selection.value.map((item) => item.id).join(','),
}) })
if (res.code !== 200) return if (res.code !== 200) return
resultInfo.value = res.data || []
resultRefs.value?.showDialog()
ElMessage.success('操作成功') ElMessage.success('操作成功')
search() search()
loadTabData() loadTabData()
} catch (e) { } catch (e) {
resultInfo.value = []
console.error(e) console.error(e)
} finally { } finally {
loading.close() loading.close()
...@@ -2505,7 +2509,6 @@ const handleExceptionCommand = (command: number) => { ...@@ -2505,7 +2509,6 @@ const handleExceptionCommand = (command: number) => {
exceptionStatus.value = command exceptionStatus.value = command
search() search()
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.header-filter-form { .header-filter-form {
......
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