|
@@ -1,17 +1,6 @@
|
|
|
<template>
|
|
|
<div class="productOfflineAuditList-wrap">
|
|
|
- <!-- 状态 -->
|
|
|
- <div style="background-color: #fff;margin-bottom: 5px;">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.bizState"
|
|
|
- ref="state"
|
|
|
- showType="tabs"
|
|
|
- @change="resetSearchForm()"
|
|
|
- code="PRODUCT_LOG_BIZ_STATE"
|
|
|
- allowClear></v-select>
|
|
|
- </div>
|
|
|
-
|
|
|
- <a-card size="small" :bordered="false" class="searchBottomSpace">
|
|
|
+ <a-card size="small" :bordered="false" class="searchBoxNormal">
|
|
|
<!-- 搜索条件 -->
|
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
@@ -66,12 +55,22 @@
|
|
|
</a-form>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
+ <!-- 状态 -->
|
|
|
+ <div style="background-color: #fff;">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.bizState"
|
|
|
+ ref="state"
|
|
|
+ showType="tabs"
|
|
|
+ @change="resetSearchForm()"
|
|
|
+ code="PRODUCT_LOG_BIZ_STATE"
|
|
|
+ allowClear></v-select>
|
|
|
+ </div>
|
|
|
<!-- 列表 -->
|
|
|
<a-card size="small" :bordered="false">
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
- <div style="margin-bottom: 10px">
|
|
|
- <a-button type="primary" v-if="$hasPermissions('B_productOfflineAudit_batchAudit')&&queryParam.bizState == 'WAIT'" id="productOfflineAudit-export" :loading="loading" @click="handleBatchAudit">批量审核</a-button>
|
|
|
- <span style="margin-left: 5px" v-if="$hasPermissions('B_productOfflineAudit_batchAudit')">
|
|
|
+ <div style="margin-bottom: 10px" v-if="$hasPermissions('B_productOfflineAudit_batchAudit')&&queryParam.bizState == 'WAIT'" >
|
|
|
+ <a-button type="primary" ghost id="productOfflineAudit-export" :loading="loading" @click="handleBatchAudit">批量审核</a-button>
|
|
|
+ <span style="margin-left: 10px">
|
|
|
<template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -79,13 +78,14 @@
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
+ :style="{ height: tableHeight+70+'px' }"
|
|
|
size="small"
|
|
|
:rowKey="(record) => record.productLogSn"
|
|
|
rowKeyName="productLogSn"
|
|
|
:row-selection="$hasPermissions('B_productOfflineAudit_batchAudit')&&queryParam.bizState == 'WAIT'?{ columnWidth: 40 }:null"
|
|
|
@rowSelection="rowSelectionFun"
|
|
|
:columns="columns"
|
|
|
+ :pageSize="30"
|
|
|
:data="loadData"
|
|
|
:scroll="{ y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
@@ -156,6 +156,7 @@ export default {
|
|
|
this.disabled = false
|
|
|
}
|
|
|
this.spinning = false
|
|
|
+ this.setTableH()
|
|
|
return data
|
|
|
})
|
|
|
},
|
|
@@ -308,7 +309,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 310
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - (this.queryParam.bizState == 'WAIT' ? 283 : 250)
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -348,11 +349,8 @@ export default {
|
|
|
|
|
|
<style lang="less">
|
|
|
.productOfflineAuditList-wrap{
|
|
|
- .red{
|
|
|
- color: #ed1c24;
|
|
|
- }
|
|
|
- .green{
|
|
|
- color: #19be6b;
|
|
|
+ .sTable{
|
|
|
+ margin-top:10px;
|
|
|
}
|
|
|
.ant-tabs-bar{
|
|
|
margin: 0;
|