jinquanwu лет назад: 6
Родитель
Сommit
8335e9e1f6
2 измененных файлов с 88 добавлено и 138 удалено
  1. 66 126
      CallCenterWeb.UI/commonTpl/WorkOrderEnd.html
  2. 22 12
      CallCenterWeb.UI/js/WorkOrder/WorkOrderEnd.js

+ 66 - 126
CallCenterWeb.UI/commonTpl/WorkOrderEnd.html

@@ -103,49 +103,10 @@
103 103
 						</tr>
104 104
 					</table>
105 105
 					<table id="ddd" class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;" >
106
-						<tr>
107
-						   <th colspan="4">咨询类质量管理部</th>
108
-						</tr>
109
-						<tr>
110
-							<th>质量事件等级:</th>
111
-							<td>
112
-							 <select class="form-control selectpicker" id="dengji"></select>
113
-							</td>	
114
-						</tr>
115
-						<tr>
116
-						   <th >索赔金额:</th>
117
-						   <td>
118
-							   <input type="text" class="form-control selectpicker"  id="suopei"  placeholder="单位:元"
119
-							   onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')"/>
120
-						   </td>
121
-						   <th >责任单位可多选:</th>
122
-						   <td>
123
-						   	   <div id="duoxuan">					   
124
-						   	   	   <input type="checkbox" name="duo" value="生产" checked="checked">生产
125
-								   <input type="checkbox" name="duo" value="研发">研发
126
-								   <input type="checkbox" name="duo" value="农化">农化
127
-								   <input type="checkbox" name="duo" value="物流">物流
128
-								   <input type="checkbox" name="duo" value="质量管理科">质量管理科
129
-								   <input type="checkbox" name="duo" value="销售内勤">销售内勤
130
-						   	   </div>
131
-						   </td>
132
-						</tr>
133
-						<tr>
134
-						   <!-- <th>办理意见:</th>
135
-						   <td>
136
-							   <div id="yijian">
137
-								  <input type="radio" name="tong" value="同意" checked="checked">同意
138
-								  <input type="radio" name="tong" value="不同意">不同意
139
-							   </div>
140
-						   </td> -->
141 106
 						
142
-						   	  <th style="display: none;" id="xxx">不同意意见:</th>
143
-						   	  <td style="display: none;" id="zzz">
144
-						   	  	  <input type="text" name="" id="butong" value=""  class="form-control selectpicker" placeholder="请输入不同意意见"/>
145
-						   	  </td>
146 107
 						
147
-						</tr>
148
-						<tr>
108
+						
109
+						<!-- <tr>
149 110
 						   <th>补偿方式:</th>
150 111
 						   <td>
151 112
 							   <div id="buchang">
@@ -158,30 +119,8 @@
158 119
 						   	  <input type="text" name="" id="butong" value=""  class="form-control selectpicker"
159 120
 							  onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" placeholder="请输入补偿钱款"/>
160 121
 						   </td>
161
-						</tr>
162
-						<tr>
163
-						   <th>对应责任单位:</th>
164
-						   <td>
165
-							   <div id="zeren">
166
-								  <select class="form-control selectpicker" id="danwei"></select>
167
-							   </div>
168
-						   </td>
169
-						    <th>确认实收数量:</th>
170
-						   <td>
171
-						       <input type="text"  id="shuliang" value=""  placeholder="吨" class="form-control selectpicker"
172
-							   onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')"/>
173
-						   </td>
174
-						</tr>
175
-						<tr>
176
-						   <th>改进要求:</th>
177
-						   <td>
178
-						       <input type="text"  id="yaoqiu" value=""  placeholder="请输入改进要求" class="form-control selectpicker"/>
179
-						   </td>
180
-						    <th>对应办理工作流单号:</th>
181
-						   <td>
182
-						       <input type="text"  id="danhao" value=""  placeholder="请输入工作流单号" class="form-control selectpicker">
183
-						   </td>
184
-						</tr>
122
+						</tr> -->
123
+						
185 124
 					</table>
