采购订单页面缺失供应商

pro
anthonywj 2 years ago
parent c3dc2e4b5f
commit b6f905bf79

@ -25,7 +25,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="分类编码:" class="query-form-item">
<el-input v-model="listQuery.mainId" style="width: 90%" placeholder="请输入三方物资分类"
<el-input v-model="listQuery.flbm" style="width: 90%" placeholder="请输入分类编码"
clearable="true"></el-input>
</el-form-item>
</el-col>

@ -26,7 +26,7 @@
<el-col :span="8">
<el-form-item label="采购仓库">
<el-select v-model="filterQuery.invCode" 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"
@ -84,6 +84,7 @@
<el-table-column label="采购单号" prop="billNo"></el-table-column>
<el-table-column label="采购部门" prop="deptName"></el-table-column>
<el-table-column label="采购仓库" prop="invName"></el-table-column>
<el-table-column label="供应商" prop="supName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}
@ -176,12 +177,12 @@ export default {
corpName: null,
type: 1,
editStatus: 1,
emergency:'',
deptCode:'',
invCode:''
emergency: '',
deptCode: '',
invCode: ''
},
formName: null,
invCodebe:null,
invCodebe: null,
formMap: {
add: "新增采购订单",
update: "编辑采购订单",
@ -192,7 +193,7 @@ export default {
3: "已审核",
4: "已拒绝"
},
emergencyMap:{
emergencyMap: {
1: "正常",
2: "较急",
3: "特急",
@ -286,7 +287,7 @@ export default {
this.newSpDistributionVisible = false
}
});
}else{
} else {
this.newSpDistributionVisible = false
}
@ -312,7 +313,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);
}
@ -404,8 +405,8 @@ export default {
this.detailList = [];
},
getInvList() {
var query={
parentId:this.filterQuery.deptCode
var query = {
parentId: this.filterQuery.deptCode
}
filterSubAll(query).then((res) => {
this.invList = res.data || [];
@ -414,12 +415,12 @@ export default {
getDeptList() {
getDeptListByUser().then((res) => {
this.deptList = res.data || [];
if(this.deptList.length>0){
this.filterQuery.deptCode=this.deptList[0].code
this.invCodebe=this.filterQuery.deptCode
if (this.deptList.length > 0) {
this.filterQuery.deptCode = this.deptList[0].code
this.invCodebe = this.filterQuery.deptCode
}
this.getList();
this. getInvList();
this.getInvList();
});
},

@ -83,6 +83,7 @@
<el-table-column label="采购单号" prop="billNo"></el-table-column>
<el-table-column label="采购部门" prop="deptName"></el-table-column>
<el-table-column label="采购仓库" prop="invName"></el-table-column>
<el-table-column label="供应商" prop="supName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}

@ -10,7 +10,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="采购部门">
<el-select v-model="filterQuery.deptCode" @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"
@ -99,6 +99,7 @@
<el-table-column label="采购单号" prop="billNo"></el-table-column>
<el-table-column label="采购部门" prop="deptName"></el-table-column>
<el-table-column label="采购仓库" prop="invName"></el-table-column>
<el-table-column label="供应商" prop="supName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}
@ -193,11 +194,11 @@ export default {
corpName: null,
type: 1,
editStatus: 1,
emergency:'',
deptCode:'',
emergency: '',
deptCode: '',
},
Menustatus:null,
filePath:"",
Menustatus: null,
filePath: "",
formName: null,
formMap: {
add: "新增采购计划",
@ -221,7 +222,7 @@ export default {
editType: 1,
total: 0,
thirdSys: [],
invCodebe:null,
invCodebe: null,
thirdSysDetail: null,
busTypes: [],
originTypes: [],
@ -328,7 +329,7 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch;
},
help(){
help() {
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
window.open(this.certFileUrl + this.filePath);
},
@ -354,7 +355,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);
}
@ -410,12 +411,12 @@ export default {
this.getList();
},
selectAuthMenu(){
let params={menuName:this.$route.meta.title}
selectAuthMenu(params).then((res) =>{
if(res.code === 20000){
this.Menustatus=res.data.status;
this.filePath=res.data.filePath;
selectAuthMenu() {
let params = {menuName: this.$route.meta.title}
selectAuthMenu(params).then((res) => {
if (res.code === 20000) {
this.Menustatus = res.data.status;
this.filePath = res.data.filePath;
}
})
},
@ -427,8 +428,8 @@ export default {
},
getInvList() {
var query={
parentId:this.filterQuery.deptCode
var query = {
parentId: this.filterQuery.deptCode
}
filterSubAll(query).then((res) => {
this.invList = res.data || [];
@ -437,12 +438,12 @@ export default {
getDeptList() {
getDeptListByUser().then((res) => {
this.deptList = res.data || [];
if(this.deptList.length>0){
this.filterQuery.deptCode=this.deptList[0].code
this.invCodebe=this.filterQuery.deptCode
if (this.deptList.length > 0) {
this.filterQuery.deptCode = this.deptList[0].code
this.invCodebe = this.filterQuery.deptCode
}
this.getList();
this. getInvList();
this.getInvList();
});
},

Loading…
Cancel
Save