修复物料监控下料时间筛选参数
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

This commit is contained in:
sheng
2026-06-25 15:54:15 +08:00
parent 297adacd82
commit 44d5c084e1
2 changed files with 17 additions and 6 deletions

View File

@@ -41,11 +41,11 @@
<el-form-item :label="$t(key('finish_time'))" prop="start_time">
<el-date-picker
v-model="search.start_time"
type="datetimerange"
type="daterange"
range-separator="-"
:start-placeholder="$t(key('start_time'))"
:end-placeholder="$t(key('end_time'))"
value-format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd"
style="width:330px"
/>
</el-form-item>
@@ -166,8 +166,10 @@ export default {
workingsubclass: this.search.workingsubclass || undefined
}
if (Array.isArray(this.search.start_time) && this.search.start_time.length === 2) {
params.start_time = this.search.start_time[0]
params.end_time = this.search.start_time[1]
params.start_time = [
`${this.search.start_time[0]} 00:00:00`,
`${this.search.start_time[1]} 23:59:59`
]
}
return params
},