|
@@ -1,14 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="receiptPrint-wrap">
|
|
<div class="receiptPrint-wrap">
|
|
- <div style="background-color: #fff;">
|
|
|
|
- <a-tabs v-model="currentTab" @change="changeTab">
|
|
|
|
- <a-tab-pane :key="1" tab="全部">
|
|
|
|
- </a-tab-pane>
|
|
|
|
- <a-tab-pane :key="2" tab="待打印">
|
|
|
|
- </a-tab-pane>
|
|
|
|
- </a-tabs>
|
|
|
|
- </div>
|
|
|
|
- <a-card style="margin-top: 5px;" size="small" class="search-box" :bordered="false">
|
|
|
|
|
|
+ <a-card size="small" class="searchBoxNormal" :bordered="false">
|
|
<!-- 搜索条件 -->
|
|
<!-- 搜索条件 -->
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<a-form layout="inline">
|
|
<a-form layout="inline">
|
|
@@ -70,20 +62,30 @@
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
</a-card>
|
|
</a-card>
|
|
- <a-card style="margin-top: 5px;" size="small" :bordered="false">
|
|
|
|
|
|
+ <a-card class="receiptPrint-body" size="small" :bordered="false">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
- <!-- 操作按钮 -->
|
|
|
|
- <div class="table-operator" v-if="$hasPermissions('B_SkPrint')">
|
|
|
|
- <a-button type="primary" :loading="spinning" @click="handlePlPrint()" class="button-error">批量打印</a-button>
|
|
|
|
- <span style="margin-left: 8px">
|
|
|
|
- <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
|
- </span>
|
|
|
|
|
|
+ <div class="flex-center" style="justify-content: space-between;">
|
|
|
|
+ <div style="flex-grow:1;">
|
|
|
|
+ <a-tabs v-model="currentTab" @change="changeTab">
|
|
|
|
+ <a-tab-pane :key="1" tab="全部">
|
|
|
|
+ </a-tab-pane>
|
|
|
|
+ <a-tab-pane :key="2" tab="待打印">
|
|
|
|
+ </a-tab-pane>
|
|
|
|
+ </a-tabs>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 操作按钮 -->
|
|
|
|
+ <div class="table-operator" v-if="$hasPermissions('B_SkPrint')">
|
|
|
|
+ <span style="margin:0 10px">
|
|
|
|
+ <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
|
+ </span>
|
|
|
|
+ <a-button type="primary" :loading="spinning" @click="handlePlPrint()">批量打印</a-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<s-table
|
|
<s-table
|
|
class="sTable fixPagination"
|
|
class="sTable fixPagination"
|
|
ref="table"
|
|
ref="table"
|
|
- :style="{ height: tableHeight+80.5+'px' }"
|
|
|
|
|
|
+ :style="{ height: tableHeight+85+'px' }"
|
|
:row-selection="$hasPermissions('B_SkPrint')?{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: (record.printStatus !== 'NO_PRINT'&&record.printStatus !== 'PRINT') } })}:null"
|
|
:row-selection="$hasPermissions('B_SkPrint')?{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: (record.printStatus !== 'NO_PRINT'&&record.printStatus !== 'PRINT') } })}:null"
|
|
@rowSelection="rowSelectionFun"
|
|
@rowSelection="rowSelectionFun"
|
|
size="small"
|
|
size="small"
|
|
@@ -448,7 +450,7 @@ export default {
|
|
},
|
|
},
|
|
setTableH () {
|
|
setTableH () {
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 296
|
|
|
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 258
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -482,11 +484,11 @@ export default {
|
|
<style lang="less">
|
|
<style lang="less">
|
|
.receiptPrint-wrap{
|
|
.receiptPrint-wrap{
|
|
.ant-tabs-bar{
|
|
.ant-tabs-bar{
|
|
- margin:0;
|
|
|
|
|
|
+ margin-bottom: 10px;
|
|
}
|
|
}
|
|
- .search-box{
|
|
|
|
|
|
+ .receiptPrint-body{
|
|
.ant-card-body{
|
|
.ant-card-body{
|
|
- padding-bottom: 0;
|
|
|
|
|
|
+ padding-top:5px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|