| 
					
				 | 
			
			
				@@ -162,7 +162,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fixed="right" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           header-align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          width="220" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          width="240" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label="操作"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button v-if="isAuth('prod:production:updateCheck') && Number(scope.row.prodState) === 0" type="text" size="small" @click="check(scope.row)">核料</el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -171,7 +171,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--            <el-button v-if="isAuth('prod:production:examine') && Number(scope.row.prodState) === 1" type="text" size="small" @click="preCheck(scope.row.id)">试制前检查</el-button>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button v-if="isAuth('prod:production:plan') && Number(scope.row.prodState) === 2" type="text" size="small" @click="detail(scope.row.id, true)" v-reClick>排产</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--            <el-button v-if="isAuth('pur:commDetail:save') && Number(scope.row.outsourcing) === 0" type="text" size="small" @click="outsourceHandle(scope.row.id)">委外生产</el-button>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button type="text" size="small" @click="printLabel(scope.row)">打印标签</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button type="text" size="small" @click="printLabel(scope.row)">打印标签 + {{scope.row.printCnt}}</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -198,7 +198,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 对应工艺 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <crafts-detail v-if="craftsVisible" ref="craftsDetail"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 打印标签 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <print-label v-if="printLabelVisible" ref="printLabel" @onChose="onChose"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <print-label v-if="printLabelVisible" ref="printLabel" @onChose="onChose" @addOne="addOneClick"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -320,6 +320,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         getSchedulingList(params).then(({data}) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (data && data.code === '200') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.dataList = data.data.records 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 设置已打印标签数量的初始值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.dataList.forEach((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.printCnt = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.totalPage = Number(data.data.total) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.dataList = [] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -434,6 +440,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error(data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      addOneClick (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.dataList 中匹配 row.id,找到对应的数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.dataList.forEach((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (item.id === row.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!item.printCnt) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              item.printCnt = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.printCnt += 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 |