申购bug修改

dev
郑明梁 2 years ago
parent 5a34ef0b13
commit 80606281db

@ -11,7 +11,7 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="申购部门"> <el-form-item label="申购部门">
<el-select v-model="filterQuery.deptCode" @change="getInvList" placeholder="请选择申购部门" style="width: 90%"> <el-select v-model="filterQuery.targetDeptCode" clearable @change="getInvList" placeholder="请选择申购部门" style="width: 90%">
<el-option <el-option
v-for="item in deptList" v-for="item in deptList"
:key="item.code" :key="item.code"
@ -25,7 +25,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="申购仓库"> <el-form-item label="申购仓库">
<el-select v-model="filterQuery.invCode" style="width: 90%" clearable placeholder="请选择所属仓库"> <el-select v-model="filterQuery.targetInvCode" style="width: 90%" clearable placeholder="请选择所属仓库">
<el-option <el-option
v-for="item in invList" v-for="item in invList"
:key="item.name" :key="item.name"
@ -171,7 +171,7 @@
import pureApplyDetail from "./pureApplyDetailDialog"; import pureApplyDetail from "./pureApplyDetailDialog";
import {delApply, auditOrder, listApplyDetail, auditListApply, listApply} from "@/api/purchase/purApply"; import {delApply, auditOrder, listApplyDetail, auditListApply, listApply} from "@/api/purchase/purApply";
import {getInvListByUser} from "@/api/system/invWarehouse"; import {getInvListByUser} from "@/api/system/invWarehouse";
import {getDeptListByUser} from "@/api/auth/authDept"; import {filterDepts, getDeptListByUser} from "@/api/auth/authDept";
import {filterSubAll} from "@/api/system/invSubWarehouse"; import {filterSubAll} from "@/api/system/invSubWarehouse";
export default { export default {
@ -297,7 +297,7 @@ export default {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
let deptCode = this.filterQuery.deptCode let targetDeptCode = this.filterQuery.targetDeptCode
this.filterQuery = { this.filterQuery = {
billNo: "", billNo: "",
thirdSysFk: "", thirdSysFk: "",
@ -310,9 +310,9 @@ export default {
corpName: null, corpName: null,
type: 1, type: 1,
editStatus: 1, editStatus: 1,
deptCode: this.invCodebe, targetDeptCode: this.invCodebe,
}; };
if (deptCode != this.invCodebe) { if (targetDeptCode != this.invCodebe) {
this.getInvList() this.getInvList()
} }
this.actDateRange = []; this.actDateRange = [];
@ -463,7 +463,10 @@ export default {
}) })
}, },
getDeptList() { getDeptList() {
getDeptListByUser().then((res) => { let query = {
spUse: true,
};
filterDepts(query).then((res) => {
this.deptList = res.data || []; this.deptList = res.data || [];
if (this.deptList.length > 0) { if (this.deptList.length > 0) {
this.filterQuery.targetDeptCode = this.deptList[0].code this.filterQuery.targetDeptCode = this.deptList[0].code

@ -495,7 +495,7 @@ export default {
} }
, ,
created() { created() {
this.getDeptList(); this.getList();
} }
, ,
} }

Loading…
Cancel
Save