|
|
@@ -1,381 +1,424 @@
|
|
1
|
1
|
<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
3
|
3
|
|
|
4
|
|
-<head>
|
|
5
|
|
- <meta charset="UTF-8">
|
|
6
|
|
- <script src="../Script/Common/huayi.load.js"></script>
|
|
7
|
|
- <script src="../Script/Common/huayi.config.js"></script>
|
|
8
|
|
- <link href="../css/layer/need/layer.css" />
|
|
9
|
|
- <link rel="stylesheet" href="../css/init.css" />
|
|
10
|
|
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
|
|
11
|
|
- <link rel="stylesheet" href="./css/appeal.css" />
|
|
12
|
|
- <title>新增诉求工单</title>
|
|
13
|
|
-</head>
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="UTF-8">
|
|
|
6
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
7
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
8
|
+ <link href="../css/layer/need/layer.css" />
|
|
|
9
|
+ <link rel="stylesheet" href="../css/init.css" />
|
|
|
10
|
+ <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
|
|
|
11
|
+ <link rel="stylesheet" href="./css/appeal.css" />
|
|
|
12
|
+ <title>新增诉求工单</title>
|
|
|
13
|
+ </head>
|
|
14
|
14
|
|
|
15
|
|
-<body>
|
|
|
15
|
+ <body>
|
|
16
|
16
|
|
|
17
|
|
- <div class="wrapper wrapper-content animated fadeInRight">
|
|
18
|
|
- <div class="daoHang clearfix" style="display: none;">
|
|
19
|
|
- <div class="dhLeft">
|
|
20
|
|
- <sapn>
|
|
21
|
|
- <i class="syIcon"></i>位置:
|
|
22
|
|
- <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
23
|
|
- <a href="javaScript:;">工单处理</a>>
|
|
24
|
|
- <a href="" class="nowPosition">舆情工单创建</a>
|
|
25
|
|
- </sapn>
|
|
26
|
|
- </div>
|
|
27
|
|
- <div class="dhRight">
|
|
28
|
|
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
29
|
|
- </div>
|
|
30
|
|
- </div>
|
|
31
|
|
- <div style="padding: 10px;" class="tj_content clearFix">
|
|
32
|
|
- <div class="Common">
|
|
33
|
|
- <table>
|
|
34
|
|
- <tr>
|
|
35
|
|
- <th class="Importent">题目:</th>
|
|
36
|
|
- <td>
|
|
37
|
|
- <input type="text" id="title" />
|
|
38
|
|
- </td>
|
|
39
|
|
- <th class="Importent">作者:</th>
|
|
40
|
|
- <td>
|
|
41
|
|
- <input type="text" id="cusname" />
|
|
42
|
|
- </td>
|
|
43
|
|
- </tr>
|
|
44
|
|
- <tr>
|
|
45
|
|
- <th class="Importent">内容简介:</th>
|
|
46
|
|
- <td colspan="3">
|
|
47
|
|
- <textarea id="keys" name="" rows="" cols="" placeholder="输入内容简介"></textarea>
|
|
48
|
|
- </td>
|
|
49
|
|
- </tr>
|
|
50
|
|
- <tr>
|
|
51
|
|
- <th class="Importent">主要网址:</th>
|
|
52
|
|
- <td colspan="3">
|
|
53
|
|
- <input type="text" id="cusaddress" />
|
|
54
|
|
- </td>
|
|
55
|
|
- </tr>
|
|
56
|
|
- <tr>
|
|
57
|
|
- <th>精准地域:</th>
|
|
58
|
|
- <td>
|
|
59
|
|
- <select class="select_" id="sourcearea"></select>
|
|
60
|
|
- </td>
|
|
61
|
|
- <th>网络发布时间:</th>
|
|
62
|
|
- <td>
|
|
|
17
|
+ <div class="wrapper wrapper-content animated fadeInRight">
|
|
|
18
|
+ <div class="daoHang clearfix" style="display: none;">
|
|
|
19
|
+ <div class="dhLeft">
|
|
|
20
|
+ <sapn>
|
|
|
21
|
+ <i class="syIcon"></i>位置:
|
|
|
22
|
+ <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
|
23
|
+ <a href="javaScript:;">工单处理</a>>
|
|
|
24
|
+ <a href="" class="nowPosition">舆情工单创建</a>
|
|
|
25
|
+ </sapn>
|
|
|
26
|
+ </div>
|
|
|
27
|
+ <div class="dhRight">
|
|
|
28
|
+ <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
29
|
+ </div>
|
|
|
30
|
+ </div>
|
|
|
31
|
+ <div style="padding: 10px;" class="tj_content clearFix">
|
|
|
32
|
+ <div class="Common">
|
|
|
33
|
+ <table>
|
|
|
34
|
+ <tr>
|
|
|
35
|
+ <th class="Importent">题目:</th>
|
|
|
36
|
+ <td>
|
|
|
37
|
+ <input type="text" id="title" />
|
|
|
38
|
+ </td>
|
|
|
39
|
+ <th class="Importent">作者:</th>
|
|
|
40
|
+ <td>
|
|
|
41
|
+ <input type="text" id="cusname" />
|
|
|
42
|
+ </td>
|
|
|
43
|
+ </tr>
|
|
|
44
|
+ <tr>
|
|
|
45
|
+ <th class="Importent">内容简介:</th>
|
|
|
46
|
+ <td colspan="3">
|
|
|
47
|
+ <textarea id="keys" name="" rows="" cols="" placeholder="输入内容简介"></textarea>
|
|
|
48
|
+ </td>
|
|
|
49
|
+ </tr>
|
|
|
50
|
+ <tr>
|
|
|
51
|
+ <th class="Importent">主要网址:</th>
|
|
|
52
|
+ <td colspan="3">
|
|
|
53
|
+ <input type="text" id="cusaddress" />
|
|
|
54
|
+ </td>
|
|
|
55
|
+ </tr>
|
|
|
56
|
+ <tr>
|
|
|
57
|
+ <th>精准地域:</th>
|
|
|
58
|
+ <td>
|
|
|
59
|
+ <select class="select_" id="sourcearea"></select>
|
|
|
60
|
+ </td>
|
|
|
61
|
+ <th>网络发布时间:</th>
|
|
|
62
|
+ <td>
|
|
63
|
63
|
|
|
64
|
|
- <input type="text" id="publishtime" placeholder="请选择时间"/>
|
|
65
|
|
- </td>
|
|
66
|
|
- </tr>
|
|
67
|
|
- <tr>
|
|
68
|
|
- <th></th>
|
|
69
|
|
- <td colspan="3">
|
|
70
|
|
- <textarea id="sourceaddress" name="" rows="" cols="" placeholder="输入详细地址"></textarea>
|
|
71
|
|
- <!--<input id="sourceaddress" type="text" placeholder="输入详细地址"/>-->
|
|
72
|
|
- </td>
|
|
73
|
|
- </tr>
|
|
74
|
|
- <tr>
|
|
75
|
|
- <th class="Importent">舆情来源:</th>
|
|
76
|
|
- <td>
|
|
77
|
|
- <input type="text" id="source" />
|
|
78
|
|
- </td>
|
|
79
|
|
- <th>信息属性:</th>
|
|
80
|
|
- <td>
|
|
81
|
|
- <select class="select_" id="infoproperty"></select>
|
|
82
|
|
- </td>
|
|
83
|
|
- </tr>
|
|
84
|
|
- <tr>
|
|
85
|
|
- <th>舆情等级:</th>
|
|
86
|
|
- <td>
|
|
87
|
|
- <select class="select_" id="level">
|
|
88
|
|
-
|
|
89
|
|
- <option value="1">普通</option>
|
|
90
|
|
- <option value="2">紧急</option>
|
|
91
|
|
- </select>
|
|
92
|
|
- </td>
|
|
93
|
|
- <th>舆情类型:</th>
|
|
94
|
|
- <td>
|
|
95
|
|
- <select class="select_" id="type"></select>
|
|
96
|
|
- </td>
|
|
97
|
|
- </tr>
|
|
98
|
|
- <tr>
|
|
99
|
|
- <th>附件上传:</th>
|
|
100
|
|
- <td colspan="3">
|
|
101
|
|
- <div class="fileBox"></div>
|
|
102
|
|
- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
|
|
103
|
|
- style="display: none;"/>
|
|
104
|
|
- <button class="input" type="button" id="scwj">上传</button>
|
|
105
|
|
- <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
|
|
106
|
|
- <input type="hidden" id="file" />
|
|
107
|
|
- </br>
|
|
108
|
|
- <span style="color:#FF0000; border: none;">
|
|
|
64
|
+ <input type="text" id="publishtime" placeholder="请选择时间" />
|
|
|
65
|
+ </td>
|
|
|
66
|
+ </tr>
|
|
|
67
|
+ <tr>
|
|
|
68
|
+ <th></th>
|
|
|
69
|
+ <td colspan="3">
|
|
|
70
|
+ <textarea id="sourceaddress" name="" rows="" cols="" placeholder="输入详细地址"></textarea>
|
|
|
71
|
+ <!--<input id="sourceaddress" type="text" placeholder="输入详细地址"/>-->
|
|
|
72
|
+ </td>
|
|
|
73
|
+ </tr>
|
|
|
74
|
+ <tr>
|
|
|
75
|
+ <th class="Importent">舆情来源:</th>
|
|
|
76
|
+ <td>
|
|
|
77
|
+ <input type="text" id="source" />
|
|
|
78
|
+ </td>
|
|
|
79
|
+ <th>信息属性:</th>
|
|
|
80
|
+ <td>
|
|
|
81
|
+ <select class="select_" id="infoproperty"></select>
|
|
|
82
|
+ </td>
|
|
|
83
|
+ </tr>
|
|
|
84
|
+ <tr>
|
|
|
85
|
+ <th>舆情等级:</th>
|
|
|
86
|
+ <td>
|
|
|
87
|
+ <select class="select_" id="level">
|
|
|
88
|
+
|
|
|
89
|
+ <option value="1">普通</option>
|
|
|
90
|
+ <option value="2">紧急</option>
|
|
|
91
|
+ </select>
|
|
|
92
|
+ </td>
|
|
|
93
|
+ <th>舆情类型:</th>
|
|
|
94
|
+ <td>
|
|
|
95
|
+ <select class="select_" id="type"></select>
|
|
|
96
|
+ </td>
|
|
|
97
|
+ </tr>
|
|
|
98
|
+ <tr>
|
|
|
99
|
+ <th>附件上传:</th>
|
|
|
100
|
+ <td colspan="3">
|
|
|
101
|
+ <div class="fileBox"></div>
|
|
|
102
|
+ <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;" />
|
|
|
103
|
+ <button class="input" type="button" id="scwj">上传</button>
|
|
|
104
|
+ <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
|
|
|
105
|
+ <input type="hidden" id="file" />
|
|
|
106
|
+ </br>
|
|
|
107
|
+ <span style="color:#FF0000; border: none;">
|
|
109
|
108
|
(文件格式为png,jpg,mp4,avi,wmv,mp3,pdf,doc,docx,xls,xlsx)
|
|
110
|
109
|
</span>
|
|
111
|
|
- </td>
|
|
112
|
|
- </tr>
|
|
113
|
|
- <tr class="secondBanli">
|
|
114
|
|
- <th>处理类型:</th>
|
|
115
|
|
- <td style="display: flex;">
|
|
116
|
|
- <input type="radio" value="1" name="banli" class="Nows" style="width: 30px;"/>当即办理
|
|
117
|
|
- <input checked="true" type="radio" value="0" name="banli" class="Nows_" style="width: 30px;"/>网络转办
|
|
118
|
|
- </td>
|
|
119
|
|
- </tr>
|
|
120
|
|
- <tr class="Nows_box Hidens">
|
|
121
|
|
- <th>办理内容:</th>
|
|
122
|
|
- <td colspan="3">
|
|
123
|
|
- <textarea type="text" id="result" placeholder="输入办理内容"></textarea>
|
|
124
|
|
- </td>
|
|
125
|
|
- </tr>
|
|
126
|
|
- </table>
|
|
127
|
|
- <div class="btn_box">
|
|
128
|
|
- <button class="btns SavedSubmit">提交</button>
|
|
129
|
|
- </div>
|
|
130
|
|
- </div>
|
|
131
|
|
-
|
|
132
|
|
- </div>
|
|
133
|
|
- </div>
|
|
134
|
|
- <script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
|
|
135
|
|
- <script src="../js/laydate/laydate.js"></script>
|
|
136
|
|
- <script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
137
|
|
- <script src="../js/adjustHeight.js"></script>
|
|
138
|
|
- <script src="./js/common.js"></script>
|
|
139
|
|
- <script src="./js/appeal.js"></script>
|
|
140
|
|
- <script>
|
|
141
|
|
- var submit,sourceareaObj,sourceObj,typeObj,infopropertyObj,banliValue;
|
|
142
|
|
- var wid = helper.request.queryString("wid");
|
|
143
|
|
- $(document).ready(function () {
|
|
144
|
|
- sourceareaObj = {
|
|
145
|
|
- ele:"#sourcearea",
|
|
146
|
|
- apiUrl:"Area/GetAreaListById",
|
|
147
|
|
- data:{
|
|
148
|
|
- textKey:'F_AreaName',
|
|
149
|
|
- valueKey:'F_AreaId'
|
|
150
|
|
- }
|
|
151
|
|
- }
|
|
152
|
|
- typeObj = {
|
|
153
|
|
- ele:"#type",
|
|
154
|
|
- id: 2
|
|
155
|
|
- }
|
|
156
|
|
- infopropertyObj = {
|
|
157
|
|
- ele:"#infoproperty",
|
|
158
|
|
- id: 406
|
|
159
|
|
- }
|
|
160
|
|
- if ($.cookie("code") === "WLDW") {
|
|
161
|
|
- $(".secondBanli").hide()
|
|
162
|
|
- }else{
|
|
163
|
|
- $(".secondBanli").show()
|
|
164
|
|
- }
|
|
165
|
|
- if (wid) {
|
|
166
|
|
- $(".daoHang").hide()
|
|
167
|
|
- getDetail()
|
|
168
|
|
- }else{
|
|
169
|
|
- $(".daoHang").show()
|
|
170
|
|
- //精准地域
|
|
171
|
|
- selectCommonFn(sourceareaObj)
|
|
172
|
|
- //舆情类型
|
|
173
|
|
- selectCommonFn(getDicObjFn(typeObj))
|
|
174
|
|
- //信息属性
|
|
175
|
|
- selectCommonFn(getDicObjFn(infopropertyObj))
|
|
176
|
|
- }
|
|
177
|
|
- laydate.render({
|
|
178
|
|
- elem: '#publishtime', //指定元素
|
|
179
|
|
- });
|
|
180
|
|
-
|
|
181
|
|
- //舆情来源
|
|
182
|
|
-// selectCommonFn(getDicObjFn("#source",1))
|
|
183
|
|
-
|
|
184
|
|
- tree()
|
|
185
|
|
- //当即办理
|
|
186
|
|
- $('input[name="banli"]').change(function () {
|
|
187
|
|
- var val = $(this).val();
|
|
188
|
|
- console.log(val)
|
|
189
|
|
- if (val == "1") {
|
|
190
|
|
- $(".Nows_box").show();
|
|
191
|
|
- } else {
|
|
192
|
|
- $(".Nows_box").hide();
|
|
193
|
|
- }
|
|
194
|
|
- })
|
|
195
|
|
- $('.SavedSubmit').click(function () {
|
|
196
|
|
- submit = 1;
|
|
197
|
|
- Add();
|
|
198
|
|
- })
|
|
199
|
|
- //上传附件
|
|
200
|
|
- $("#scwj").click(function () {
|
|
201
|
|
- $("#upFile").trigger("click");
|
|
202
|
|
- })
|
|
203
|
|
- $("#upFile").change(function () {
|
|
204
|
|
- upload();
|
|
205
|
|
- })
|
|
206
|
|
- });
|
|
207
|
|
-
|
|
208
|
|
- //添加工单
|
|
209
|
|
- function Add() {
|
|
210
|
|
- banliValue = $('input[name="banli"]:checked').val();
|
|
211
|
|
- if (!$("#title").val()) {
|
|
212
|
|
- layer.msg("请输入题目");
|
|
213
|
|
- } else if (!$("#cusname").val()) {
|
|
214
|
|
- layer.msg("请输入作者");
|
|
215
|
|
- } else if (!$("#keys").val()) {
|
|
216
|
|
- layer.msg("请输入内容简介");
|
|
217
|
|
- } else if (!$("#cusaddress").val()) {
|
|
218
|
|
- layer.msg("请输入主要地址");
|
|
219
|
|
- } else if (!$("#source").val()) {
|
|
220
|
|
- layer.msg("请输入舆情来源");
|
|
221
|
|
- } else if (banliValue == 1 && !$('#result').val()) {
|
|
222
|
|
- layer.msg("请输入直办内容");
|
|
223
|
|
- } else {
|
|
224
|
|
- if (wid) {
|
|
225
|
|
- apiUrl = "/WorkOrder/EditWorkOrder"
|
|
226
|
|
- }else {
|
|
227
|
|
- apiUrl = "/WorkOrder/AddWorkOrder"
|
|
228
|
|
- }
|
|
229
|
|
- addHandle(apiUrl)
|
|
230
|
|
- }
|
|
231
|
|
- }
|
|
|
110
|
+ </td>
|
|
|
111
|
+ </tr>
|
|
|
112
|
+ <tr class="secondBanli">
|
|
|
113
|
+ <th>处理类型:</th>
|
|
|
114
|
+ <td style="display: flex;">
|
|
|
115
|
+ <input type="radio" value="1" name="banli" class="Nows" style="width: 30px;" />当即办理
|
|
|
116
|
+ <input checked="true" type="radio" value="0" name="banli" class="Nows_" style="width: 30px;" />网络转办
|
|
|
117
|
+ </td>
|
|
|
118
|
+ </tr>
|
|
|
119
|
+ <tr class="Nows_box Hidens">
|
|
|
120
|
+ <th>办理内容:</th>
|
|
|
121
|
+ <td colspan="3">
|
|
|
122
|
+ <textarea type="text" id="result" placeholder="输入办理内容"></textarea>
|
|
|
123
|
+ </td>
|
|
|
124
|
+ </tr>
|
|
|
125
|
+ </table>
|
|
|
126
|
+ <div class="btn_box">
|
|
|
127
|
+ <button class="btns SavedSubmit">提交</button>
|
|
|
128
|
+ </div>
|
|
|
129
|
+ <div class="cutEvent">
|
|
|
130
|
+ <button class="btns">粘贴</button>
|
|
|
131
|
+ </div>
|
|
|
132
|
+
|
|
|
133
|
+ </div>
|
|
|
134
|
+
|
|
|
135
|
+ </div>
|
|
|
136
|
+ </div>
|
|
|
137
|
+ <div class="cutPop">
|
|
|
138
|
+ <textarea id="cutText" rows="12"></textarea>
|
|
|
139
|
+ <button class="btns cutTrue" style="margin-left: 46%;">确定</button>
|
|
|
140
|
+ </div>
|
|
|
141
|
+ <script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
|
|
|
142
|
+ <script src="../js/laydate/laydate.js"></script>
|
|
|
143
|
+ <script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
|
144
|
+ <script src="../js/adjustHeight.js"></script>
|
|
|
145
|
+ <script src="../js/module/clipboard.min.js"></script>
|
|
|
146
|
+ <script src="./js/common.js"></script>
|
|
|
147
|
+ <script src="./js/appeal.js"></script>
|
|
|
148
|
+ <script>
|
|
|
149
|
+ var pasteText
|
|
|
150
|
+ var submit, sourceareaObj, sourceObj, typeObj, infopropertyObj, banliValue;
|
|
|
151
|
+ var wid = helper.request.queryString("wid");
|
|
|
152
|
+ window.addEventListener("paste", function (e) {
|
|
|
153
|
+ const clipdata = e.clipboardData || window.clipboardData;
|
|
|
154
|
+ pasteText = clipdata.getData("text/plain")
|
|
|
155
|
+ });
|
|
|
156
|
+
|
|
|
157
|
+ $(document).ready(function() {
|
|
|
158
|
+ $(document).mouseup(function(e){
|
|
|
159
|
+ var _con = $('.cutPop '); // 设置目标区域
|
|
|
160
|
+ if(!_con.is(e.target) && _con.has(e.target).length === 0){ // Mark 1
|
|
|
161
|
+ $(".cutPop").hide()
|
|
|
162
|
+ }
|
|
|
163
|
+ });
|
|
|
164
|
+ //确定按钮
|
|
|
165
|
+ $(".cutTrue").click(function(){
|
|
|
166
|
+ $(".cutPop").hide()
|
|
|
167
|
+ setSubmitText()
|
|
|
168
|
+ })
|
|
|
169
|
+ //粘贴按钮
|
|
|
170
|
+ $(".cutEvent").click(function(){
|
|
|
171
|
+ $(".cutPop").show()
|
|
|
172
|
+ $("#cutText").val('')
|
|
|
173
|
+ })
|
|
|
174
|
+ sourceareaObj = {
|
|
|
175
|
+ ele: "#sourcearea",
|
|
|
176
|
+ apiUrl: "Area/GetAreaListById",
|
|
|
177
|
+ data: {
|
|
|
178
|
+ textKey: 'F_AreaName',
|
|
|
179
|
+ valueKey: 'F_AreaId'
|
|
|
180
|
+ }
|
|
|
181
|
+ }
|
|
|
182
|
+ typeObj = {
|
|
|
183
|
+ ele: "#type",
|
|
|
184
|
+ id: 2
|
|
|
185
|
+ }
|
|
|
186
|
+ infopropertyObj = {
|
|
|
187
|
+ ele: "#infoproperty",
|
|
|
188
|
+ id: 406
|
|
|
189
|
+ }
|
|
|
190
|
+ if($.cookie("code") === "WLDW") {
|
|
|
191
|
+ $(".secondBanli").hide()
|
|
|
192
|
+ } else {
|
|
|
193
|
+ $(".secondBanli").show()
|
|
|
194
|
+ }
|
|
|
195
|
+ if(wid) {
|
|
|
196
|
+ $(".daoHang").hide()
|
|
|
197
|
+ getDetail()
|
|
|
198
|
+ } else {
|
|
|
199
|
+ $(".daoHang").show()
|
|
|
200
|
+ //精准地域
|
|
|
201
|
+ selectCommonFn(sourceareaObj)
|
|
|
202
|
+ //舆情类型
|
|
|
203
|
+ selectCommonFn(getDicObjFn(typeObj))
|
|
|
204
|
+ //信息属性
|
|
|
205
|
+ selectCommonFn(getDicObjFn(infopropertyObj))
|
|
|
206
|
+ }
|
|
|
207
|
+ laydate.render({
|
|
|
208
|
+ elem: '#publishtime', //指定元素
|
|
|
209
|
+ });
|
|
|
210
|
+
|
|
|
211
|
+ //舆情来源
|
|
|
212
|
+ // selectCommonFn(getDicObjFn("#source",1))
|
|
|
213
|
+
|
|
|
214
|
+ tree()
|
|
|
215
|
+ //当即办理
|
|
|
216
|
+ $('input[name="banli"]').change(function() {
|
|
|
217
|
+ var val = $(this).val();
|
|
|
218
|
+ if(val == "1") {
|
|
|
219
|
+ $(".Nows_box").show();
|
|
|
220
|
+ } else {
|
|
|
221
|
+ $(".Nows_box").hide();
|
|
|
222
|
+ }
|
|
|
223
|
+ })
|
|
|
224
|
+ $('.SavedSubmit').click(function() {
|
|
|
225
|
+ submit = 1;
|
|
|
226
|
+ Add();
|
|
|
227
|
+ })
|
|
|
228
|
+ //上传附件
|
|
|
229
|
+ $("#scwj").click(function() {
|
|
|
230
|
+ $("#upFile").trigger("click");
|
|
|
231
|
+ })
|
|
|
232
|
+ $("#upFile").change(function() {
|
|
|
233
|
+ upload();
|
|
|
234
|
+ })
|
|
|
235
|
+ });
|
|
|
236
|
+
|
|
|
237
|
+
|
|
|
238
|
+
|
|
|
239
|
+ //添加工单
|
|
|
240
|
+ function Add() {
|
|
|
241
|
+ banliValue = $('input[name="banli"]:checked').val();
|
|
|
242
|
+ if(!$("#title").val()) {
|
|
|
243
|
+ layer.msg("请输入题目");
|
|
|
244
|
+ } else if(!$("#cusname").val()) {
|
|
|
245
|
+ layer.msg("请输入作者");
|
|
|
246
|
+ } else if(!$("#keys").val()) {
|
|
|
247
|
+ layer.msg("请输入内容简介");
|
|
|
248
|
+ } else if(!$("#cusaddress").val()) {
|
|
|
249
|
+ layer.msg("请输入主要地址");
|
|
|
250
|
+ } else if(!$("#source").val()) {
|
|
|
251
|
+ layer.msg("请输入舆情来源");
|
|
|
252
|
+ } else if(banliValue == 1 && !$('#result').val()) {
|
|
|
253
|
+ layer.msg("请输入直办内容");
|
|
|
254
|
+ } else {
|
|
|
255
|
+ if(wid) {
|
|
|
256
|
+ apiUrl = "/WorkOrder/EditWorkOrder"
|
|
|
257
|
+ } else {
|
|
|
258
|
+ apiUrl = "/WorkOrder/AddWorkOrder"
|
|
|
259
|
+ }
|
|
|
260
|
+ addHandle(apiUrl)
|
|
|
261
|
+ }
|
|
|
262
|
+ }
|
|
|
263
|
+
|
|
|
264
|
+ function addHandle(apiUrl) {
|
|
|
265
|
+ var dataParam = {
|
|
|
266
|
+ title: $("#title").val(), //题目
|
|
|
267
|
+ cusname: $("#cusname").val(), //投诉人姓名
|
|
|
268
|
+ keys: $("#keys").val(), //内容简介
|
|
|
269
|
+ cusaddress: $("#cusaddress").val(), //主要地址
|
|
|
270
|
+ sourcearea: $("#sourcearea").val(), //精准地域
|
|
|
271
|
+ publishtime: $("#publishtime").val(), //网络发布时间
|
|
|
272
|
+ sourceaddress: $("#sourceaddress").val(), //详细地址
|
|
|
273
|
+ source: $("#source").val(), //舆情来源
|
|
|
274
|
+ infoproperty: $("#infoproperty").val(), //信息属性
|
|
|
275
|
+ level: $("#level").val(), //舆情等级
|
|
|
276
|
+ type: $("#type").val(), //舆情类型
|
|
|
277
|
+ files: $("#file").val(), //附件(多个用英文逗号,隔开)
|
|
|
278
|
+ isresult: $.cookie("code") === "WLDW" ? 1 : banliValue, //=(0转办1直办)
|
|
|
279
|
+ result: $('#result').val(),
|
|
|
280
|
+ issubmit: 1,
|
|
|
281
|
+ token: $.cookie("token")
|
|
|
282
|
+ }
|
|
|
283
|
+ if(wid) {
|
|
|
284
|
+ resultParam = Object.assign(dataParam, {
|
|
|
285
|
+ workorderid: wid
|
|
|
286
|
+ })
|
|
|
287
|
+ } else {
|
|
|
288
|
+ resultParam = dataParam
|
|
|
289
|
+ }
|
|
|
290
|
+ $.ajax({
|
|
|
291
|
+ type: "post",
|
|
|
292
|
+ url: huayi.config.callcenter_url + apiUrl,
|
|
|
293
|
+ dataType: 'json',
|
|
|
294
|
+ async: true,
|
|
|
295
|
+ beforeSend: function() { //触发ajax请求开始时执行
|
|
|
296
|
+ $('.SavedSubmit').attr("disabled", true);
|
|
|
297
|
+ $('.SavedSubmit').text('提交中...');
|
|
|
298
|
+ $(document).off('click', '.SavedSubmit', Add);
|
|
|
299
|
+ },
|
|
|
300
|
+ data: dataParam,
|
|
|
301
|
+ success: function(data) {
|
|
|
302
|
+ $('.SavedSubmit').attr("disabled", false);
|
|
|
303
|
+ $('.SavedSubmit').text('保存并提交');
|
|
|
304
|
+ $(document).on('click', '.SavedSubmit', Add);
|
|
|
305
|
+ Clean();
|
|
|
306
|
+ $('.fileBox').html('');
|
|
|
307
|
+ if(wid) {
|
|
|
308
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
309
|
+ parent.layer.close(index); //再执行关闭
|
|
|
310
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
311
|
+ parent.layer.msg("修改工单成功");
|
|
|
312
|
+ } else {
|
|
|
313
|
+ layer.msg("创建工单成功");
|
|
|
314
|
+ }
|
|
|
315
|
+
|
|
|
316
|
+ }
|
|
|
317
|
+ });
|
|
|
318
|
+ }
|
|
|
319
|
+
|
|
|
320
|
+ function Clean() {
|
|
|
321
|
+ $("#title").val('')
|
|
|
322
|
+ $("#cusname").val('');
|
|
|
323
|
+ $("#keys").val('');
|
|
|
324
|
+ $("#cusaddress").val('');
|
|
|
325
|
+ $("#sourcearea").val('');
|
|
|
326
|
+ $("#publishtime").val('');
|
|
|
327
|
+ $('#sourceaddress').val('');
|
|
|
328
|
+ $("#source").val('');
|
|
|
329
|
+ $("#infoproperty").val('')
|
|
|
330
|
+ $("#level option:first").prop("selected", 'selected');
|
|
|
331
|
+ $("#type option:first").prop("selected", 'selected');
|
|
|
332
|
+ $("#file").val('')
|
|
|
333
|
+ $(".fileBox").html('')
|
|
|
334
|
+ $("input[name='baomi'][value='0']").prop("checked", true)
|
|
|
335
|
+ $('#result').val('');
|
|
|
336
|
+ }
|
|
|
337
|
+
|
|
|
338
|
+ function getDetail() {
|
|
|
339
|
+ $.ajax({
|
|
|
340
|
+ type: "get",
|
|
|
341
|
+ url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
|
|
|
342
|
+ dataType: 'json',
|
|
|
343
|
+ async: false,
|
|
|
344
|
+ data: {
|
|
|
345
|
+ workorderid: wid,
|
|
|
346
|
+ token: $.cookie("token")
|
|
|
347
|
+ },
|
|
|
348
|
+ success: function(data) {
|
|
|
349
|
+ if(data.state.toLowerCase() == "success") {
|
|
|
350
|
+ var Data = data.data.data;
|
|
|
351
|
+ $("#title").val(Data[0].F_ComTitle);
|
|
|
352
|
+ $("#cusname").val(Data[0].F_CusName);
|
|
|
353
|
+ $('#keys').val(Data[0].F_ComContent);
|
|
|
354
|
+ $("#cusaddress").val(Data[0].F_CusAddress)
|
|
|
355
|
+ $("#publishtime").val(Data[0].F_Hcdatetime)
|
|
|
356
|
+ $('#sourceaddress').val(Data[0].F_SourceAddress);
|
|
|
357
|
+ $("#source").val(Data[0].F_Event);
|
|
|
358
|
+ //精准地域
|
|
|
359
|
+ sourceareaObj.getText = Data[0].AreaName
|
|
|
360
|
+ sourceareaObj.getValue = Data[0].F_SourceArea + ''
|
|
|
361
|
+ selectCommonFn(sourceareaObj)
|
|
|
362
|
+ //信息属性
|
|
|
363
|
+ infopropertyObj.getValue = Data[0].F_InfoConBigType
|
|
|
364
|
+ infopropertyObj.getText = Data[0].infopropertyname
|
|
|
365
|
+ selectCommonFn(getDicObjFn(infopropertyObj))
|
|
|
366
|
+ //舆情类型
|
|
|
367
|
+ typeObj.getValue = Data[0].F_InfoType + ''
|
|
|
368
|
+ typeObj.getText = Data[0].TypeName1
|
|
|
369
|
+ selectCommonFn(getDicObjFn(typeObj))
|
|
|
370
|
+
|
|
|
371
|
+ $("#level").val(Data[0].F_Level + '');
|
|
|
372
|
+ if(Data[0].F_Level == "1") {
|
|
|
373
|
+ $("#level option:selected").text("普通"); //乡镇
|
|
|
374
|
+ } else {
|
|
|
375
|
+ $("#level option:selected").text("紧急");
|
|
|
376
|
+ }
|
|
232
|
377
|
|
|
233
|
|
- function addHandle(apiUrl){
|
|
234
|
|
- var dataParam = {
|
|
235
|
|
- title: $("#title").val(), //题目
|
|
236
|
|
- cusname: $("#cusname").val(), //投诉人姓名
|
|
237
|
|
- keys: $("#keys").val(), //内容简介
|
|
238
|
|
- cusaddress:$("#cusaddress").val(), //主要地址
|
|
239
|
|
- sourcearea: $("#sourcearea").val(), //精准地域
|
|
240
|
|
- publishtime:$("#publishtime").val(), //网络发布时间
|
|
241
|
|
- sourceaddress:$("#sourceaddress").val(), //详细地址
|
|
242
|
|
- source: $("#source").val(), //舆情来源
|
|
243
|
|
- infoproperty: $("#infoproperty").val(), //信息属性
|
|
244
|
|
- level: $("#level").val(), //舆情等级
|
|
245
|
|
- type: $("#type").val(), //舆情类型
|
|
246
|
|
- files: $("#file").val(), //附件(多个用英文逗号,隔开)
|
|
247
|
|
- isresult: $.cookie("code") === "WLDW" ?1:banliValue, //=(0转办1直办)
|
|
248
|
|
- result: $('#result').val(),
|
|
249
|
|
- issubmit:1,
|
|
250
|
|
- token: $.cookie("token")
|
|
251
|
|
- }
|
|
252
|
|
- if (wid) {
|
|
253
|
|
- resultParam = Object.assign(dataParam, {workorderid: wid})
|
|
254
|
|
- } else {
|
|
255
|
|
- resultParam = dataParam
|
|
256
|
|
- }
|
|
257
|
|
- $.ajax({
|
|
258
|
|
- type: "post",
|
|
259
|
|
- url: huayi.config.callcenter_url + apiUrl,
|
|
260
|
|
- dataType: 'json',
|
|
261
|
|
- async: true,
|
|
262
|
|
- beforeSend: function () { //触发ajax请求开始时执行
|
|
263
|
|
- $('.SavedSubmit').attr("disabled", true);
|
|
264
|
|
- $('.SavedSubmit').text('提交中...');
|
|
265
|
|
- $(document).off('click', '.SavedSubmit', Add);
|
|
266
|
|
- },
|
|
267
|
|
- data:dataParam,
|
|
268
|
|
- success: function (data) {
|
|
269
|
|
- $('.SavedSubmit').attr("disabled", false);
|
|
270
|
|
- $('.SavedSubmit').text('保存并提交');
|
|
271
|
|
- $(document).on('click', '.SavedSubmit', Add);
|
|
272
|
|
- Clean();
|
|
273
|
|
- $('.fileBox').html('');
|
|
274
|
|
- if (wid) {
|
|
275
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
276
|
|
- parent.layer.close(index); //再执行关闭
|
|
277
|
|
- parent.$('#orderlist').bootstrapTable('refresh');
|
|
278
|
|
- parent.layer.msg("修改工单成功");
|
|
279
|
|
- }else{
|
|
280
|
|
- layer.msg("创建工单成功");
|
|
281
|
|
- }
|
|
282
|
|
-
|
|
283
|
|
- }
|
|
284
|
|
- });
|
|
285
|
|
- }
|
|
286
|
|
- function Clean() {
|
|
287
|
|
- $("#title").val('')
|
|
288
|
|
- $("#cusname").val('');
|
|
289
|
|
- $("#keys").val('');
|
|
290
|
|
- $("#cusaddress").val('');
|
|
291
|
|
- $("#sourcearea").val('');
|
|
292
|
|
- $("#publishtime").val('');
|
|
293
|
|
- $('#sourceaddress').val('');
|
|
294
|
|
- $("#source").val('');
|
|
295
|
|
- $("#infoproperty").val('')
|
|
296
|
|
- $("#level option:first").prop("selected", 'selected');
|
|
297
|
|
- $("#type option:first").prop("selected", 'selected');
|
|
298
|
|
- $("#file").val('')
|
|
299
|
|
- $(".fileBox").html('')
|
|
300
|
|
- $("input[name='baomi'][value='0']").prop("checked", true)
|
|
301
|
|
- $('#result').val('');
|
|
302
|
|
- }
|
|
303
|
|
-
|
|
304
|
|
- function getDetail(){
|
|
305
|
|
- $.ajax({
|
|
306
|
|
- type: "get",
|
|
307
|
|
- url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
|
|
308
|
|
- dataType: 'json',
|
|
309
|
|
- async: false,
|
|
310
|
|
- data: {
|
|
311
|
|
- workorderid: wid,
|
|
312
|
|
- token: $.cookie("token")
|
|
313
|
|
- },
|
|
314
|
|
- success: function (data) {
|
|
315
|
|
- if (data.state.toLowerCase() == "success") {
|
|
316
|
|
- var Data = data.data.data;
|
|
317
|
|
- $("#title").val(Data[0].F_ComTitle);
|
|
318
|
|
- $("#cusname").val(Data[0].F_CusName);
|
|
319
|
|
- $('#keys').val(Data[0].F_ComContent);
|
|
320
|
|
- $("#cusaddress").val(Data[0].F_CusAddress)
|
|
321
|
|
- $("#publishtime").val(Data[0].F_Hcdatetime)
|
|
322
|
|
- $('#sourceaddress').val(Data[0].F_SourceAddress);
|
|
323
|
|
- $("#source").val(Data[0].F_Event);
|
|
324
|
|
- //精准地域
|
|
325
|
|
- sourceareaObj.getText = Data[0].AreaName
|
|
326
|
|
- sourceareaObj.getValue = Data[0].F_SourceArea + ''
|
|
327
|
|
- selectCommonFn(sourceareaObj)
|
|
328
|
|
- //信息属性
|
|
329
|
|
- infopropertyObj.getValue = Data[0].F_InfoConBigType
|
|
330
|
|
- infopropertyObj.getText = Data[0].infopropertyname
|
|
331
|
|
- selectCommonFn(getDicObjFn(infopropertyObj))
|
|
332
|
|
- //舆情类型
|
|
333
|
|
- typeObj.getValue = Data[0].F_InfoType+ ''
|
|
334
|
|
- typeObj.getText = Data[0].TypeName1
|
|
335
|
|
- selectCommonFn(getDicObjFn(typeObj))
|
|
336
|
|
-
|
|
337
|
|
- $("#level").val(Data[0].F_Level + '');
|
|
338
|
|
- if (Data[0].F_Level=="1") {
|
|
339
|
|
- $("#level option:selected").text("普通"); //乡镇
|
|
340
|
|
- } else{
|
|
341
|
|
- $("#level option:selected").text("紧急");
|
|
342
|
|
- }
|
|
343
|
|
-
|
|
344
|
|
-
|
|
345
|
|
- $(Data[0].File).each(function (k, q) {
|
|
346
|
|
- var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
347
|
|
- $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
|
|
348
|
|
- event.stopPropagation();
|
|
349
|
|
- $(this).parent().remove();
|
|
350
|
|
- file_num()
|
|
351
|
|
- })
|
|
352
|
|
- file_num()
|
|
353
|
|
- })
|
|
354
|
|
- if (Data[0].F_IsResult == 1) {
|
|
355
|
|
- $(".Nows_box").toggle();
|
|
356
|
|
- }
|
|
357
|
|
- $('input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
|
|
358
|
|
- $('input[name="banli"]').prop("disabled","disabled")
|
|
359
|
|
- $("#result").val(Data[0].F_Result);
|
|
360
|
|
- }
|
|
|
378
|
+ $(Data[0].File).each(function(k, q) {
|
|
|
379
|
+ var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
|
380
|
+ $(strs).appendTo($('.fileBox')).find('.del_file').click(function(event) {
|
|
|
381
|
+ event.stopPropagation();
|
|
|
382
|
+ $(this).parent().remove();
|
|
|
383
|
+ file_num()
|
|
|
384
|
+ })
|
|
|
385
|
+ file_num()
|
|
|
386
|
+ })
|
|
|
387
|
+ if(Data[0].F_IsResult == 1) {
|
|
|
388
|
+ $(".Nows_box").toggle();
|
|
|
389
|
+ }
|
|
|
390
|
+ $('input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
|
|
|
391
|
+ $('input[name="banli"]').prop("disabled", "disabled")
|
|
|
392
|
+ $("#result").val(Data[0].F_Result);
|
|
|
393
|
+ }
|
|
361
|
394
|
|
|
362
|
|
- }
|
|
363
|
|
- });
|
|
364
|
|
- }
|
|
365
|
|
- //上传文件隐藏域值
|
|
366
|
|
- function file_num() {
|
|
367
|
|
- var str = '';
|
|
368
|
|
- var Str;
|
|
369
|
|
- $('.fileBox .files').each(function (j, m) {
|
|
370
|
|
- var aa = $(m).attr("fiel-num")
|
|
371
|
|
- console.log(aa);
|
|
372
|
|
- str += aa + ",";
|
|
373
|
|
- Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
|
|
374
|
|
- })
|
|
375
|
|
- $("#file").val(Str);
|
|
376
|
|
- }
|
|
377
|
|
-
|
|
378
|
|
- </script>
|
|
379
|
|
-</body>
|
|
|
395
|
+ }
|
|
|
396
|
+ });
|
|
|
397
|
+ }
|
|
|
398
|
+ function setSubmitText(){
|
|
|
399
|
+
|
|
|
400
|
+ var code = pasteText.split(/[\r\n\t]/)
|
|
|
401
|
+ code = code.filter(item => item)
|
|
|
402
|
+ code.forEach(function(n){
|
|
|
403
|
+ var getValue = n.split(':').slice(-(n.split(':').length-1))
|
|
|
404
|
+ var newValue = getValue.join(':')
|
|
|
405
|
+ if (n.indexOf('原文链接')!== -1) {
|
|
|
406
|
+ $("#cusaddress").val(newValue)
|
|
|
407
|
+ }else if (n.indexOf('来源网站')!== -1) {
|
|
|
408
|
+ $("#source").val(newValue)
|
|
|
409
|
+ }else if (n.indexOf('内容')!== -1) {
|
|
|
410
|
+ $("#keys").val(newValue)
|
|
|
411
|
+ }else if (n.indexOf('发布时间')!== -1) {
|
|
|
412
|
+ $("#publishtime").val(newValue)
|
|
|
413
|
+ }else if (n.indexOf('标题')!== -1) {
|
|
|
414
|
+ $("#title").val(newValue)
|
|
|
415
|
+ }else if (n.indexOf('作者')!== -1) {
|
|
|
416
|
+ $("#cusname").val(newValue)
|
|
|
417
|
+ }
|
|
|
418
|
+
|
|
|
419
|
+ })
|
|
|
420
|
+ }
|
|
|
421
|
+ </script>
|
|
|
422
|
+ </body>
|
|
380
|
423
|
|
|
381
|
424
|
</html>
|