Commit 6a11175e by wuqian

ts修复

parent d5ac8e57
......@@ -3626,7 +3626,7 @@ const rejectOrder = async (type: string) => {
if (!targets.length) return ElMessage.warning('请选择数据')
let reason = ''
try {
const { value } = await ElMessageBox.prompt<string>('驳回确认', {
const { value } = await ElMessageBox.prompt('驳回确认', {
confirmButtonText: '确认',
cancelButtonText: '取消',
inputType: 'textarea',
......@@ -3652,7 +3652,8 @@ const rejectOrder = async (type: string) => {
})
if (res.code !== 200) return
resultInfo.value = (res.data || []).filter((item) => !item.status)
resultInfo.value = res.data
resultInfo.value = resultInfo.value.filter((item) => !item.status)
if (!resultInfo.value.length) {
ElMessage.success('操作成功')
search()
......
......@@ -5600,7 +5600,7 @@ const rejectOrder = async (type: string) => {
if (!targets.length) return ElMessage.warning('请选择数据')
let reason = ''
try {
const { value } = await ElMessageBox.prompt<string>('驳回确认', {
const { value } = await ElMessageBox.prompt('驳回确认', {
confirmButtonText: '确认',
cancelButtonText: '取消',
inputType: 'textarea',
......@@ -5625,7 +5625,8 @@ const rejectOrder = async (type: string) => {
reasonStr: reason,
})
if (res.code !== 200) return
resultInfo.value = (res.data || []).filter((item) => !item.status)
resultInfo.value = res.data
resultInfo.value = resultInfo.value.filter((item) => !item.status)
if (!resultInfo.value.length) {
ElMessage.success('操作成功')
search()
......
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