物资查询增加是否可用

prod
郑明梁 2 years ago
parent 46ede19ccf
commit 1436535711

@ -177,6 +177,19 @@
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="是否在用:">
<el-select
v-model="filterQuery.isDisable"
placeholder="请选择是否在用"
clearable
style="width: 90%"
>
<el-option label="在用" value="false"></el-option>
<el-option label="停用" value="true"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="top-right-btn">
@ -263,6 +276,18 @@
width="180"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="是否在用"
prop="isDisable"
width="180"
show-overflow-tooltip
>
<template slot-scope="scope">
<el-tag :type="scope.row.isDisable | isDisableFilterType">
{{ isDisableMap[scope.row.isDisable] }}
</el-tag>
</template>
</el-table-column>
<el-table-column
label="集采状态"
prop="groupBuy"
@ -1517,6 +1542,10 @@ export default {
measname: null,
nameCode: null,
},
isDisableMap: {
true: "停用",
false: "在用",
},
groupBuyMap: {
true: "集采",
false: "非集采",
@ -1586,6 +1615,14 @@ export default {
};
return statusMap[status];
},
isDisableFilterType(status) {
const statusMap = {
false: "success",
true: "warning",
};
return statusMap[status];
},
},
methods: {

@ -149,7 +149,7 @@
<script>
import pureApplyDetail from "./pureApplyDetailDialog";
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
import {getInvListByUser} from "@/api/system/invWarehouse";
import {filterAll, getInvListByUser} from "@/api/system/invWarehouse";
import {getDeptListByUser} from "@/api/auth/authDept";
import {filterSubAll} from "@/api/system/invSubWarehouse";
@ -393,12 +393,8 @@ export default {
})
},
getDeptList() {
getDeptListByUser().then((res) => {
filterAll().then((res) => {
this.deptList = res.data || [];
if(this.deptList.length>0){
this.filterQuery.targetDeptCode=this.deptList[0].code
this.invCodebe=this.filterQuery.targetDeptCode
}
this. getInvList();
this.getList();
});

Loading…
Cancel
Save