fix: route/utask 更新筛选条件

This commit is contained in:
zty 2024-07-30 14:31:29 +08:00
parent 8896a3927c
commit 8e59bdccce
4 changed files with 6 additions and 4 deletions

View File

@ -149,7 +149,7 @@
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<el-form-item label="绑定工序">
<el-form-item label="绑定批次">
<el-switch v-model="form.batch_bind" />
</el-form-item>
</el-col>

View File

@ -37,6 +37,8 @@
</el-table-column>
<el-table-column label="工时" prop="hour_work">
</el-table-column>
<el-table-column label="批次绑定" prop="batch_bind">
</el-table-column>
</scTable>
</el-card>
</el-main>
@ -79,7 +81,7 @@ export default {
//
getRoute(id) {
this.$API.mtm.route.list
.req({ page: 0, material: id })
.req({ page: 0, routepack: this.form.id })
.then((res) => {
this.tableData = res;
});

View File

@ -109,7 +109,7 @@
</el-table-column>
<el-table-column label="工时" prop="hour_work">
</el-table-column>
<el-table-column label="排序" prop="sort">
<el-table-column label="批次绑定" prop="batch_bind">
</el-table-column>
<el-table-column
label="操作"

View File

@ -181,7 +181,7 @@ export default {
},
getRoutePackes() {
let that = this;
that.$API.mtm.routepack.list.req({ page: 0 }).then((res) => {
that.$API.mtm.routepack.list.req({ page: 0, state: 30 }).then((res) => {
for (var i = 0; i < res.length; i++) {
res[i].label = res[i].name;
if (res[i].id == that.form.routepack) {