|
@@ -30,11 +30,11 @@ $(document).on('click', '.dalog-ask .answer', function() {
|
|
|
|
|
|
var questionId = $(this).find(".quesId").val();
|
|
|
var title = $(this).find("span").html();
|
|
|
- var desc = $(this).find("#questionProfile").html();
|
|
|
+ /*var desc = $(this).find("#questionProfile").html();*/
|
|
|
|
|
|
$("#questionId").val(questionId);
|
|
|
$("#describeTitle").val(title);
|
|
|
- UE.getEditor('describeContentText').setContent(desc);
|
|
|
+ /*UE.getEditor('describeContentText').setContent(desc);*/
|
|
|
|
|
|
//$("#answer-textarea").text();
|
|
|
$(".dalog-ask").hide(); //隐藏qa
|
|
@@ -140,13 +140,13 @@ var tool = [
|
|
|
];
|
|
|
|
|
|
/*问题描述*/
|
|
|
-var describeContentText = UE.getEditor('describeContentText', {
|
|
|
+/*var describeContentText = UE.getEditor('describeContentText', {
|
|
|
toolbars: [tool],
|
|
|
autoHeightEnabled: true,
|
|
|
autoFloatEnabled: true,
|
|
|
- elementPathEnabled : false,/*去掉元素路径*/
|
|
|
+ elementPathEnabled : false,/!*去掉元素路径*!/
|
|
|
zIndex : 5
|
|
|
-});
|
|
|
+});*/
|
|
|
/*处理描述*/
|
|
|
var describeHandleDescText = UE.getEditor('describeHandleDescText', {
|
|
|
toolbars: [tool],
|
|
@@ -744,7 +744,7 @@ function sendPhone(type,node){
|
|
|
phone = $("#p-phone").val();
|
|
|
questionId = $("#questionId").val();
|
|
|
describeTitle = $("#describeTitle").val();
|
|
|
- desc = UE.getEditor('describeContentText').getContent();
|
|
|
+ /*desc = UE.getEditor('describeContentText').getContent();*/
|
|
|
smallClassId = $("#smallClassId").val();
|
|
|
if(smallClassId == null || smallClassId == "" ){
|
|
|
layer.close(index);
|
|
@@ -761,11 +761,11 @@ function sendPhone(type,node){
|
|
|
layer.msg("问题标题长度不能高于50个字符!", {icon: 5, time: 3000});
|
|
|
return false;
|
|
|
}
|
|
|
- if(desc == null || desc == ""){
|
|
|
+ /*if(desc == null || desc == ""){
|
|
|
layer.close(index);
|
|
|
layer.msg("请填写问题回复!", {icon: 5, time: 3000});
|
|
|
return false;
|
|
|
- }
|
|
|
+ }*/
|
|
|
}else if(type == "m"){
|
|
|
phone = $("#m-phone").val();
|
|
|
questionId = complaint_questionId;
|
|
@@ -790,8 +790,7 @@ function sendPhone(type,node){
|
|
|
phone : phone,
|
|
|
questionId : questionId,
|
|
|
smallClassId : smallClassId,
|
|
|
- questionName : describeTitle,
|
|
|
- questionProfile : desc //回复内容
|
|
|
+ questionName : describeTitle
|
|
|
},
|
|
|
url: url_path + "/admin/customer/send_phone_sms",
|
|
|
async: true,
|
|
@@ -834,7 +833,6 @@ function saveQuestion(type){
|
|
|
|
|
|
questionId = $("#questionId").val();
|
|
|
describeTitle = $("#describeTitle").val();
|
|
|
- desc = UE.getEditor('describeContentText').getContent();
|
|
|
smallClassId = $("#smallClassId").val();
|
|
|
if((smallClassId == null || smallClassId == "") && (questionId == null || questionId == "") ){
|
|
|
layer.close(index);
|
|
@@ -846,19 +844,13 @@ function saveQuestion(type){
|
|
|
layer.msg("请填写问题标题!", {icon: 5, time: 3000});
|
|
|
return false;
|
|
|
}
|
|
|
- if(desc == null || desc == ""){
|
|
|
- layer.close(index);
|
|
|
- layer.msg("请填写问题回复!", {icon: 5, time: 3000});
|
|
|
- return false;
|
|
|
- }
|
|
|
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
data: {
|
|
|
questionId : questionId,
|
|
|
smallClassId : smallClassId,
|
|
|
- questionName : describeTitle,
|
|
|
- questionProfile : desc //回复内容
|
|
|
+ questionName : describeTitle
|
|
|
},
|
|
|
url: url_path + "/admin/complaintQuestion/save_question",
|
|
|
async: false,
|
|
@@ -1277,18 +1269,7 @@ function addCustomerReady(){
|
|
|
vailErrorMsg($("#questionId"),"未保存QA!");
|
|
|
return false;
|
|
|
}
|
|
|
- var describeContentText = UE.getEditor('describeContentText').getContent();
|
|
|
- if(describeContentText == null || describeContentText == ""){
|
|
|
- //layer.msg("未填写问题描述", {icon: 5, time: 3000});
|
|
|
- vailErrorMsg($("#describeTitle"),"未填写问题描述");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if(describeContentText.length > 3000){
|
|
|
- vailErrorMsg($("#describeContent"),"问题回复最大支持3000个字符");
|
|
|
- return false;
|
|
|
- }
|
|
|
- $("#describeContent").val(describeContentText);
|
|
|
- /*----问题描述--end-----*/
|
|
|
+
|
|
|
|
|
|
/*----处理描述- start --*/
|
|
|
var describeHandleDescText = UE.getEditor('describeHandleDescText').getContent();
|
|
@@ -1442,7 +1423,6 @@ function selectOnCustomer() {
|
|
|
' <td style="text-align: center;">'+onCustomer.customerTel +'</td>' +
|
|
|
' <td style="text-align: center;">'+customerIsSolve +'</td>' +
|
|
|
' <td style="text-align: center;">'+onCustomer.describeTitle +'</td>' +
|
|
|
- ' <td style="text-align: center;"><span class="txt2" style="display: inline-block;padding: 2px 4px;font-size: 11.844px;" title="'+onCustomer.describeContent +'" >'+onCustomer.describeContent +'</span></td>' +
|
|
|
' <td style="text-align: center;"><a onclick="admin_update_customer('+onCustomer.customerId +')">继续跟进</a>' +
|
|
|
'<br><a onclick="markedSecondary('+onCustomer.customerId +','+onCustomer.customerInitialId +',this)">标记为二次售后</a>' +
|
|
|
'<a style="display: none;" onclick="cancelMarkedSecondary('+onCustomer.customerId+','+onCustomer.customerInitialId +',this)">取消二次售后标记</a></td>' +
|