Commit 3b0fd13a by qinjianhui

fix: 驳回加提示

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