|
|
@@ -12,10 +12,16 @@
|
|
|
提交
|
|
|
</el-button> -->
|
|
|
</div>
|
|
|
- <el-table :data="businessList" size="mini" border bordertooltip-effect="dark" height="calc(100vh - 435px)" @selection-change="handleSelectionChange">
|
|
|
+ <el-table :data="businessList" size="mini" border bordertooltip-effect="dark" height="calc(100vh - 435px)" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="GoodsLevel" label="级别" width="80px" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.GoodsLevel=='1'">一级</span>
|
|
|
+ <span v-if="scope.row.GoodsLevel=='2'">二级</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="是否为制造商" width="100" v-if="SupplierTypeCode == '01'">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -178,6 +184,10 @@
|
|
|
},
|
|
|
flag: {
|
|
|
type: String
|
|
|
+ },
|
|
|
+ Grade: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -309,7 +319,6 @@
|
|
|
params
|
|
|
})
|
|
|
.then(res => {
|
|
|
- console.log(res)
|
|
|
_this.businessList = res.data.items
|
|
|
_this.currentItem_Count = res.data.currentItemCount
|
|
|
})
|
|
|
@@ -431,6 +440,17 @@
|
|
|
},
|
|
|
nextStep () {
|
|
|
if (this.businessList && this.businessList.length > 0) {
|
|
|
+ if (this.Grade === '2') {
|
|
|
+ for (let idx in this.businessList) {
|
|
|
+ if (this.businessList[idx].GoodsLevel === '1') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '二级供应商不能准入一级物资!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.subfileList && this.subfileList.length > 0) {
|
|
|
for (var i = 0; i < this.subfileList.length; i++) {
|
|
|
if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
|