186 125
 					</table>
187 126
 					
@@ -199,7 +138,7 @@
199 138
 							
200 139
 						</tr>
201 140
 					</table>
202
-					<table id="shicon" class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
141
+					<table id="shicon" class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none; ">
203 142
 						<tr>
204 143
 							<th>是否回访:</th>
205 144
 							<td >
@@ -209,90 +148,100 @@
209 148
 								</div>			
210 149
 							</td>	
211 150
 						</tr>
212
-					</table>
213
-					<table id="abcd" class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;" >
214
-						<tr>
215
-						   <th colspan="4">投诉类质量管理部</th>
216
-						</tr>
217
-						<tr>
218
-							
219
-							<th>质量事件等级:</th>
220
-							<td>
221
-							 <select class="form-control selectpicker" id="cat" >
222
-							     <option selected="selected" value="">请选择</option>
223
-							 </select>
224
-							</td>	
225
-						</tr>
226 151
 						<tr>
227 152
 						   <th >索赔金额:</th>
228 153
 						   <td>
229 154
 							   <input type="text" class="form-control selectpicker"  id="suopei"  placeholder="单位:元"
230 155
 							   onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')"/>
231 156
 						   </td>
232
-						   <th >责任位可多选:</th>
157
+						   <th >责任单位可多选:</th>
233 158
 						   <td>
234
-							   <div id="duoxuan">					   
235
-								   <input type="checkbox" name="duo" value="生产" checked="checked">生产
159
+						   	   <div id="duoxuan">					   
160
+						   	   	   <input type="checkbox" name="duo" value="生产">生产
236 161
 								   <input type="checkbox" name="duo" value="研发">研发
237 162
 								   <input type="checkbox" name="duo" value="农化">农化
238 163
 								   <input type="checkbox" name="duo" value="物流">物流
239 164
 								   <input type="checkbox" name="duo" value="质量管理科">质量管理科
240 165
 								   <input type="checkbox" name="duo" value="销售内勤">销售内勤
241
-							   </div>
166
+						   	   </div>
167
+							   <input type="hidden" id="txtServerType" value="" />
242 168
 						   </td>
243 169
 						</tr>
244 170
 						<tr>
245
-						   <th>办理意见:</th>
171
+						   <th>改进要求:</th>
246 172
 						   <td>
247
-							   <div id="yijian">
248
-								  <input type="radio" name="tong" value="同意" checked="checked">同意
249
-								  <input type="radio" name="tong" value="不同意">不同意
250
-							   </div>
173
+						       <input type="text"  id="yaoqiu" value=""  placeholder="请输入改进要求" class="form-control selectpicker"/>
251 174
 						   </td>
252
-						   <th style="display: none;" id="nrr">不同意意见:</th>
253
-						   <td style="display: none;" id="ytt">
254
-						   	  <input type="text" name="" id="butong" value=""  class="form-control selectpicker" placeholder="请输入不同意意见"/>
175
+						    <th>对应办理工作流单号:</th>
176
+						   <td>
177
+						       <input type="text"  id="danhao" value=""  placeholder="请输入工作流单号" class="form-control selectpicker">
255 178
 						   </td>
256 179
 						</tr>
257 180
 						<tr>
258 181
 						   <th>补偿方式:</th>
259 182
 						   <td>
260 183
 							   <div id="buchang">
261
-								  <input type="radio" name="buchang" value="实物" checked="checked">实物
262
-								  <input type="radio" name="buchang" value="钱款">钱款
184
+								  <input type="radio" name="buchan" value="实物" checked="checked">实物
185
+								  <input type="radio" name="buchan" value="钱款">钱款
263 186
 							   </div>
264 187
 						   </td>
265
-						   <th style="display: none;" id="mmm">补偿钱款:</th>
266
-						   <td style="display: none;" id="mmm">
267
-						   	  <input type="text" name="" id="butong" value=""  class="form-control selectpicker"
188
+						   <th style="display: none;" id="mction">补偿钱款:</th>
189
+						   <td style="display: none;" id="mcttic">
190
+						   	  <input type="text" name="" id="bcqkun" value=""  class="form-control selectpicker"
268 191
 						   	onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" placeholder="请输入补偿钱款"/>
