Explorar el Código

是否上传照片、减免工单导入

liuyifan %!s(int64=5) %!d(string=hace) años
padre
commit
0a666b1c22

+ 2 - 2
CallCenterWeb.UI/WorkOrder/SpotCheck/WorkOrderSpotCheck.html

@@ -57,7 +57,7 @@
57 57
 						</div>
58 58
 						<div class="time-box form-group">
59 59
 							<i class="tub fa fa-calendar"></i>
60
-							<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择抽检时间" autocomplete="off" />
60
+							<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择录入时间" autocomplete="off" />
61 61
 						</div>
62 62
 						<div class="form-group btn-position">
63 63
 							<button class="btns ss">搜索</button>
@@ -71,7 +71,7 @@
71 71
 					<thead>
72 72
 						<tr>
73 73
 							<th data-field="F_SerialNumber" data-align="center">序号</th>
74
-							<th data-field="F_CreateTime" data-align="center">抽检时间</th>
74
+							<th data-field="F_CreateTime" data-align="center">录入时间</th>
75 75
 							<th data-field="F_Datecheck" data-align="center">抽检日期</th>
76 76
 							<th data-field="F_Company" data-align="center">抽检单位</th>
77 77
 							<th data-field="F_OfficName" data-align="center">办事处</th>

+ 44 - 2
CallCenterWeb.UI/WorkOrder/WorkOrderRemission.html

@@ -138,6 +138,8 @@
138 138
 						<div class="form-group btn-position">
139 139
 							<button class="btns ss">搜索</button>
140 140
 							<button class="btns export">导出</button>
141
+							<input id="importFile" type="button" class="btns" value="导入" />
142
+							<input type="file" name="upFile" id="upFile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" style="display: none;">
141 143
 						</div>
142 144
 					</div>
143 145
 				</div>
@@ -227,8 +229,9 @@
227 229
                 queryParamsType: "undefined",
228 230
                 queryParams: function queryParams(params) { //设置查询参数
229 231
 						var param = {
230
-							state: 8, //处理进度
231 232
 							token: $.cookie("token"),
233
+							isreduction: 1,
234
+							state: 8, //处理进度
232 235
 							code: $("#searchCode").val(), //工单编号
233 236
 							area: $("#searchRegionId").val(), //大区
234 237
 							office: $("#searchOfficeId").val(), //办事处
@@ -261,7 +264,46 @@
261 264
                     //layer.msg("加载数据失败", { time: 1500, icon: 2 });
262 265
                 }
263 266
             });
264
-        }
267
+		}
268
+		$("#importFile").click(function () {
269
+			$("#upFile").trigger("click");
270
+		})
271
+		$("#upFile").change(function () {
272
+			upload();
273
+		})
274
+		//上传文件
275
+		function upload() {
276
+			if (document.getElementById("upFile").files.length > 0) {
277
+				var formData = new FormData();
278
+				formData.append("upFile", document.getElementById("upFile").files[0]);
279
+				formData.append("type", 1);
280
+				formData.append("token", $.cookie("token"));
281
+				$.ajax({
282
+					url: huayi.config.callcenter_url + "WorkOrder/ImportExcel",
283
+					type: "POST",
284
+					data: formData,
285
+					contentType: false,
286
+					processData: false,
287
+					success: function (result) {
288
+						document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
289
+						$("#upFile").change(function () {
290
+							upload();
291
+						});
292
+						var r = $.parseJSON(result);
293
+						if (r.state.toLowerCase() == "success") {
294
+							debugger
295
+							layer.msg("导入成功");
296
+							initTable(token);
297
+						}
298
+					}
299
+				});
300
+			} else {
301
+				layer.confirm('请上传文件!', {
302
+					btn: ['确定']
303
+				});
304
+			}
305
+		}
306
+
265 307
     </script>
266 308
 </body>
267 309
 </html>

+ 8 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderSearch.html

@@ -160,6 +160,13 @@
160 160
 								<option value="1">否</option>
161 161
 							</select>
162 162
 						</div>
163
+						<div class="form-group">
164
+							<select class="form-control" id="searchUploadPhoto">
165
+								<option value="">请选择是否上传照片</option>
166
+								<option value="1">是</option>
167
+								<option value="0">否</option>
168
+							</select>
169
+						</div>
163 170
 						<div class="form-group btn-position">
164 171
 							<button class="btns ss">搜索</button>
165 172
 							<button class="btns export">导出</button>
@@ -272,6 +279,7 @@
272 279
 							endduplicatetime: $('#duplicateTime').val() && $('#duplicateTime').val().split(' ~ ')[1], //重复投诉结束时间
273 280
 							reminder: $("#searchReminder").val(), //是否催单
274 281
 							incomplete: $("#searchComplete").val(), //是否完善
282
+							isdealfile: $("#searchUploadPhoto").val(), //是否上传照片
275 283
 							pageindex: params.pageNumber, //页码
276 284
 							pagesize: params.pageSize, //条数
277 285
 						};

+ 2 - 1
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -1138,10 +1138,11 @@ function dcexcel(state, isdc, CJ, reduction) {
1138 1138
 	var see = $("#searchSee").val(); //	处理专员是否只查看负责区域单子
1139 1139
 	var reminder = $("#searchReminder").val(); //是否催单
1140 1140
 	var complete = $("#searchComplete").val(); //是否完善
1141
+	var isdealfile = $("#searchUploadPhoto").val(); //是否上传照片
1141 1142
 
1142 1143
 	var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + token;
1143 1144
 	url += "&state=" + state + "&code=" + code + "&area=" + area + "&office=" + office + "&starttime=" + starttime + "&endtime=" + endtime + "&keywords=" + keywords + "&productType=" + productType +"&productName=" + productName + "&productDate=" + productDate + "&batchNumber=" + batchNumber
1144 1145
 	+ "&manufacturer=" + manufacturer + "&problemCode=" + problemCode 
1145
-	+ "&type=" + type + "&dealTimely=" + dealTimely + "&see=" + see + "&isdc=" + isdc + "&CJ=" + CJ + "&IsReduction=" + reduction + "&reminder=" + reminder + "&incomplete=" + complete;
1146
+	+ "&type=" + type + "&dealTimely=" + dealTimely + "&see=" + see + "&isdc=" + isdc + "&CJ=" + CJ + "&IsReduction=" + reduction + "&reminder=" + reminder + "&incomplete=" + complete + "&isdealfile=" + isdealfile;
1146 1147
 	window.location.href = url;
1147 1148
 }