| 
					
				 | 
			
			
				@@ -98,10 +98,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              class="button-error" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :class="record.enableFlag==1?'button-error':'button-primary'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="record.shelfProductApiEntity&&!(record.shelfProductApiEntity.qty)&&record.shelfProductApiEntity.productSn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="handleEnable(record)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            >禁用</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            >{{record.enableFlag==1?'禁用':'启用'}}</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="link" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,14 +112,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              class="button-primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :class="record.enableFlag==1?'button-primary':''" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="record.enableFlag==0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="handleReplace(record)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             >更换产品</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              class="button-primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :class="record.enableFlag==1?'button-primary':''" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="record.enableFlag==0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="editHW(record)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             >编辑</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -164,7 +166,7 @@ import ImportGuideModal from './importGuideModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import basicInfoModal from './basicInfoModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import importHuoweiModal from './importHuoweiModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // , getShelfPriceShow 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn } from '@/api/shelf' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable } from '@/api/shelf' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'ShelfMonitoringWarehousing', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { STable, VSelect, commonModal, bindProductModal, addHwModal, ImportGuideModal, basicInfoModal, importHuoweiModal }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -202,6 +204,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             data = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (var i = 0; i < data.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               data[i].no = i + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              data[i].enableFlag = data[i].shelfProductApiEntity.enableFlag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -245,7 +248,30 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 禁用启用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleEnable(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(row.enableFlag == 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$confirm({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        title: '提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        content: '禁用后不参于盘点和补货,但是可以退货、调回,确认禁用吗?', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        centered: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        onOk () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _this.enableFun(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        _this.enableFun(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    enableFun(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      _this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      shelfProductEnable({ shelfSn: this.$route.params.sn, shelfProductSn: row.shelfProductApiEntity.shelfProductSn, enableFlag: row.enableFlag==1 ? 0 : 1 }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        _this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 编辑货位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     editHW (row) { 
			 |