|
|
@@ -1,23 +1,26 @@
|
|
|
<template>
|
|
|
<order-page ref="pageRef" :pageConfig="pageConfig" permissionKey="awaitAudit">
|
|
|
<template #toolbar>
|
|
|
- <el-button type="success" plain class="ele-btn-icon" :icon="DownloadOutlined"
|
|
|
+ <!-- <el-button type="success" plain class="ele-btn-icon" :icon="DownloadOutlined"
|
|
|
v-permission="'recycleOrder:awaitAudit:batchAuditComplete'" @click="handleBatchAuditComplete">
|
|
|
批量审核完成
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
|
+ <BatchComplete ref="batchCompleteRef" @refresh="refresh" />
|
|
|
</order-page>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, reactive } from 'vue';
|
|
|
import { DownloadOutlined } from '@/components/icons';
|
|
|
+import { ElMessage } from 'element-plus';
|
|
|
import OrderPage from '@/views/recycleOrder/components/order-page-all.vue';
|
|
|
-
|
|
|
+import BatchComplete from '@/views/recycleOrder/components/batch-complete.vue';
|
|
|
defineOptions({ name: 'recycleOrderAwaitAudit' });
|
|
|
|
|
|
/** 页面组件实例 */
|
|
|
const pageRef = ref(null);
|
|
|
+const batchCompleteRef = ref(null);
|
|
|
|
|
|
const pageConfig = reactive({
|
|
|
pageUrl: '/order/orderInfo/audit/pageList',
|
|
|
@@ -29,9 +32,19 @@ const pageConfig = reactive({
|
|
|
|
|
|
//批量审核完成
|
|
|
function handleBatchAuditComplete() {
|
|
|
- pageRef.value?.operatBatch({
|
|
|
- title: '确认批量审核完成?',
|
|
|
- url: '/recycleOrder/batchAudit'
|
|
|
- });
|
|
|
+ let orderIds = pageRef.value?.selections?.map(item => item.orderId);
|
|
|
+ if (!orderIds.length) {
|
|
|
+ ElMessage.error('请至少选择一条数据');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log(orderIds,'orderIds');
|
|
|
+ batchCompleteRef.value?.handleOpen(orderIds);
|
|
|
+}
|
|
|
+
|
|
|
+//刷新
|
|
|
+function refresh() {
|
|
|
+ pageRef.value?.reload();
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
+
|