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

+ 1 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -22,6 +22,6 @@ huayi.config = {
22 22
 	repairPlatformTime: 10000, //报修平台 数据刷新间隔
23 23
 	taskRealInfoTime: 10000, //右上角当前任务信息  数据刷新间隔
24 24
 	monitorPlatformTime: 5000, //自动外呼监控  坐席监控  数据刷新间隔
25
-	menuworktime: 30000,        //菜单工单数量刷新间隔
25
+	menuworktime: 3000000,        //菜单工单数量刷新间隔
26 26
 	indextime: 5000             //首页报表刷新间隔
27 27
 };

+ 10 - 1
WebUI/CallCenterWeb.UI/TelCall/WorkforceManagement.html

@@ -50,7 +50,16 @@
50 50
 		</div>
51 51
 		<div class="wrapper wrapper-content animated fadeInRight equipmentRepair ">
52 52
 			<div class="th-box form-inline th-bar clearfix">
53
-				<input type="button" class="btn_gray" authorize="yes" id="HY_add" onclick="btn_search()" value="添加排班" />
53
+				<div class="form-group time-box">
54
+					<select class="form-control selectpicker" id="state" data-live-search="true">
55
+						<option value="白班">白班</option>
56
+						<option value="夜班">夜班</option>
57
+					</select>
58
+				</div>
59
+				<div class="form-group tool_bars pull-right">
60
+					<input type="button" class="btn_gray" id="sc_btns" value="搜索" />
61
+					<input type="button" class="btn_gray" authorize="yes" id="HY_add" onclick="btn_search()" value="添加排班" />
62
+				</div>
54 63
 			</div>
55 64
 			<div class="complain Shows showtabs table1" style="margin-bottom: 20px;">
56 65
 				<table id="table1" data-row-style="rowStyle" data-query-params="queryParams">

+ 20 - 6
WebUI/CallCenterWeb.UI/TelCall/js/WorkforceManagement.js

@@ -1,5 +1,5 @@
1
-var floorList; //科室信息
2
-var timestamp = new Date().getTime() //获得当前的时间戳
1
+// var floorList; //科室信息
2
+// var timestamp = new Date().getTime() //获得当前的时间戳
3 3
 var dataState='白班'; //排班状态
4 4
 $(".gdxq").eq(0).show();//初始状态:白班
5 5
 tabChange() //tab切换
