|
@@ -551,8 +551,8 @@ export default {
|
|
|
// 添加/编辑
|
|
|
handleAdd (row, isEdit) {
|
|
|
const _this = this
|
|
|
- if (!isEdit && (row.enabledFlag || row.enabledFlag == 0)) {
|
|
|
- this.$message.warning('产品已禁用,不能添加!')
|
|
|
+ if (!isEdit && (row.enabledFlag && row.enabledFlag == 0)) {
|
|
|
+ _this.$message.warning('产品已禁用,不能添加!')
|
|
|
return
|
|
|
}
|
|
|
if (!isEdit && !(row.putCost || row.putCost == 0)) {
|