fix:禅道124

This commit is contained in:
shijing 2025-10-14 14:21:38 +08:00
parent 7fd149693e
commit ed4c915125
1 changed files with 34 additions and 2 deletions

View File

@ -49,12 +49,34 @@
@change="handleQuery"
>
<el-option
v-for="item in stateOptions"
v-for="item in cateOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
<el-select
v-model="query.belong_dept"
clearable
style="width: 120px; margin-left: 2px"
placeholder="执行部门"
@change="handleQuery"
>
<el-option
v-for="item in deptOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
<el-date-picker
v-model="query.inout_date"
type="date"
placeholder="出入库日期"
value-format="YYYY-MM-DD"
style="width: 120px; margin-left: 2px"
>
</el-date-picker>
</div>
<div class="right-panel">
<el-input
@ -94,7 +116,7 @@
{{ stateDict[scope.row.state] }}
</template>
</el-table-column>
<el-table-column label="出/入库日期" prop="inout_date">
<el-table-column label="出/入库日期" prop="inout_date" sortable>
</el-table-column>
<el-table-column label="执行部门" prop="belong_dept_name">
<template #default="scope">
@ -213,13 +235,23 @@ export default {
form: {},
apiObj: this.$API.inm.mio.list,
selection: [],
deptOptions: [],
type: "",
cate: "helpso",
mioId: "",
visibleDrawer: false,
};
},
mounted() {
this.getDeptOptions();
},
methods: {
getDeptOptions() {
let that = this;
that.$API.system.dept.list.req({ page: 0, type__in: "dept" }).then((res) => {
that.deptOptions = res;
});
},
//
add(type) {
this.dialog.save = true;