|
|
|
@ -5,12 +5,12 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="采购单号">
|
|
|
|
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入采购单号" clearable></el-input>
|
|
|
|
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入采购单号" clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="采购部门">
|
|
|
|
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择采购部门" style="width: 90%">
|
|
|
|
|
<el-select v-model="filterQuery.deptCode" @change="getInvList" placeholder="请选择采购部门" style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in deptList"
|
|
|
|
|
:key="item.code"
|
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="采购仓库">
|
|
|
|
|
<el-select v-model="filterQuery.invCode" style="width: 90%" placeholder="请选择所属仓库">
|
|
|
|
|
<el-select v-model="filterQuery.invCode" style="width: 90%" clearable placeholder="请选择所属仓库">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
|
:key="item.name"
|
|
|
|
@ -172,6 +172,7 @@ import purPlanEdit from "./purPlanDetailDialog";
|
|
|
|
|
import {delApply, listPlan, listApplyDetail, delPlanDetailAll} from "@/api/purchase/purPlan";
|
|
|
|
|
import { getInvListByUser } from '@/api/system/invWarehouse'
|
|
|
|
|
import { getDeptListByUser } from '@/api/auth/authDept'
|
|
|
|
|
import {filterSubAll} from "@/api/system/invSubWarehouse";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -186,6 +187,8 @@ export default {
|
|
|
|
|
corpName: null,
|
|
|
|
|
type: 1,
|
|
|
|
|
editStatus: 1,
|
|
|
|
|
emergency:'',
|
|
|
|
|
targetDeptCode:'',
|
|
|
|
|
},
|
|
|
|
|
formName: null,
|
|
|
|
|
formMap: {
|
|
|
|
@ -206,6 +209,7 @@ export default {
|
|
|
|
|
invList:{},
|
|
|
|
|
deptList:{},
|
|
|
|
|
showSearch:true,
|
|
|
|
|
invCodebe:null,
|
|
|
|
|
idQuery: {},
|
|
|
|
|
editType: 1,
|
|
|
|
|
total: 0,
|
|
|
|
@ -301,6 +305,7 @@ export default {
|
|
|
|
|
corpName: null,
|
|
|
|
|
type: 1,
|
|
|
|
|
editStatus: 1,
|
|
|
|
|
targetDeptCode: this.invCodebe,
|
|
|
|
|
};
|
|
|
|
|
this.actDateRange = [];
|
|
|
|
|
this.getList();
|
|
|
|
@ -335,6 +340,7 @@ export default {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
|
this.detailList=[]
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
@ -396,14 +402,22 @@ export default {
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
},
|
|
|
|
|
getInvList() {
|
|
|
|
|
getInvListByUser().then((res) => {
|
|
|
|
|
var query={
|
|
|
|
|
parentId:this.filterQuery.targetDeptCode
|
|
|
|
|
}
|
|
|
|
|
filterSubAll(query).then((res) => {
|
|
|
|
|
this.invList = res.data || [];
|
|
|
|
|
this.getBusType();
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getDeptList() {
|
|
|
|
|
getDeptListByUser().then((res) => {
|
|
|
|
|
this.deptList = res.data || [];
|
|
|
|
|
if(this.deptList.length>0){
|
|
|
|
|
this.filterQuery.targetDeptCode=this.deptList[0].code
|
|
|
|
|
this.invCodebe=this.filterQuery.targetDeptCode
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
this. getInvList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -440,8 +454,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getInvList();
|
|
|
|
|
this.getDeptList();
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|