fix:禅道59
This commit is contained in:
parent
bc8673b85b
commit
a9e87ee859
|
@ -18,10 +18,24 @@
|
||||||
</scFileImport>
|
</scFileImport>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
|
<el-select
|
||||||
|
v-model="query.process"
|
||||||
|
placeholder="工序"
|
||||||
|
clearable
|
||||||
|
style="width: 180px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in processOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="query.search"
|
v-model="query.search"
|
||||||
placeholder="名称"
|
placeholder="名称"
|
||||||
clearable
|
clearable
|
||||||
|
style="width: 250px"
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -207,6 +221,7 @@ export default {
|
||||||
query: { type: 10, is_hidden: false },
|
query: { type: 10, is_hidden: false },
|
||||||
activeName: 10,
|
activeName: 10,
|
||||||
selection: [],
|
selection: [],
|
||||||
|
processOptions: [],
|
||||||
state_: {
|
state_: {
|
||||||
10: "完好",
|
10: "完好",
|
||||||
20: "限用",
|
20: "限用",
|
||||||
|
@ -239,8 +254,17 @@ export default {
|
||||||
this.tabOptions.push({ label: "辅助材料", name: 40 });
|
this.tabOptions.push({ label: "辅助材料", name: 40 });
|
||||||
this.typeOptions[40] = "辅助材料";
|
this.typeOptions[40] = "辅助材料";
|
||||||
}
|
}
|
||||||
|
this.getProcess();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getProcess(){
|
||||||
|
let that = this;
|
||||||
|
this.$API.mtm.process.list.req({page:0}).then((res) => {
|
||||||
|
that.processOptions = res;
|
||||||
|
}).catch((err) => {
|
||||||
|
return err;
|
||||||
|
});
|
||||||
|
},
|
||||||
rowClick(row) {
|
rowClick(row) {
|
||||||
this.materialId = row.id;
|
this.materialId = row.id;
|
||||||
this.materialName = row.full_name;
|
this.materialName = row.full_name;
|
||||||
|
|
Loading…
Reference in New Issue