| 
					
				 | 
			
			
				@@ -3,14 +3,26 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         url: '../storetransferinventoryorder/list', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         datatype: "json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         colModel: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			{label: 'id', name: 'id', index: 'id', key: true, hidden: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			{label: '转移单id', name: 'id', index: 'id', key: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '商户编号', name: 'merchSn', index: 'merch_sn', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '商户名称', name: 'merchName', index: 'merch_name', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '转入门店编号', name: 'inStoreSn', index: 'in_store_sn', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '转入门店名称', name: 'inStoreName', index: 'in_store_name', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '转出门店编号', name: 'outStoreSn', index: 'out_store_sn', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '转出门店名称', name: 'outStoreName', index: 'out_store_name', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			{label: '状态', name: 'status', index: 'status', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			{label: '状态', name: 'status', index: 'status', width: 80, formatter: function (value, options, row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				let ret = "未知"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (value === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					ret = "未转移"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} else if (value === 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					ret = "转移成功"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} else if (value === 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					ret = "转移失败"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} else if (value === 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					ret = "转移中"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				return ret; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '备注', name: 'remark', index: 'remark', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '创建时间', name: 'createTime', index: 'create_time', width: 80}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{label: '创建人', name: 'createSn', index: 'create_sn', width: 80}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -55,7 +67,9 @@ let vm = new Vue({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		q: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    name: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		    id: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			inStoreName: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			outStoreName: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	methods: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -76,11 +90,11 @@ let vm = new Vue({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				alert(data.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			setTimeout(exportMsg, 100); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.$Modal.remove() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		uploadExcelError: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			alert('上传出现异常,请重试!'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			setTimeout(exportMsg, 100); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.$Modal.remove() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		uploadExcelProgress:function(event, file, fileList){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			console.log("上传中") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -88,18 +102,17 @@ let vm = new Vue({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			console.log(file) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			console.log(fileList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			console.log("上传中") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			exportMsg = this.$Message.loading({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				content: 'Loading...', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				duration: 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			exportMsg = this.$Modal.info({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				title: "处理中", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				content: "正在处理中,请勿关闭页面..." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// setTimeout(msg, 3000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		uploadExcelFormatError: function (file) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			this.$Notice.warning({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				title: '文件格式不正确', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				desc: '文件 ' + file.name + ' 格式不正确,请上传 xls 或 xlsx 格式的文件。' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			setTimeout(exportMsg, 100); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.$Modal.remove() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		update: function (event) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let id = getSelectedRow(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -158,24 +171,41 @@ let vm = new Vue({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if (id == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			let that = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			confirm('确定要对选中的记录进行转移吗?', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				$.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					type: "POST", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					url: "../ktooms/sendTransfer/" + id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					contentType: "application/json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					data: "{}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					success: function (r) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						if (r.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							alert('操作成功', function (index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								$("#jqGrid").trigger("reloadGrid"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							alert(r.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.$Modal.confirm({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				title: '提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				content: '确定要对选中的记录进行转移吗?', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				onOk: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					that.$Modal.info({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						title: "处理中", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						content: "正在处理中,请勿关闭页面..." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					$.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						type: "POST", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						url: "../ktooms/sendTransfer/" + id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						contentType: "application/json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						data: "{}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						success: function (r) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							that.$Modal.remove() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							if (r.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								alert('操作成功', function (index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									$("#jqGrid").trigger("reloadGrid"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								alert(r.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				onCancel: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// confirm('确定要对选中的记录进行转移吗?', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		getInfo: function(id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			$.get("../storetransferinventoryorder/info/"+id, function (r) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -184,15 +214,17 @@ let vm = new Vue({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         reloadSearch: function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vm.q = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                name: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				id: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				inStoreName: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				outStoreName: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vm.reload(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		reload: function (event) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			vm.showList = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let page = $("#jqGrid").jqGrid('getGridParam', 'page'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			$("#jqGrid").jqGrid('setGridParam', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                postData: {'name': vm.q.name}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                postData: vm.q, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 page: page 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }).trigger("reloadGrid"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vm.handleReset('formValidate'); 
			 |