1;往后台传多值问题
function newstatust(p6id,referencenumber,taskId)
{
$.ajax({
type : "post",
url : "newstatus.action",
data : {p6OrderId:p6id,referencenumber:referencenumber,taskId:taskId},
success : function(data) {
if(data != "" && data != null){
var arry = data.split("/");
if(arry[4]=='D'){
newstatush(p6id);
}else if(arry[4]=='U'){
alert("ITMS工单撤销中,请报障处理!");
}else if(arry[4]=='R'||arry[4]=='A'){
if(arry[1] =='98' && arry[2] =='3'){
if(confirm("ITMS工单未回单,是否确定强制回单?"))
{
newstatuso(p6id,arry[0]);
}
else
{
return false;
}
}else if(arry[1] =='0' && arry[2] =='3'){
newstatuo(p6id,arry[0]);
alert("ITMS工单已回单,请等待订单流转!");
}else if(arry[1] =='0' && arry[2] =='6'|| arry[2] =='7'|| arry[2] =='8'){
newstatusr(p6id,arry[0]);
alert("ITMS工单已回单,请等待订单流转!");
}else if(arry[1] =='89' && arry[2] =='3'|| arry[2] =='5'){
if(confirm("ITMS工单退单,'"+arry[3]+"'为退单原因,是否确定强制回单?"))
{
newstatuso(p6id,arry[0]);
}
else
{
return false;
}
}else if(arry[1] =='99' && arry[2] =='3'){
alert("ITMS工单已派发,平台未回复,请转ITMS平台查证工单接口是否正常!");
}
}
}
}
});
}
2:回调函数乱码处理
result = its.newstatus(p6OrderId,referencenumber,taskId);
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("text/html;charset=utf-8");
response.setHeader("Charset","utf-8");
PrintWriter out = response.getWriter();
out.print(result);
function newstatust(p6id,referencenumber,taskId)
{
$.ajax({
type : "post",
url : "newstatus.action",
data : {p6OrderId:p6id,referencenumber:referencenumber,taskId:taskId},
success : function(data) {
if(data != "" && data != null){
var arry = data.split("/");
if(arry[4]=='D'){
newstatush(p6id);
}else if(arry[4]=='U'){
alert("ITMS工单撤销中,请报障处理!");
}else if(arry[4]=='R'||arry[4]=='A'){
if(arry[1] =='98' && arry[2] =='3'){
if(confirm("ITMS工单未回单,是否确定强制回单?"))
{
newstatuso(p6id,arry[0]);
}
else
{
return false;
}
}else if(arry[1] =='0' && arry[2] =='3'){
newstatuo(p6id,arry[0]);
alert("ITMS工单已回单,请等待订单流转!");
}else if(arry[1] =='0' && arry[2] =='6'|| arry[2] =='7'|| arry[2] =='8'){
newstatusr(p6id,arry[0]);
alert("ITMS工单已回单,请等待订单流转!");
}else if(arry[1] =='89' && arry[2] =='3'|| arry[2] =='5'){
if(confirm("ITMS工单退单,'"+arry[3]+"'为退单原因,是否确定强制回单?"))
{
newstatuso(p6id,arry[0]);
}
else
{
return false;
}
}else if(arry[1] =='99' && arry[2] =='3'){
alert("ITMS工单已派发,平台未回复,请转ITMS平台查证工单接口是否正常!");
}
}
}
}
});
}
2:回调函数乱码处理
result = its.newstatus(p6OrderId,referencenumber,taskId);
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("text/html;charset=utf-8");
response.setHeader("Charset","utf-8");
PrintWriter out = response.getWriter();
out.print(result);