|  |  | 
 |  |  |   })
 | 
 |  |  | }
 | 
 |  |  | 
 | 
 |  |  | 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', '请选择'));
 | 
 |  |  | 
 |  |  |     <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">
 | 
 |  |  |         <a-button @click="handleOpenGenerate()" type="primary">{{
 |