shish %!s(int64=3) %!d(string=hai) anos
pai
achega
c83fee4d62
Modificáronse 1 ficheiros con 17 adicións e 3 borrados
  1. 17 3
      ghs/src/views/item/import.vue

+ 17 - 3
ghs/src/views/item/import.vue

@@ -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)