| 
					
				 | 
			
			
				@@ -5,7 +5,6 @@ var lastrow;//最后编辑单元格的行 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 var lastcell;//最后编辑单元格的列 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     init_daterangepicker(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //$("#pharmacyModal").modal("show"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(pharmacyGroupNo == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return errorMesageSimaple('药房参数未设置,请在发药参数设置中设置'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -39,6 +38,13 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         initTbAddRecord(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         loadTbAddRecord(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#btn_add_excel").click(function (t) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let name = "长沙泰和医院药品盘点表"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $("#tb_add").table2excel({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            exclude: ".exclHide", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            filename: name + "(" + getRePortRangeArr()[0].substring(0, getRePortRangeArr()[0].indexOf(" ") + 1) + ").xls" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -206,11 +212,11 @@ function initTbAdd() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         loadonce:true,//如果为ture则数据只从服务器端抓取一次,之后所有操作都是在客户端执行,翻页功能会被禁用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         colNames: ['货位号','编码','药品名称','规格','单价', '账存数量', '实盘数量', '盈亏数量', '盈亏金额','盘点单号','盘点时间', '生产厂商','序号','药房编码','拼音编码'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         colModel: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {name: 'location', index: 'location',align:'center',width:100, searchoptions:{sopt:['cn','eq','ne','lt','le','gt','ge','nc']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {name: 'location', index: 'location',align:'center',width:100,classes:'exclHide', searchoptions:{sopt:['cn','eq','ne','lt','le','gt','ge','nc']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'chargeCode', index: 'chargeCode',align:'center',width:100, searchoptions:{sopt:['cn','eq','nc']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'name', index: 'name',align:'left',width:180, searchoptions:{sopt:['cn','eq','nc']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'specification', index: 'specification',width:140, searchoptions:{sopt:['cn','eq','nc']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {name: 'packRetprice', index: 'packRetprice',align:'center',width:100, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {name: 'packRetprice', index: 'packRetprice',align:'center',width:100, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']},classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'stockAmount', index: 'stockAmount',align:'center',width:100, searchoptions:{sopt:['eq','ne','lt','le','gt','ge']}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 formatter:function(cellvalue, options, rowObject){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return keepTwoDecimal(cellvalue) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -225,19 +231,19 @@ function initTbAdd() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'profitLossprofitLoss', index: 'profitLossprofitLoss',align:'center',width:100,searchoptions:{sopt:['eq','ne','lt','le','gt','ge']}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 formatter:function(cellvalue, options, rowObject){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return cellvalue==null?0:keepTwoDecimal(cellvalue) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                },classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'profitLossprofitMoney', index: 'profitLossprofitMoney',align:'center',width:100,searchoptions:{sopt:['eq','ne','lt','le','gt','ge']}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 formatter:function(cellvalue, options, rowObject){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return cellvalue==null?0:keepTwoDecimal(cellvalue) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {name: 'drawNo', index: 'drawNo',align:'center',width:120,searchoptions:{sopt:['eq']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                },classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {name: 'drawNo', index: 'drawNo',align:'center',width:120,searchoptions:{sopt:['eq']},classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'outDate', index: 'outDate',align:'center',width:120,searchoptions:{sopt:['eq']},formatter:function(cellvalue, options, rowObject){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return format(cellvalue,"yyyy-MM-dd") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                },classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {name: 'manufactoryName', index: 'manufactoryName',width:180, searchoptions:{sopt:['cn','eq','nc']}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {name: 'serial', index: 'serial',align:'center',width:100,hidden:true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {name: 'groupNo', index: 'groupNo',align:'center',width:100,hidden:true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {name: 'pyCode', index: 'pyCode',align:'center',width:100,hidden:true} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {name: 'serial', index: 'serial',align:'center',width:100,hidden:true,classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {name: 'groupNo', index: 'groupNo',align:'center',width:100,hidden:true,classes:'exclHide'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {name: 'pyCode', index: 'pyCode',align:'center',width:100,hidden:true,classes:'exclHide'} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonReader: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             root: "data", repeatitems: false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -431,7 +437,7 @@ function getTbAddRecordPrintData(drawNo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     '    </tr>'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $("#tj_table").append(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 var date = new Date(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                tableToExcel('tj_table', '长沙泰和医院药品盘点表('+date.getMonth()+'月)'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                tableToExcel('tj_table', 'btn_search_excel','长沙泰和医院药品盘点表('+date.getMonth()+'月)'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else if (res.code == -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 new PNotify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     title: '错误提示', 
			 |