269 192
 						   </td>
270 193
 						</tr>
271 194
 						<tr>
272
-						   <th>对应责任单位:</th>
273
-						   <td>
274
-							   <div id="zeren">
275
-								  <select class="form-control selectpicker" id="cataa" >
276
-								      <option selected="selected" value="">请选择</option>
277
-								  </select>
278
-							   </div>
279
-						   </td>
280
-							<th>确认实收数量:</th>
281
-						   <td>
282
-							   <input type="text"  id="shuliang" value=""  placeholder="吨" class="form-control selectpicker"
283
-							   onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')"/>
284
-						   </td>
285
-						</tr>
286
-						<tr>
287
-						   <th>改进要求:</th>
195
+						   <th>对应办理工作流单号:</th>
288 196
 						   <td>
289
-							   <input type="text"  id="yaoqiu" value=""  placeholder="请输入改进要求" class="form-control selectpicker"/>
197
+							  <input type="text" class="form-control" id="duiying"  placeholder="请输入工作流单号"/>
290 198
 						   </td>
291
-							<th>对应办理工作流单号:</th>
199
+						   <th>确认返账金额:</th>
292 200
 						   <td>
293
-							   <input type="text"  id="danhao" value=""  placeholder="请输入工作流单号" class="form-control selectpicker">
201
+							  <input type="text" class="form-control" id="shenpi"  placeholder="请输入工作流单号"/>
294 202
 						   </td>
295 203
 						</tr>
204
+						
205
+						   <tr>
206
+						      <th>办理意见:</th>
207
+						      <td>
208
+						   	   <div id="yijian">
209
+						   		  <input type="radio" name="tong" value="同意" checked="checked">同意
210
+						   		  <input type="radio" name="tong" value="不同意">不同意
211
+						   	   </div>
212
+						      </td>
213
+						      <th style="display: none;" id="nrr">不同意意见:</th>
214
+						      <td style="display: none;" id="ytt">
215
+						      	  <input type="text" name="" id="butong" value=""  class="form-control selectpicker" placeholder="请输入不同意意见"/>
216
+						      </td>
217
+						   </tr>
218
+						   <tr>
219
+							   <th>确认实收数量:</th>
220
+							   <td>
221
+								   <input type="text"  id="shuliang" value=""  placeholder="吨" class="form-control selectpicker"
222
+								   onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')"/>
223
+							   </td>
224
+							    <th>对应责任单位:</th>
225
+							   <td>
226
+								   <div id="zeren">
227
+									  <select class="form-control selectpicker" id="cataa" >
228
+										  <option selected="selected" value="">请选择</option>
229
+									  </select>
230
+								   </div>
231
+							   </td>
232
+						   </tr>
233
+						 
234
+						   <tr>
235
+								<th>质量事件等级:</th>
236
+								<td>
237
+								 <select class="form-control selectpicker" id="cat" >
238
+									 <option selected="selected" value="">请选择</option>
239
+								 </select>
240
+								</td>	
241
+						   </tr>
242
+						  
243
+					</table>
244
+					<table id="abcd" class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;" >
296 245
 					</table>
297 246
 					</table>
298 247
 								
@@ -312,16 +261,7 @@
312 261
 							  <input type="text" class="form-control" id="zijian"  placeholder="请输入自检结果"/>
313 262
 						   </td> -->
314 263
 						</tr>
315
-						<!-- <tr>
316
-						   <th>对应办理工作流单号:</th>
317
-						   <td>
318
-							  <input type="text" class="form-control" id="duiying"  placeholder="请输入工作流单号"/>
319
-						   </td>
320
-						   <th>确认返账金额:</th>
321
-						   <td>
322
-							  <input type="text" class="form-control" id="shenpi"  placeholder="请输入工作流单号"/>
323
-						   </td>
324
-						</tr> -->
264
+						
325 265
 					</table>
