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-form-item>
</el-col> </el-col>
<el-col :md="12" :sm="24"> <el-col :md="12" :sm="24">
<el-form-item label="绑定工序"> <el-form-item label="绑定批次">
<el-switch v-model="form.batch_bind" /> <el-switch v-model="form.batch_bind" />
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

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

View File

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

View File

@ -181,7 +181,7 @@ export default {
}, },
getRoutePackes() { getRoutePackes() {
let that = this; 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++) { for (var i = 0; i < res.length; i++) {
res[i].label = res[i].name; res[i].label = res[i].name;
if (res[i].id == that.form.routepack) { if (res[i].id == that.form.routepack) {