| 
					
				 | 
			
			
				@@ -89,6 +89,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   </el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-form-item label="菜品库存:" prop="stockNum"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span>{{ form.stockNum }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-form-item label-width="80px" label="菜品详情"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <editor ref="editor" v-model="form.goodsSnapshot" :fileSize="20" :min-height="200" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-form-item> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -128,6 +131,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         add: '/merchant/merchantPerformAuditorium/saveMerchantGoods', // 新增地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         details: '/merchant/merchantPerformAuditorium/merchantGoodsDetail', // 详情地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         edit: '/merchant/merchantPerformAuditorium/saveMerchantGoods', // 编辑地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        stockList: '/goods/goodsFood/stockList', // 菜品库存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       form: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         id: undefined, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -178,6 +182,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.formStatus = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }else if(model=='EDITInit' || model=='DEATILSInit') { // 新增 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         await this.getTableDeatilsFun(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        await this.getStockList(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -228,6 +233,32 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.open = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    async getStockList(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       const id = row.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.loading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let res = await getTableDeatilsByIdApi(this.configUrl.stockList,{goodsId: row.goodsId}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(res.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$set(this.form,'stockNum',0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if(res.data && res.data.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let dataS = res.data[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$set(this.form,'stockNum',dataS.stockNum) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.formStatus = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.error('获取详情失败!!!'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.formStatus = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.open = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.error('获取详情失败!!!!',error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.formStatus = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.open = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 重置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @date 2023-11-22 
			 |