Commit 3b0fd13a by qinjianhui

fix: 驳回加提示

parent ef5c4b4f
......@@ -8,7 +8,6 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
CardWrapper: typeof import('./src/components/CardWrapper.vue')['default']
CommodityCard: typeof import('./src/components/commodityCard.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
......@@ -42,7 +41,6 @@ declare module 'vue' {
ElTag: typeof import('element-plus/es')['ElTag']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTree: typeof import('element-plus/es')['ElTree']
ElUpload: typeof import('element-plus/es')['ElUpload']
Icon: typeof import('./src/components/Icon.vue')['default']
ImageView: typeof import('./src/components/ImageView.vue')['default']
LogList: typeof import('./src/components/LogList.vue')['default']
......
......@@ -201,12 +201,13 @@ import {
getStatusListApi,
getTypesettingDetail,
getTypesettingLogByIdApi,
rejectDataApi
rejectDataApi,
} from '@/api/typesetting'
import Icon from '@/components/Icon.vue'
import reviewModel from './reviewModel.vue'
import submitReviewModal from './submitReviewModal.vue'
import dayjs from 'dayjs'
import { showConfirm } from '@/utils/ui'
const treeData = ref<TreeData[]>([])
const treeRef = ref()
const treeId = ref('201')
......@@ -323,6 +324,15 @@ const reject = async () => {
if (!selection.value.length) {
return ElMessage.warning('请选择要驳回的数据')
}
try {
await showConfirm('确定驳回吗?', {
type: 'warning',
confirmButtonText: '确认',
cancelButtonText: '取消',
})
} catch {
return
}
const ids = selection.value.map((item) => item.id).join(',')
try {
const res = await rejectDataApi(ids)
......
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