|
|
@@ -49,7 +49,7 @@
|
|
|
>
|
|
|
根据ISBN导出
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
+ <el-button
|
|
|
type="info"
|
|
|
plain
|
|
|
v-permission="'data:books:importLog'"
|
|
|
@@ -67,6 +67,53 @@
|
|
|
>
|
|
|
导出记录
|
|
|
</el-button>
|
|
|
+ <div class="w-full mt-2">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ v-permission="'data:books:importBatchUpdatePrice'"
|
|
|
+ @click="handleBatchUpdatePrice"
|
|
|
+ :icon="UploadOutlined"
|
|
|
+ >
|
|
|
+ 批量更新售价
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ plain
|
|
|
+ v-permission="'data:books:importBatchBlacklist'"
|
|
|
+ @click="handleBatchBlacklist"
|
|
|
+ :icon="UploadOutlined"
|
|
|
+ >
|
|
|
+ 批量加入黑名单
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ v-permission="'data:books:importBatchAddRecycle'"
|
|
|
+ @click="handleBatchAddRecycle"
|
|
|
+ :icon="UploadOutlined"
|
|
|
+ >
|
|
|
+ 批量加入回收书单
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ v-permission="'data:books:importBatchAddRecycleMulti'"
|
|
|
+ @click="handleBatchAddRecycleMulti"
|
|
|
+ :icon="UploadOutlined"
|
|
|
+ >
|
|
|
+ 批量加入回收书单(多本回收)
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ v-permission="'data:books:importBatchPauseRecycle'"
|
|
|
+ @click="handleBatchPauseRecycle"
|
|
|
+ :icon="UploadOutlined"
|
|
|
+ >
|
|
|
+ 批量暂停回收
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<template #cover="{ row }">
|
|
|
<el-image
|
|
|
@@ -110,6 +157,71 @@
|
|
|
<upload-image ref="uploadImageRef" @done="reload()" />
|
|
|
<book-export-log ref="exportLogRef" />
|
|
|
<books-export-isbn ref="exportIsbnRef" v-model="showExportByIsbn" />
|
|
|
+ <batch-import
|
|
|
+ v-model="showBatchUpdatePrice"
|
|
|
+ title="批量更新售价"
|
|
|
+ template-name="批量更新售价模板"
|
|
|
+ template-url="https://shuhi.oss-cn-qingdao.aliyuncs.com/default/sell_price_batch_import_template.xlsx"
|
|
|
+ upload-url="/book/bookInfo/importBatchUpdatePrice"
|
|
|
+ :instructions="[
|
|
|
+ '支持通过导入来批量更新售价',
|
|
|
+ '文件ISBN不存在或者错误,会自动过滤掉',
|
|
|
+ '导入文件第一行需与模版完全一致'
|
|
|
+ ]"
|
|
|
+ @done="reload()"
|
|
|
+ />
|
|
|
+ <batch-import
|
|
|
+ v-model="showBatchBlacklist"
|
|
|
+ title="批量加入黑名单"
|
|
|
+ template-name="批量操作模板"
|
|
|
+ template-url="https://shuhi.oss-cn-qingdao.aliyuncs.com/default/recycle_discount_batch_import_template.xlsx"
|
|
|
+ upload-url="/book/bookInfo/importBatchBlacklist"
|
|
|
+ :instructions="[
|
|
|
+ '支持通过导入来批量加入黑名单',
|
|
|
+ '文件ISBN不存在或者错误,会自动过滤掉',
|
|
|
+ '导入文件第一行需与模版完全一致'
|
|
|
+ ]"
|
|
|
+ @done="reload()"
|
|
|
+ />
|
|
|
+ <batch-import
|
|
|
+ v-model="showBatchAddRecycle"
|
|
|
+ title="批量加入回收书单"
|
|
|
+ template-name="批量操作模板"
|
|
|
+ template-url="https://shuhi.oss-cn-qingdao.aliyuncs.com/default/recycle_discount_batch_import_template.xlsx"
|
|
|
+ upload-url="/book/bookInfo/importBatchAddRecycle"
|
|
|
+ :instructions="[
|
|
|
+ '支持通过导入来批量加入回收书单',
|
|
|
+ '文件ISBN不存在或者错误,会自动过滤掉',
|
|
|
+ '导入文件第一行需与模版完全一致'
|
|
|
+ ]"
|
|
|
+ @done="reload()"
|
|
|
+ />
|
|
|
+ <batch-import
|
|
|
+ v-model="showBatchAddRecycleMulti"
|
|
|
+ title="批量加入回收书单(多本回收)"
|
|
|
+ template-name="批量操作模板"
|
|
|
+ template-url="https://shuhi.oss-cn-qingdao.aliyuncs.com/default/recycle_discount_batch_import_template.xlsx"
|
|
|
+ upload-url="/book/bookInfo/importBatchAddRecycleMulti"
|
|
|
+ :instructions="[
|
|
|
+ '支持通过导入来批量加入回收书单,recycle_max_per_order=10',
|
|
|
+ '文件ISBN不存在或者错误,会自动过滤掉',
|
|
|
+ '导入文件第一行需与模版完全一致'
|
|
|
+ ]"
|
|
|
+ @done="reload()"
|
|
|
+ />
|
|
|
+ <batch-import
|
|
|
+ v-model="showBatchPauseRecycle"
|
|
|
+ title="批量暂停回收"
|
|
|
+ template-name="批量操作模板"
|
|
|
+ template-url="https://shuhi.oss-cn-qingdao.aliyuncs.com/default/recycle_discount_batch_import_template.xlsx"
|
|
|
+ upload-url="/book/bookInfo/importBatchPauseRecycle"
|
|
|
+ :instructions="[
|
|
|
+ '支持通过导入来批量暂停回收',
|
|
|
+ '文件ISBN不存在或者错误,会自动过滤掉',
|
|
|
+ '导入文件第一行需与模版完全一致'
|
|
|
+ ]"
|
|
|
+ @done="reload()"
|
|
|
+ />
|
|
|
<book-import-log ref="importLogRef" />
|
|
|
</ele-page>
|
|
|
</template>
|
|
|
@@ -135,6 +247,7 @@
|
|
|
import bookExportLog from '@/views/data/books/components/book-export-log.vue';
|
|
|
import bookImportLog from '@/views/data/books/components/book-import-log.vue';
|
|
|
import booksExportIsbn from '@/views/data/books/components/books-export-isbn.vue';
|
|
|
+import batchImport from '@/views/data/books/components/batch-import.vue';
|
|
|
import { useDictData } from '@/utils/use-dict-data';
|
|
|
|
|
|
defineOptions({ name: 'RecycleOrderCancelled' });
|
|
|
@@ -254,4 +367,34 @@
|
|
|
function handleExportByIsbn() {
|
|
|
showExportByIsbn.value = true;
|
|
|
}
|
|
|
+
|
|
|
+ //批量更新售价
|
|
|
+ const showBatchUpdatePrice = ref(false);
|
|
|
+ function handleBatchUpdatePrice() {
|
|
|
+ showBatchUpdatePrice.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ //批量加入黑名单
|
|
|
+ const showBatchBlacklist = ref(false);
|
|
|
+ function handleBatchBlacklist() {
|
|
|
+ showBatchBlacklist.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ //批量加入回收书单
|
|
|
+ const showBatchAddRecycle = ref(false);
|
|
|
+ function handleBatchAddRecycle() {
|
|
|
+ showBatchAddRecycle.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ //批量加入回收书单(多本回收)
|
|
|
+ const showBatchAddRecycleMulti = ref(false);
|
|
|
+ function handleBatchAddRecycleMulti() {
|
|
|
+ showBatchAddRecycleMulti.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ //批量暂停回收
|
|
|
+ const showBatchPauseRecycle = ref(false);
|
|
|
+ function handleBatchPauseRecycle() {
|
|
|
+ showBatchPauseRecycle.value = true;
|
|
|
+ }
|
|
|
</script>
|