| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 | 
							- /**
 
-  * 理货申请
 
-  * 
 
-  */
 
- $.namespace("lhsq.main");
 
- lhsq.main.init = function() {
 
- 	lhsq.main.sel();
 
- 	// 把form传入,构造翻页控件
 
- 	pageinfo($("#lhsqform"));
 
- }
 
- lhsq.main.sel = function() {
 
- 	initszdSelect('szdsel', lhsq.main.szd, 'showgk', '80%');
 
- 	initgkSelect('gksel', lhsq.main.szgk, lhsq.main.szd, 'showgq', '80%');
 
- 	initgqSelect('gqsel', lhsq.main.szgq, lhsq.main.szd, lhsq.main.szgk,
 
- 			null, '80%');
 
- }
 
- function showgk() {
 
- 	initgqSelect('gqsel', '', '', '', null, 200);
 
- 	initgkSelect('gksel', lhsq.main.szgk, $('.szdselectpicker').val(),
 
- 			'showgq', '80%');
 
- }
 
- function showgq() {
 
- 	initgqSelect('gqsel', lhsq.main.szgq, $('.szdselectpicker').val(), $(
 
- 			'.gkselectpicker').val(), null, '80%');
 
- }
 
- lhsq.main.search = function() {
 
- 	$('#pagejump').val(1);
 
- 	$("#lhsqform").submit();
 
- }
 
- lhsq.main.edit = function(data) {
 
- 	location.href = $.app + "/lhsq/edit?id=" + data;
 
- }
 
- lhsq.main.back = function(data) {
 
- 	location.href = $.app + "/gklhsq/editmain?flag=th&id=" + data;
 
- }
 
- lhsq.main.view = function(data) {
 
- 	location.href = $.app + "/lhsq/view?id=" + data;
 
- }
 
- lhsq.main.del = function(data) {
 
- 	$.confirm({
 
- 		title : '确认框',
 
- 		content : '确认删除吗',
 
- 		confirm : function() {
 
- 			$.post($.app + "/lhsq/delete", {
 
- 				id : data
 
- 			}, function(data) {
 
- 				if (data.success) {
 
- 					$.alert({
 
- 						title : '提示',
 
- 						content : '删除成功',
 
- 						confirm : function() {
 
- 							$("#lhsqform").submit();
 
- 						}
 
- 					});
 
- 				} else {
 
- 					$.alert({
 
- 						title : '提示',
 
- 						content : data.message,
 
- 						confirm : function() {
 
- 						}
 
- 					});
 
- 				}
 
- 			}, "json");
 
- 		},
 
- 		cancel : function() {
 
- 		}
 
- 	});
 
- }
 
- //新增
 
- lhsq.main.add = function() {
 
- 	location.href = $.app + "/lhsq/add";
 
- }
 
- lhsq.main.banli=function(data){
 
- 	location.href=$.app+"/lhsq/view?flag=audit&id="+data;
 
- }
 
- lhsq.main.submit=function(data){
 
- 	 $.post($.app + "/lhsq/saveTbzt", {
 
-         id : data
 
-     }, function(data) {
 
-         if (data.success) {
 
-        	 $.alert({
 
-        		    title: '提示',
 
-        		    content: '转办省级成功',
 
-        		    confirm: function(){
 
-        		    	 $("#lhsqform").submit();
 
-        		    }
 
-        	 });
 
-         } else {
 
-        	 $.alert({
 
-     		    title: '提示',
 
-     		    content: data.message,
 
-     		    confirm: function(){
 
-     		        
 
-     		    }
 
-     	 });
 
-         }
 
-     }, "json");
 
- }
 
 
  |