|
|
@ -26,7 +26,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="申购仓库">
|
|
|
|
<el-form-item label="申购仓库">
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" style="width: 90%" placeholder="请选择所属仓库">
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" @change="getInvList" 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"
|
|
|
@ -149,6 +149,7 @@ import pureApplyDetail from "./pureApplyDetailDialog";
|
|
|
|
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
|
|
|
|
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
|
|
|
|
import {getInvListByUser} from "@/api/system/invWarehouse";
|
|
|
|
import {getInvListByUser} from "@/api/system/invWarehouse";
|
|
|
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
|
|
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
|
|
|
|
|
|
|
import {filterSubAll} from "@/api/system/invSubWarehouse";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -164,6 +165,8 @@ export default {
|
|
|
|
corpName: null,
|
|
|
|
corpName: null,
|
|
|
|
type: 1,
|
|
|
|
type: 1,
|
|
|
|
editStatus: 1,
|
|
|
|
editStatus: 1,
|
|
|
|
|
|
|
|
emergency:'',
|
|
|
|
|
|
|
|
targetDeptCode:'',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formName: null,
|
|
|
|
formName: null,
|
|
|
|
formMap: {
|
|
|
|
formMap: {
|
|
|
@ -185,6 +188,7 @@ export default {
|
|
|
|
editType: 1,
|
|
|
|
editType: 1,
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
thirdSys: [],
|
|
|
|
thirdSys: [],
|
|
|
|
|
|
|
|
invCodebe:null,
|
|
|
|
thirdSysDetail: null,
|
|
|
|
thirdSysDetail: null,
|
|
|
|
busTypes: [],
|
|
|
|
busTypes: [],
|
|
|
|
originTypes: [],
|
|
|
|
originTypes: [],
|
|
|
@ -246,6 +250,7 @@ export default {
|
|
|
|
corpName: null,
|
|
|
|
corpName: null,
|
|
|
|
type: 1,
|
|
|
|
type: 1,
|
|
|
|
editStatus: 1,
|
|
|
|
editStatus: 1,
|
|
|
|
|
|
|
|
targetDeptCode: this.invCodebe,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.actDateRange = [];
|
|
|
|
this.actDateRange = [];
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -272,6 +277,7 @@ export default {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
|
|
|
|
this.detailList=[]
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -365,14 +371,22 @@ export default {
|
|
|
|
this.newSpDistributionVisible = true;
|
|
|
|
this.newSpDistributionVisible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getInvList() {
|
|
|
|
getInvList() {
|
|
|
|
getInvListByUser().then((res) => {
|
|
|
|
var query={
|
|
|
|
|
|
|
|
parentId:this.filterQuery.targetDeptCode
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
filterSubAll(query).then((res) => {
|
|
|
|
this.invList = res.data || [];
|
|
|
|
this.invList = res.data || [];
|
|
|
|
this.getBusType();
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getDeptList() {
|
|
|
|
getDeptList() {
|
|
|
|
getDeptListByUser().then((res) => {
|
|
|
|
getDeptListByUser().then((res) => {
|
|
|
|
this.deptList = res.data || [];
|
|
|
|
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();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -401,8 +415,6 @@ export default {
|
|
|
|
let start = new Date();
|
|
|
|
let start = new Date();
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
this.actDateRange = [start, end];
|
|
|
|
this.actDateRange = [start, end];
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getInvList();
|
|
|
|
|
|
|
|
this.getDeptList();
|
|
|
|
this.getDeptList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|