|
|
@@ -406,10 +406,24 @@ export default {
|
|
|
}
|
|
|
return result
|
|
|
},
|
|
|
- // 保存
|
|
|
- saveBtn () {
|
|
|
+ saveBtn(){
|
|
|
+ let list = []
|
|
|
+ this.rightItemList.forEach(item => {
|
|
|
+ if (item.flag == true) {
|
|
|
+ list.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (this.$util.isEmpty(list)) {
|
|
|
+ this.$message.warning('请先选择花材')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.$confirm('确认添加?', '提示', { type: 'warning' }).then(() => {
|
|
|
+ this.saveCommit()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ saveCommit () {
|
|
|
let list = [],
|
|
|
- param = []
|
|
|
+ param = []
|
|
|
this.rightItemList.forEach(item => {
|
|
|
if (item.flag == true) {
|
|
|
list.push(item)
|