zhaomin лет назад: 4
Родитель
Сommit
9ae80dcc4d

+ 1 - 1
WebUI/CallCenterWeb.UI/equipmentOperationManage/distributingEquipment.html

@@ -70,7 +70,7 @@
70 70
 							<th data-field="Qdepartment" data-align="center">申请科室</th>
71 71
 							<th data-field="borrowpeoplec" data-align="center">借出操作人</th>
72 72
 							<th data-field="Qqtime" data-align="center">办理时间</th>
73
-							<th data-field="Cktime" data-align="center">出库时间</th>
73
+							<th data-field="Cktime" data-align="center">到达时间</th>
74 74
 							<th data-field="borrowpeoplej" data-align="center">接收操作人</th>
75 75
 							<!-- <th data-field="plandleth" data-align="center">借出路程</th> -->
76 76
 							<th data-field="beom" data-align="center">借出备注</th>

+ 13 - 15
WebUI/CallCenterWeb.UI/equipmentOperationManage/js/addEquipment.js

@@ -12,20 +12,18 @@ $(document).ready(function() {
12 12
 
13 13
 	//保存
14 14
 	$("#HY_save").click(function() {
15
-		// if(!$("#projectid").val()) {
16
-		// 	layer.confirm('请选择设备状态!', {
17
-		// 		icon: 2,
18
-		// 		btn: ['确定'] //按钮
19
-		// 	});
20
-		// 	return;
21
-		// }
22
-		// if(!$("#equipname").val()) {
23
-		// 	layer.confirm('请输入设备名称!', {
24
-		// 		icon: 2,
25
-		// 		btn: ['确定'] //按钮
26
-		// 	});
27
-		// 	return;
28
-		// }
15
+		if($("#Qdepartment").val()==''){
16
+			layer.msg('科室不许为空');
17
+			return;
18
+		}
19
+		if($("#borrowpeoplec").val()==''){
20
+			layer.msg('借出操作人不许为空');
21
+			return;
22
+		}
23
+		if($("#borrowpeoplej").val()==''){
24
+			layer.msg('接收操作人不许为空');
25
+			return;
26
+		}
29 27
 		addValue(ajaxUrl);
30 28
 	})
31 29
 	//获取所有科室信息
@@ -41,7 +39,7 @@ $(document).ready(function() {
41 39
 	//获取科室名
42 40
 	function getQdepartment(obj){
43 41
 		obj.empty();
44
-		obj.append('<option value="">请选择状态</option>');
42
+		obj.append('<option value="">请选择科室</option>');
45 43
 		$(QdepartmentList).each(function(i,n){
46 44
 			obj.append('<option value="'+n.name+'">'+n.name+'</option>');
47 45
 		})

+ 28 - 37
WebUI/CallCenterWeb.UI/equipmentOperationManage/js/brow.js

@@ -8,42 +8,35 @@ $(document).ready(function() {
8 8
 		trigger:'click',
9 9
 		value: new Date(timestamp)
10 10
 	});
11
-	if (equipmentmanagementsname == null) {
12
-		$("#equipmentmanagementsname").val('')
13
-	}
14
-	if (equipmentmanagementsid == null) {
15
-		$("#equipmentmanagementsid").val('')
16
-	}
17
-	if (Qdepartment == null) {
18
-		$("#Qdepartment").val('')
19
-	}
20
-	if (borrowpeoplec == null) {
21
-		$("#borrowpeoplec").val('')
22
-	}
23
-	if (borrowpeoplej == null) {
24
-		$("#borrowpeoplej").val('')
25
-	}
26
-	if (plandleth == null) {
27
-		$("#plandleth").val('')
28
-	}
29
-	if (beom == null) {
30
-		$("#beom").val('')
31
-	}
32
-	if (zmoney == null) {
33
-		$('#zmoney').val('')
34
-	}
11
+	// if (equipmentmanagementsname == null) {
12
+	// 	$("#equipmentmanagementsname").val('')
13
+	// }
14
+	// if (equipmentmanagementsid == null) {
15
+	// 	$("#equipmentmanagementsid").val('')
16
+	// }
17
+	// if (Qdepartment == null) {
18
+	// 	$("#Qdepartment").val('')
19
+	// }
20
+	// if (borrowpeoplec == null) {
21
+	// 	$("#borrowpeoplec").val('')
22
+	// }
23
+	// if (borrowpeoplej == null) {
24
+	// 	$("#borrowpeoplej").val('')
25
+	// }
26
+	// if (plandleth == null) {
27
+	// 	$("#plandleth").val('')
28
+	// }
29
+	// if (beom == null) {
30
+	// 	$("#beom").val('')
31
+	// }
32
+	// if (zmoney == null) {
33
+	// 	$('#zmoney').val('')
34
+	// }
35 35
 
36 36
 	//保存
37 37
 	$("#HY_save").click(function() {
38
-		addValue(ajaxUrl);
38
+		addValue();
39 39
 	})
40
-	
41
-	// laydate.render({
42
-	// 	elem: '#giveBackTime',
43
-	// 	range: '~',
44
-	// 	theme: '#249fea'
45
-	// });
46
-
47 40
 })
48 41
 detailsL();
49 42
 //获取详情
@@ -74,20 +67,18 @@ function detailsL() {
74 67
 	});
75 68
 }
76 69
 //添加
77
-function addValue(ajaxUrl) {
70
+function addValue() {
78 71
 	$.ajax({
79 72
 		type: "get",
80 73
 		url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upquipmentmanagementlistr",
81
-		//					url: "http://192.168.1.21:28230/api/Equipment/update",
82 74
 		async: true,
83 75
 		dataType: 'json',
84 76
 		data: {
85 77
 			id: id,
86 78
 			borrowpeopleg: $("#borrowpeopleg").val(),
87
-			plandleths: $('#plandleths').val(),
79
+			// plandleths: $('#plandleths').val(),
80
+			Rktime:$("#giveBackTime").val(),
88 81
 			beoms: $("#beoms").val(),
89
-
90
-
91 82
 		},
92 83
 		success: function(data) {
93 84
 			if (data.state.toLowerCase() == 'success') {

+ 15 - 30
WebUI/CallCenterWeb.UI/equipmentOperationManage/js/distributingEquipment.js

@@ -1,6 +1,8 @@
1 1
 var f_State = '出库时间';
2 2
 var $storages = window.localStorage;
3 3
 var roleName = $storages.getItem('roleName');
4
+var usercode=$storages.getItem('userCode');
5
+console.log(roleName);
4 6
 $(document).ready(function() {
5 7
 	$('.tool_bars').authorizeButton();
6 8
 
@@ -52,11 +54,10 @@ function initTable() {
52 54
 		//设置为limit可以获取limit, offset, search, sort, order
53 55
 		queryParamsType: "undefined",
54 56
 		queryParams: function queryParams(params) { //设置查询参数
55
-			console.log(params)
56 57
 			var param = {
57 58
 				PageIndex: params.pageNumber,
58 59
 				PageSize: params.pageSize,
59
-				usercode: 8000, //维修工账号
60
+				usercode: usercode, //维修工账号
60 61
 				stime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[0], //开始时间
61 62
 				etime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[1], //结束时间
62 63
 				ckorrk: f_State
@@ -83,40 +84,24 @@ function initTable() {
83 84
 
84 85
 //格式化操作
85 86
 function formatterOperate(val, row) {
86
-  var str= ''
87
-  console.log(val+'')
88
-  console.log(row);
87
+  var str= '';
89 88
   if(val+'' != '已归还'){
90
-	 // str = '<ul class="tool_downs">' +
91
-	 //  	'<li><a class="aBtn" authorize="yes" id="HY_brow_' + row.id + '" onclick="btn_brow(\'' + row.equipmentmanagementsid +
92
-	 //  	'\',\'' + row.Qdepartment + '\',\'' + row.borrowpeoplec + '\',\'' + row.borrowpeoplej + '\',\'' + row.plandleth +
93
-	 //  	'\',\'' + row.beom + '\',\'' + row.zmoney + '\',\'' + row.equipmentmanagementsname + '\',\'' + row.id + '\')">归还</a><li>'
94
-	 //  '</ul>';
95
-	 str = '<ul class="tool_downs">' +
96
-	  	'<li><a class="aBtn" authorize="yes" id="HY_brow_' + row.id + '" onclick="btn_brow(\'' + row.id + '\')">归还</a><li>'+
97
-		'<li><a class="aBtn" authorize="yes" id="HY_brow_' + row.id + '" onclick="btn_getTime(\'' + row.id +  '\',\'' + row.Cktime +'\')">到达时间</a><li>'+
98
-	  '</ul>';
99
-	 // if(roleName=="器械科班"){
100
-		//  str = '<ul class="tool_downs">' +
101
-		//   	'<li><a class="aBtn" authorize="yes" id="HY_brow_' + row.id + '" onclick="btn_brow(\'' + row.id + '\')">归还</a><li>'+
102
-		//   '</ul>';
103
-	 // }else{
104
-		//  str = '<ul class="tool_downs">' +
105
-		//  		'<li><a class="aBtn" authorize="yes" id="HY_brow_' + row.id + '" onclick="btn_getTime(\'' + row.id +  '\',\'' + row.Cktime +'\')">到达时间</a><li>'+
106
-		//   '</ul>';
107
-	 // }
108
-	  
89
+	 if(roleName=="器械科班"){
90
+		 str = '<ul class="tool_downs">' +
91
+				'<li><a  onclick="btn_brow(\'' + row.id + '\')">确认归还</a><li>'+
92
+				'</ul>';
93
+	 }else{
94
+		 str = '<ul class="tool_downs">' +
95
+		 		'<li><a onclick="btn_getTime(\'' + row.id +  '\',\'' + row.Cktime +'\')">确认到达</a><li>'+
96
+				'</ul>';
97
+		   console.log(str)
98
+	 }
109 99
   }else{
110 100
 	  str = '<ul class="tool_downs">' +
111 101
 	   	'<li style="color:red">已归还<li>'
112 102
 	   '</ul>';
113 103
   }
114
-	
115
-	return str
116
-
117
-
118
-
119
-
104
+  return str
120 105
 }
121 106
 
122 107
 // 添加

+ 1 - 1
WebUI/CallCenterWeb.UI/equipmentOperationManage/js/equipmentReportform.js

@@ -117,7 +117,7 @@ function initTable() {
117 117
 //获取科室名
118 118
 function getQdepartment(obj) {
119 119
 	obj.empty();
120
-	obj.append('<option value="">请选择状态</option>');
120
+	obj.append('<option value="">请选择科室</option>');
121 121
 	$(QdepartmentList).each(function(i, n) {
122 122
 		obj.append('<option value="' + n.name + '">' + n.name + '</option>');
123 123
 	})

+ 6 - 6
WebUI/CallCenterWeb.UI/equipmentOperationManage/template/addEquipment.html

@@ -79,7 +79,7 @@
79 79
          <div class="form-group">
80 80
              <label for="equipmentmanagementsname" class="col-sm-3 control-label text-right">名称</label>
81 81
              <div class="col-sm-9">
82
-                 <input id="equipmentmanagementsname" class="form-control" type="text" autocomplete="off" placeholder="请输入名称" />
82
+                 <input id="equipmentmanagementsname" disabled="disabled" class="form-control" type="text" autocomplete="off" value="心电监护仪"/>
83 83
              </div>
84 84
          </div>
85 85
 		 <div class="form-group">
@@ -104,17 +104,17 @@
104 104
 			    </div>
105 105
 			</div>
106 106
 				 <div class="form-group">
107
-				     <label for="borrowpeoplej" class="col-sm-3 control-label text-right">借出人</label>
107
+				     <label for="borrowpeoplej" class="col-sm-3 control-label text-right">接收操作人</label>
108 108
 				     <div class="col-sm-9">
109
-				         <input id="borrowpeoplej" class="form-control" type="text" autocomplete="off" placeholder="请输入借出人" />
109
+				         <input id="borrowpeoplej" class="form-control" type="text" autocomplete="off" placeholder="请输入接收操作人" />
110 110
 				     </div>
111 111
 				 </div>
112
-				 <div class="form-group">
112
+				 <!-- <div class="form-group">
113 113
 				     <label for="plandleth" class="col-sm-3 control-label text-right">借出路程</label>
114 114
 				     <div class="col-sm-9">
115 115
 				         <input id="plandleth" class="form-control" type="text" autocomplete="off" placeholder="请输入借出路程" />
116 116
 				     </div>
117
-				 </div>
117
+				 </div> -->
118 118
 				 <div class="form-group">
119 119
 				     <label for="beom" class="col-sm-3 control-label text-right">借出备注</label>
120 120
 				     <div class="col-sm-9">
@@ -124,7 +124,7 @@
124 124
 				 <div class="form-group">
125 125
 				     <label for="zmoney" class="col-sm-3 control-label text-right">租金</label>
126 126
 				     <div class="col-sm-9">
127
-				         <input id="zmoney" class="form-control" type="text" autocomplete="off" placeholder="请输入租金" />
127
+				         <input id="zmoney" class="form-control" type="text" autocomplete="off" value="1.2" disabled="disabled"/>
128 128
 				     </div>
129 129
 				 </div>
130 130
             <div class="form-group">

+ 7 - 6
WebUI/CallCenterWeb.UI/equipmentOperationManage/template/arrivalTime.html

@@ -13,7 +13,7 @@
13 13
 		<style type="text/css">
14 14
 			.time-box{margin-top: 20px;padding-left: 10px;}
15 15
 			input{padding: 5px 20px 5px 15px;}
16
-			.btn_gray{position:absolute;background-color: #249fea ;color: #fff;bottom: 30px;}
16
+			.btn_gray{background-color: #249fea ;color: #fff;position: absolute;bottom: 30px;right: 20px;}
17 17
 		</style>
18 18
 	</head>
19 19
 	<body>
@@ -47,11 +47,12 @@
47 47
 					Cktime:$("#giveBackTime").val()
48 48
 				},
49 49
 				success:function(res){
50
-					console.log(res);
51
-					var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
52
-					parent.layer.close(index); //再执行关闭  
53
-					layer.msg(data.message);
54
-					parent.initTable();
50
+					if(res.state=='success'){
51
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
52
+						parent.layer.close(index); //再执行关闭  
53
+						// layer.msg(res.message);
54
+						parent.initTable();
55
+					}					
55 56
 				}
56 57
 			})
57 58
 		})