fix: 光子工艺路线不显示

This commit is contained in:
caoqianming 2024-08-02 21:11:45 +08:00
parent d2f5432095
commit 78205457ae
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
<el-option <el-option
v-for="item in routeOptions" v-for="item in routeOptions"
:key="item.id" :key="item.id"
:label="item.name" :label="item.label"
:value="item" :value="item"
> >
</el-option> </el-option>
@ -165,7 +165,7 @@ export default {
methods: { methods: {
getRouteOptions() { getRouteOptions() {
this.$API.mtm.route.list this.$API.mtm.route.list
.req({ page: 0, mgroup__belong_dept: this.activeDept }) .req({ page: 0, mgroup__belong_dept: this.activeDept, routepack__isnull: true })
.then((res) => { .then((res) => {
for (var i = 0; i < res.length; i++) { for (var i = 0; i < res.length; i++) {
if (res[i].material_in_name == undefined) { if (res[i].material_in_name == undefined) {