zhaomin 4 lat temu
rodzic
commit
9ae80dcc4d

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

70
 							<th data-field="Qdepartment" data-align="center">申请科室</th>
70
 							<th data-field="Qdepartment" data-align="center">申请科室</th>
71
 							<th data-field="borrowpeoplec" data-align="center">借出操作人</th>
71
 							<th data-field="borrowpeoplec" data-align="center">借出操作人</th>
72
 							<th data-field="Qqtime" data-align="center">办理时间</th>
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
 							<th data-field="borrowpeoplej" data-align="center">接收操作人</th>
74
 							<th data-field="borrowpeoplej" data-align="center">接收操作人</th>
75
 							<!-- <th data-field="plandleth" data-align="center">借出路程</th> -->
75
 							<!-- <th data-field="plandleth" data-align="center">借出路程</th> -->
76
 							<th data-field="beom" data-align="center">借出备注</th>
76
 							<th data-field="beom" data-align="center">借出备注</th>

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

12
 
12
 
13
 	//保存
13
 	//保存
14
 	$("#HY_save").click(function() {
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
 		addValue(ajaxUrl);
27
 		addValue(ajaxUrl);
30
 	})
28
 	})
31
 	//获取所有科室信息
29
 	//获取所有科室信息
41
 	//获取科室名
39
 	//获取科室名
42
 	function getQdepartment(obj){
40
 	function getQdepartment(obj){
43
 		obj.empty();
41
 		obj.empty();
44
-		obj.append('<option value="">请选择状态</option>');
42
+		obj.append('<option value="">请选择科室</option>');
45
 		$(QdepartmentList).each(function(i,n){
43
 		$(QdepartmentList).each(function(i,n){
46
 			obj.append('<option value="'+n.name+'">'+n.name+'</option>');
44
 			obj.append('<option value="'+n.name+'">'+n.name+'</option>');
47
 		})
45
 		})

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

8
 		trigger:'click',
8
 		trigger:'click',
9
 		value: new Date(timestamp)
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
 	$("#HY_save").click(function() {
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
 detailsL();
41
 detailsL();
49
 //获取详情
42
 //获取详情
74
 	});
67
 	});
75
 }
68
 }
76
 //添加
69
 //添加