326 266
 					<table id="abcdef" class="_table1 table table-bordered  table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;" >
327 267
 						<tr>

+ 22 - 12
CallCenterWeb.UI/js/WorkOrder/WorkOrderEnd.js

@@ -78,18 +78,19 @@ function getWorkOrderInfo(oid) {
78 78
 					   if($("#cl_gdn").text()=="质量管理部"){
79 79
 						  $("#abcdef").show(); 
80 80
 						  $("#abcde").hide();
81
-						  $("#shicon").show();
81
+						  $("#shicon").hide();
82 82
 					   }
83 83
 					}else if($("#cl_gdlx").text()=="投诉"){
84 84
 						   if($("#cl_gdn").text()=="质量管理部"){
85 85
 							   $("#abcd").show();
86
-							   $("#abc").hide(); shicon
86
+							   $("#abc").hide(); 
87 87
 							   $("#shicon").show();
88 88
 						   }
89 89
 					 }else if($("#cl_gdlx").text()=="咨询"){
90 90
 						   if($("#cl_gdn").text()=="质量管理部"){
91 91
 							   $("#ddd").show();
92
-							    $("#ccc").hide(); 
92
+							   $("#ccc").hide(); 
93
+							   $("#shicon").show();
93 94
 						   }
94 95
 					   }
95 96
 					//微信内文件(暂时不用)
@@ -115,7 +116,15 @@ function getWorkOrderInfo(oid) {
115 116
 		}
116 117
 	});
117 118
 }
118
-
119
+$(function(){
120
+   $("#duoxuan").on("click",function(){
121
+      var ichk=$("input:checkbox:checked").map(function(){
122
+         return $(this).val();
123
+      }).get().join(",");
124
+	  $("#txtServerType").val(ichk);
125
+		// alert($("#txtServerType").val())
126
+   })
127
+})
119 128
 
120 129
 $('#yijian').find('input[type="radio"]').on('change', function() {
121 130
 			if($(this).val() == "不同意") { //业务办理
@@ -126,9 +135,9 @@ $('#yijian').find('input[type="radio"]').on('change', function() {
126 135
 });
127 136
 $('#buchang').find('input[type="radio"]').on('change', function() {
128 137
 			if($(this).val() == "钱款") { //业务办理
129
-				$('#mmm,#mmm').show();
138
+				$('#mction,#mcttic').show();
130 139
 			}else{
131
-				$('#mmm,#mmm').hide();
140
+				$('#mction,#mcttic').hide();
132 141
 			}
133 142
 });
134 143
 
@@ -156,13 +165,14 @@ function dealWorkOrder(oid) {
156 165
 		cont: $("#cont").val(), //否	处理内容	
157 166
 		ProductBase: $("#zhibao").val(),
158 167
 		// isvisit: $("#huifangisvisit").val(),
159
-		QualityEventLevel: $("#dengji").val(),
160
-		ClaimAmount: $("#suopei").val(),
161
-		ResponsibleUnit: $("#duoxuan").val(),	
162
-		ApprovalOpinions: $("#yijian").val(),
168
+		QualityEventLevel: $("#cat").val(),
169
+		shenpi:$("#shenpi").val(),
170
+		ClaimAmount:$("#cataa").val(),
171
+		ResponsibleUnit: $("#txtServerType").val(),	
172
+		ApprovalOpinions: $("input[name='tong']:checked").val(),
163 173
 		ApprovalDisagree: $("#butong").val(),
164
-		CompensationMethod: $("#buchang").val(),
165
-		CompensationMoney: $("#buqian").val(),
174
+		CompensationMethod:$("input[name='buchan']:checked").val(),
175
+		CompensationMoney: $("#bcqkun").val(),
166 176
 		CResponsibleUnits: $("#danwei").val(),
167 177
 		Fquantity: $("#shuliang").val(),
168 178
 		ImprovementRequirements: $("#yaoqiu").val(),