|
|
@ -1,9 +1,36 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mod-config"> |
|
|
<div class="mod-config"> |
|
|
<!-- 条件查询 --> |
|
|
<!-- 条件查询 --> |
|
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList"> |
|
|
|
|
|
|
|
|
<el-card :class="['search-card', { 'collapsed': !searchExpanded }]" shadow="hover"> |
|
|
|
|
|
<div slot="header" class="search-header"> |
|
|
|
|
|
<div class="header-left"> |
|
|
|
|
|
<i class="el-icon-search"></i> |
|
|
|
|
|
<span class="header-title">Search</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="header-right"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="toggleSearchExpand" |
|
|
|
|
|
class="collapse-btn"> |
|
|
|
|
|
<span>{{ searchExpanded ? '收起' : '展开' }}</span> |
|
|
|
|
|
<i :class="searchExpanded ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i> |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-form |
|
|
|
|
|
:inline="true" |
|
|
|
|
|
label-position="top" |
|
|
|
|
|
:model="searchData" |
|
|
|
|
|
class="search-form" |
|
|
|
|
|
@keyup.enter.native="getDataList"> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="searchExpanded"> |
|
|
|
|
|
<el-row :gutter="16"> |
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="BU"> |
|
|
<el-form-item label="BU"> |
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 120px"> |
|
|
|
|
|
|
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" clearable> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="i in userBuList" |
|
|
v-for="i in userBuList" |
|
|
:key="i.buNo" |
|
|
:key="i.buNo" |
|
|
@ -12,8 +39,10 @@ |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="变动类型"> |
|
|
<el-form-item label="变动类型"> |
|
|
<el-select v-model="searchData.documentType" placeholder="请选择" clearable style="width: 120px"> |
|
|
|
|
|
|
|
|
<el-select v-model="searchData.documentType" placeholder="请选择" clearable> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in documentTypeList" |
|
|
v-for="item in documentTypeList" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
@ -22,32 +51,68 @@ |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="标签条码"> |
|
|
<el-form-item label="标签条码"> |
|
|
<el-input v-model="searchData.rollNo" clearable placeholder="请输入" style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.rollNo" clearable placeholder="请输入"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="物料编码"> |
|
|
<el-form-item label="物料编码"> |
|
|
<el-input v-model="searchData.partNo" clearable placeholder="请输入" style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.partNo" clearable placeholder="请输入"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="规格型号"> |
|
|
<el-form-item label="规格型号"> |
|
|
<el-input v-model="searchData.partSpec" clearable placeholder="请输入" style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.partSpec" clearable placeholder="请输入"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="变动日期"> |
|
|
<el-form-item label="变动日期"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="searchData.transactionDateRange" |
|
|
v-model="searchData.transactionDateRange" |
|
|
type="daterange" |
|
|
type="daterange" |
|
|
range-separator="至" |
|
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
|
|
|
|
range-separator="~" |
|
|
|
|
|
start-placeholder="开始" |
|
|
|
|
|
end-placeholder="结束" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd" |
|
|
style="width: 240px"> |
|
|
|
|
|
|
|
|
style="width: 100%"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label=" "> |
|
|
|
|
|
<el-button type="primary" @click="getDataList()">查询</el-button> |
|
|
|
|
|
<el-button type="primary" @click="resetSearch()">重置</el-button> |
|
|
|
|
|
<el-button type="primary" @click="exportData()">导出</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
|
|
<el-row :gutter="16"> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<div class="search-actions"> |
|
|
|
|
|
<div class="action-left"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
icon="el-icon-search" |
|
|
|
|
|
:loading="dataListLoading" |
|
|
|
|
|
@click="getDataList"> |
|
|
|
|
|
查询 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button |
|
|
|
|
|
icon="el-icon-refresh-left" |
|
|
|
|
|
@click="resetSearch"> |
|
|
|
|
|
重置 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="action-right"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
icon="el-icon-download" |
|
|
|
|
|
@click="exportData"> |
|
|
|
|
|
导出 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
<!-- 页签列表 --> |
|
|
<!-- 页签列表 --> |
|
|
<el-tabs v-model="activeTab" @tab-click="handleTabClick"> |
|
|
<el-tabs v-model="activeTab" @tab-click="handleTabClick"> |
|
|
@ -118,7 +183,8 @@ import { labelTransactionLogList } from '@/api/warehouse/labelTransactionLog.js' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
height: window.innerHeight - 280, |
|
|
|
|
|
|
|
|
height: window.innerHeight - 313, |
|
|
|
|
|
searchExpanded: true, |
|
|
searchData: { |
|
|
searchData: { |
|
|
buNo: '', |
|
|
buNo: '', |
|
|
documentType: '', |
|
|
documentType: '', |
|
|
@ -166,7 +232,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleResize() { |
|
|
handleResize() { |
|
|
this.height = window.innerHeight - 280 |
|
|
|
|
|
|
|
|
this.height = window.innerHeight - 260 |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 切换搜索区域展开/收起 |
|
|
|
|
|
toggleSearchExpand() { |
|
|
|
|
|
this.searchExpanded = !this.searchExpanded |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 初始化BU列表 |
|
|
// 初始化BU列表 |
|
|
@ -271,6 +342,150 @@ export default { |
|
|
padding: 10px; |
|
|
padding: 10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 搜索卡片样式 */ |
|
|
|
|
|
.search-card { |
|
|
|
|
|
margin-bottom: 12px; |
|
|
|
|
|
border-radius: 8px; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
transition: all 0.3s ease; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-card:hover { |
|
|
|
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-card /deep/ .el-card__header { |
|
|
|
|
|
padding: 5px 20px; |
|
|
|
|
|
background: linear-gradient(135deg, #9ac3d0 20%, #b6c7dd 80%); |
|
|
|
|
|
border-bottom: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-header { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.header-left { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.header-left i { |
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
margin-right: 8px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.header-title { |
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
font-weight: 600; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.header-right { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.collapse-btn { |
|
|
|
|
|
color: #fff !important; |
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
padding: 4px 8px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.collapse-btn:hover { |
|
|
|
|
|
background: rgba(255, 255, 255, 0.1); |
|
|
|
|
|
border-radius: 4px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.collapse-btn i { |
|
|
|
|
|
margin-left: 4px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 搜索表单样式 */ |
|
|
|
|
|
.search-form { |
|
|
|
|
|
padding: 6px 0; |
|
|
|
|
|
min-height: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 卡片主体样式 */ |
|
|
|
|
|
.search-card /deep/ .el-card__body { |
|
|
|
|
|
padding: 10px; |
|
|
|
|
|
transition: all 0.3s ease; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 收起时的样式 */ |
|
|
|
|
|
.search-card.collapsed /deep/ .el-card__body { |
|
|
|
|
|
padding: 10px 20px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-form-item { |
|
|
|
|
|
margin-bottom: 12px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-form-item__label { |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
color: #606266; |
|
|
|
|
|
padding-bottom: 4px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-input__inner, |
|
|
|
|
|
.search-form /deep/ .el-textarea__inner { |
|
|
|
|
|
border-radius: 6px; |
|
|
|
|
|
border: 1px solid #DCDFE6; |
|
|
|
|
|
transition: all 0.3s ease; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-input__inner:focus, |
|
|
|
|
|
.search-form /deep/ .el-textarea__inner:focus { |
|
|
|
|
|
border-color: #9ac3d0; |
|
|
|
|
|
box-shadow: 0 0 0 2px rgba(154, 195, 208, 0.1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-select { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-date-editor.el-input { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 操作按钮区域 */ |
|
|
|
|
|
.search-actions { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
padding: 8px 0 2px 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 展开时显示上边框 */ |
|
|
|
|
|
.search-card:not(.collapsed) .search-actions { |
|
|
|
|
|
border-top: 1px solid #f0f0f0; |
|
|
|
|
|
margin-top: 6px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 收起时不显示上边框和上边距 */ |
|
|
|
|
|
.search-card.collapsed .search-actions { |
|
|
|
|
|
border-top: none; |
|
|
|
|
|
margin-top: 0; |
|
|
|
|
|
padding-top: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.action-left, |
|
|
|
|
|
.action-right { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
gap: 8px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-actions .el-button { |
|
|
|
|
|
border-radius: 4px; |
|
|
|
|
|
padding: 5px 10px; |
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
transition: all 0.3s ease; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 页签样式 */ |
|
|
/deep/ .el-tabs__header { |
|
|
/deep/ .el-tabs__header { |
|
|
margin-bottom: 10px; |
|
|
margin-bottom: 10px; |
|
|
} |
|
|
} |
|
|
@ -293,13 +508,10 @@ export default { |
|
|
background-color: #17B3A3; |
|
|
background-color: #17B3A3; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/deep/ .el-form-item { |
|
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-form-item__label { |
|
|
|
|
|
padding-bottom: 0; |
|
|
|
|
|
line-height: 28px; |
|
|
|
|
|
|
|
|
/* 分页样式 */ |
|
|
|
|
|
/deep/ .el-pagination { |
|
|
|
|
|
margin-top: 10px; |
|
|
|
|
|
padding: 0; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|