|
|
@@ -30,12 +30,19 @@
|
|
|
<el-table-column prop="Name"
|
|
|
label="分类名称"
|
|
|
show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="是否为制造商" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope,canadd,newcanadd)">非制造商</el-button>
|
|
|
- <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope,canadd,newcanadd)">制造商</el-button>
|
|
|
- </template>
|
|
|
+ <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">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope,canadd,newcanadd)" :disabled="operType != '制造商'">非制造商</el-button>
|
|
|
+ <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope,canadd,newcanadd)" :disabled="operType != '制造商'">制造商</el-button>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="CertSubStatus"
|
|
|
label="状态"
|
|
|
@@ -232,6 +239,10 @@ export default {
|
|
|
name: 'GoodsList',
|
|
|
components: {},
|
|
|
props: {
|
|
|
+ operType: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
canadd: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
@@ -278,6 +289,7 @@ export default {
|
|
|
orgtreeprops: {
|
|
|
value: 'Id',
|
|
|
label: 'CodeName',
|
|
|
+ GoodsLevel: 'GoodsLevel',
|
|
|
children: 'children',
|
|
|
isLeaf: 'Leaf',
|
|
|
disabled: 'disabled'
|
|
|
@@ -498,7 +510,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
_this.loading = true
|
|
|
- _this.$axios.post('/suppliercertsub/addgoodsbus', params)
|
|
|
+ _this.$axios.post('/suppliercertsub/addgoodsbus', params)
|
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
|
@@ -589,7 +601,7 @@ export default {
|
|
|
let name = _this.searchText
|
|
|
this.$axios.get('goodsaptitude/goodsparentlist/' + name)
|
|
|
.then(res => {
|
|
|
- _this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
|
|
|
+ _this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName,GoodsLevel')
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|