@@ -30,12 +30,13 @@ $.getJSON(huayi.config.callcenter_url + "signtokenapi/api/UserAccount/getuserbyr
30 30
 laydate.render({
31 31
 	elem: '#dataTime',
32 32
 	type: 'date',
33
-	value: new Date(timestamp)
33
+	// value: new Date(timestamp)
34 34
 });
35 35
 //点击×事件
36 36
 $('.x_sign').click(function(){
37 37
 	$(".search").hide();
38 38
 })
39
+
39 40
 //tab切换
40 41
 function tabChange() {
41 42
 	$('#sc_statebtn').find('input[type="radio"]').on('change', function() {
@@ -44,12 +45,16 @@ function tabChange() {
44 45
 		$(".gdxq").eq(stateVal).siblings().hide();
45 46
 		if (stateVal == 0) {
46 47
 			dataState = "白班";
48
+			$('#nightPersonnel').selectpicker('val','');
49
+			$("#dataTime").val('')
47 50
 		} else {
48 51
 			dataState = '夜班';
52
+			$('#floor').selectpicker('val','');
53
+			$('#personnel').selectpicker('val','');
49 54
 		}
50 55
 	});
51 56
 }
52
-//添加排班信息
57
+//保存排班信息
53 58
 function btn_save() {
54 59
 	if(dataState=='白班'){
55 60
 		$("#dataTime").val(null);
@@ -69,15 +74,24 @@ function btn_save() {
69 74
 			if(data.state=='success'){
70 75
 				layer.msg('保存成功');
71 76
 				$(".search").hide();
77
+				$('#nightPersonnel').selectpicker('val','');
78
+				$('#floor').selectpicker('val','');
79
+				$('#personnel').selectpicker('val','');
80
+				$('#state').selectpicker('val',dataState);
81
+				$("#state").val(dataState);
72 82
 				initTable();
73 83
 			}
74 84
 		}
75 85
 	});
76 86
 }
77
-//搜索按钮
87
+//添加排班
78 88
 function btn_search() {
79 89
 	$('.search').show();
80 90
 }
91
+//搜索
92
+$('#sc_btns').click(function(){
93
+	initTable();
94
+})
81 95
 //操作
82 96
 function formatterOperate(val,row){
83 97
 	console.log(row.date);
@@ -119,7 +133,7 @@ function initTable() {
119 133
 				keshiname: $('#floor').val(),
120 134
 				data: $("#dataTime").val(),
121 135
 				usercode: $('#personnel').val()|| $('#nightPersonnel').val(),
122
-				grouptype: dataState,
136
+				grouptype: $("#state").val(),
123 137
 				pageIndex:params.pageNumber,
124 138
 				pageSize:params.pageSize
125 139
 			};

+ 12 - 1
WebUI/CallCenterWeb.UI/TelCall/template/editWorkForceManagement.html

@@ -21,6 +21,12 @@
21 21
 					</select>
22 22
 				</div>
23 23
 			</div>
24
+			<div class="form-group">
25
+				<label for="floor" class="col-sm-3 control-label text-right"><b class="text_require"></b></label>
26
+				<div class="col-sm-9">
27
+					<input type="button" class="btn_gray btn" onclick="btn_save()" value="保存" />
28
+				</div>
29
+			</div>
24 30
 		</div>
25 31
 	</body>
26 32
 	<script src="../../js/bootstrap-select/js/bootstrap-select.js"></script>
@@ -46,6 +52,9 @@
46 52
 		if(date=="null"){
47 53
 			date='';
48 54
 		}
55
+		if(keshiName=="null"){
56
+			keshiName='';
57
+		}
49 58
 		function btn_save(){
50 59
 			$.ajax({
51 60
 				type: "post",
@@ -63,7 +72,9 @@
63 72
 					if(data.state=='success'){
64 73
 						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
65 74
 						parent.layer.close(index); //再执行关闭
66
-						layer.msg('保存成功');
75
+						parent.layer.msg('修改成功',{
76
+							time:1000
77
+						});
67 78
 						parent.initTable();
68 79
 					}
69 80
 				}

+ 1 - 17
WebUI/CallCenterWeb.UI/equipmentOperationManage/equipmentRepair.html

@@ -60,20 +60,12 @@
60 60
 						</select>
61 61
 					</div>
62 62
 					<div class="form-group time-box">
63
-						<select class="form-control selectpicker" id="proname" data-live-search="true">
64
-							<option value="">请选择项目名称</option>
65
-						</select>
66
-					</div>
67
-					<div class="form-group time-box">
68 63
 						<select class="form-control selectpicker" id="Pwcode" data-live-search="true">
69 64
 							<option value="">请选择维修班组</option>
70 65
 							<option value="信息科">信息科</option>
71 66
 							<option value="设备科">设备科</option>
72 67
 							<option value="后勤部">后勤部</option>
73 68
 						</select>
74
-						<!-- <select class="form-control selectpicker" id="Pwcode" data-live-search="true">
75
-							<option value="">请选择维修班组</option>
76
-						</select> -->
77 69
 					</div>
78 70
 					<div class="form-group time-box">
79 71
 						<i class="tub fa fa-calendar"></i>
@@ -83,11 +75,6 @@
83 75
 						<i class="tub fa fa-search"></i>
84 76
 						<input class="form-control" type="text" id="phone" placeholder="请输入关键字">
85 77
 					</div>
86
-					<!-- <div class="form-group time-box">
87
-						<i class="tub fa fa-search"></i>
88
-						<input class="form-control" type="text" id="wocode" placeholder="请输入工单编号">
89
-                    </div> -->
90
-                  
91 78
 					<div class="form-group tool_bars pull-right">
92 79
 						<input type="button" class="btn_gray" id="sc_btns" value="搜索" />
93 80
 						<input type="button" class="btn_gray" authorize="yes" id="HY_add" onclick="btn_add()" value="添加" />
@@ -95,9 +82,6 @@
95 82
 						</div>
96 83
 					</div>
97 84
 				</div>
98
-				
99
-			<!-- </div> -->
100
-
101 85
 			<div class="tab_head">
102 86
 				<ul class="clearfix tab_head_left" id="tab_head_left">
103 87
 					<li class="tab_head_active" data-index="">
@@ -164,7 +148,7 @@
164 148
 									<th data-field="" data-align="center" data-formatter="formatterToUser">接单人</th>
165 149
 									<th data-field="tobztimes" data-align="center">接单时间</th>
166 150
 									<th data-field="dealtime" data-align="center">处理时间</th>
167
-									<th data-field="channel" data-align="center">来源</th>
151
+									<!-- <th data-field="channel" data-align="center">来源</th> -->
168 152
 									<th data-field="score" data-align="center" data-formatter="formatterScore">满意度</th>
169 153
 									<th data-field="dealtime" data-align="center" data-formatter="formatterdate">超时时长</th>
170 154
 									<th data-field="wxtimeleths" data-align="center" data-formatter="formatterwxtimeleths">维修时效</th>

+ 5 - 53
WebUI/CallCenterWeb.UI/equipmentOperationManage/js/equipmentRepair.js

@@ -5,6 +5,7 @@ var $storages = window.localStorage;
5 5
 var state = ''; // state tab页的 data-index(工单状态参数);
6 6
 var f_State = ''
7 7
 $(document).ready(function() {
8
+	initTable1();
8 9
 	$('.tool_bars').authorizeButton();
9 10
 	//搜索
10 11
 	$('#sc_btns').click(function() {
@@ -45,9 +46,6 @@ $(document).ready(function() {
45 46
 		$('#usercode').append('<option value="">请选择维修工账号</option>');
46 47
 		helper.getDropList.getProUser($(this).val(), $('#usercode'));
47 48
 	});
48
-
49
-
50
-
51 49
 	if ($('#startTime').val() == "") {
52 50
 		function p(s) {
53 51
 			return s < 10 ? '0' + s : s;
@@ -69,58 +67,12 @@ $(document).ready(function() {
69 67
 		// var lastmonth = prevCurrentYear + "-" + p(prevCurrentMonth) + "-" + p(currentDate)
70 68
 		var a = getPreDatetime(3600 * 1000 * 24 * 30);
71 69
 		$('#startTime').val(getPreDatetime(3600 * 1000 * 24 * 30) + " ~ " + current)
72
-		initTable1();
70
+		
73 71
 	}
74
-
75 72
 	var t, n, count = 0;
76
-
77
-
78
-
79 73
 	t = setInterval("showAuto()", 1000 * 60);
80
-
81
-
82
-
83 74
 	refreshOrderDatas(huayi.config.repairPlatformTime); //刷新 工单数据
84
-
85 75
 });
86
-// $(function() {
87
-// 	getdept()
88
-// })
89
-
90
-// function getdept() {
91
-
92
-// 	$("#Pwcode").html('');
93
-// 	equipmentdata = []
94
-// 	$("#Pwcode").append('<option value="">请选择维修班组</option>');
95
-// 	$.ajax({
96
-// 		type: "get",
97
-// 		url: huayi.config.callcenter_url + "equipmentapi/api/WoRepairBase/getallbzcount",
98
-// 		async: true,
99
-// 		dataType: 'json',
100
-
101
-// 		success: function(data) {
102
-
103
-// 			var leveldata = []
104
-// 			if (data.state.toLowerCase() == 'success') {
105
-
106
-// 				leveldata = data.data
107
-// 				$(leveldata).each(function(q, p) {
108
-// 					console.log(p.role_name)
109
-// 					$("<option value='" + p.role_name + "'>" + p.role_name + "</option>").appendTo("#Pwcode");
110
-// 					$("#Pwcode").selectpicker('refresh');
111
-
112
-// 				});
113
-
114
-// 			} else {
115
-// 				$("#Pwcode").empty();
116
-// 				$("#Pwcode").selectpicker('refresh');
117
-// 			}
118
-
119
-// 		}
120
-// 	});
121
-
122
-// }
123
-
124 76
 function initTable1() {
125 77
 	//先销毁表格
126 78
 	$('#table1').bootstrapTable('destroy');
@@ -154,7 +106,7 @@ function initTable1() {
154 106
 				projectid: $('#proname').val(), //项目名称
155 107
 				buildid: $('#build').val(), //楼名称
156 108
 				floorid: $('#floor').val(), //楼层名称
157
-				Pwcode: $('#Pwcode').val(), //维修班组
109
+				Jwocode: $('#Pwcode').val(), //维修班组
158 110
 				systemid: $('#sysname').val(), //系统名称
159 111
 				equipmentid: $('#equipname').val(), //设备名称
160 112
 				usercode: $('#usercode').val(), //维修工账号
@@ -290,8 +242,8 @@ function formatterOperate(val, row) {
290 242
 		case '0':
291 243
 			str += '<li><a class="aBtn" authorize="yes" id="HY_assign_' + row.id + '" onclick="btn_assign(\'' + row.projectid +
292 244
 				'\',\'' + row.wocode + '\')"><i class="fa icon-paidan tub"></i>派单</a><li>' +
293
-				'<li><a class="aBtn" authorize="yes" id="HY_handle_' + row.id + '" onclick="btn_robbing(\'' + row.wocode +
294
-				'\')"><i class="fa icon-qiangdan tub"></i>抢单</a><li>' +
245
+				// '<li><a class="aBtn" authorize="yes" id="HY_handle_' + row.id + '" onclick="btn_robbing(\'' + row.wocode +
246
+				// '\')"><i class="fa icon-qiangdan tub"></i>抢单</a><li>' +
295 247
 				'<li><a class="aBtn" authorize="yes" id="HY_details_' + row.id + '" onclick="btn_details(\'' + row.id +
296 248
 				'\')"><i class="fa icon-detail tub"></i>详情</a><li>' +
297 249
 				'<li><a class="aBtn" authorize="yes" id="HY_edit_' + row.id + '" onclick="btn_edit(\'' + row.id +

+ 178 - 110
WebUI/CallCenterWeb.UI/equipmentOperationManage/template/addEquipmentRepair.html

@@ -21,74 +21,80 @@
21 21
 		<title>新增设备维修</title>
22 22
 		<style>
23 23
 			.btnn {
24
-            background: #2f4050;
25
-            color: #fff;
26
-            padding: 3px 10px;
27
-            border: 0;
28
-            border-radius: 3px;
29
-            cursor: pointer;
30
-        }
31
-
32
-        .crop_left {
33
-            width: 40%;
34
-            float: left;
35
-        }
36
-
37
-        .crop_right {
38
-            width: 30%;
39
-            float: right;
40
-            margin-right: 25px;
41
-        }
42
-
43
-        .time-box .dates {
44
-            width: 100% !important;
45
-        }
46
-
47
-        i.tub {
48
-            right: 25px !important;
49
-        }
50
-
51
-        b.text_require {
52
-            color: red;
53
-        }
54
-
55
-        .loader_icon {
56
-            display: block;
57
-            height: 36px;
58
-            width: 36px;
59
-            background: url(../../img/upLod.png) no-repeat;
60
-        }
61
-        .provCity > div > div {
62
-            width: 49.5% !important;
63
-            display: inline-block ;
64
-            vertical-align: middle !important;
65
-        }
66
-		#selecteqname{
67
-			display: inline-block;
24
+				background: #2f4050;
25
+				color: #fff;
26
+				padding: 3px 10px;
27
+				border: 0;
28
+				border-radius: 3px;
29
+				cursor: pointer;
30
+			}
31
+
32
+			.crop_left {
33
+				width: 40%;
34
+				float: left;
35
+			}
36
+
37
+			.crop_right {
38
+				width: 30%;
39
+				float: right;
40
+				margin-right: 25px;
41
+			}
42
+
43
+			.time-box .dates {
44
+				width: 100% !important;
68 45
 			}
69
-		#eqname{
70
-			display: none;
71
-		}
72
-	
73
-			#eqmargin{
74
-				margin-left:133px ;
46
+
47
+			i.tub {
48
+				right: 25px !important;
49
+			}
50
+
51
+			b.text_require {
52
+				color: red;
75 53
 			}
76
-			.selequipname{
77
-				    margin-left: 93px;
78
-				    margin-top: -20px;
54
+
55
+			.loader_icon {
56
+				display: block;
57
+				height: 36px;
58
+				width: 36px;
59
+				background: url(../../img/upLod.png) no-repeat;
60
+			}
61
+
62
+			.provCity>div>div {
63
+				width: 49.5% !important;
64
+				display: inline-block;
65
+				vertical-align: middle !important;
66
+			}
67
+
68
+			#selecteqname {
69
+				display: inline-block;
79 70
 			}
80
-			.selDpart1{
81
-			    display: none;
71
+
72
+			#eqname {
73
+				display: none;
74
+			}
75
+
76
+			#eqmargin {
77
+				margin-left: 133px;
78
+			}
79
+
80
+			.selequipname {
81
+				margin-left: 93px;
82
+				margin-top: -20px;
83
+			}
84
+
85
+			.selDpart1 {
86
+				display: none;
82 87
 				position: absolute;
83
-			        left: 260px;
84
-			        top: 300px;
85
-			    z-index: 11111;
86
-			    width: 280px;
87
-			    line-height: 30px;
88
-			    background: #FFFFFF;
88
+				left: 260px;
89
+				top: 300px;
90
+				z-index: 11111;
91
+				width: 400px;
92
+				line-height: 30px;
93
+				background: #FFFFFF;
89 94
 			}
90
-			#sponsor{
91
-				width: 280px;
95
+
96
+			#sponsor {
97
+				width: 400px;
92 98
 				border: 1px solid #00a1cb;
93 99
 				margin: 0;
94 100
 				padding: 0;
@@ -96,18 +102,22 @@
96 102
 				max-height: 212px;
97 103
 				overflow-x: hidden;
98 104
 				overflow-y: scroll;
105
+				box-sizing: border-box;
99 106
 			}
100
-			#sponsor li{
107
+
108
+			#sponsor li {
101 109
 				margin: 0;
102 110
 				padding-left: 10px;
103
-				width: 280px;
111
+				width: 400px;
104 112
 				height: 30px;
105 113
 				line-height: 30px;
106 114
 				list-style: none;
107 115
 			}
108
-			#sponsor li:hover{
116
+
117
+			#sponsor li:hover {
109 118
 				background: #00a1cb;
110 119
 			}
120
+
111 121
 			.thumbnail {
112 122
 				margin: 0 10px 10px;
113 123
 				padding: 4px;
@@ -120,11 +130,12 @@
120 130
 				position: relative;
121 131
 				cursor: pointer;
122 132
 			}
123
-			
133
+
124 134
 			.thumbnail img {
125 135
 				width: 100%;
126 136
 				height: 100%;
127 137
 			}
138
+
128 139
 			.thumbnail .info {
129 140
 				position: absolute;
130 141
 				left: 4px;
@@ -142,18 +153,24 @@
142 153
 				z-index: 10;
143 154
 				display: none;
144 155
 			}
145
-			
156
+
146 157
 			.thumbnail:hover .info {
147 158
 				display: block;
148 159
 			}
149
-    </style>
160
+
161
+			/* .sectionDIV1,
162
+			.sectionDIV2 {
163
+				display: none;
164
+			} */
165
+		</style>
150 166
 	</head>
151 167
 
152 168
 	<body class="gray-bg">
153 169
 		<div class="container wrapper-content animated fadeInRight">
154 170
 			<div class="form-horizontal">
155 171
 				<div class="form-group">
156
-					<label for="channel" class="col-sm-3 control-label text-right"><b class="text_require">*</b>渠道来源</label>
172
+					<label for="channel" class="col-sm-3 control-label text-right"><b
173
+							class="text_require">*</b>渠道来源</label>
157 174
 					<div class="col-sm-9">
158 175
 						<select class="form-control selectpicker" id="channel" data-live-search="true">
159 176
 							<option value="1">电话</option>
@@ -180,14 +197,16 @@
180 197
 				</div>
181 198
 				<div class="form-group" hidden="hidden">
182 199
 					<!--  -->
183
-					<label for="proname" class="col-sm-3 control-label text-right"><b class="text_require">*</b>项目名称</label>
200
+					<label for="proname" class="col-sm-3 control-label text-right"><b
201
+							class="text_require">*</b>项目名称</label>
184 202
 					<div class="col-sm-9">
185 203
 						<select class="form-control selectpicker" id="proname" data-live-search="true"></select>
186 204
 
187 205
 					</div>
188 206
 				</div>
189 207
 				<div class="form-group provCity">
190
-					<label for="repairreplace" class="col-sm-3 control-label text-right"><b class="text_require">*</b>楼名称</label>
208
+					<label for="repairreplace" class="col-sm-3 control-label text-right"><b
209
+							class="text_require">*</b>楼名称</label>
191 210
 					<div class="col-sm-9">
192 211
 						<!--<select class="form-control selectpicker" id="repairreplace" data-live-search="true">
193 212
 
@@ -201,13 +220,12 @@
201 220
 					</div>
202 221
 				</div>
203 222
 				<div class="form-group">
204
-					<label for="floor" class="col-sm-3 control-label text-right"><b class="text_require">*</b>科室名称</label>
223
+					<label for="floor" class="col-sm-3 control-label text-right"><b
224
+							class="text_require">*</b>科室名称</label>
205 225
 					<div class="col-sm-9">
206
-
207 226
 						<select class="form-control selectpicker" id="floor" data-live-search="true">
208 227
 							<option value="">请选择科室</option>
209 228
 						</select>
210
-
211 229
 					</div>
212 230
 				</div>
213 231
 				<div class="form-group" id="eqmargin">
@@ -215,45 +233,31 @@
215 233
 						<b class="text_require">*</b>设备名称<input list="equipname" type="text" class="selequipname form-control" />
216 234
 					</div>
217 235
 					<datalist id="equipname">
218
-
219 236
 					</datalist>
220
-
221
-
222 237
 				</div>
223 238
 				<div class="form-group hidden">
224
-					<label for="protype_addText" class="col-sm-3 control-label text-right"><b class="text_require">*</b>项目类型</label>
239
+					<label for="protype_addText" class="col-sm-3 control-label text-right"><b
240
+							class="text_require">*</b>项目类型</label>
225 241
 					<div class="col-sm-9">
226
-						<!--<select class="form-control selectpicker" id="protype" data-live-search="true">
227
-                        <option value="">请选择项目类型</option>
228
-                    </select>-->
229
-						<input id="protype_addText" class="form-control" type="text" autocomplete="off" placeholder="请输入项目类型" readonly="readonly" />
242
+						<input id="protype_addText" class="form-control" type="text" autocomplete="off"
243
+							placeholder="请输入项目类型" readonly="readonly" />
230 244
 						<input id="protype_addNode" class="form-control" type="hidden" />
231 245
 					</div>
232 246
 				</div>
233 247
 				<div class="form-group">
234
-					<label for="repairoom" class="col-sm-3 control-label text-right"><b class="text_require">*</b>报修地点</label>
248
+					<label for="repairoom" class="col-sm-3 control-label text-right"><b
249
+							class="text_require">*</b>报修地点</label>
235 250
 					<div class="col-sm-9">
236
-						<input id="repairoom" class="form-control" type="text" placeholder="请输入报修地点" autocomplete="off" />
251
+						<input id="repairoom" class="form-control" type="text" placeholder="请输入报修地点"
252
+							autocomplete="off" />
237 253
 					</div>
238 254
 				</div>
239
-				<!--<div class="form-group">
240
-                <label for="repairtime" class="col-sm-3 control-label text-right"><b class="text_require">*</b>报修时间</label>
241
-                <div class="col-sm-9 time-box">
242
-                    <i class="tub fa fa-calendar"></i>
243
-                    <input class="form-control search_time dates" type="text" id="repairtime" placeholder="请选择时间">
244
-                </div>
245
-            </div>-->
246
-				<!-- <div class="form-group">
247
-					<label for="repairman" class="col-sm-3 control-label text-right"><b class="text_require">*</b>报修人</label>
248
-					<div class="col-sm-9">
249
-						<input id="repairman" class="form-control" type="text" placeholder="请输入报修人" autocomplete="off" />
250
-					</div>
251
-				</div> -->
252 255
 				<div class="form-group">
253
-					<label for="repairman" class="col-sm-3 control-label text-right"><b class="text_require">*</b>报修人</label>
256
+					<label for="repairman" class="col-sm-3 control-label text-right"><b
257
+							class="text_require">*</b>报修人</label>
254 258
 					<div class="col-sm-9">
255
-						<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()"
256
-						 autocomplete="off" />
259
+						<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入"
260
+							onkeyup="darptSearch()" autocomplete="off" />
257 261
 					</div>
258 262
 				</div>
259 263
 				<div class="selDpart1">
@@ -261,9 +265,11 @@
261 265
 					</ul>
262 266
 				</div>
263 267
 				<div class="form-group">
264
-					<label for="contactway" class="col-sm-3 control-label text-right"><b class="text_require">*</b>联系方式</label>
268
+					<label for="contactway" class="col-sm-3 control-label text-right"><b
269
+							class="text_require">*</b>联系方式</label>
265 270
 					<div class="col-sm-9">
266
-						<input id="contactway" class="form-control" type="text" placeholder="请输入联系方式" autocomplete="off" />
271
+						<input id="contactway" class="form-control" type="text" placeholder="请输入联系方式"
272
+							autocomplete="off" />
267 273
 					</div>
268 274
 				</div>
269 275
 				<!--<div class="form-group">
@@ -284,7 +290,8 @@
284 290
                 </div>
285 291
             </div>-->
286 292
 				<div class="form-group" hidden="hidden">
287
-					<label for="faultdescripe" class="col-sm-3 control-label text-right"><b class="text_require">*</b>故障物品</label>
293
+					<label for="faultdescripe" class="col-sm-3 control-label text-right"><b
294
+							class="text_require">*</b>故障物品</label>
288 295
 					<div class="col-sm-9">
289 296
 						<input id="faultdescripe" class="form-control" type="text" autocomplete="off" />
290 297
 						<!--去掉文本框改为下拉框-->
@@ -309,12 +316,38 @@
309 316
                     <input id="callid" class="form-control" type="text" autocomplete="off" />
310 317
                 </div>
311 318
             </div>-->
319
+				<!-- <div class="form-group sectionDIV1">
320
+					<label for="serviceteam" class="col-sm-3 control-label text-right">人员列表</label>
321
+					<div class="col-sm-9">
322
+						<select class="form-control selectpicker" id="serviceman" data-live-search="true">
323
+						</select>
324
+					</div>
325
+				</div> -->
326
+				<div class="form-group">
327
+					<label for="serviceman" class="col-sm-3 control-label text-right"><b
328
+							class="text_require">*</b>维修班组</label>
329
+					<div class="col-sm-9">
330
+						<select class="form-control selectpicker" id="serviceteam" data-live-search="true">
331
+							<option value="">请选择维修班组</option>
332
+							<option value="信息科">信息科</option>
333
+							<option value="设备科">设备科</option>
334
+							<option value="后勤部">后勤部</option>
335
+						</select>
336
+					</div>
337
+				</div>
338
+				<div class="form-group">
339
+					<label for="assignremark" class="col-sm-3 control-label text-right">指派说明</label>
340
+					<div class="col-sm-9">
341
+						<textarea type="text" class="form-control" id="assignremark"></textarea>
342
+					</div>
343
+				</div>
312 344
 
313 345
 				<div class="form-group">
314 346
 					<div class="col-sm-12" style="text-align: center;">
315 347
 						<input type="button" id="HY_save" class="btn_gray btn" onclick="btn_save()" value="保存" />
316 348
 					</div>
317 349
 				</div>
350
+
318 351
 			</div>
319 352
 		</div>
320 353
 		<script src="../../js/webuploader/webuploader.min.js"></script>
@@ -323,6 +356,28 @@
323 356
 		<script>
324 357
 			var ids = helper.request.queryString("ids");
325 358
 			var ajaxUrl;
359
+			var $storages = window.localStorage;
360
+			var userCode = $storages.getItem('userCode');
361
+			// //权限操作
362
+			// if (userCode == 8008) {
363
+			// 	$(".sectionDIV1").show();
364
+			// 	$(".sectionDIV2").hide();
365
+			// 	//获取后勤人员列表
366
+			// 	$.getJSON(huayi.config.callcenter_url + "signtokenapi/api/UserAccount/GetUserByRoleCodeandRoleName", {
367
+			// 		rolecode: "YWYG",
368
+			// 		rolename: "后勤部"
369
+			// 	}, function(res) {
370
+			// 		var personnelList = res.data;
371
+			// 		$(personnelList).each(function(i, n) {
372
+			// 			$("<option value='" + n.usercode + "'>" + n.username + "</option>").appendTo(
373
+			// 				"#serviceman");
374
+			// 			$("#serviceman").selectpicker('refresh');
375
+			// 		})
376
+			// 	})
377
+			// } else {
378
+			// 	$(".sectionDIV2").show();
379
+			// 	$(".sectionDIV1").hide();
380
+			// }
326 381
 			//报修时间
327 382
 			function getFormatDate() {
328 383
 				var nowDate = new Date();
@@ -390,7 +445,8 @@
390 445
 							if (modelList.faultpic) {
391 446
 								$(modelList.faultpic).each(function(g, h) {
392 447
 									$('<div class="thumbnail" data-fileurl="' + h.fileurl + '">' +
393
-										'<img layer-src="' + h.fileurl + '" alt="' + h.filename + '" src="' + h.filesmallurl + '" alt="" />' +
448
+										'<img layer-src="' + h.fileurl + '" alt="' + h.filename +
449
+										'" src="' + h.filesmallurl + '" alt="" />' +
394 450
 										'<div class="info">' + h.filename + '</div>' +
395 451
 										'</div>').appendTo('#image_list0')
396 452
 								});
@@ -473,7 +529,8 @@
473 529
 						event.stopPropagation();
474 530
 						$(this).parent().remove();
475 531
 						uploader.removeFile(file);
476
-						helper.methods.delImgs($(this).parent().attr("data-filesmallurl"), $(this).parent().attr("data-fileurl"));
532
+						helper.methods.delImgs($(this).parent().attr("data-filesmallurl"), $(this).parent().attr(
533
+							"data-fileurl"));
477 534
 						file_num(cindex)
478 535
 					});
479 536
 				});
@@ -603,7 +660,8 @@
603 660
 								$(".selDpart1").css('display', 'none');
604 661
 							} else {
605 662
 								$(content).each(function(i, n) {
606
-									$("<li index='" + n.usercode + "' >" + n.usercode + '-' + n.username + "</li>").appendTo("#sponsor");
663
+									$("<li index='" + n.usercode + "' >" + n.usercode + '-' + n.username +
664
+										"</li>").appendTo("#sponsor");
607 665
 								})
608 666
 							}
609 667
 						}
@@ -650,7 +708,7 @@
650 708
 					});
