完善产品管理
This commit is contained in:
@@ -185,6 +185,7 @@ export default {
|
|||||||
this.$message({ showClose: true, type: 'error', message: '原料列表不能为空' })
|
this.$message({ showClose: true, type: 'error', message: '原料列表不能为空' })
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
if (this.formobj.list.length > 1) {
|
||||||
for (var i = 0; i < this.formobj.list.length; i++) {
|
for (var i = 0; i < this.formobj.list.length; i++) {
|
||||||
if (this.formobj.list[i].materialCode === this.formobj.list[this.formobj.list.length - 1].materialCode) {
|
if (this.formobj.list[i].materialCode === this.formobj.list[this.formobj.list.length - 1].materialCode) {
|
||||||
this.$message({ showClose: true, type: 'error', message: '原料列表中需选择不同的原料进行操作' })
|
this.$message({ showClose: true, type: 'error', message: '原料列表中需选择不同的原料进行操作' })
|
||||||
@@ -192,6 +193,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.submitdisabled = true
|
this.submitdisabled = true
|
||||||
req.saveOrUpdate(this.formobj).then((res) => {
|
req.saveOrUpdate(this.formobj).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user