fix:禅道59

This commit is contained in:
shijing 2025-08-18 16:27:15 +08:00
parent bc8673b85b
commit a9e87ee859
1 changed files with 24 additions and 0 deletions

View File

@ -18,10 +18,24 @@
</scFileImport>
</div>
<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
v-model="query.search"
placeholder="名称"
clearable
style="width: 250px"
></el-input>
<el-button
type="primary"
@ -207,6 +221,7 @@ export default {
query: { type: 10, is_hidden: false },
activeName: 10,
selection: [],
processOptions: [],
state_: {
10: "完好",
20: "限用",
@ -239,8 +254,17 @@ export default {
this.tabOptions.push({ label: "辅助材料", name: 40 });
this.typeOptions[40] = "辅助材料";
}
this.getProcess();
},
methods: {
getProcess(){
let that = this;
this.$API.mtm.process.list.req({page:0}).then((res) => {
that.processOptions = res;
}).catch((err) => {
return err;
});
},
rowClick(row) {
this.materialId = row.id;
this.materialName = row.full_name;