|
@@ -895,14 +895,13 @@ function saveQuestion(type){
|
|
|
questionProfile : desc //回复内容
|
|
|
},
|
|
|
url: url_path + "/admin/complaintQuestion/save_question",
|
|
|
- async: true,
|
|
|
+ async: false,
|
|
|
success: function(data){
|
|
|
if (data.returnCode == 200) {
|
|
|
$("#questionId").val(data.returnMsg.questionId);
|
|
|
if(type == 1){
|
|
|
layer.msg(data.resultMsg, {icon: 1, time: 3000});
|
|
|
}
|
|
|
-
|
|
|
}else{
|
|
|
if(type == 1) {
|
|
|
layer.msg(data.resultMsg, {icon: 5, time: 3000});
|
|
@@ -1478,7 +1477,6 @@ $(function(){
|
|
|
tipSweep: true, //若为true,则只在表单提交时验证
|
|
|
ajaxPost: true, //异步提交
|
|
|
beforeCheck: function (curform) { //验证通过之前执行的函数
|
|
|
-
|
|
|
},
|
|
|
beforeSubmit: function (curform) { //验证通过之后执行的函数
|
|
|
var flag = addCustomerReady();
|
|
@@ -1506,6 +1504,7 @@ $(function(){
|
|
|
function addCustomerReady(){
|
|
|
//保存AQ
|
|
|
saveQuestion(2);
|
|
|
+
|
|
|
/* 录入电话号码和姓名到客诉基本信息里面 */
|
|
|
/*if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 5 || allCustomerType == 6 || allCustomerType == 7){
|
|
|
$("#customerName").val($("#sendName").val());
|
|
@@ -1572,6 +1571,11 @@ function addCustomerReady(){
|
|
|
/* 地址拼接 */
|
|
|
|
|
|
/*----问题描述- start --*/
|
|
|
+ var quId = $("#questionId").val();
|
|
|
+ if(quId == null || quId == ""){
|
|
|
+ vailErrorMsg($("#questionId"),"未保存QA!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
var describeContentText = UE.getEditor('describeContentText').getContent();
|
|
|
if(describeContentText == null || describeContentText == ""){
|
|
|
//layer.msg("未填写问题描述", {icon: 5, time: 3000});
|