77
-function addValue(ajaxUrl) {
70
+function addValue() {
78
 	$.ajax({
71
 	$.ajax({
79
 		type: "get",
72
 		type: "get",
80
 		url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upquipmentmanagementlistr",
73
 		url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upquipmentmanagementlistr",
81
-		//					url: "http://192.168.1.21:28230/api/Equipment/update",
82
 		async: true,
74
 		async: true,
83
 		dataType: 'json',
75
 		dataType: 'json',
84
 		data: {
76
 		data: {
85
 			id: id,
77
 			id: id,
86
 			borrowpeopleg: $("#borrowpeopleg").val(),
78
 			borrowpeopleg: $("#borrowpeopleg").val(),
87
-			plandleths: $('#plandleths').val(),
79
+			// plandleths: $('#plandleths').val(),
80
+			Rktime:$("#giveBackTime").val(),
88
 			beoms: $("#beoms").val(),
81
 			beoms: $("#beoms").val(),
89
-
90
-
91
 		},
82
 		},
92
 		success: function(data) {
83
 		success: function(data) {
93
 			if (data.state.toLowerCase() == 'success') {
84
 			if (data.state.toLowerCase() == 'success') {

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

1
 var f_State = '出库时间';
1
 var f_State = '出库时间';
2
 var $storages = window.localStorage;
2
 var $storages = window.localStorage;
3
 var roleName = $storages.getItem('roleName');
3
 var roleName = $storages.getItem('roleName');
4
+var usercode=$storages.getItem('userCode');
5
+console.log(roleName);
4
 $(document).ready(function() {
6
 $(document).ready(function() {
5
 	$('.tool_bars').authorizeButton();
7
 	$('.tool_bars').authorizeButton();
6
 
8
 
52
 		//设置为limit可以获取limit, offset, search, sort, order
54
 		//设置为limit可以获取limit, offset, search, sort, order
53
 		queryParamsType: "undefined",
55
 		queryParamsType: "undefined",
54
 		queryParams: function queryParams(params) { //设置查询参数
56
 		queryParams: function queryParams(params) { //设置查询参数
55
-			console.log(params)
56
 			var param = {
57
 			var param = {
57
 				PageIndex: params.pageNumber,
58
 				PageIndex: params.pageNumber,
58
 				PageSize: params.pageSize,
59
 				PageSize: params.pageSize,
59
-				usercode: 8000, //维修工账号
60
+				usercode: usercode, //维修工账号
60
 				stime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[0], //开始时间
61
 				stime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[0], //开始时间
61
 				etime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[1], //结束时间
62
 				etime: $('#startTime').val() && $('#startTime').val().split(' ~ ')[1], //结束时间
62
 				ckorrk: f_State
63
 				ckorrk: f_State
83
 
84
 
84
 //格式化操作
85
 //格式化操作
85
 function formatterOperate(val, row) {
86
 function formatterOperate(val, row) {
86
-  var str= ''
87
-  console.log(val+'')
88
-  console.log(row);
87
+  var str= '';
89
   if(val+'' != '已归还'){
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
   }else{
99
   }else{
110
 	  str = '<ul class="tool_downs">' +
100
 	  str = '<ul class="tool_downs">' +
111
 	   	'<li style="color:red">已归还<li>'
101
 	   	'<li style="color:red">已归还<li>'
112
 	   '</ul>';
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
 //获取科室名
117
 //获取科室名
118
 function getQdepartment(obj) {
118
 function getQdepartment(obj) {
119
 	obj.empty();
119
 	obj.empty();
120
-	obj.append('<option value="">请选择状态</option>');
120
+	obj.append('<option value="">请选择科室</option>');
121
 	$(QdepartmentList).each(function(i, n) {
121
 	$(QdepartmentList).each(function(i, n) {
122
 		obj.append('<option value="' + n.name + '">' + n.name + '</option>');
122
 		obj.append('<option value="' + n.name + '">' + n.name + '</option>');
123
 	})
123
 	})

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

79
          <div class="form-group">
79
          <div class="form-group">
80
              <label for="equipmentmanagementsname" class="col-sm-3 control-label text-right">名称</label>
80
              <label for="equipmentmanagementsname" class="col-sm-3 control-label text-right">名称</label>
81
              <div class="col-sm-9">
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
              </div>
83
              </div>
84
          </div>
84
          </div>
85
 		 <div class="form-group">
85
 		 <div class="form-group">
104
 			    </div>
104
 			    </div>
105
 			</div>
105
 			</div>
106
 				 <div class="form-group">
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
 				     <div class="col-sm-9">
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
 				     </div>
110
 				     </div>
111
 				 </div>
111
 				 </div>
112
-				 <div class="form-group">
112
+				 <!-- <div class="form-group">
113
 				     <label for="plandleth" class="col-sm-3 control-label text-right">借出路程</label>
113
 				     <label for="plandleth" class="col-sm-3 control-label text-right">借出路程</label>
114
 				     <div class="col-sm-9">
114
 				     <div class="col-sm-9">
115
 				         <input id="plandleth" class="form-control" type="text" autocomplete="off" placeholder="请输入借出路程" />
115
 				         <input id="plandleth" class="form-control" type="text" autocomplete="off" placeholder="请输入借出路程" />
116
 				     </div>
116
 				     </div>
117
-				 </div>
117
+				 </div> -->
118
 				 <div class="form-group">
118
 				 <div class="form-group">
119
 				     <label for="beom" class="col-sm-3 control-label text-right">借出备注</label>
119
 				     <label for="beom" class="col-sm-3 control-label text-right">借出备注</label>
120
 				     <div class="col-sm-9">
120
 				     <div class="col-sm-9">
124
 				 <div class="form-group">
124
 				 <div class="form-group">
125
 				     <label for="zmoney" class="col-sm-3 control-label text-right">租金</label>
125
 				     <label for="zmoney" class="col-sm-3 control-label text-right">租金</label>
126
 				     <div class="col-sm-9">
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
 				     </div>
128
 				     </div>
129
 				 </div>
129
 				 </div>
130
             <div class="form-group">
130
             <div class="form-group">

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

13
 		<style type="text/css">
13
 		<style type="text/css">
14
 			.time-box{margin-top: 20px;padding-left: 10px;}
14
 			.time-box{margin-top: 20px;padding-left: 10px;}
15
 			input{padding: 5px 20px 5px 15px;}
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
 		</style>
17
 		</style>
18
 	</head>
18
 	</head>
19
 	<body>
19
 	<body>
47
 					Cktime:$("#giveBackTime").val()
47
 					Cktime:$("#giveBackTime").val()
48
 				},
48
 				},
49
 				success:function(res){
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
 		})