| 
														
															@@ -151,7 +151,7 @@ function GroupData(data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   this.ids = [] // 商品id数组 
														 | 
														
														 | 
														
															   this.ids = [] // 商品id数组 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   this.shopGroupId = null // 商品分组id 
														 | 
														
														 | 
														
															   this.shopGroupId = null // 商品分组id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import { commodityListAdd, commodityListUpdate, getGroupList, commodityListGetById } from '@/api/commodity' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import { commodityListAdd, commodityListUpdate, getGroupList, commodityListGetById, commodityListDelete } from '@/api/commodity' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   // eslint-disable-next-line vue/component-definition-name-casing, vue/match-component-file-name 
														 | 
														
														 | 
														
															   // eslint-disable-next-line vue/component-definition-name-casing, vue/match-component-file-name 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   name: 'commodityGroup', 
														 | 
														
														 | 
														
															   name: 'commodityGroup', 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -282,16 +282,34 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       console.log(this.dataGroup) 
														 | 
														
														 | 
														
															       console.log(this.dataGroup) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     remove(node, data) { 
														 | 
														
														 | 
														
															     remove(node, data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      // console.log(data.shopGroupId) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // console.log(node, data) 
														 | 
														
														 | 
														
															       // console.log(node, data) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      const parent = node.parent 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      const children = parent.data.childs || parent.data 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      const index = children.findIndex((d) => d.idx === data.idx) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      if (index !== -1) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        children.splice(index, 1) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.deleteArr.push(data.id || '') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      } else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.$message.warning('数据错误,请重试') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.$confirm('选中数据将被永久删除, 是否继续?', '提示', { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        confirmButtonText: '确定', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        cancelButtonText: '取消', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        type: 'warning' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        .then(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          commodityListDelete({ shopGroupId: data.shopGroupId }).then((res) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (res.code === '') { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.$message({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                type: 'success', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                message: '删除成功!' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.getAll(this.formInline) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            const parent = node.parent 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            const children = parent.data.childs || parent.data 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            const index = children.findIndex((d) => d.idx === data.idx) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (index !== -1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              children.splice(index, 1) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.deleteArr.push(data.id || '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.$message.warning('数据错误,请重试') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        .catch(() => { }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     manualAdd(node, data) { 
														 | 
														
														 | 
														
															     manualAdd(node, data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // console.log(node) 
														 | 
														
														 | 
														
															       // console.log(node) 
														 |