From c2b88a03f3d0d5ebe92949e64d17ee4d0ac3f6b7 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 09 九月 2025 15:14:00 +0800
Subject: [PATCH] 发货清空缓存站点
---
zy-asrs-admin/src/views/base/zpalletBarcode/index.vue | 43 ++++++++++++++++++++++++++++++++++++++++---
1 files changed, 40 insertions(+), 3 deletions(-)
diff --git a/zy-asrs-admin/src/views/base/zpalletBarcode/index.vue b/zy-asrs-admin/src/views/base/zpalletBarcode/index.vue
index 1f6c2b5..e9dcee6 100644
--- a/zy-asrs-admin/src/views/base/zpalletBarcode/index.vue
+++ b/zy-asrs-admin/src/views/base/zpalletBarcode/index.vue
@@ -191,6 +191,7 @@
const onSearch = () => {
// console.log('search');
+ currentPage = 1;
getPage()
}
@@ -228,6 +229,39 @@
})
}
+const handleDelete = () => {
+ if (state.selectedRowKeys.length == 0) {
+ message.warning(formatMessage('common.select', '璇烽�夋嫨'));
+ return;
+ }
+
+ Modal.confirm({
+ title: formatMessage('page.delete', '鍒犻櫎'),
+ content: formatMessage('page.delete.confirm', '纭畾鍒犻櫎璇ラ」鍚楋紵'),
+ maskClosable: true,
+ onOk: async () => {
+ const hide = message.loading(formatMessage('common.loading', '璇锋眰涓�'));
+ try {
+ post('/api/zpalletBarcode/remove/' + state.selectedRowKeys).then(resp => {
+ let result = resp.data;
+ if (result.code === 200) {
+ message.success(result.msg);
+ } else {
+ message.error(result.msg);
+ }
+ getPage()
+ hide()
+ })
+ } catch (error) {
+ message.error(formatMessage('common.fail', '璇锋眰澶辫触'));
+ }
+ },
+ });
+
+ console.log(state.selectedRowKeys);
+
+}
+
const handlePrint = () => {
if (state.selectedRowKeys.length == 0) {
message.warning(formatMessage('common.select', '璇烽�夋嫨'));
@@ -259,9 +293,12 @@
<div class="table-header">
<div>
<a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')"
- style="width: 200px;" @search="onSearch" />
+ style="width: 200px; margin: 0 10px;" @search="onSearch" />
<a-button @click="handlePrint()" type="primary">
{{ formatMessage('db.man_zpallet_barcode.batchPrint', '鎵归噺鎵撳嵃') }}
+ </a-button>
+ <a-button @click="handleDelete()" danger style="margin: 0 10px;">
+ {{ formatMessage('db.man_zpallet_barcode.batchPrint', '鎵归噺鍒犻櫎') }}
</a-button>
</div>
<div class="table-header-right">
@@ -296,10 +333,10 @@
<a-form-item :label="formatMessage('db.man_zpallet_barcode.generateNum', '鐢熸垚鏁伴噺')">
<a-input v-model:value="generateNum" />
</a-form-item>
- <a-form-item :label="formatMessage('db.man_container.type', '鎵樼洏绫诲瀷')" name="type" >
+ <a-form-item :label="formatMessage('db.man_container.type', '鎵樼洏绫诲瀷')" name="type">
<a-select v-model:value="pakinType" :options="[
{ label: '骞冲簱鎵樼洏', value: 1 },
- { label: '绔嬪簱鎵樼洏', value: 2 },
+ { label: '绔嬪簱鎵樼洏', value: 2 },
]">
</a-select>
</a-form-item>
--
Gitblit v1.9.1