fix: 修复产线能力查询参数错误及调整分页默认值

修复产线能力查询时lineId参数传递错误的问题,增加参数校验
调整分页组件默认的pageSizes选项,增加10的选项
修改物料线圈查询状态参数为0
优化线圈吞吐记录展示方式,改为行点击触发
移除用餐记录中不必要的部门字典依赖
This commit is contained in:
砂糖
2026-03-09 10:34:05 +08:00
parent c532d7f753
commit d3da84f65e
5 changed files with 47 additions and 21 deletions

View File

@@ -236,7 +236,8 @@ export default {
},
onLineRowClick(row) {
this.queryParams.lineId = row.lineId
this.handleQuery()
console.log(row);
// this.handleQuery()
},
getList() {
this.loading = true
@@ -264,8 +265,14 @@ export default {
this.open = true
return
}
console.log(row);
const lineId = row.lineId ?? this.queryParams.lineId
if (!lineId) {
this.$modal.msgError('请选择产线')
return
}
this.loading = true
getLineCapability(row.capabilityId).then(res => {
getLineCapability(lineId).then(res => {
const d = res.data || {}
this.form = {
...this.form,