|
|
@@ -2,6 +2,10 @@
|
|
2
|
2
|
|
|
3
|
3
|
$(document).ready(function() {
|
|
4
|
4
|
var tid = helper.request.queryString("tid");
|
|
|
5
|
+ var Name_ =decodeURI(helper.request.queryString("Name_"));
|
|
|
6
|
+ var Phone_ = helper.request.queryString("Phone_");
|
|
|
7
|
+ var createState = helper.request.queryString("createState");
|
|
|
8
|
+ var t_detail = decodeURI(helper.request.queryString("t_detail"));
|
|
5
|
9
|
$('#t_investigator').val($.cookie("u_code"));//给调查员默认值;当前用户的账号
|
|
6
|
10
|
//var nDtime = helper.DateFormat.getNowDate(); //当前时间
|
|
7
|
11
|
autosize($('textarea'));
|
|
|
@@ -17,11 +21,22 @@ $(document).ready(function() {
|
|
17
|
21
|
})
|
|
18
|
22
|
$('#t_county').html(str)
|
|
19
|
23
|
$('#clbmname').html(str)
|
|
20
|
|
- if(tid){
|
|
|
24
|
+ if(tid && !createState){
|
|
21
|
25
|
getSel(tid);//获取信息
|
|
22
|
26
|
}
|
|
23
|
27
|
}
|
|
24
|
28
|
})
|
|
|
29
|
+ console.log(Name_)
|
|
|
30
|
+ console.log(Phone_)
|
|
|
31
|
+ if(Name_){
|
|
|
32
|
+ $("#tskh").val(Name_)
|
|
|
33
|
+ }
|
|
|
34
|
+ if(Phone_){
|
|
|
35
|
+ $("#tsdh").val(Phone_)
|
|
|
36
|
+ }
|
|
|
37
|
+ if(t_detail){
|
|
|
38
|
+ $('#t_detail').val(t_detail)
|
|
|
39
|
+ }
|
|
25
|
40
|
//获取乡镇或单位下拉
|
|
26
|
41
|
// helper.getDropList.getlistDropByDic($('#t_county'), 'JBDW').then(function(){
|
|
27
|
42
|
// if(tid){
|
|
|
@@ -75,10 +90,11 @@ $(document).ready(function() {
|
|
75
|
90
|
}
|
|
76
|
91
|
})
|
|
77
|
92
|
})
|
|
|
93
|
+
|
|
78
|
94
|
//创建工单
|
|
79
|
95
|
$(".addts").click(function() {
|
|
80
|
96
|
var tskh = $("#tskh").val();
|
|
81
|
|
- var tsdh = $("#tsdh").val();
|
|
|
97
|
+ var tsdh = $("#tsdh").val();
|
|
82
|
98
|
var cont = $("#cont").val();
|
|
83
|
99
|
var tid = helper.request.queryString("tid");
|
|
84
|
100
|
var infotype=$('#xl_box').find('option:selected').text();
|
|
|
@@ -151,7 +167,7 @@ $(document).ready(function() {
|
|
151
|
167
|
// unitid: $("#xl_boxs").val(), //int 否 交办单位id,默认为0
|
|
152
|
168
|
|
|
153
|
169
|
clbm:$('#clbmname').val(), //string 否 处理部门
|
|
154
|
|
- clid: $('#clidname').val(), //string 否 处理人
|
|
|
170
|
+ clr: $('#clidname').val(), //string 否 处理人
|
|
155
|
171
|
infotype: infotype,
|
|
156
|
172
|
infotypeid:$('#xl_box').val(),
|
|
157
|
173
|
infotypedetail: infotypedetail,
|
|
|
@@ -231,7 +247,16 @@ $(document).ready(function() {
|
|
231
|
247
|
}
|
|
232
|
248
|
});
|
|
233
|
249
|
|
|
234
|
|
-
|
|
|
250
|
+// 我的任务结果中的创建工单操作
|
|
|
251
|
+if(createState == 1){
|
|
|
252
|
+ $('#clidname').change(function(){
|
|
|
253
|
+ if($('#clidname').val() == $.cookie("u_code")){
|
|
|
254
|
+ $('.detailState').show()
|
|
|
255
|
+ }else{
|
|
|
256
|
+ $('.detailState').hide()
|
|
|
257
|
+ }
|
|
|
258
|
+ })
|
|
|
259
|
+}
|
|
235
|
260
|
//20180518byfanlongfei将处理部门、处理人、信息分类、交办单位修改为文本框;
|
|
236
|
261
|
//获取部门
|
|
237
|
262
|
$('#clbmname').change(function(){
|
|
|
@@ -251,6 +276,11 @@ function getUserListByDepartment(obj, deptid) {
|
|
251
|
276
|
})
|
|
252
|
277
|
obj.html(str)
|
|
253
|
278
|
}
|
|
|
279
|
+ if($('#clidname').val() == $.cookie("u_code") && createState == 1){
|
|
|
280
|
+ $('.detailState').show()
|
|
|
281
|
+ }else{
|
|
|
282
|
+ $('.detailState').hide()
|
|
|
283
|
+ }
|
|
254
|
284
|
})
|
|
255
|
285
|
}
|
|
256
|
286
|
|