|
|
|
@ -11,7 +11,9 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="申购部门">
|
|
|
|
|
<el-select v-model="filterQuery.targetDeptCode" placeholder="请选择申购部门" style="width: 90%">
|
|
|
|
|
<el-select v-model="filterQuery.targetDeptCode" placeholder="请选择申购部门" style="width: 90%"
|
|
|
|
|
@change="getInvList"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in deptList"
|
|
|
|
|
:key="item.code"
|
|
|
|
@ -26,7 +28,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="申购仓库">
|
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" @change="getInvList" style="width: 90%" clearable placeholder="请选择所属仓库">
|
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" @change="getList" style="width: 90%" clearable placeholder="请选择所属仓库">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
|
:key="item.name"
|
|
|
|
@ -167,6 +169,7 @@ export default {
|
|
|
|
|
editStatus: 1,
|
|
|
|
|
emergency:'',
|
|
|
|
|
targetDeptCode:'',
|
|
|
|
|
targetInvCode: null
|
|
|
|
|
},
|
|
|
|
|
formName: null,
|
|
|
|
|
formMap: {
|
|
|
|
@ -238,6 +241,7 @@ export default {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: "",
|
|
|
|
|
});
|
|
|
|
|
let deptCode = this.filterQuery.targetDeptCode
|
|
|
|
|
this.filterQuery = {
|
|
|
|
|
billNo: "",
|
|
|
|
|
thirdSysFk: "",
|
|
|
|
@ -251,7 +255,11 @@ export default {
|
|
|
|
|
type: 1,
|
|
|
|
|
editStatus: 1,
|
|
|
|
|
targetDeptCode: this.invCodebe,
|
|
|
|
|
targetInvCode: null
|
|
|
|
|
};
|
|
|
|
|
if(deptCode!=this.invCodebe){
|
|
|
|
|
this.getInvList()
|
|
|
|
|
}
|
|
|
|
|
this.actDateRange = [];
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
@ -370,10 +378,16 @@ export default {
|
|
|
|
|
this.formName = "add";
|
|
|
|
|
this.newSpDistributionVisible = true;
|
|
|
|
|
},
|
|
|
|
|
deptChange(){
|
|
|
|
|
|
|
|
|
|
this. getInvList();
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
getInvList() {
|
|
|
|
|
var query={
|
|
|
|
|
parentId:this.filterQuery.targetDeptCode
|
|
|
|
|
}
|
|
|
|
|
this.filterQuery.targetInvCode = null
|
|
|
|
|
filterSubAll(query).then((res) => {
|
|
|
|
|
this.invList = res.data || [];
|
|
|
|
|
})
|
|
|
|
@ -385,8 +399,8 @@ export default {
|
|
|
|
|
this.filterQuery.targetDeptCode=this.deptList[0].code
|
|
|
|
|
this.invCodebe=this.filterQuery.targetDeptCode
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
this. getInvList();
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|