materialList展示
This commit is contained in:
parent
e0dcddfec6
commit
fa600610d9
|
@ -479,7 +479,8 @@
|
|||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="生产任务">
|
||||
<el-select v-model="item.material_out" placeholder="产品名称" disabled style="width: 100%">
|
||||
<el-option v-for="item in materialOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
<el-option v-for="item in materialOptions" :key="item.id" :label="item.full_name"
|
||||
:value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -776,7 +777,7 @@ export default {
|
|||
for (var i = 0; i < res.length; i++) {
|
||||
mOptions.push({
|
||||
id: res[i].material_out,
|
||||
name: res[i].material_out_name,
|
||||
full_name: res[i].material_out_name,
|
||||
material_in: res[i].material_in
|
||||
});
|
||||
}
|
||||
|
@ -786,6 +787,7 @@ export default {
|
|||
let obj = {};
|
||||
obj.page = 0;
|
||||
obj.is_hidden = false;
|
||||
|
||||
this.$API.mtm.material.list.req(obj).then((res) => {
|
||||
this.materialOptions = res;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue