fix:禅道124
This commit is contained in:
parent
7fd149693e
commit
ed4c915125
|
@ -49,12 +49,34 @@
|
||||||
@change="handleQuery"
|
@change="handleQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in stateOptions"
|
v-for="item in cateOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</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>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -94,7 +116,7 @@
|
||||||
{{ stateDict[scope.row.state] }}
|
{{ stateDict[scope.row.state] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="出/入库日期" prop="inout_date">
|
<el-table-column label="出/入库日期" prop="inout_date" sortable>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="执行部门" prop="belong_dept_name">
|
<el-table-column label="执行部门" prop="belong_dept_name">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
@ -213,13 +235,23 @@ export default {
|
||||||
form: {},
|
form: {},
|
||||||
apiObj: this.$API.inm.mio.list,
|
apiObj: this.$API.inm.mio.list,
|
||||||
selection: [],
|
selection: [],
|
||||||
|
deptOptions: [],
|
||||||
type: "",
|
type: "",
|
||||||
cate: "helpso",
|
cate: "helpso",
|
||||||
mioId: "",
|
mioId: "",
|
||||||
visibleDrawer: false,
|
visibleDrawer: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getDeptOptions();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getDeptOptions() {
|
||||||
|
let that = this;
|
||||||
|
that.$API.system.dept.list.req({ page: 0, type__in: "dept" }).then((res) => {
|
||||||
|
that.deptOptions = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
//添加
|
//添加
|
||||||
add(type) {
|
add(type) {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
|
|
Loading…
Reference in New Issue