feat(库存管理): 在抛光库存和一次性合格品页面添加截止日期筛选功能
为抛光库存和一次性合格品管理页面添加截止日期筛选功能,方便用户按时间范围查询数据
This commit is contained in:
@@ -22,6 +22,9 @@
|
|||||||
<el-option label="全部" :value="0"></el-option>
|
<el-option label="全部" :value="0"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="截止日期" prop="endTime">
|
||||||
|
<el-date-picker v-model="queryParams.endTime" type="datetime" placeholder="选择截止日期时间" clearable format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
@@ -280,10 +283,11 @@ export default {
|
|||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 1,
|
status: 1,
|
||||||
type: 1,
|
type: 1,
|
||||||
|
endTime: '',
|
||||||
sort: 'updatedTime',
|
sort: 'updatedTime',
|
||||||
sortType: 'desc',
|
sortType: 'desc',
|
||||||
},
|
},
|
||||||
@@ -409,7 +413,11 @@ export default {
|
|||||||
// 查询数据
|
// 查询数据
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
listWmOneTimeInventory(this.queryParams).then((res) => {
|
const params = { ...this.queryParams }
|
||||||
|
if (params.endTime) {
|
||||||
|
params.endTime = this.$dayjs(params.endTime).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
listWmOneTimeInventory(params).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.dataList = res.data.result
|
this.dataList = res.data.result
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
<el-option label="全部" :value="0"></el-option>
|
<el-option label="全部" :value="0"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="截止日期" prop="endTime">
|
||||||
|
<el-date-picker v-model="queryParams.endTime" type="datetime" placeholder="选择截止日期时间" clearable format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
@@ -265,10 +268,11 @@ export default {
|
|||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 1,
|
status: 1,
|
||||||
type: 1,
|
type: 1,
|
||||||
|
endTime: '',
|
||||||
sort: 'updatedTime',
|
sort: 'updatedTime',
|
||||||
sortType: 'desc',
|
sortType: 'desc',
|
||||||
},
|
},
|
||||||
@@ -394,7 +398,11 @@ export default {
|
|||||||
// 查询数据
|
// 查询数据
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
listWmPolishInventory(this.queryParams).then((res) => {
|
const params = { ...this.queryParams }
|
||||||
|
if (params.endTime) {
|
||||||
|
params.endTime = this.$dayjs(params.endTime).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
listWmPolishInventory(params).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.dataList = res.data.result
|
this.dataList = res.data.result
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
|
|||||||
Reference in New Issue
Block a user