|
|
@ -28,7 +28,7 @@ |
|
|
|
|
|
|
|
|
<template v-if="searchExpanded"> |
|
|
<template v-if="searchExpanded"> |
|
|
<el-row :gutter="16"> |
|
|
<el-row :gutter="16"> |
|
|
<el-col :span="4"> |
|
|
|
|
|
|
|
|
<el-col :span="3"> |
|
|
<el-form-item label="BU"> |
|
|
<el-form-item label="BU"> |
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" clearable> |
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" clearable> |
|
|
<el-option |
|
|
<el-option |
|
|
@ -40,7 +40,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
|
|
|
|
|
|
<el-col :span="3"> |
|
|
<el-form-item label="变动类型"> |
|
|
<el-form-item label="变动类型"> |
|
|
<el-select v-model="searchData.documentType" placeholder="请选择" clearable> |
|
|
<el-select v-model="searchData.documentType" placeholder="请选择" clearable> |
|
|
<el-option |
|
|
<el-option |
|
|
@ -67,14 +67,14 @@ |
|
|
<el-input v-model="searchData.partSpec" clearable placeholder="请输入"></el-input> |
|
|
<el-input v-model="searchData.partSpec" clearable placeholder="请输入"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
<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="~" |
|
|
range-separator="~" |
|
|
start-placeholder="开始" |
|
|
|
|
|
end-placeholder="结束" |
|
|
|
|
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
|
end-placeholder="结束日期" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
@ -179,6 +179,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { labelTransactionLogList } from '@/api/warehouse/labelTransactionLog.js' |
|
|
import { labelTransactionLogList } from '@/api/warehouse/labelTransactionLog.js' |
|
|
|
|
|
import { getSiteAndBuByUserName2 } from '@/api/qc/qc.js' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -242,10 +243,14 @@ export default { |
|
|
|
|
|
|
|
|
// 初始化BU列表 |
|
|
// 初始化BU列表 |
|
|
initBuList() { |
|
|
initBuList() { |
|
|
this.userBuList = this.$store.state.common.userBuList || [] |
|
|
|
|
|
if (this.userBuList.length > 0) { |
|
|
|
|
|
this.searchData.buNo = this.userBuList[0].buNo |
|
|
|
|
|
|
|
|
const tempData = { |
|
|
|
|
|
username: this.$store.state.user.name |
|
|
} |
|
|
} |
|
|
|
|
|
getSiteAndBuByUserName2(tempData).then(({ data }) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.userBuList = data.rows || [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 初始化默认日期为今天 |
|
|
// 初始化默认日期为今天 |
|
|
@ -446,10 +451,24 @@ export default { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.search-form /deep/ .el-date-editor.el-input { |
|
|
|
|
|
|
|
|
.search-form /deep/ .el-date-editor.el-input, |
|
|
|
|
|
.search-form /deep/ .el-date-editor--daterange.el-input__inner { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-date-editor--daterange { |
|
|
|
|
|
width: 100% !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-range-input { |
|
|
|
|
|
width: 42%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search-form /deep/ .el-range-separator { |
|
|
|
|
|
width: 16%; |
|
|
|
|
|
padding: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* 操作按钮区域 */ |
|
|
/* 操作按钮区域 */ |
|
|
.search-actions { |
|
|
.search-actions { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|