651 709
 					return;
652 710
 				}
653
-
711
+				
654 712
 				if (!$(".selequipname").val()) {
655 713
 					layer.confirm('请选择或输入设备名称!', {
656 714
 						icon: 2,
@@ -658,6 +716,13 @@
658 716
 					});
659 717
 					return;
660 718
 				}
719
+				if (!$("#serviceteam").val()) {
720
+					layer.confirm('请选择或输入维修班组!', {
721
+						icon: 2,
722
+						btn: ['确定'] //按钮
723
+					});
724
+					return;
725
+				}
661 726
 				// debugger
662 727
 				$.ajax({
663 728
 					type: "post",
@@ -679,8 +744,10 @@
679 744
 						repairman: $("#formComplainedUnit").val(), // 是	string	报修人
680 745
 						contactway: $('#contactway').val(), //		是	string	联系方式
681 746
 						faultdescripe: $(".selequipname").val(), // $('#faultdescripe').val(), //	否	string	故障说明
682
-						faultpic: imageArr0 //		故障图片,上传的json
747
+						faultpic: imageArr0 ,//		故障图片,上传的json
683 748
 						//callid: $('#callid').val(), //否	string	通话标志ID
749
+						assignman: $('#serviceteam').val(),
750
+						assignremark: $('#assignremark').val()
684 751
 					},
685 752
 					success: function(data) {
686 753
 						if (data.state.toLowerCase() == 'success') {
@@ -719,7 +786,8 @@
719 786
 								for (var k = 0; k < equipmentdata.length; k++) {
720 787
 									$(equipmentdata[k]).each(function(q, p) {
721 788
 										$('#equipname')
722
-											.append('<option label="' + p.equipment_name + '" value="' + p.equipment_name + '"></option>');
789
+											.append('<option label="' + p.equipment_name + '" value="' + p
790
+												.equipment_name + '"></option>');
723 791
 										// $("<option value='" + p.equipment_name + "'>" + p.equipment_name + "</option>").appendTo("#equipname");
724 792
 										$("#equipname").selectpicker('refresh');
725 793
 										// console.log(p.equipment_name)

+ 0 - 87
WebUI/CallCenterWeb.UI/equipmentOperationManage/template/assignEquipmentRepair.html

@@ -83,24 +83,6 @@
83 83
 						</select>
84 84
 					</div>
85 85
 				</div>
86
-				<!-- <div class="form-group sectionDIV2">
87
-					<label for="serviceman" class="col-sm-3 control-label text-right">被指派人</label>
88
-					<div class="col-sm-9">
89
-						<select class="form-control selectpicker" id="serviceman" data-live-search="true">
90
-							<option value="">请选择维修人</option>
91
-						</select>
92
-					</div>
93
-				</div> -->
94
-				<!--<div class="form-group">
95
-                <label for="states" class="col-sm-3 control-label text-right">工单状态</label>
96
-                <div class="col-sm-9">
97
-                    <select class="form-control"  id="states">
98
-                            <option value="1">已转派</option>
99
-                            <option value="3">已处理</option>
100
-                            <option value="6">挂起</option>
101
-                    </select>
102
-                </div>
103
-            </div>-->
104 86
 				<div class="form-group">
105 87
 					<label for="assignremark" class="col-sm-3 control-label text-right">指派说明</label>
106 88
 					<div class="col-sm-9">
@@ -112,9 +94,7 @@
112 94
 						<input type="button" id="HY_save" class="btn_gray btn" onclick="assignOrder()" value="派单" />
113 95
 					</div>
114 96
 				</div>
115
-
116 97
 			</div>
117
-
118 98
 		</div>
119 99
 		<script src="../../js/webuploader.min.js"></script>
120 100
 		<script>
@@ -122,9 +102,6 @@
122 102
 			var proId = helper.request.queryString("proId");
123 103
 			var wocode = helper.request.queryString("code");
124 104
 			var roleData = [];
125
-			// var role_id = $storages.getItem('role_id');
126
-			// var roleCode=$storages.getItem('roleCode');
127
-			// var roleName=$storages.getItem('roleName');
128 105
 			var userCode=$storages.getItem('userCode');
129 106
 			var serviceDapart, assignUrl;
130 107
 			if (userCode==8008) {
@@ -140,74 +117,10 @@
140 117
 						$("#serviceman").selectpicker('refresh');
141 118
 					})
142 119
 				})
143
-				// $.ajax({
144
-				// 	type: "get",
145
-				// 	url: huayi.config.callcenter_url + "signtokenapi/api/UserAccount/getlistsbypage",
146
-				// 	async: true,
147
-				// 	dataType: 'json',
148
-				// 	data: {
149
-				// 		pageindex: 1,
150
-				// 		pagesize: 1000,
151
-				// 		roleid: role_id
152
-				// 	},
153
-				// 	success: function(result) {
154
-				// 		if (result.state.toLowerCase() == "success") {
155
-				// 			const res = result.data.rows
156
-				// 			if (res.length > 0) {
157
-				// 				$(res).each(function(q, p) {
158
-				// 					console.log(p)
159
-				// 					$("<option value='" + p.usercode + "'>" + p.usercode + '-' + p.username +
160
-				// 						"</option>").appendTo("#serviceman");
161
-				// 					$("#serviceman").selectpicker('refresh');
162
-				// 				});
163
-				// 			} else {
164
-				// 				$("#serviceman").html('');
165
-				// 				$("#serviceman").selectpicker('refresh');
166
-				// 			}
167
-
168
-				// 		}
169
-
170
-				// 	}
171
-				// });
172 120
 			} else {
173 121
 				$(".sectionDIV2").show();
174 122
 				$(".sectionDIV1").hide();
175 123
 			}
176
-			$(document).ready(function() {
177
-				
178
-				/*发送请求*/
179
-				// $.ajax({
180
-				// 	type: "get",
181
-				// 	url: huayi.config.callcenter_url + "configurationapi/api/RoleInfo/getlistdrop",
182
-				// 	async: true,
183
-				// 	dataType: 'json',
184
-				// 	success: function(result) {
185
-				// 		if (result.state.toLowerCase() == "success") {
186
-				// 			for (var i = 0; i < result.data.length; i++) {
187
-				// 				if (result.data[i].role_name.substr(result.data[i].role_name.length - 1,
188
-				// 					1) == '班') {
189
-				// 					roleData.push(result.data[i])
190
-				// 				}
191
-				// 			}
192
-				// 			console.log(roleData)
193
-				// 			$(roleData).each(function(q, p) {
194
-				// 				$("<option value='" + p.role_name + "'>" + p.role_name + "</option>")
195
-				// 					.appendTo("#serviceteam");
196
-				// 				$("#serviceteam").selectpicker('refresh');
197
-				// 			});
198
-				// 		}
199
-
200
-				// 	}
201
-				// });
202
-			})
203
-			// $('#serviceteam').change(function() {
204
-			// 	// console.log($('#serviceteam').val())
205
-			// 	$("#serviceman").html('');
206
-			// 	$("#serviceman").append('<option selected="selected" value="">请选择维修人</option>');
207
-			// 	/*发送请求*/
208
-
209
-			// })
210
-
211 124
 			//派单
212 125
 			function assignOrder() {
213 126
 				if(userCode==8008) {