| 
					
				 | 
			
			
				@@ -133,6 +133,24 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-else>{{ row.price }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <!--          单位--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot="a" slot-scope="{ row, index }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model="row.a" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-else>{{ row.a }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <!--          尺寸--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot="size" slot-scope="{ row, index }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-if="row.$cellEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model="row.size" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-else>{{ row.size }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </avue-crud> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </basic-container> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -202,6 +220,7 @@ import tableOption from "./config/customerContact.json"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import goodsOption from "./config/commodity.json"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import {getDeptLazyTree, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getGoods,} from "@/api/basicData/customerInquiry"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {selectGoodsNum} from "@/api/basicData/inventoryAccount"; // 库存查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: "detail", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -384,6 +403,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.selectionList.forEach(e => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.dataList.forEach((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               if (index == this.reData.index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                selectGoodsNum({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  goodsId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  itemType: e.typeno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  tradeType: 'GN' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  item.storageQuantity =  res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 item.itemId = e.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 item.code = e.code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 item.cname = e.cname; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -401,20 +427,29 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.selectionList.forEach(e => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.dataList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            itemId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            code: e.code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            cname: e.cname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            brandItem: e.brandItem, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            specsOne: e.specsOne, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            specsTwo: e.specsTwo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            typeno: e.typeno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            corpId: e.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            corpName: e.corpName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            price: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            amount: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $cellEdit: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          selectGoodsNum({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            goodsId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemType: e.typeno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tradeType: 'GN' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            e.storageQuantity =  res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.dataList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              itemId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              code: e.code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              cname: e.cname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              brandItem: e.brandItem, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              specsOne: e.specsOne, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              specsTwo: e.specsTwo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              typeno: e.typeno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              corpId: e.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              corpName: e.corpName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              price: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              amount: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              actualQuantity: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              storageQuantity: e.storageQuantity, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              $cellEdit: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.dialogVisible = false; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -509,17 +544,24 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     cnameChange(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.goodsoptions.forEach(e => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (e.id == row.itemId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.cname = e.cname; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.code = e.code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.corpId = e.corpId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.corpName = e.corpName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.brandItem = e.brandItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.specsOne = e.specsOne; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.specsTwo = e.specsTwo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.typeno = e.typeno; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.priceCategory = e.goodsTypeName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.purchaseAmount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          row.amount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          selectGoodsNum({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            goodsId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            itemType: e.typeno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tradeType: 'GN' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.storageQuantity =  res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.cname = e.cname; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.code = e.code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.corpId = e.corpId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.corpName = e.corpName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.brandItem = e.brandItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.specsOne = e.specsOne; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.specsTwo = e.specsTwo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.typeno = e.typeno; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.priceCategory = e.goodsTypeName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.purchaseAmount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            row.amount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |