| 
					
				 | 
			
			
				@@ -518,21 +518,45 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 打印 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         handlePrint(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.$print(this.$refs["printArea"], { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                noPrint: ".noPrint", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                type: "html", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                scanStyles: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                showModal: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // style: style,// 亦可使用引入的外部css; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                onStart: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    console.log("打印开始"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                onEnd: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    console.log("打印完成"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let MethodName = "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getLogin(MethodName, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                goods_type: 21, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                date_range: 'TODAY', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                article_id: this.articleId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(res.status===1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(res.print_count<5){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        getLogin('/ShopServer/Client/PrintRecordManager/AddPrintRecord_Article', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            goods_type: 21, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            article_id: this.articleId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if(res.status===1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            this.$print(this.$refs["printArea"], { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            noPrint: ".noPrint", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            type: "html", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            scanStyles: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            showModal: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // style: style,// 亦可使用引入的外部css; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            onStart: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                console.log("打印开始"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            onEnd: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                console.log("打印完成"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.$message.warning('今日打印次数已达上限') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 清除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         handleClear(){ 
			 |