|
|
@@ -1,7 +1,7 @@
|
|
1
|
1
|
|
|
2
|
2
|
var ids=helper.request.queryString("ids");
|
|
3
|
3
|
var depId=helper.request.queryString("depId");
|
|
4
|
|
-
|
|
|
4
|
+var demandsid=helper.request.queryString("wid");
|
|
5
|
5
|
//编辑器配置
|
|
6
|
6
|
KindEditor.ready(function(K) {
|
|
7
|
7
|
window.baseon = K.create('#baseon', {
|
|
|
@@ -40,7 +40,13 @@ var depId=helper.request.queryString("depId");
|
|
40
|
40
|
});
|
|
41
|
41
|
|
|
42
|
42
|
$(document).ready(function() {
|
|
43
|
|
-
|
|
|
43
|
+ if(depId==99999){
|
|
|
44
|
+ var isurgent=1
|
|
|
45
|
+// $('.radio-inline input').attr('checked','false');
|
|
|
46
|
+// $('.radio-inline input:first').attr('checked','true');
|
|
|
47
|
+ }else{
|
|
|
48
|
+ var isurgent=0
|
|
|
49
|
+ }
|
|
44
|
50
|
$('.tab_list li').click(function() {
|
|
45
|
51
|
var index = $(this).index();
|
|
46
|
52
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
@@ -49,9 +55,13 @@ $(document).ready(function() {
|
|
49
|
55
|
|
|
50
|
56
|
|
|
51
|
57
|
$('.save').click(function(){
|
|
52
|
|
- saveCon();
|
|
|
58
|
+ issubmit=0;
|
|
|
59
|
+ saveCon(issubmit);
|
|
|
60
|
+ })
|
|
|
61
|
+ $('.savetj').click(function(){
|
|
|
62
|
+ issubmit=1;
|
|
|
63
|
+ saveCon(issubmit);
|
|
53
|
64
|
})
|
|
54
|
|
-
|
|
55
|
65
|
//上传附件
|
|
56
|
66
|
$("#scwj").click(function() {
|
|
57
|
67
|
$("#upFile").trigger("click");
|
|
|
@@ -62,6 +72,9 @@ $(document).ready(function() {
|
|
62
|
72
|
|
|
63
|
73
|
//保存
|
|
64
|
74
|
function saveCon(){
|
|
|
75
|
+ if(!demandsid){
|
|
|
76
|
+ demandsid=''
|
|
|
77
|
+ }
|
|
65
|
78
|
var paymoney=$('#paymoney').val()*1;
|
|
66
|
79
|
var a=paymoney.toFixed(2)
|
|
67
|
80
|
// var reg=/^([+-]?)\d*\.?\d+$/;
|
|
|
@@ -122,11 +135,12 @@ $(document).ready(function() {
|
|
122
|
135
|
// }
|
|
123
|
136
|
$.ajax({
|
|
124
|
137
|
type:'post',
|
|
125
|
|
- url:huayi.config.callcenter_url +'Repository/AddRepository',
|
|
|
138
|
+ url:huayi.config.callcenter_url +'Repository/SaveRepository',
|
|
126
|
139
|
async:true,
|
|
127
|
140
|
dataType:'json',
|
|
128
|
141
|
data:{
|
|
129
|
142
|
token:$.cookie("token"),
|
|
|
143
|
+ demandsid:demandsid,//索要记录添加到知识库id
|
|
130
|
144
|
deptid:depId,//单位id
|
|
131
|
145
|
id:ids,//知识库id
|
|
132
|
146
|
key:$('#key').val(),//关键字
|
|
|
@@ -138,11 +152,14 @@ $(document).ready(function() {
|
|
138
|
152
|
privatephone2:$('#privatephone2').val(),//内部电话2
|
|
139
|
153
|
points:$('#points').val(),//询问要点
|
|
140
|
154
|
baseanswer:$('#baseanswer').val(),//标准话术
|
|
141
|
|
- endanswer:$('#endanswer').val(),//结案参考
|
|
|
155
|
+ endanswer:$('#endanswer').val(),//参考答案
|
|
142
|
156
|
dealtype:$('#dealtype').val(),//办理方式
|
|
143
|
157
|
legallimittime:$('#legallimittime').val(),//法定办结时限
|
|
144
|
158
|
promiselimittime:$('#promiselimittime').val(),//承诺办结时限
|
|
145
|
|
- ispay: $('input[name="ispay"]:checked ').val(),//是否收费
|
|
|
159
|
+// ispay: $('input[name="ispay"]:checked ').val(),//是否收费
|
|
|
160
|
+ issubmit: issubmit,//是否审核
|
|
|
161
|
+// isurgent: $('input[name="isUrgency"]:checked ').val(),//是否紧急事项
|
|
|
162
|
+ isurgent: isurgent,//是否紧急事项 1是 0 否
|
|
146
|
163
|
paymoney: a,//收费标准
|
|
147
|
164
|
officeaddress: $('#officeaddress').val(),//办公地点
|
|
148
|
165
|
serobject: $('#serobject').val(),//办理对象
|
|
|
@@ -161,15 +178,39 @@ $(document).ready(function() {
|
|
161
|
178
|
},
|
|
162
|
179
|
success:function(data){
|
|
163
|
180
|
if(data.state.toLowerCase()=='success'){
|
|
|
181
|
+ debugger
|
|
164
|
182
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
165
|
183
|
parent.layer.close(index); //再执行关闭
|
|
166
|
184
|
parent.layer.msg(data.message); //再执行关闭
|
|
167
|
185
|
parent.$('#table1').bootstrapTable('refresh'); //再执行关闭
|
|
|
186
|
+ parent.$('#orderlist').bootstrapTable('refresh'); //再执行关闭
|
|
168
|
187
|
}
|
|
169
|
188
|
|
|
170
|
189
|
}
|
|
171
|
190
|
});
|
|
172
|
191
|
}
|
|
|
192
|
+
|
|
|
193
|
+ if(depId&&depId!=99999&&depId!=0){
|
|
|
194
|
+ $.ajax({
|
|
|
195
|
+ type:"get",
|
|
|
196
|
+ url:huayi.config.callcenter_url +"Department/GetDept",
|
|
|
197
|
+ async:true,
|
|
|
198
|
+ dataType:'json',
|
|
|
199
|
+ data:{
|
|
|
200
|
+ token: $.cookie("token"),
|
|
|
201
|
+ id:depId
|
|
|
202
|
+ },
|
|
|
203
|
+ success:function(result){
|
|
|
204
|
+ if(result.state.toLowerCase()=='success'){
|
|
|
205
|
+ var con=result.data;
|
|
|
206
|
+ $('#mechanism').val(con.F_Remark);
|
|
|
207
|
+ }
|
|
|
208
|
+
|
|
|
209
|
+ }
|
|
|
210
|
+ });
|
|
|
211
|
+ }else{
|
|
|
212
|
+ $('.mechanism').css('display','none')
|
|
|
213
|
+ }
|
|
173
|
214
|
//获取知识库详情
|
|
174
|
215
|
if(ids){
|
|
175
|
216
|
$.ajax({
|
|
|
@@ -198,7 +239,8 @@ $(document).ready(function() {
|
|
198
|
239
|
$('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
|
|
199
|
240
|
$('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
|
|
200
|
241
|
// $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
|
|
201
|
|
- $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
|
|
|
242
|
+// $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked"),//是否收费
|
|
|
243
|
+ $('input[name="isUrgency"][value="'+con.F_IsPay+'"]').prop("checked","checked"),//是否紧急事项
|
|
202
|
244
|
$('#paymoney').val(con.F_PayMoney);//收费标准
|
|
203
|
245
|
$('#officeaddress').val(con.F_OfficeAddress);//办公地点
|
|
204
|
246
|
$('#serobject').val(con.F_Object);//办理对象
|
|
|
@@ -208,18 +250,14 @@ $(document).ready(function() {
|
|
208
|
250
|
$('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
|
|
209
|
251
|
$('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
|
|
210
|
252
|
$('#remark').val(con.F_Remark);//备注
|
|
|
253
|
+ var wjjlistdata=result.data.wjjlist
|
|
|
254
|
+ $('#error_record').bootstrapTable('load', wjjlistdata);//纠错信息
|
|
211
|
255
|
baseon.html(con.F_BaseOn);
|
|
212
|
256
|
process.html(con.F_Process);
|
|
213
|
257
|
material.html(con.F_Material);
|
|
214
|
258
|
template.html(con.F_Template);
|
|
215
|
259
|
payinfo.html(con.F_PayInfo);
|
|
216
|
260
|
depId=con.F_DeptId;
|
|
217
|
|
-// $('#baseon').val(con.F_BaseOn);//设定依据
|
|
218
|
|
-// $('#process').val(con.F_Process);//办理流程
|
|
219
|
|
-// $('#material').val(con.F_Material);//办理材料
|
|
220
|
|
-// $('#template').val(con.F_Template);//办理结果样本
|
|
221
|
|
-// $('#payinfo').val(con.F_PayInfo);//收费标准及依据
|
|
222
|
|
- // $('#files').val() //收费标准及依据
|
|
223
|
261
|
$(result.data.file).each(function(k,q){
|
|
224
|
262
|
var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'<i class="fa fa-remove del_file"></i></span>'
|
|
225
|
263
|
$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
|
|
|
@@ -237,7 +275,7 @@ $(document).ready(function() {
|
|
237
|
275
|
});
|
|
238
|
276
|
|
|
239
|
277
|
}
|
|
240
|
|
-
|
|
|
278
|
+ $('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
|
|
241
|
279
|
|
|
242
|
280
|
})
|
|
243
|
281
|
|