fix: route/utask 更新筛选条件
This commit is contained in:
parent
8896a3927c
commit
8e59bdccce
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
@ -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="操作"
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue