|
|
@@ -97,6 +97,7 @@ function GDLY(){
|
|
97
|
97
|
var Count = data.data;
|
|
98
|
98
|
$(Count).each(function(i, n) {
|
|
99
|
99
|
$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
|
|
|
100
|
+ $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
|
|
100
|
101
|
|
|
101
|
102
|
})
|
|
102
|
103
|
}
|
|
|
@@ -133,6 +134,7 @@ $.ajax({
|
|
133
|
134
|
$("#testInput3_input").val(data.Address);
|
|
134
|
135
|
$("#testInput4_input").val(data.Source);
|
|
135
|
136
|
$("#typeclass").val(data.GDLXName);
|
|
|
137
|
+ $("#typeclass_market").val(data.GDLXName);
|
|
136
|
138
|
// $("#feedBackCon").text(decodeURIComponent(data.Detail));
|
|
137
|
139
|
changeEditor.html(data.Detail);
|
|
138
|
140
|
// changeMarket.html(decodeURIComponent(data.Detail));
|
|
|
@@ -151,8 +153,10 @@ $.ajax({
|
|
151
|
153
|
$("#State").val(state_);
|
|
152
|
154
|
$("#States").val(data.State);
|
|
153
|
155
|
$("#DicValueList").val(data.Type);
|
|
|
156
|
+ $("#DicValueList_market").val(data.Type);
|
|
154
|
157
|
console.log(data.GDLYName)
|
|
155
|
158
|
$("#typeclassId").val(data.TypeClass);
|
|
|
159
|
+ $("#typeclassId_market").val(data.TypeClass);
|
|
156
|
160
|
|
|
157
|
161
|
}
|
|
158
|
162
|
}
|
|
|
@@ -165,6 +169,7 @@ function getOrderType() {
|
|
165
|
169
|
}, function(result) {
|
|
166
|
170
|
result = $.parseJSON(result);
|
|
167
|
171
|
$.fn.zTree.init($("#TreeDemo"), setting3, result.data); //实例化树形图
|
|
|
172
|
+ $.fn.zTree.init($("#TreeDemo_market"), setting3, result.data); //实例化树形图
|
|
168
|
173
|
});
|
|
169
|
174
|
}
|
|
170
|
175
|
var setting3 = {
|
|
|
@@ -188,6 +193,8 @@ function changeTreeClick(event, treeId, treeNode) {
|
|
188
|
193
|
var changeName = treeNode.text;
|
|
189
|
194
|
$('#typeclass').val(changeName);
|
|
190
|
195
|
$('#typeclassId').val(chanId);
|
|
|
196
|
+ $('#typeclass_market').val(changeName);
|
|
|
197
|
+ $('#typeclassId_market').val(chanId);
|
|
191
|
198
|
var pidnode = treeNode.getParentNode();
|
|
192
|
199
|
};
|
|
193
|
200
|
|
|
|
@@ -205,6 +212,20 @@ $('.treeList').mouseleave(function() {
|
|
205
|
212
|
$(this).css('display', 'none')
|
|
206
|
213
|
})
|
|
207
|
214
|
|
|
|
215
|
+$('.down_market').click(function() {
|
|
|
216
|
+ if($('.treeList_market').css('display') == 'block') {
|
|
|
217
|
+ $('.treeList_market').css('display', 'none')
|
|
|
218
|
+ } else {
|
|
|
219
|
+ $('.treeList_market').css('display', 'block')
|
|
|
220
|
+ }
|
|
|
221
|
+})
|
|
|
222
|
+$('#typeclass_market').click(function() {
|
|
|
223
|
+ $('.treeList_market').css('display', 'block')
|
|
|
224
|
+})
|
|
|
225
|
+$('.treeList_market').mouseleave(function() {
|
|
|
226
|
+ $(this).css('display', 'none')
|
|
|
227
|
+})
|
|
|
228
|
+
|
|
208
|
229
|
//来电单位
|
|
209
|
230
|
function getAccount(obj) {
|
|
210
|
231
|
$.ajax({
|
|
|
@@ -295,6 +316,8 @@ function saveMarket() {
|
|
295
|
316
|
customer: $('#name_market').val(), //姓名
|
|
296
|
317
|
lddep: $('#testInput3_input').val(), //来电单位
|
|
297
|
318
|
fkdep: $('#testInput4_input').val(), //反馈单位
|
|
|
319
|
+ type: $('#DicValueList_market').val(), //工单来源
|
|
|
320
|
+ typeclass: $('#typeclassId_market').val(), //工单类型id
|
|
298
|
321
|
// detail:encodeURIComponent(changeMarket.html()), //备注
|
|
299
|
322
|
detail:helper.HtmlUtil.htmlEncodeByRegExp(changeMarket.html()), //备注
|
|
300
|
323
|
},
|
|
|
@@ -320,6 +343,7 @@ function clear() {
|
|
320
|
343
|
$('#testInput2_input').val(''); //反馈单位
|
|
321
|
344
|
$('#orderSource').val(''); //工单来源
|
|
322
|
345
|
$('#typeclassId').val(''); //工单类型id
|
|
|
346
|
+
|
|
323
|
347
|
$('#State').val(''); //工单状态id
|
|
324
|
348
|
changeEditor.html('') //反馈内容
|
|
325
|
349
|
$('#express').val(''); //快递信息
|
|
|
@@ -331,6 +355,7 @@ function clear() {
|
|
331
|
355
|
$('#tel_market').val(''); //号码
|
|
332
|
356
|
$('#testInput3_input').val(''); //来电单位
|
|
333
|
357
|
$('#testInput4_input').val(''); //反馈单位
|
|
|
358
|
+ $('#typeclassId_market').val(''); //工单类型id
|
|
334
|
359
|
changeMarket.html('') //反馈内容
|
|
335
|
360
|
// $('#remark_market').val(''); //备注内容
|
|
336
|
361
|
}
|