|
@@ -115,7 +115,7 @@ export default {
|
|
|
columns () {
|
|
|
const _this = this
|
|
|
// 操作按钮
|
|
|
- const actionFormat = function (record, data, h) {
|
|
|
+ const actionFormat = function (record, data) {
|
|
|
if (_this.$route.params.dealerLevel != 'SPECIAL') {
|
|
|
return (
|
|
|
<div>
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
{ title: '二级分类', field: 'productTypeName2', key: 'c', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
{ title: '三级分类', field: 'productTypeName3', key: 'd', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
{ title: '价格级别', field: 'priceLevelDictValue', key: 'd', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
- { title: '操作', field: 'action', width: 100, key: 'e', align: 'center', fixed: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return actionFormat(row, row[column.field], h) } }
|
|
|
+ { title: '操作', field: 'action', width: 100, key: 'e', align: 'center', fixed: 'right', operationColumn: false, renderBodyCell: ({ row, column }) => { return actionFormat(row, row[column.field]) } }
|
|
|
]
|
|
|
return arr
|
|
|
},
|
|
@@ -179,6 +179,10 @@ export default {
|
|
|
},
|
|
|
// 选择品类
|
|
|
chooseTModal () {
|
|
|
+ if (this.dataSource.length === 1 && this.dataSource[0] && !this.dataSource[0].productBrandSn) {
|
|
|
+ this.$message.warning('选择全品类后,不能再添加其他品类!')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.selectedRowKeys = []
|
|
|
this.openTypeModal = true
|
|
|
this.$nextTick(() => {
|