|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="申购部门">
|
|
|
|
|
<el-select v-model="filterQuery.targetDeptCode" @change="getInvList" 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"
|
|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="申购仓库">
|
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" style="width: 90%" clearable placeholder="请选择所属仓库">
|
|
|
|
|
<el-select v-model="filterQuery.invCode" style="width: 90%" clearable placeholder="请选择所属仓库">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
|
:key="item.name"
|
|
|
|
@ -92,22 +92,23 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row @current-change="handleDetail"
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row
|
|
|
|
|
@current-change="handleDetail"
|
|
|
|
|
:default-sort="defaultSort" @sort-change="handleSortChange">
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
<el-table-column label="申购单号" prop="billNo"></el-table-column>
|
|
|
|
|
<el-table-column label="申购部门" prop="targetDeptName"></el-table-column>
|
|
|
|
|
<el-table-column label="申购仓库" prop="targetInvName"></el-table-column>
|
|
|
|
|
<el-table-column label="紧急程度" prop="emergency" >
|
|
|
|
|
<el-table-column label="紧急程度" prop="emergency">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ emergencyMap[scope.row.emergency] }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="到货截止" prop="arrivalTime" ></el-table-column>
|
|
|
|
|
<el-table-column label="到货截止" prop="arrivalTime"></el-table-column>
|
|
|
|
|
<el-table-column label="创建时间" prop="createTime"
|
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']" ></el-table-column>
|
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']"></el-table-column>
|
|
|
|
|
<el-table-column label="审核时间" prop="auditTime"
|
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']" ></el-table-column>
|
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']"></el-table-column>
|
|
|
|
|
<el-table-column label="审核人" prop="auditByName"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="审核状态" prop="status">
|
|
|
|
@ -188,8 +189,9 @@ export default {
|
|
|
|
|
corpName: null,
|
|
|
|
|
type: 1,
|
|
|
|
|
editStatus: 1,
|
|
|
|
|
emergency:'',
|
|
|
|
|
targetDeptCode:'',
|
|
|
|
|
emergency: '',
|
|
|
|
|
deptCode: '',
|
|
|
|
|
invCode: null,
|
|
|
|
|
},
|
|
|
|
|
formName: null,
|
|
|
|
|
formMap: {
|
|
|
|
@ -202,7 +204,7 @@ export default {
|
|
|
|
|
3: "已审核",
|
|
|
|
|
4: "已拒绝"
|
|
|
|
|
},
|
|
|
|
|
emergencyMap:{
|
|
|
|
|
emergencyMap: {
|
|
|
|
|
1: "正常",
|
|
|
|
|
2: "较急",
|
|
|
|
|
3: "特急",
|
|
|
|
@ -211,12 +213,12 @@ export default {
|
|
|
|
|
editType: 2,
|
|
|
|
|
total: 0,
|
|
|
|
|
thirdSys: [],
|
|
|
|
|
invCodebe:null,
|
|
|
|
|
invCodebe: null,
|
|
|
|
|
thirdSysDetail: null,
|
|
|
|
|
busTypes: [],
|
|
|
|
|
originTypes: [],
|
|
|
|
|
invList:{},
|
|
|
|
|
deptList:{},
|
|
|
|
|
invList: {},
|
|
|
|
|
deptList: {},
|
|
|
|
|
list: [],
|
|
|
|
|
detailList: [],
|
|
|
|
|
loading: false,
|
|
|
|
@ -295,7 +297,7 @@ export default {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: "",
|
|
|
|
|
});
|
|
|
|
|
let deptCode = this.filterQuery.targetDeptCode
|
|
|
|
|
let deptCode = this.filterQuery.deptCode
|
|
|
|
|
this.filterQuery = {
|
|
|
|
|
billNo: "",
|
|
|
|
|
thirdSysFk: "",
|
|
|
|
@ -308,9 +310,9 @@ export default {
|
|
|
|
|
corpName: null,
|
|
|
|
|
type: 1,
|
|
|
|
|
editStatus: 1,
|
|
|
|
|
targetDeptCode: this.invCodebe,
|
|
|
|
|
deptCode: this.invCodebe,
|
|
|
|
|
};
|
|
|
|
|
if(deptCode!=this.invCodebe){
|
|
|
|
|
if (deptCode != this.invCodebe) {
|
|
|
|
|
this.getInvList()
|
|
|
|
|
}
|
|
|
|
|
this.actDateRange = [];
|
|
|
|
@ -358,7 +360,7 @@ export default {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
|
this.detailList=[]
|
|
|
|
|
this.detailList = []
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
@ -452,8 +454,8 @@ export default {
|
|
|
|
|
this.newSpDistributionVisible = true;
|
|
|
|
|
},
|
|
|
|
|
getInvList() {
|
|
|
|
|
var query={
|
|
|
|
|
parentId:this.filterQuery.targetDeptCode
|
|
|
|
|
var query = {
|
|
|
|
|
parentId: this.filterQuery.targetDeptCode
|
|
|
|
|
}
|
|
|
|
|
filterSubAll(query).then((res) => {
|
|
|
|
|
this.invList = res.data || [];
|
|
|
|
@ -462,12 +464,12 @@ export default {
|
|
|
|
|
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
|
|
|
|
|
if (this.deptList.length > 0) {
|
|
|
|
|
this.filterQuery.targetDeptCode = this.deptList[0].code
|
|
|
|
|
this.invCodebe = this.filterQuery.targetDeptCode
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
this. getInvList();
|
|
|
|
|
this.getInvList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|