JLR1.0
This commit is contained in:
871
.idea/workspace.xml
generated
871
.idea/workspace.xml
generated
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,7 @@ package com.zhongdao.jlr.business.action;
|
||||
import com.util.RequestUtil;
|
||||
import com.util.Vo;
|
||||
import com.zhongdao.jlr.business.service.CasesListService;
|
||||
import com.zhongdao.jlr.business.vo.LoginUserVo;
|
||||
import net.sf.json.JSON;
|
||||
import net.sf.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@ -51,8 +49,6 @@ public class CasesAction {
|
||||
@RequestMapping(value = "/caseEnter.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public String caseEnter(HttpServletRequest request, HttpServletResponse response) {
|
||||
//获取登录信息
|
||||
LoginUserVo loginInfo=(LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
//获取参数
|
||||
String state = request.getParameter("state");
|
||||
//共享数据
|
||||
@ -60,6 +56,19 @@ public class CasesAction {
|
||||
return "/page/caseInfoEnter";
|
||||
}
|
||||
|
||||
/*
|
||||
* 跳转路修工单页面
|
||||
* */
|
||||
@RequestMapping(value = "/caseRepair.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public String caseRepair(HttpServletRequest request, HttpServletResponse response) {
|
||||
//获取参数
|
||||
String state = request.getParameter("state");
|
||||
//共享数据
|
||||
request.setAttribute("state", state);
|
||||
return "/page/caseInfoRepair";
|
||||
}
|
||||
|
||||
/*
|
||||
* 获取道路救援案件信息
|
||||
* */
|
||||
@ -101,6 +110,37 @@ public class CasesAction {
|
||||
RequestUtil.responseResult4Json(response, RequestUtil.ObjecttoJsonString(vo));
|
||||
}
|
||||
|
||||
/*
|
||||
* 获取缺失维修信息救援案件信息
|
||||
* */
|
||||
@RequestMapping(value = "/caseEnterQueryrRepair.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public void caseEnterQueryrRepair(HttpServletRequest request, HttpServletResponse response) {
|
||||
//获取进店救援案件信息
|
||||
Vo vo = casesListService.caseEnterQueryRepair(request);
|
||||
//将救援信息响应到客户端
|
||||
RequestUtil.responseResult4Json(response, RequestUtil.ObjecttoJsonString(vo));
|
||||
}
|
||||
|
||||
/*
|
||||
* 获取路修案件信息
|
||||
* */
|
||||
@RequestMapping(value = "/caseRepairQuery.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public void caseRepairQuery(HttpServletRequest request, HttpServletResponse response) {
|
||||
//获取参数
|
||||
String caseCode = request.getParameter("caseCode");// 案件编号
|
||||
String frame_code = request.getParameter("frame_code");// VIN码
|
||||
String createTime = request.getParameter("createTime");//开始时间
|
||||
String finishTime = request.getParameter("finishTime");//结束时间
|
||||
String state = request.getParameter("state");//结束时间
|
||||
//获取进店救援案件信息
|
||||
Vo vo = casesListService.caseRepairQuery(state,request,caseCode,
|
||||
frame_code,createTime, finishTime);
|
||||
//将救援信息响应到客户端
|
||||
RequestUtil.responseResult4Json(response, RequestUtil.ObjecttoJsonString(vo));
|
||||
}
|
||||
|
||||
/*
|
||||
* 救援案件详情信息
|
||||
* */
|
||||
@ -117,7 +157,26 @@ public class CasesAction {
|
||||
request.setAttribute("info",vo);
|
||||
request.setAttribute("state",state);
|
||||
//跳转页面
|
||||
return "/page/caseDetail";
|
||||
return "page/caseDetails";
|
||||
}
|
||||
|
||||
/*
|
||||
* 路修案件详情信息
|
||||
* */
|
||||
@RequestMapping(value = "/caseRepairInfo.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public String caseRepairInfo(HttpServletRequest request, HttpServletResponse response) {
|
||||
//获取参数
|
||||
String caseCode = request.getParameter("code");// 案件编号
|
||||
String tid = request.getParameter("tid");//任务编号
|
||||
String state = request.getParameter("state");//任务编号
|
||||
//获取进店救援案件详情信息
|
||||
Vo vo = casesListService.caseRepairInfo(request,caseCode,tid);
|
||||
//共享数据
|
||||
request.setAttribute("info",vo);
|
||||
request.setAttribute("state",state);
|
||||
//跳转页面
|
||||
return "page/caseDetails";
|
||||
}
|
||||
|
||||
/*
|
||||
@ -141,7 +200,7 @@ public class CasesAction {
|
||||
}
|
||||
|
||||
/*
|
||||
*导出数据EXCEl格式
|
||||
*导出进店工单数据EXCEl格式
|
||||
* */
|
||||
@RequestMapping(value = "/exportData.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
@ -151,7 +210,17 @@ public class CasesAction {
|
||||
}
|
||||
|
||||
/*
|
||||
*导出数据CSV
|
||||
*导出路修工单数据EXCEl格式
|
||||
* */
|
||||
@RequestMapping(value = "/exportDataRepair.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public void exportDataRepair(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
JSONObject jsonObject = casesListService.exportDataRepair(request);
|
||||
RequestUtil.responseResult4Json(response, jsonObject.toString());
|
||||
}
|
||||
|
||||
/*
|
||||
*导出进店工单数据CSV
|
||||
* */
|
||||
@RequestMapping(value = "/exportDataCSV.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
@ -160,6 +229,16 @@ public class CasesAction {
|
||||
RequestUtil.responseResult4Json(response, jsonObject.toString());
|
||||
}
|
||||
|
||||
/*
|
||||
*导出路修工单数据CSV
|
||||
* */
|
||||
@RequestMapping(value = "/exportDataCSVRepair.do", produces = "text/html;chrset=UTF-8", method = {RequestMethod.GET,
|
||||
RequestMethod.POST})
|
||||
public void exportDataCSVRepair(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
JSONObject jsonObject = casesListService.exportCSVDataRepair(request, response);
|
||||
RequestUtil.responseResult4Json(response, jsonObject.toString());
|
||||
}
|
||||
|
||||
/*
|
||||
* 救援完成确认
|
||||
* */
|
||||
|
@ -30,12 +30,36 @@ public interface CaseDao extends Dao {
|
||||
*/
|
||||
Vo caseEnterQuery(String state,HttpServletRequest request,String caseCode,String frame_code,String createTime,String finishTime);
|
||||
|
||||
/***
|
||||
* 获取缺失维修信息进店救援案件信息
|
||||
* @return
|
||||
*/
|
||||
Vo caseEnterQueryRepair(HttpServletRequest request);
|
||||
|
||||
/***
|
||||
* 获取路修救援案件信息
|
||||
* @param request
|
||||
* @param caseCode
|
||||
* @param frame_code
|
||||
* @param createTime
|
||||
* @param finishTime
|
||||
* @return
|
||||
*/
|
||||
Vo caseRepairQuery(String state,HttpServletRequest request,String caseCode,String frame_code,String createTime,String finishTime);
|
||||
|
||||
|
||||
/****
|
||||
* 获取案件详情信息
|
||||
* 获取进店案件详情信息
|
||||
* @return
|
||||
*/
|
||||
Vo caseEnterInfo(HttpServletRequest request,String caseCode,String tid);
|
||||
|
||||
/****
|
||||
* 获取路修案件详情信息
|
||||
* @return
|
||||
*/
|
||||
Vo caseRepairInfo(HttpServletRequest request,String caseCode,String tid);
|
||||
|
||||
/*
|
||||
* 故障三级信息
|
||||
*/
|
||||
|
@ -203,7 +203,7 @@ public class CaseDaoImpl extends BaseDaoHibernate implements CaseDao {
|
||||
"left join supplier s on u.service_supplier_id=s.id "+
|
||||
"left join base_service b on b.id=u.service_id "+
|
||||
"left join jlr_epqr w on w.task_order_id = u.tid " +
|
||||
"where b.id in (1041,1050,1500,1501,1520,1521) " +
|
||||
"where b.parent_id = 1002 " +
|
||||
// "and u.order_status in (21,23,25,28,31) " +
|
||||
"and w.state = 1 " +
|
||||
"and u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
@ -222,7 +222,132 @@ public class CaseDaoImpl extends BaseDaoHibernate implements CaseDao {
|
||||
"left join supplier s on u.service_supplier_id=s.id "+
|
||||
"left join jlr_epqr w on w.task_order_id = u.tid " +
|
||||
"left join base_service b on b.id=u.service_id "+
|
||||
"where b.id in (1041,1050,1500,1501,1520,1521) " +
|
||||
"where b.parent_id = 1002 " +
|
||||
// "and u.order_status in (21,23,25,28,31) " +
|
||||
"and u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}
|
||||
if (StringUtils.isNotBlank(frame_code)) {
|
||||
sql.append(" and u.vin_no like '%" + frame_code + "%'");
|
||||
}
|
||||
if (StringUtils.isNotBlank(caseCode)) {
|
||||
sql.append(" and u.code like '%" + caseCode + "%'");
|
||||
}
|
||||
//开始时间
|
||||
if (StringUtils.isNotBlank(createTime)) {
|
||||
sql.append(" and u.create_time >= '"+createTime+"'");
|
||||
}
|
||||
// 结束时间
|
||||
if (StringUtils.isNotBlank(finishTime)) {
|
||||
sql.append(" and u.create_time <= '"+finishTime+"'");
|
||||
}
|
||||
String countSql=null;
|
||||
if("0".equals(state)){
|
||||
countSql=sql.append(" order by w.state,w.update_time desc").toString();
|
||||
}else{
|
||||
countSql=sql.append(" order by w.state,w.update_time desc,NOW() > DATE_ADD(u.create_time, INTERVAL 104 DAY) desc").toString();
|
||||
}
|
||||
String info=sql.append(" limit "+pageInfo.getCurrentIndex()+","+pageInfo.getRows()).toString();
|
||||
try {
|
||||
//获取进店救援信息总数
|
||||
List lists=getRsBySql(countSql);
|
||||
//分页获取进店救援信息
|
||||
List list = getRsBySql(info);
|
||||
if (list != null && list.size() > 0) {
|
||||
vo.setRows(UtilTools.listTojsonArray(list, new String[]{"TID","ID","ORDER_CODE","CREATE_TIME","VIN_NO","NAME","CODE","SERVICE_NAME","STATUS","STATE"}));
|
||||
}
|
||||
if(lists != null && lists.size() > 0) {
|
||||
vo.setTotal(lists.size());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return vo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseEnterQueryRepair(HttpServletRequest request) {
|
||||
//获取登录信息
|
||||
LoginUserVo logininfo=(LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
Vo vo=new Vo();
|
||||
String sql = "select DISTINCT u.tid tid,u.id id,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, "+
|
||||
"s.code code,b.name serviceName,u.order_status order_status,w.state state,w.update_time update_time from "+
|
||||
"(select t.create_time createTime,t.code taskCode,u.code code,u.create_time,u.vin_no,u.id id,u.order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code,t.id tid from user_order_his u "+
|
||||
"left join task_order_his t on t.user_order_id=u.id "+
|
||||
"union select t.create_time createTime,t.code taskCode,u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.id id,u.order_status order_status,u.service_id service_id "+
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code,t.id tid from user_order u "+
|
||||
"left join task_order t on t.user_order_id=u.id "+
|
||||
") u "+
|
||||
"left join supplier s on u.service_supplier_id=s.id "+
|
||||
"left join jlr_epqr w on w.task_order_id = u.tid " +
|
||||
"left join base_service b on b.id=u.service_id "+
|
||||
"where b.parent_id = 1002 " +
|
||||
// "and u.order_status in (21,23,25,28,31) " +
|
||||
"and u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")";
|
||||
try {
|
||||
//获取缺失维修信息进店救援信息总数
|
||||
List lists=getRsBySql(sql);
|
||||
if (lists != null && lists.size() > 0) {
|
||||
vo.setRows(UtilTools.listTojsonArray(lists, new String[]{"TID","ID","ORDER_CODE","CREATE_TIME","VIN_NO","NAME","CODE","SERVICE_NAME","STATUS","STATE"}));
|
||||
vo.setTotal(lists.size());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return vo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseRepairQuery(String state,HttpServletRequest request, String caseCode, String frame_code, String createTime, String finishTime) {
|
||||
//获取登录信息
|
||||
LoginUserVo logininfo=(LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
Vo vo=new Vo();
|
||||
//声明一个分页对象
|
||||
PageInfo pageInfo=new PageInfo();
|
||||
//获取页数和一页显示多少行并将其放入对象中
|
||||
pageInfo.setPage(UtilTools.getPage(request));
|
||||
pageInfo.setRows(UtilTools.getRows(request));
|
||||
//sql动态拼接
|
||||
StringBuffer sql=null;
|
||||
if("0".equals(state)){
|
||||
sql = new StringBuffer("select DISTINCT u.tid tid,u.id id,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, "+
|
||||
"s.code code,b.name serviceName,u.order_status order_status,w.state state,w.update_time update_time from "+
|
||||
"(select t.create_time createTime,t.code taskCode,u.code code,u.create_time,u.vin_no,u.id id,u.order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,t.id tid from user_order_his u "+
|
||||
"left join task_order_his t on t.user_order_id=u.id "+
|
||||
"union select t.create_time createTime,t.code taskCode,u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.id id,u.order_status order_status,u.service_id service_id "+
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,t.id tid from user_order u "+
|
||||
"left join task_order t on t.user_order_id=u.id "+
|
||||
") u "+
|
||||
"left join supplier s on u.service_supplier_id=s.id "+
|
||||
"left join base_service b on b.id=u.service_id "+
|
||||
"left join jlr_epqr w on w.task_order_id = u.tid " +
|
||||
"where b.parent_id = 1003 " +
|
||||
// "and u.order_status in (21,23,25,28,31) " +
|
||||
"and w.state = 1 " +
|
||||
"and u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}else{
|
||||
sql = new StringBuffer("select DISTINCT u.tid tid,u.id id,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, "+
|
||||
"s.code code,b.name serviceName,u.order_status order_status,w.state state,w.update_time update_time from "+
|
||||
"(select t.create_time createTime,t.code taskCode,u.code code,u.create_time,u.vin_no,u.id id,u.order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code,t.id tid from user_order_his u "+
|
||||
"left join task_order_his t on t.user_order_id=u.id "+
|
||||
"union select t.create_time createTime,t.code taskCode,u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.id id,u.order_status order_status,u.service_id service_id "+
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code,t.id tid from user_order u "+
|
||||
"left join task_order t on t.user_order_id=u.id "+
|
||||
") u "+
|
||||
"left join supplier s on u.service_supplier_id=s.id "+
|
||||
"left join jlr_epqr w on w.task_order_id = u.tid " +
|
||||
"left join base_service b on b.id=u.service_id "+
|
||||
"where b.parent_id = 1003 " +
|
||||
// "and u.order_status in (21,23,25,28,31) " +
|
||||
"and u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}
|
||||
@ -243,9 +368,9 @@ public class CaseDaoImpl extends BaseDaoHibernate implements CaseDao {
|
||||
String countSql=sql.append(" order by w.update_time desc").toString();
|
||||
String info=sql.append(" limit "+pageInfo.getCurrentIndex()+","+pageInfo.getRows()).toString();
|
||||
try {
|
||||
//获取进店救援信息总数
|
||||
//获取路修案件总数
|
||||
List lists=getRsBySql(countSql);
|
||||
//分页获取进店救援信息
|
||||
//分页获取路修救援信息
|
||||
List list = getRsBySql(info);
|
||||
if (list != null && list.size() > 0) {
|
||||
vo.setRows(UtilTools.listTojsonArray(list, new String[]{"TID","ID","ORDER_CODE","CREATE_TIME","VIN_NO","NAME","CODE","SERVICE_NAME","STATUS","STATE"}));
|
||||
@ -311,6 +436,57 @@ public class CaseDaoImpl extends BaseDaoHibernate implements CaseDao {
|
||||
return vo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseRepairInfo(HttpServletRequest request, String caseCode,String tid) {
|
||||
//获取用户信息
|
||||
LoginUserVo logininfo=(LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
//声明一个vo对象
|
||||
Vo vo=new Vo();
|
||||
//创建sql
|
||||
StringBuffer sql=new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, "+
|
||||
"s.code code,b.name serviceName,u.model model,u.plate_number plate_number,m.start_time start_time,j.level_name levelName," +
|
||||
"u.finish_time finish_time,j.level_name levelNames,d.name dName,d.brand_name brandName,e.dms_code dms_code," +
|
||||
"e.trouble_reason trouble_reason,e.mileage mileage,e.dphm dphm,e.arrive_time arrive_time,e.remaer remaer," +
|
||||
"e.choice_type choice_type,e.trouble_code trouble_code,e.repair repair,e.ref_time ref_time,e.finish_time finishes_time" +
|
||||
",e.hand_time hand_time,e.use_time use_time,e.state state from "+
|
||||
"(select u.code code,u.create_time,u.vin_no,u.order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order_his u "+
|
||||
"left join task_order_his t on t.user_order_id=u.id "+
|
||||
"union select u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.order_status order_status,u.service_id service_id "+
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order u "+
|
||||
"left join task_order t on t.user_order_id=u.id "+
|
||||
") u "+
|
||||
"left join supplier s on u.service_supplier_id = s.id "+
|
||||
"left join base_service b on b.id = u.service_id " +
|
||||
"left join contract_member_service_group m on u.member_service_group_id=m.id " +
|
||||
"left join contract_trouble_level j on j.id = u.malfunction_level1 " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where u.id = '" + caseCode+"'");
|
||||
if (StringUtils.isNotBlank(tid)) {
|
||||
sql.append(" and u.tid = '" + tid +"'");
|
||||
}
|
||||
try {
|
||||
//获取案件详情信息
|
||||
List list = getRsBySql(sql.toString());
|
||||
if (list != null && list.size() > 0) {
|
||||
vo.setRows(UtilTools.listTojsonArray(list, new String[]{"UID","TID","ORDER_CODE", "CREATE_TIME", "VIN_NO", "NAME", "CODE", "SERVICE_NAME", "MODEL", "PLATENUMBER", "STARTTIME", "LEVELNAME1", "FINISHTIME", "LEVELNAME2", "DNAME", "BRANDNAME", "DMS", "REASON", "MILEAGE", "DNUMBER", "ARRIVETIME", "REMARK", "CHOICE", "PART", "REPAIR", "REFTIME", "FINTIME", "HANDTIME", "USETIME","STATE"}));
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return vo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getTroubleCode(HttpServletRequest request) throws Exception {
|
||||
//获取参数
|
||||
|
@ -34,12 +34,36 @@ public interface CasesListService {
|
||||
*/
|
||||
Vo caseEnterQuery(String state,HttpServletRequest request,String caseCode,String frame_code,String createTime,String finishTime);
|
||||
|
||||
/***
|
||||
* 获取缺失维修信息进店救援案件信息
|
||||
* @return
|
||||
*/
|
||||
Vo caseEnterQueryRepair(HttpServletRequest request);
|
||||
|
||||
|
||||
/***
|
||||
* 获取路修救援案件信息
|
||||
* @param request
|
||||
* @param caseCode
|
||||
* @param frame_code
|
||||
* @param createTime
|
||||
* @param finishTime
|
||||
* @return
|
||||
*/
|
||||
Vo caseRepairQuery(String state,HttpServletRequest request,String caseCode,String frame_code,String createTime,String finishTime);
|
||||
|
||||
/****
|
||||
* 获取案件详情信息
|
||||
* @return
|
||||
*/
|
||||
Vo caseEnterInfo(HttpServletRequest request,String caseCode,String tid);
|
||||
|
||||
/****
|
||||
* 路修案件详情信息
|
||||
* @return
|
||||
*/
|
||||
Vo caseRepairInfo(HttpServletRequest request,String caseCode,String tid);
|
||||
|
||||
/*
|
||||
* 故障三级信息
|
||||
*/
|
||||
@ -51,15 +75,25 @@ public interface CasesListService {
|
||||
JSONObject caseDetailSave(HttpServletRequest request) throws Exception;
|
||||
|
||||
/*
|
||||
* 导出报表
|
||||
* 导出进店工单报表
|
||||
*/
|
||||
JSONObject exportData(HttpServletRequest request) throws Exception;
|
||||
|
||||
/*
|
||||
* 导出报表CSV格式
|
||||
* 导出路修工单报表
|
||||
*/
|
||||
JSONObject exportDataRepair(HttpServletRequest request) throws Exception;
|
||||
|
||||
/*
|
||||
* 导出进店工单报表CSV格式
|
||||
*/
|
||||
JSONObject exportCSVData(HttpServletRequest request,HttpServletResponse response) throws Exception;
|
||||
|
||||
/*
|
||||
* 导出路修工单报表CSV格式
|
||||
*/
|
||||
JSONObject exportCSVDataRepair(HttpServletRequest request,HttpServletResponse response) throws Exception;
|
||||
|
||||
/*
|
||||
* 求援完成确认
|
||||
*/
|
||||
|
@ -44,11 +44,26 @@ public class CasesListServiceImpl implements CasesListService {
|
||||
return dao.caseEnterQuery(state,request,caseCode,frame_code,createTime,finishTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseEnterQueryRepair(HttpServletRequest request) {
|
||||
return dao.caseEnterQueryRepair(request);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseRepairQuery(String state,HttpServletRequest request, String caseCode, String frame_code, String createTime, String finishTime) {
|
||||
return dao.caseRepairQuery(state,request,caseCode,frame_code,createTime,finishTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseEnterInfo(HttpServletRequest request, String caseCode,String tid) {
|
||||
return dao.caseEnterInfo(request,caseCode,tid);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vo caseRepairInfo(HttpServletRequest request, String caseCode,String tid) {
|
||||
return dao.caseRepairInfo(request,caseCode,tid);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getTroubleCode(HttpServletRequest request) throws Exception {
|
||||
return dao.getTroubleCode(request);
|
||||
@ -107,9 +122,11 @@ public class CasesListServiceImpl implements CasesListService {
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.id in (1041,1050,1500,1501,1520,1521) and " +
|
||||
"u.order_status in (21,23,25,28,31) " +
|
||||
"and u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id =" + logininfo.getId() + ")");
|
||||
"where b.parent_id = 1002 and " +
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
"w.state = 1 and " +
|
||||
"e.state = 1 and " +
|
||||
"u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id =" + logininfo.getId() + ")");
|
||||
}else{
|
||||
sql = new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, " +
|
||||
@ -140,9 +157,172 @@ public class CasesListServiceImpl implements CasesListService {
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.id in (1041,1050,1500,1501,1520,1521) and " +
|
||||
"u.order_status in (21,23,25,28,31) " +
|
||||
"and u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
"where b.parent_id = 1002 and " +
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
// "w.state = 1 and " +
|
||||
// "e.state = 1 and " +
|
||||
"u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}
|
||||
//sql动态拼接
|
||||
if (StringUtils.isNotBlank(frame_code)) {
|
||||
sql.append(" and u.vin_no like '%" + frame_code + "%'");
|
||||
}
|
||||
if (StringUtils.isNotBlank(caseCode)) {
|
||||
sql.append(" and u.code like '%" + caseCode + "%'");
|
||||
}
|
||||
//开始时间
|
||||
if (StringUtils.isNotBlank(createTime)) {
|
||||
sql.append(" and u.create_time >= '"+createTime+"'");
|
||||
}
|
||||
// 结束时间
|
||||
if (StringUtils.isNotBlank(finishTime)) {
|
||||
sql.append(" and u.create_time <= '"+finishTime+"'");
|
||||
}
|
||||
sql.append(" order by u.create_time desc");
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
//获取进店工单案件详情信息
|
||||
List list = dao.getRsBySql(sql.toString());
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
if (list != null && list.size() > 0) {
|
||||
UserOrderExcelVO header = new UserOrderExcelVO("CLUB_ID_NUMBER", "BREAKDOWN_DATE", "VIN", "CURRENT_MILEAGE", "COMPONENT_DESCRIPTION",
|
||||
"JLR_COMPONENT", "FAULT_DESCRIPTION", "VRT_CODE", "VFG_CODE", "COMPLETION_DESCRIPTION", "VERBATIM_COMMENTS", "INITIAL_DIAGNOSED_FAULT",
|
||||
"ATTENDING_RESOURCE", "ACCEPTED", "SUPPRESS", "SHORT_VIN", "CTRY_OF_INCIDENT", "DEALER_CODE_REPAIR", "DEALER_NAME_REPAIR");
|
||||
listExcel.add(header);
|
||||
//遍历获取到的进店工单信息并将其放入excel表中
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
Object[] objects = (Object[]) list.get(i);
|
||||
UserOrderExcelVO userOrderExcelVO = new UserOrderExcelVO();
|
||||
userOrderExcelVO.setClubIdNumber(ReturnObjStr(objects[2]));
|
||||
userOrderExcelVO.setCtryOfIncident("CHN");
|
||||
userOrderExcelVO.setVerbatimComments(ReturnObjStr(objects[21]));
|
||||
userOrderExcelVO.setBreakdownDate(sdf.format(sdf.parse(ReturnObjStr(objects[3]))));
|
||||
userOrderExcelVO.setCurrentMileage(ReturnObjStr(objects[18]));
|
||||
userOrderExcelVO.setAttendingResource("sino");
|
||||
userOrderExcelVO.setDealerCodeRepair("sino");
|
||||
userOrderExcelVO.setDealerNameRepair("中道救援");
|
||||
userOrderExcelVO.setAttendingResource(ReturnObjStr(objects[6]));
|
||||
userOrderExcelVO.setDealerCodeRepair(ReturnObjStr(objects[15]));
|
||||
userOrderExcelVO.setDealerNameRepair(ReturnObjStr(objects[14]));
|
||||
String vin = ReturnObjStr(objects[4]);
|
||||
userOrderExcelVO.setVin(vin);
|
||||
userOrderExcelVO.setShortVin(vin.length() > 6 ? vin.substring(vin.length() - 6) : vin);
|
||||
userOrderExcelVO.setJlrComponent("");
|
||||
userOrderExcelVO.setAccepted("");
|
||||
userOrderExcelVO.setSuppress("");
|
||||
userOrderExcelVO.setComponentDescription(ReturnObjStr(objects[23]));
|
||||
userOrderExcelVO.setInitialDiagnosedFault(ReturnObjStr(objects[12]));
|
||||
userOrderExcelVO.setFaultDescription(MTextUtils.getReason(ReturnObjStr(objects[17])));
|
||||
userOrderExcelVO.setVrtCode("");
|
||||
userOrderExcelVO.setVfgCode("");
|
||||
userOrderExcelVO.setCompletionDescription(MTextUtils.getRepairResult(ReturnObjStr(objects[24])));
|
||||
listExcel.add(userOrderExcelVO);
|
||||
}
|
||||
//格式化日期
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
String dateTime = simpleDateFormat.format(new Date());
|
||||
//创建导出路径
|
||||
String path = request.getRealPath("attached") + File.separator
|
||||
+ userName + File.separator + "EPQR_" + dateTime + ".xlsx";
|
||||
String webUrl = UtilTools.getWebAddress(request) + File.separator
|
||||
+ "attached" + File.separator + userName + File.separator + "EPQR_" + dateTime + ".xlsx";
|
||||
boolean b = new UserOrderExcelVO().saveAll(listExcel, path);
|
||||
if (b) {
|
||||
jsonObject.put("result", "0");// 0:成功,1失败
|
||||
jsonObject.put("msg", "导出成功!");
|
||||
jsonObject.put("webUrl", webUrl);
|
||||
}
|
||||
}
|
||||
return jsonObject;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject exportDataRepair(HttpServletRequest request) throws Exception {
|
||||
//获取参数
|
||||
String caseCode = request.getParameter("caseCode");
|
||||
String frame_code = request.getParameter("frame_code");
|
||||
String createTime = request.getParameter("createTime");
|
||||
String finishTime = request.getParameter("finishTime");
|
||||
String state = request.getParameter("state");
|
||||
//声明一个报表集合用来保存工单信息
|
||||
List listExcel = new ArrayList();
|
||||
String userName = null;
|
||||
//获取用户信息
|
||||
LoginUserVo logininfo = (LoginUserVo) request.getSession().getAttribute("logininfo");
|
||||
if (logininfo != null) {
|
||||
userName = logininfo.getLogin_name().toString();
|
||||
}
|
||||
//创建sql
|
||||
StringBuffer sql=null;
|
||||
if("0".equals(state)){
|
||||
sql = new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, " +
|
||||
"s.code code,b.name serviceName,u.model model,u.plate_number plate_number,m.start_time start_time,j.level_name levelName," +
|
||||
"u.finish_time finish_time,t.level_name levelNames,d.name dName,d.brand_name brandName,e.dms_code dms_code," +
|
||||
"e.trouble_reason trouble_reason,e.mileage mileage,e.dphm dphm,e.arrive_time arrive_time,e.remaer remaer," +
|
||||
"e.choice_type choice_type,e.trouble_code trouble_code,e.repair repair,e.ref_time ref_time,e.finish_time finishes_time" +
|
||||
",e.hand_time hand_time,e.use_time use_time from " +
|
||||
"(select u.code code,u.create_time,u.vin_no,u.order_status order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order_his u " +
|
||||
"left join task_order_his t on t.user_order_id=u.id " +
|
||||
"union select u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.order_status order_status,u.service_id service_id " +
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order u " +
|
||||
"left join task_order t on t.user_order_id=u.id " +
|
||||
") u " +
|
||||
"left join supplier s on u.service_supplier_id = s.id " +
|
||||
"left join base_service b on b.id = u.service_id " +
|
||||
"left join contract_member_service_group m on u.member_service_group_id=m.id " +
|
||||
"left join contract_trouble_level j on j.id = u.malfunction_level1 " +
|
||||
"left join contract_trouble_level t on t.id = u.malfunction_level2 " +
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.parent_id = 1003 and " +
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
"w.state = 1 and " +
|
||||
"e.state = 1 and " +
|
||||
"u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id =" + logininfo.getId() + ")");
|
||||
}else{
|
||||
sql = new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, " +
|
||||
"s.code code,b.name serviceName,u.model model,u.plate_number plate_number,m.start_time start_time,j.level_name levelName," +
|
||||
"u.finish_time finish_time,t.level_name levelNames,d.name dName,d.brand_name brandName,e.dms_code dms_code," +
|
||||
"e.trouble_reason trouble_reason,e.mileage mileage,e.dphm dphm,e.arrive_time arrive_time,e.remaer remaer," +
|
||||
"e.choice_type choice_type,e.trouble_code trouble_code,e.repair repair,e.ref_time ref_time,e.finish_time finishes_time" +
|
||||
",e.hand_time hand_time,e.use_time use_time from " +
|
||||
"(select u.code code,u.create_time,u.vin_no,u.order_status order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order_his u " +
|
||||
"left join task_order_his t on t.user_order_id=u.id " +
|
||||
"union select u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.order_status order_status,u.service_id service_id " +
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order u " +
|
||||
"left join task_order t on t.user_order_id=u.id " +
|
||||
") u " +
|
||||
"left join supplier s on u.service_supplier_id = s.id " +
|
||||
"left join base_service b on b.id = u.service_id " +
|
||||
"left join contract_member_service_group m on u.member_service_group_id=m.id " +
|
||||
"left join contract_trouble_level j on j.id = u.malfunction_level1 " +
|
||||
"left join contract_trouble_level t on t.id = u.malfunction_level2 " +
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.parent_id = 1003 and " +
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
// "w.state = 1 and " +
|
||||
// "e.state = 1 and " +
|
||||
"u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}
|
||||
//sql动态拼接
|
||||
if (StringUtils.isNotBlank(frame_code)) {
|
||||
@ -264,9 +444,11 @@ public class CasesListServiceImpl implements CasesListService {
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.id in (1041,1050,1500,1501,1520,1521) and " +
|
||||
"u.order_status in (21,23,25,28,31) " +
|
||||
"and u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id =" + logininfo.getId() + ")");
|
||||
"where b.parent_id = 1002 and "+
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
"w.state = 1 and " +
|
||||
"e.state = 1 and " +
|
||||
"u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id =" + logininfo.getId() + ")");
|
||||
}else{
|
||||
sql = new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, " +
|
||||
@ -297,9 +479,172 @@ public class CasesListServiceImpl implements CasesListService {
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.id in (1041,1050,1500,1501,1520,1521) and " +
|
||||
"u.order_status in (21,23,25,28,31) " +
|
||||
"and u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
"where b.parent_id = 1002 and "+
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
// "w.state = 1 and " +
|
||||
// "e.state = 1 and " +
|
||||
"u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}
|
||||
//sql动态拼接
|
||||
if (StringUtils.isNotBlank(frame_code)) {
|
||||
sql.append(" and u.vin_no like '%" + frame_code + "%'");
|
||||
}
|
||||
if (StringUtils.isNotBlank(caseCode)) {
|
||||
sql.append(" and u.code like '%" + caseCode + "%'");
|
||||
}
|
||||
//开始时间
|
||||
if (StringUtils.isNotBlank(createTime)) {
|
||||
sql.append(" and u.create_time >= '"+createTime+"'");
|
||||
}
|
||||
// 结束时间
|
||||
if (StringUtils.isNotBlank(finishTime)) {
|
||||
sql.append(" and u.create_time <= '"+finishTime+"'");
|
||||
}
|
||||
sql.append(" order by u.create_time desc");
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
//获取进店工单案件详情信息
|
||||
List list = dao.getRsBySql(sql.toString());
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
if (list != null && list.size() > 0) {
|
||||
UserOrderCSVVO header = new UserOrderCSVVO("CLUB_ID_NUMBER", "BREAKDOWN_DATE", "VIN", "CURRENT_MILEAGE", "COMPONENT_DESCRIPTION",
|
||||
"JLR_COMPONENT", "FAULT_DESCRIPTION", "VRT_CODE", "VFG_CODE", "COMPLETION_DESCRIPTION", "VERBATIM_COMMENTS", "INITIAL_DIAGNOSED_FAULT",
|
||||
"ATTENDING_RESOURCE", "ACCEPTED", "SUPPRESS", "SHORT_VIN", "CTRY_OF_INCIDENT", "DEALER_CODE_REPAIR", "DEALER_NAME_REPAIR");
|
||||
listExcel.add(header);
|
||||
//遍历获取到的进店工单信息并将其放入excel表中
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
Object[] objects = (Object[]) list.get(i);
|
||||
UserOrderCSVVO userOrderExcelVO = new UserOrderCSVVO();
|
||||
userOrderExcelVO.setClubIdNumber(ReturnObjStr(objects[2]));
|
||||
userOrderExcelVO.setCtryOfIncident("CHN");
|
||||
userOrderExcelVO.setVerbatimComments(ReturnObjStr(objects[21]));
|
||||
userOrderExcelVO.setBreakdownDate(sdf.format(sdf.parse(ReturnObjStr(objects[3]))));
|
||||
userOrderExcelVO.setCurrentMileage(ReturnObjStr(objects[18]));
|
||||
userOrderExcelVO.setAttendingResource("sino");
|
||||
userOrderExcelVO.setDealerCodeRepair("sino");
|
||||
userOrderExcelVO.setDealerNameRepair("中道救援");
|
||||
userOrderExcelVO.setAttendingResource(ReturnObjStr(objects[6]));
|
||||
userOrderExcelVO.setDealerCodeRepair(ReturnObjStr(objects[15]));
|
||||
userOrderExcelVO.setDealerNameRepair(ReturnObjStr(objects[14]));
|
||||
String vin = ReturnObjStr(objects[4]);
|
||||
userOrderExcelVO.setVin(vin);
|
||||
userOrderExcelVO.setShortVin(vin.length() > 6 ? vin.substring(vin.length() - 6) : vin);
|
||||
userOrderExcelVO.setJlrComponent("");
|
||||
userOrderExcelVO.setAccepted("");
|
||||
userOrderExcelVO.setSuppress("");
|
||||
userOrderExcelVO.setComponentDescription(ReturnObjStr(objects[23]));
|
||||
userOrderExcelVO.setInitialDiagnosedFault(ReturnObjStr(objects[12]));
|
||||
userOrderExcelVO.setFaultDescription(MTextUtils.getReason(ReturnObjStr(objects[17])));
|
||||
userOrderExcelVO.setVrtCode("");
|
||||
userOrderExcelVO.setVfgCode("");
|
||||
userOrderExcelVO.setCompletionDescription(MTextUtils.getRepairResult(ReturnObjStr(objects[24])));
|
||||
listExcel.add(userOrderExcelVO);
|
||||
}
|
||||
//格式化日期
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
String dateTime = simpleDateFormat.format(new Date());
|
||||
//创建导出路径
|
||||
String path = request.getRealPath("attached") + File.separator
|
||||
+ userName + File.separator + "EPQR_" + dateTime + ".csv";
|
||||
String webUrl = UtilTools.getWebAddress(request) + File.separator
|
||||
+ "attached" + File.separator + userName + File.separator + "EPQR_" + dateTime + ".csv";
|
||||
boolean b = ExportCSVUtil.doExport(listExcel, path);
|
||||
if (b) {
|
||||
jsonObject.put("result", "0");// 0:成功,1失败
|
||||
jsonObject.put("msg", "导出成功!");
|
||||
jsonObject.put("webUrl", webUrl);
|
||||
}
|
||||
}
|
||||
return jsonObject;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject exportCSVDataRepair(HttpServletRequest request,HttpServletResponse response) throws Exception {
|
||||
//获取参数
|
||||
String caseCode = request.getParameter("caseCode");
|
||||
String frame_code = request.getParameter("frame_code");
|
||||
String createTime = request.getParameter("createTime");
|
||||
String finishTime = request.getParameter("finishTime");
|
||||
String state = request.getParameter("state");
|
||||
//声明一个报表集合用来保存工单信息
|
||||
List listExcel = new ArrayList();
|
||||
String userName = null;
|
||||
//获取用户信息
|
||||
LoginUserVo logininfo = (LoginUserVo) request.getSession().getAttribute("logininfo");
|
||||
if (logininfo != null) {
|
||||
userName = logininfo.getLogin_name().toString();
|
||||
}
|
||||
//创建sql
|
||||
StringBuffer sql=null;
|
||||
if("0".equals(state)){
|
||||
sql = new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, " +
|
||||
"s.code code,b.name serviceName,u.model model,u.plate_number plate_number,m.start_time start_time,j.level_name levelName," +
|
||||
"u.finish_time finish_time,t.level_name levelNames,d.name dName,d.brand_name brandName,e.dms_code dms_code," +
|
||||
"e.trouble_reason trouble_reason,e.mileage mileage,e.dphm dphm,e.arrive_time arrive_time,e.remaer remaer," +
|
||||
"e.choice_type choice_type,e.trouble_code trouble_code,e.repair repair,e.ref_time ref_time,e.finish_time finishes_time" +
|
||||
",e.hand_time hand_time,e.use_time use_time from " +
|
||||
"(select u.code code,u.create_time,u.vin_no,u.order_status order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order_his u " +
|
||||
"left join task_order_his t on t.user_order_id=u.id " +
|
||||
"union select u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.order_status order_status,u.service_id service_id " +
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order u " +
|
||||
"left join task_order t on t.user_order_id=u.id " +
|
||||
") u " +
|
||||
"left join supplier s on u.service_supplier_id = s.id " +
|
||||
"left join base_service b on b.id = u.service_id " +
|
||||
"left join contract_member_service_group m on u.member_service_group_id=m.id " +
|
||||
"left join contract_trouble_level j on j.id = u.malfunction_level1 " +
|
||||
"left join contract_trouble_level t on t.id = u.malfunction_level2 " +
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.parent_id = 1003 and "+
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
"w.state = 1 and " +
|
||||
"e.state = 1 and " +
|
||||
"u.contract_id in (select contract_id from jlr_contract_visual where jlr_user_id =" + logininfo.getId() + ")");
|
||||
}else{
|
||||
sql = new StringBuffer("select DISTINCT u.id uid,u.tid tid,u.code orderCode,u.create_time " +
|
||||
"create_time,u.vin_no vin_no,s.name name, " +
|
||||
"s.code code,b.name serviceName,u.model model,u.plate_number plate_number,m.start_time start_time,j.level_name levelName," +
|
||||
"u.finish_time finish_time,t.level_name levelNames,d.name dName,d.brand_name brandName,e.dms_code dms_code," +
|
||||
"e.trouble_reason trouble_reason,e.mileage mileage,e.dphm dphm,e.arrive_time arrive_time,e.remaer remaer," +
|
||||
"e.choice_type choice_type,e.trouble_code trouble_code,e.repair repair,e.ref_time ref_time,e.finish_time finishes_time" +
|
||||
",e.hand_time hand_time,e.use_time use_time from " +
|
||||
"(select u.code code,u.create_time,u.vin_no,u.order_status order_status," +
|
||||
"u.service_id,t.service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order_his u " +
|
||||
"left join task_order_his t on t.user_order_id=u.id " +
|
||||
"union select u.code code,u.create_time create_time,u.vin_no vin_no," +
|
||||
"u.order_status order_status,u.service_id service_id " +
|
||||
",t.service_supplier_id service_supplier_id,u.contract_id contract_id,u.contract_destination_id destination_code," +
|
||||
"u.model model,u.plate_number plate_number,u.member_service_group_id member_service_group_id,u.finish_time finish_time," +
|
||||
"u.malfunction_level1 malfunction_level1,u.malfunction_level2 malfunction_level2,u.id id,u.contract_destination_id contract_destination_id,t.id tid " +
|
||||
"from user_order u " +
|
||||
"left join task_order t on t.user_order_id=u.id " +
|
||||
") u " +
|
||||
"left join supplier s on u.service_supplier_id = s.id " +
|
||||
"left join base_service b on b.id = u.service_id " +
|
||||
"left join contract_member_service_group m on u.member_service_group_id=m.id " +
|
||||
"left join contract_trouble_level j on j.id = u.malfunction_level1 " +
|
||||
"left join contract_trouble_level t on t.id = u.malfunction_level2 " +
|
||||
"left join jlr_epqr w on w.order_id = u.id " +
|
||||
"left join contract_destination d on d.id = u.contract_destination_id " +
|
||||
"left join jlr_epqr e on e.task_order_id = u.tid " +
|
||||
"where b.parent_id = 1003 and "+
|
||||
// "u.order_status in (21,23,25,28,31) " +
|
||||
// "w.state = 1 and " +
|
||||
// "e.state = 1 and " +
|
||||
"u.destination_code in (select contract_destination_id from jlr_destination_visual where jlr_user_id ="+logininfo.getId()+")");
|
||||
}
|
||||
//sql动态拼接
|
||||
if (StringUtils.isNotBlank(frame_code)) {
|
||||
|
@ -13,6 +13,7 @@ Date.prototype.Format = function (fmt) { //author: meizz
|
||||
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
||||
return fmt;
|
||||
}
|
||||
|
||||
function queryCouponList(urls, queryParams, paraUrls,state) {
|
||||
var pageNumber = 1, pageSize = 10;
|
||||
// 默认查询第一页 query查询时保存当前条件
|
||||
@ -49,7 +50,24 @@ function queryCouponList(urls, queryParams, paraUrls,state) {
|
||||
title: '案件编号',
|
||||
sortable: 'false',
|
||||
align: 'center',
|
||||
width: 10
|
||||
width: 10,
|
||||
formatter: function (value, row, index) {
|
||||
var d=new Date(row.CREATE_TIME);
|
||||
var tomorrow=d.setDate(d.getDate()+103);
|
||||
var da=new Date(row.CREATE_TIME);
|
||||
var tomorrows=da.setDate(da.getDate()+104);
|
||||
var datees=new Date(tomorrows).Format("yyyy-MM-dd hh:mm:ss");
|
||||
var date=new Date(tomorrow).Format("yyyy-MM-dd hh:mm:ss");
|
||||
var today=new Date();
|
||||
var todays=today.Format("yyyy-MM-dd hh:mm:ss");
|
||||
if(tomorrows < today && row.STATE == ''){
|
||||
return '<span style="color:red">'+value+'</span>';
|
||||
}
|
||||
if(tomorrow < today && row.STATE == ''){
|
||||
return '<span style="color:orange">'+value+'</span>';
|
||||
}
|
||||
return value
|
||||
}
|
||||
}, {
|
||||
field: 'CREATE_TIME',
|
||||
title: '案件创建时间',
|
||||
|
@ -259,4 +259,4 @@ $(document).on('click','.cancel',function(){
|
||||
</div>
|
||||
|
||||
|
||||
<%@ include file="footer.jsp"%>
|
||||
<%@ include file="footers.jsp"%>
|
@ -675,35 +675,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="order_undo" id="caseinfoEdit_windowContent" style="display: none;">
|
||||
<div class="dialog_default">
|
||||
<div class="dialog_title">
|
||||
故障零件查询选择列表
|
||||
</div>
|
||||
<div class="dialog_con">
|
||||
<div class="result_input">
|
||||
<span class="line"> </span>主系统:
|
||||
</div>
|
||||
<select id="caseInfoEdit20SelCtshow_ComponentInfoGroups" class="money_con"></select>
|
||||
|
||||
<div class="result_input">
|
||||
<span class="line"> </span>子系统:
|
||||
</div>
|
||||
<select id="caseInfoEdit20SelCtshow_CLSubSystem" class="money_con"></select>
|
||||
|
||||
<div class="result_input">
|
||||
<span class="line"> </span>元件:
|
||||
</div>
|
||||
<select id="caseInfoEdit20SelCtshow_CLElement" class="money_con"></select>
|
||||
|
||||
<div class="confirm_cancel clearfix">
|
||||
<a href="javascript:void(0);" id="caseInfoEdit20SelCtshow_OK" class="btn2">确 定</a>
|
||||
<a href="javascript:void(0);" id="caseInfoEdit20SelCtshow_Cancel"
|
||||
class="btn1 cancel">取 消</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
709
src/main/webapp/page/caseDetails.jsp
Normal file
709
src/main/webapp/page/caseDetails.jsp
Normal file
@ -0,0 +1,709 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||||
<%@page language="java" contentType="text/html; charset=utf-8"
|
||||
pageEncoding="utf-8" %>
|
||||
<%@ include file="header.jsp" %>
|
||||
<script type="text/javascript" src="<%=webpath%>/js/business/cases.js"></script>
|
||||
<script type="text/javascript" src="<%=webpath%>/js/DatePicker/WdatePicker.js"></script>
|
||||
<style>
|
||||
.table input, .table button, .table select, .table textarea {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
margin-bottom: 15px;
|
||||
height: 32px;
|
||||
width: 80%;
|
||||
border-radius: 2px;
|
||||
|
||||
text-indent: 0.5em;
|
||||
}
|
||||
|
||||
.table input, .table textarea {
|
||||
border: 1px dashed #BABABA;
|
||||
}
|
||||
|
||||
.table select, .table input.Wdate {
|
||||
border: 1px dashed #B7DBD1;
|
||||
background-color: #E3F1ED;
|
||||
}
|
||||
|
||||
.infoTable td {
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.infoTable td span {
|
||||
display: inline-block;
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
|
||||
textarea {
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.Wdate {
|
||||
padding-left: 0;
|
||||
}
|
||||
</style>
|
||||
<div id="main" style="width:75%;margin:0 auto;">
|
||||
<div id="moduleCtId">
|
||||
<div class="ng-scope">
|
||||
<div ng-switch="v">
|
||||
<c:forEach items="${info.rows}" var="r">
|
||||
<div class="ng-scope"><h2 style="font-size:20px;margin-bottom:30px;">案件信息</h2>
|
||||
<span class="ng-binding" style="color: red" id="caseInfoEdit20MsgCtBackMsg"></span>
|
||||
<table class="infoTable">
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#level ").val('${r.REASON}');
|
||||
$("#repair ").val('${r.REPAIR}');
|
||||
$("#choice ").val('${r.CHOICE}');
|
||||
})
|
||||
// 显示列表
|
||||
function show() {
|
||||
$("#caseinfoEdit_windowContent").show();
|
||||
var caseInfoEdit20SelCtshow_ComponentInfoGroups =
|
||||
document.getElementById("caseInfoEdit20SelCtshow_ComponentInfoGroups");
|
||||
var listLen = caseInfoEdit20SelCtshow_ComponentInfoGroups.options.length;
|
||||
if (listLen == null || listLen == 0) {
|
||||
var params = {};
|
||||
params["flag"] = 1;
|
||||
var result = ajaxgetresultpost('<%=path%>/casesInfo/getTroubleCode.do', params);
|
||||
// 主系统
|
||||
var listfirst = result.listfirst;
|
||||
var idList = result.idList;
|
||||
//alert(idList);
|
||||
jsAddItemToSelect(caseInfoEdit20SelCtshow_ComponentInfoGroups, listfirst, idList);
|
||||
}
|
||||
};
|
||||
// 确定按钮
|
||||
$(document).on('click', '#caseInfoEdit20SelCtshow_OK', function () {
|
||||
var trouble_code = '';
|
||||
if ($("#caseInfoEdit20SelCtshow_ComponentInfoGroups").val() != null && $("#caseInfoEdit20SelCtshow_ComponentInfoGroups").val() != 0) {
|
||||
trouble_code += '-' + $("#caseInfoEdit20SelCtshow_ComponentInfoGroups").find("option:selected").text();
|
||||
}
|
||||
|
||||
if ($("#caseInfoEdit20SelCtshow_CLSubSystem").val() != null && $("#caseInfoEdit20SelCtshow_CLSubSystem").val() != 0) {
|
||||
trouble_code += '-' + $("#caseInfoEdit20SelCtshow_CLSubSystem").find("option:selected").text();
|
||||
}
|
||||
|
||||
if ($("#caseInfoEdit20SelCtshow_CLElement").val() != null && $("#caseInfoEdit20SelCtshow_CLElement").val() != 0) {
|
||||
trouble_code += '-' + $("#caseInfoEdit20SelCtshow_CLElement").find("option:selected").text();
|
||||
}
|
||||
//alert(trouble_code.length);
|
||||
$("#troubleCodeValue").val(trouble_code.substring(1, trouble_code.length));
|
||||
$(".order_undo").hide();
|
||||
|
||||
});
|
||||
//var tempList;
|
||||
// 子系统
|
||||
$(document).on('change', '#caseInfoEdit20SelCtshow_ComponentInfoGroups', function () {
|
||||
var caseInfoEdit20SelCtshow_CLSubSystem = document.getElementById("caseInfoEdit20SelCtshow_CLSubSystem");
|
||||
caseInfoEdit20SelCtshow_CLSubSystem.options.length = 0;
|
||||
// 元件
|
||||
var caseInfoEdit20SelCtshow_CLElement = document.getElementById("caseInfoEdit20SelCtshow_CLElement");
|
||||
caseInfoEdit20SelCtshow_CLElement.options.length = 0;
|
||||
var params = {};
|
||||
params["firstParam"] = $("#caseInfoEdit20SelCtshow_ComponentInfoGroups").val();
|
||||
params["flag"] = 2;
|
||||
result = ajaxgetresultpost('<%=path%>/casesInfo/getTroubleCode.do', params)
|
||||
var listSecond = result.listSecond;
|
||||
var idList = result.idList;
|
||||
jsAddItemToSelect(caseInfoEdit20SelCtshow_CLSubSystem, listSecond, idList);
|
||||
});
|
||||
|
||||
// 元件
|
||||
$(document).on('change', '#caseInfoEdit20SelCtshow_CLSubSystem', function () {
|
||||
var caseInfoEdit20SelCtshow_CLElement = document.getElementById("caseInfoEdit20SelCtshow_CLElement");
|
||||
//jsRemoveItemFromSelect(caseInfoEdit20SelCtshow_CLSubSystem);
|
||||
caseInfoEdit20SelCtshow_CLElement.options.length = 0;
|
||||
var params = {};
|
||||
params["firstParam"] = $("#caseInfoEdit20SelCtshow_CLSubSystem").val();
|
||||
params["flag"] = 3;
|
||||
result = ajaxgetresultpost('<%=path%>/casesInfo/getTroubleCode.do', params);
|
||||
var listSecond = result.listSecond;
|
||||
var idList = result.idList;
|
||||
jsAddItemToSelect(caseInfoEdit20SelCtshow_CLElement, listSecond, idList);
|
||||
});
|
||||
|
||||
<%--//保存并提交反馈案件--%>
|
||||
<%--function saveFeedBackData() {--%>
|
||||
<%--var params = {};--%>
|
||||
<%--params["orderKey"] =${orderKey};// 订单ID--%>
|
||||
<%--var result = ajaxgetresultpost('<%=path%>/casesInfo/submitFeedback.do', params);--%>
|
||||
<%--alert(result.msg);--%>
|
||||
<%--}--%>
|
||||
|
||||
<%--//退回--%>
|
||||
<%--function saveBack() {--%>
|
||||
<%--var params = {};--%>
|
||||
<%--params["orderKey"] =${orderKey};// 订单ID--%>
|
||||
<%--var result = ajaxgetresultpost('<%=path%>/casesInfo/submitback.do', params);--%>
|
||||
<%--alert(result.msg);--%>
|
||||
<%--}--%>
|
||||
function save() {
|
||||
var mileage = $("#mileage").val();
|
||||
var dphm = $("#dphm").val();
|
||||
var arriveTime = $("#arriveTime").val();
|
||||
var refTime = $("#refTime").val();
|
||||
var repairFinishTime = $("#repair_finish_time").val();
|
||||
var handTime = $("#handTime").val();
|
||||
var dmsCode = $("#dmsCode").val();
|
||||
var finalChoice = $("#choice").val();
|
||||
var useTime = $("#use_time").val();
|
||||
var troubleCodeValue = $("#troubleCodeValue").val();
|
||||
var troubleReasonValue = $("#level").val();
|
||||
var repair = $("#repair").val();
|
||||
var remark = $("#remark").val();
|
||||
var uid=$("#uid").val();
|
||||
var tid=$("#tid").val();
|
||||
var params = {};
|
||||
params["uid"] = uid;
|
||||
if(tid != null && tid != ''){
|
||||
params["tid"] = tid;
|
||||
}
|
||||
params["mileage"] = mileage;
|
||||
params["state"] = 0;
|
||||
params["dphm"] = dphm;
|
||||
params["arriveTime"] = arriveTime;
|
||||
params["refTime"] = refTime;
|
||||
params["repairFinishTime"] = repairFinishTime;
|
||||
params["handTime"] = handTime;
|
||||
params["dmsCode"] = dmsCode;
|
||||
params["finalChoice"] = finalChoice;
|
||||
params["useTime"] = useTime;
|
||||
params["troubleCodeValue"] = troubleCodeValue;
|
||||
params["repair"] = repair;
|
||||
params["remark"] = remark;
|
||||
params["troubleReasonValue"] = troubleReasonValue;
|
||||
var result = ajaxgetresultpost('<%=path%>/casesInfo/caseDetailSave.do', params);
|
||||
if (result.sign) {
|
||||
alert("保存成功");
|
||||
} else {
|
||||
alert("保存失败");
|
||||
}
|
||||
}
|
||||
function saveData() {
|
||||
var mileage = $("#mileage").val();
|
||||
var dphm = $("#dphm").val();
|
||||
var arriveTime = $("#arriveTime").val();
|
||||
var refTime = $("#refTime").val();
|
||||
var repairFinishTime = $("#repair_finish_time").val();
|
||||
var handTime = $("#handTime").val();
|
||||
var dmsCode = $("#dmsCode").val();
|
||||
var finalChoice = $("#choice").val();
|
||||
var useTime = $("#use_time").val();
|
||||
var troubleCodeValue = $("#troubleCodeValue").val();
|
||||
var troubleReasonValue = $("#level").val();
|
||||
var repair = $("#repair").val();
|
||||
var remark = $("#remark").val();
|
||||
var uid=$("#uid").val();
|
||||
var tid=$("#tid").val();
|
||||
var params = {};
|
||||
params["uid"] = uid;
|
||||
if(tid != null && tid != ''){
|
||||
params["tid"] = tid;
|
||||
}
|
||||
params["state"] = 1;
|
||||
params["mileage"] = mileage;
|
||||
params["dphm"] = dphm;
|
||||
params["arriveTime"] = arriveTime;
|
||||
params["refTime"] = refTime;
|
||||
params["repairFinishTime"] = repairFinishTime;
|
||||
params["handTime"] = handTime;
|
||||
params["dmsCode"] = dmsCode;
|
||||
params["finalChoice"] = finalChoice;
|
||||
params["useTime"] = useTime;
|
||||
params["troubleCodeValue"] = troubleCodeValue;
|
||||
params["repair"] = repair;
|
||||
params["remark"] = remark;
|
||||
params["troubleReasonValue"] = troubleReasonValue;
|
||||
var result = ajaxgetresultpost('<%=path%>/casesInfo/caseDetailSave.do', params);
|
||||
if (result.sign) {
|
||||
alert("保存成功");
|
||||
} else {
|
||||
alert("保存失败");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<tr>
|
||||
<input value="${r.UID}" id="uid" type="hidden"/>
|
||||
<input value="${r.TID}" id="tid" type="hidden"/>
|
||||
<td class="ng-binding" style="position:relative;"><span>案件号码:</span> ${r.ORDER_CODE} </td>
|
||||
<td class="ng-binding" style="position:relative;"><span>车辆注册日期:</span>
|
||||
<fmt:parseDate value="${r.STARTTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy-MM-dd HH:mm:ss" ></fmt:formatDate>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ng-binding" style="position:relative;"><span>VIN码:</span> ${r.VIN_NO} </td>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<span>车牌号码:</span>${r.PLATENUMBER}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="ng-binding " style="position:relative;">
|
||||
<span>车型:</span>
|
||||
${r.MODEL}
|
||||
</td>
|
||||
<td class="ng-binding" style="position:relative;"><span>服务类型:</span> ${r.SERVICE_NAME}
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ng-binding" style="position:relative;"><span>开案时间:</span>
|
||||
<fmt:parseDate value="${r.CREATE_TIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy-MM-dd HH:mm:ss" ></fmt:formatDate>
|
||||
</td>
|
||||
<td class="ng-binding" style="position:relative;"><span>救援完成时间:</span>
|
||||
<fmt:parseDate value="${r.FINISHTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy-MM-dd HH:mm:ss" ></fmt:formatDate>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ng-binding" style="position:relative;"><span>故障LEVEL1:</span> ${r.LEVELNAME1}
|
||||
</td>
|
||||
<td class="ng-binding" style="position:relative;"><span>故障LEVEL2:</span> ${r.LEVELNAME2}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<span>维修经销商名称:</span> ${r.DNAME}
|
||||
</td>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<span>维修经销商代码:</span> ${r.BRANDNAME}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ng-binding" style="position:relative;"><span>服务商名称:</span> ${r.NAME}
|
||||
</td>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<span>后续利益:</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td colspan="6" style="height:30px;padding-top:30px;">
|
||||
<hr/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<h2 style="font-size:20px;margin-bottom:40px;margin-top:0">经销商必填信息</h2>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DMS单号:</th>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<!-- id="input43Wrap"> -->
|
||||
<input type="text" id="dmsCode" placeholder="DMS单号"
|
||||
value="${r.DMS}"/>
|
||||
</td>
|
||||
<th>故障零件:</th>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<input value="${r.PART}" id="troubleCodeValue"/>
|
||||
<a id="caseInfoEdit20SelCtshowWindowComponent" style="color:#428bca;text-decoration:
|
||||
none" onclick="show();">显示列表</a>
|
||||
<font style="color:red;">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>故障原因:</th>
|
||||
<td class="ng-binding" style="position:relative;"><select id="level"
|
||||
name="faultInfoId" style="width:80%;height:38px;"
|
||||
class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
|
||||
aria-hidden="true">
|
||||
<option value="0">--请选择--</option>
|
||||
<option value="57">安装不当</option>
|
||||
<option value="53">安装了错误部件</option>
|
||||
<option value="110">凹陷</option>
|
||||
<option value="67">疤痕</option>
|
||||
<option value="118">摆动</option>
|
||||
<option value="45">保险丝熔断</option>
|
||||
<option value="109">被剥离</option>
|
||||
<option value="107">被盗</option>
|
||||
<option value="5">被堵塞</option>
|
||||
<option value="19">被腐蚀</option>
|
||||
<option value="16">被碎屑污染</option>
|
||||
<option value="117">被损坏</option>
|
||||
<option value="98">被剪切</option>
|
||||
<option value="30">变形</option>
|
||||
<option value="42">波动</option>
|
||||
<option value="78">不工作</option>
|
||||
<option value="62">部件松动</option>
|
||||
<option value="79">不受广播/发射支持</option>
|
||||
<option value="86">不同步</option>
|
||||
<option value="51">不准确</option>
|
||||
<option value="10">擦伤</option>
|
||||
<option value="59">颤动 / 震动</option>
|
||||
<option value="50">电阻过高</option>
|
||||
<option value="43">冻结(低温)</option>
|
||||
<option value="24">断口</option>
|
||||
<option value="7">断裂</option>
|
||||
<option value="99">短路</option>
|
||||
<option value="101">对地短路</option>
|
||||
<option value="100">对蓄电池短路</option>
|
||||
<option value="25">放气</option>
|
||||
<option value="106">发硬</option>
|
||||
<option value="26">分层</option>
|
||||
<option value="33">工厂损坏</option>
|
||||
<option value="95">刮擦</option>
|
||||
<option value="37">固定件/紧固件 — 断裂</option>
|
||||
<option value="40">固定件/紧固件 — 缺失</option>
|
||||
<option value="38">固定件/紧固件 — 安装不正确</option>
|
||||
<option value="39">固定件/紧固件 — 松脱</option>
|
||||
<option value="55">规格错误</option>
|
||||
<option value="88">过热</option>
|
||||
<option value="36">火烧损坏</option>
|
||||
<option value="9">校准</option>
|
||||
<option value="63">接地线松动</option>
|
||||
<option value="92">静态损耗</option>
|
||||
<option value="23">挤压</option>
|
||||
<option value="103">开裂</option>
|
||||
<option value="85">开路</option>
|
||||
<option value="96">卡滞</option>
|
||||
<option value="58">卡住</option>
|
||||
<option value="105">卡滞</option>
|
||||
<option value="31">空</option>
|
||||
<option value="11">溃缩</option>
|
||||
<option value="108">拉抻</option>
|
||||
<option value="120">类型错误</option>
|
||||
<option value="13">冷凝</option>
|
||||
<option value="15">冷却液污染</option>
|
||||
<option value="14">连接器断开</option>
|
||||
<option value="21">裂缝</option>
|
||||
<option value="47">密封圈/密封胶 — 安装不正确</option>
|
||||
<option value="48">密封圈/密封胶 — 泄漏</option>
|
||||
<option value="46">密封圈/密封胶 — 零件不正确</option>
|
||||
<option value="49">密封圈/密封胶 — 缺失</option>
|
||||
<option value="71">模糊</option>
|
||||
<option value="74">模块间无通信</option>
|
||||
<option value="72">模块未改编</option>
|
||||
<option value="73">模块未配置</option>
|
||||
<option value="114">磨破</option>
|
||||
<option value="119">磨损</option>
|
||||
<option value="115">扭绞</option>
|
||||
<option value="90">喷镀故障</option>
|
||||
<option value="8">膨胀</option>
|
||||
<option value="97">破碎</option>
|
||||
<option value="4">起泡</option>
|
||||
<option value="2">气锁</option>
|
||||
<option value="64">缺失</option>
|
||||
<option value="70">缺失</option>
|
||||
<option value="68">熔化</option>
|
||||
<option value="32">乳化</option>
|
||||
<option value="41">闪烁</option>
|
||||
<option value="94">撕裂</option>
|
||||
<option value="18">水浸</option>
|
||||
<option value="87">失去平衡</option>
|
||||
<option value="93">受限制</option>
|
||||
<option value="20">损坏</option>
|
||||
<option value="111">表面损坏</option>
|
||||
<option value="56">调整不当</option>
|
||||
<option value="34">褪色</option>
|
||||
<option value="27">脱离</option>
|
||||
<option value="102">涂污</option>
|
||||
<option value="3">弯曲</option>
|
||||
<option value="28">完全放电</option>
|
||||
<option value="77">未安装</option>
|
||||
<option value="35">未能初始化</option>
|
||||
<option value="116">无法编程</option>
|
||||
<option value="104">污渍</option>
|
||||
<option value="75">无诊断通信</option>
|
||||
<option value="89">像素丢失或错误</option>
|
||||
<option value="60">泄漏</option>
|
||||
<option value="113">锈蚀</option>
|
||||
<option value="65">压力过低</option>
|
||||
<option value="52">颜色错误</option>
|
||||
<option value="12">压缩</option>
|
||||
<option value="61">液位过低</option>
|
||||
<option value="29">已变色</option>
|
||||
<option value="44">已满</option>
|
||||
<option value="6">易碎</option>
|
||||
<option value="80">异味</option>
|
||||
<option value="82">油封/O 形圈 — 安装不正确</option>
|
||||
<option value="81">油封/O 形圈 — 零件不正确</option>
|
||||
<option value="84">油封/O 形圈 — 缺失</option>
|
||||
<option value="83">油封/O 形圈 — 泄漏</option>
|
||||
<option value="91">有孔</option>
|
||||
<option value="17">油液污染</option>
|
||||
<option value="1">游移</option>
|
||||
<option value="22">有折痕</option>
|
||||
<option value="54">语言错误</option>
|
||||
<option value="76">噪音</option>
|
||||
<option value="69">制造不当</option>
|
||||
<option value="112">肿胀</option>
|
||||
<option value="66">阻力低</option>
|
||||
</select>
|
||||
<span class="select2 select2-container select2-container--default"
|
||||
dir="ltr" style="width: 204px;height:38px;"><span class="selection"><span
|
||||
class="select2-selection select2-selection--single" role="combobox"
|
||||
aria-haspopup="true" aria-expanded="false" tabindex="0"
|
||||
aria-labelledby="select2-caseInfoEdit20SelCtFaultInfo-container"><span
|
||||
class="select2-selection__rendered"
|
||||
id="select2-caseInfoEdit20SelCtFaultInfo-container"><span
|
||||
class="select2-selection__placeholder"></span></span><span
|
||||
class="select2-selection__arrow" role="presentation"><b
|
||||
role="presentation"></b></span></span></span><span class="dropdown-wrapper"
|
||||
aria-hidden="true"></span></span><font
|
||||
color="red"> *</font></td>
|
||||
|
||||
<th>维修结果:</th>
|
||||
<td class="ng-binding" style="position:relative;"><select
|
||||
id="repair" name="completionInfoId"
|
||||
style="width:80%;height:38px;"
|
||||
class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
|
||||
aria-hidden="true">
|
||||
<option value="0">--请选择--</option>
|
||||
<option value="11">车辆无法使用</option>
|
||||
<option value="6">重新标定</option>
|
||||
<option value="1">调整</option>
|
||||
<option value="4">提供的建议</option>
|
||||
<option value="5">未发现故障</option>
|
||||
<option value="2">已充电蓄电池</option>
|
||||
<option value="10">已重新编程(软件上传)</option>
|
||||
<option value="9">已更换零部件 — 问题未解决</option>
|
||||
<option value="8">已更换部件</option>
|
||||
<option value="3">已添加油液到正确液位</option>
|
||||
<option value="7">已维修</option>
|
||||
</select><span class="select2 select2-container select2-container--default"
|
||||
dir="ltr" style="width: 280px;"><span class="selection"><span
|
||||
class="select2-selection select2-selection--single" role="combobox"
|
||||
aria-haspopup="true" aria-expanded="false" tabindex="0"
|
||||
aria-labelledby="select2-caseInfoEdit20SelCtCompletionInfo-container"><span
|
||||
class="select2-selection__rendered"
|
||||
id="select2-caseInfoEdit20SelCtCompletionInfo-container"><span
|
||||
class="select2-selection__placeholder"></span></span><span
|
||||
class="select2-selection__arrow" role="presentation"><b
|
||||
role="presentation"></b></span></span></span><span class="dropdown-wrapper"
|
||||
aria-hidden="true"></span></span><font
|
||||
color="red"> *</font></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>里程表读数:</th>
|
||||
<td class="ng-binding" style="position:relative;"><input value="${r.MILEAGE}"
|
||||
id="mileage" name="odometerReading"
|
||||
style="ime-mode:Disabled"
|
||||
class="mc-ipt-text"
|
||||
type="text"></td>
|
||||
|
||||
<th>预计完成维修日期:</th>
|
||||
<td class="ng-binding" style="position:relative;"><span
|
||||
id="input41Wrap">
|
||||
<fmt:parseDate value="${r.REFTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="date" ></fmt:formatDate>
|
||||
<input type="text" id="refTime" placeholder="日期"
|
||||
value="${date}"
|
||||
class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
|
||||
style="cursor:pointer;"/>
|
||||
<span class="mc-tips">*</span><span class="mc-ipt"><span
|
||||
id="input41Tip" class="mc-ipt-tip-show"
|
||||
style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
|
||||
id="input41Msg" class="mc-ipt-msg"></span></span>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>底盘号码:</th>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<span id="input38Wrap">
|
||||
<input id="dphm" type="text" value="${r.DNUMBER}" class="mc-ipt-text">
|
||||
|
||||
<span class="mc-ipt"></span>
|
||||
<span id="input38Msg" class="mc-ipt-msg">
|
||||
</span>
|
||||
</span>
|
||||
</td>
|
||||
<th>维修结束日期:</th>
|
||||
<td class="ng-binding" style="position:relative;"><span
|
||||
id="input42Wrap">
|
||||
<fmt:parseDate value="${r.FINTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="FINTIME" ></fmt:formatDate>
|
||||
<input type="text" id="repair_finish_time" placeholder="日期"
|
||||
value="${FINTIME}"
|
||||
class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
|
||||
style="cursor:pointer;"/>
|
||||
<span
|
||||
class="mc-tips">*</span><span class="mc-ipt"><span
|
||||
id="input42Tip" class="mc-ipt-tip-show"
|
||||
style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
|
||||
id="input42Msg" class="mc-ipt-msg"></span></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>被救车辆到店日期:</th>
|
||||
<td class="ng-binding" style="position:relative;">
|
||||
<span id="input40Wrap">
|
||||
<fmt:parseDate value="${r.ARRIVETIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="ARRIVETIME" ></fmt:formatDate>
|
||||
<input type="text" id="arriveTime" placeholder="日期"
|
||||
value="${ARRIVETIME}"
|
||||
class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
|
||||
style="cursor:pointer;"/>
|
||||
<span class="mc-tips">*</span>
|
||||
<span class="mc-ipt">
|
||||
<span id="input40Tip" class="mc-ipt-tip-show"
|
||||
style="font-size: 11px; line-height: 17px; height: 17px;">
|
||||
</span>
|
||||
</span>
|
||||
<span id="input40Msg" class="mc-ipt-msg"></span>
|
||||
</span>
|
||||
</td>
|
||||
<th>交车日期:</th>
|
||||
<td class="ng-binding" style="position:relative;"><span
|
||||
id="input43Wrap">
|
||||
<fmt:parseDate value="${r.HANDTIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="HANDTIME" ></fmt:formatDate>
|
||||
<input type="text" id="handTime" placeholder="日期"
|
||||
value="${HANDTIME}"
|
||||
class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
|
||||
style="cursor:pointer;"/>
|
||||
<span
|
||||
class="mc-tips">*</span><span class="mc-ipt"><span
|
||||
id="input43Tip" class="mc-ipt-tip-show"
|
||||
style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
|
||||
id="input43Msg" class="mc-ipt-msg"></span></span>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>文字描述:</th>
|
||||
<td class="ng-binding" style="position:relative;" colspan="3">
|
||||
<textarea id="remark" name="feedbackText" style="width:91%;height:50px;"
|
||||
class="mc-textarea">${r.REMARK}</textarea>
|
||||
<!-- <font style="color:red;"> *<br><span id="feedbackText_counter"></span></font> -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="6" style="height:10px;"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>客户交通出行选择:</th>
|
||||
<td class="ng-binding" style="position:relative;"><select
|
||||
id="choice" name="storeSelection"
|
||||
style="width:80%;height:38px;"
|
||||
class="finalChoice" tabindex="-1"
|
||||
aria-hidden="true">
|
||||
<option>--请选择--</option>
|
||||
<option value="1">经销商代步车</option>
|
||||
<option value="2">出租车</option>
|
||||
<option value="3">上门取送车</option>
|
||||
<option value="4">公共交通</option>
|
||||
</select><span class="select2 select2-container select2-container--default"
|
||||
dir="ltr" style="width: 190px;"><span class="selection"><span
|
||||
class="select2-selection select2-selection--single" role="combobox"
|
||||
aria-haspopup="true" aria-expanded="false" tabindex="0"
|
||||
aria-labelledby="select2-caseInfoEdit20SelCtstoreSelection-container"><span
|
||||
class="select2-selection__rendered"
|
||||
id="select2-caseInfoEdit20SelCtstoreSelection-container"><span
|
||||
class="select2-selection__placeholder"></span></span><span
|
||||
class="select2-selection__arrow" role="presentation"><b
|
||||
role="presentation"></b></span></span></span><span class="dropdown-wrapper"
|
||||
aria-hidden="true"></span></span>
|
||||
</td>
|
||||
<th>客户使用日期:</th>
|
||||
<td class="ng-binding" style="position:relative;"><span id="input48Wrap">
|
||||
<!-- id="input43Wrap"> -->
|
||||
<fmt:parseDate value="${r.USETIME}" pattern="yyyy-MM-dd HH:mm:ss" var="receiveDate"></fmt:parseDate>
|
||||
<fmt:formatDate value="${receiveDate}" pattern="yyyy/MM/dd" var="USETIME" ></fmt:formatDate>
|
||||
<input type="text" id="use_time" placeholder="日期"
|
||||
value="${USETIME}"
|
||||
class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
|
||||
style="cursor:pointer;"/><span
|
||||
class="mc-tips"></span><span class="mc-ipt"><span id="input48Tip"
|
||||
class="mc-ipt-tip-show"
|
||||
style="font-size: 11px; line-height: 17px; height: 17px;"></span></span><span
|
||||
id="input48Msg" class="mc-ipt-msg"></span></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" style="height:10px;"></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="text-align:center;">
|
||||
<c:if test="${r.STATE != '1' && state == '1'}">
|
||||
<button type="button" class="btn btn-danger_green"
|
||||
style="width:200px;color: #fff;background-color: #00CE9F;font-size: 14px;height: 50px;margin-right:25px;"
|
||||
id="caseInfoEdit20ActionsaveAndSubmit" onclick="saveData()">保存并提交反馈案件
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger_green"
|
||||
style="width:200px;color: #fff;background-color: #00CE9F;font-size: 14px;height: 50px;margin-right:25px;"
|
||||
id="caseInfoEdit20ActionsaveAndSubmit" onclick="save()">保存
|
||||
</button>
|
||||
</c:if>
|
||||
<button class="btn btn-link btn-xs" id="caseInfoEdit20ActionReturnList"
|
||||
onclick="window.history.go(-1);">返回列表
|
||||
</button>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</div>
|
||||
|
||||
<div id="caseinfoEdit_fade" class="caseinfoEdit_black_overlay"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="order_undo" id="caseinfoEdit_windowContent" style="display: none;">
|
||||
<div class="dialog_default">
|
||||
<div class="dialog_title">
|
||||
故障零件查询选择列表
|
||||
</div>
|
||||
<div class="dialog_con">
|
||||
<div class="result_input">
|
||||
<span class="line"> </span>主系统:
|
||||
</div>
|
||||
<select id="caseInfoEdit20SelCtshow_ComponentInfoGroups" class="money_con"></select>
|
||||
|
||||
<div class="result_input">
|
||||
<span class="line"> </span>子系统:
|
||||
</div>
|
||||
<select id="caseInfoEdit20SelCtshow_CLSubSystem" class="money_con"></select>
|
||||
|
||||
<div class="result_input">
|
||||
<span class="line"> </span>元件:
|
||||
</div>
|
||||
<select id="caseInfoEdit20SelCtshow_CLElement" class="money_con"></select>
|
||||
|
||||
<div class="confirm_cancel clearfix">
|
||||
<a href="javascript:void(0);" id="caseInfoEdit20SelCtshow_OK" class="btn2">确 定</a>
|
||||
<a href="javascript:void(0);" id="caseInfoEdit20SelCtshow_Cancel"
|
||||
class="btn1 cancel">取 消</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footers.jsp" %>
|
@ -303,4 +303,4 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -245,4 +245,4 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
248
src/main/webapp/page/caseInfoRepair.jsp
Normal file
248
src/main/webapp/page/caseInfoRepair.jsp
Normal file
@ -0,0 +1,248 @@
|
||||
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@page language="java" contentType="text/html; charset=utf-8"
|
||||
pageEncoding="utf-8" %>
|
||||
<%@ include file="header.jsp" %>
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<%=webpath%>/css/printOut.css"/>
|
||||
<script type="text/javascript" src="<%=webpath%>/js/business/caseEnter.js"></script>
|
||||
<script type="text/javascript" src="<%=webpath%>/js/DatePicker/WdatePicker.js"></script>
|
||||
<script type="text/javascript" src="<%=webpath%>/js/jquery.jqprint-0.3.js"></script>
|
||||
<script src="http://www.jq22.com/jquery/jquery-migrate-1.2.1.min.js"></script>
|
||||
<style media="print">
|
||||
.Noprint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.PageNext {
|
||||
page-break-after: always;
|
||||
}
|
||||
table.searchTable td:nth-last-child(1){
|
||||
width:40%;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function query() {
|
||||
var queryParams = {};
|
||||
var frame_code = $("#frame_code").val();
|
||||
var caseCode = $("#caseCode").val();
|
||||
var createTime = $("#createTime").val();
|
||||
var finishTime = $("#finishTime").val();
|
||||
if ((frame_code == null || frame_code == '') && (caseCode == null || caseCode == '') &&
|
||||
(finishTime == null || finishTime == '') && (createTime == null || createTime == '')) {
|
||||
alert("查询条件不能为空");
|
||||
return;
|
||||
}
|
||||
queryParams['frame_code'] = frame_code;
|
||||
queryParams['caseCode'] = caseCode;
|
||||
queryParams['createTime'] = createTime;
|
||||
queryParams['finishTime'] = finishTime;
|
||||
var state = parseInt(${state});
|
||||
queryParams['state'] = state;
|
||||
queryCouponList("<%=path%>/casesInfo/caseRepairQuery.do", queryParams,
|
||||
"<%=path%>/casesInfo/caseRepairInfo.do?code=",state);
|
||||
}
|
||||
function clearVal() {
|
||||
$("#frame_code").val("");
|
||||
$("#license").val("");
|
||||
$("#caseCode").val("");
|
||||
$("#createTime").val("");
|
||||
$("#finishTime").val("");
|
||||
}
|
||||
|
||||
function clearValState1() {
|
||||
$("#license").val("");
|
||||
$("#frame_code").val("");
|
||||
$("#caseCode").val("");
|
||||
$("#createTime").val("");
|
||||
$("#finishTime").val("");
|
||||
$("#companyName").val("");
|
||||
$("#rescueState").val("0");
|
||||
}
|
||||
|
||||
$(window).ready(function () {
|
||||
var frame_code = $("#frame_code").val();
|
||||
var caseCode = $("#caseCode").val();
|
||||
var createTime = $("#createTime").val();
|
||||
var finishTime = $("#finishTime").val();
|
||||
var queryParams = {};
|
||||
queryParams['frame_code'] = frame_code;
|
||||
queryParams['caseCode'] = caseCode;
|
||||
queryParams['createTime'] = createTime;
|
||||
queryParams['finishTime'] = finishTime;
|
||||
var state = parseInt(${state});
|
||||
queryParams['state'] = state;
|
||||
queryCouponList("<%=path%>/casesInfo/caseRepairQuery.do", queryParams,
|
||||
"<%=path%>/casesInfo/caseRepairInfo.do?code=",state);
|
||||
})
|
||||
|
||||
//导出数据
|
||||
function expordata() {
|
||||
var frame_code = $("#frame_code").val();
|
||||
var caseCode = $("#caseCode").val();
|
||||
var createTime = $("#createTime").val();
|
||||
var finishTime = $("#finishTime").val();
|
||||
var params = {};
|
||||
params["frame_code"] = frame_code;
|
||||
params["caseCode"] = caseCode;
|
||||
params["createTime"] = createTime;
|
||||
params["finishTime"] = finishTime;
|
||||
var state = parseInt(${state});
|
||||
params['state'] = state;
|
||||
var checkurl = $("#paths").val() + "/casesInfo/exportDataRepair.do";
|
||||
//刷新列表
|
||||
var data = ajaxgetresultpost(checkurl, params);
|
||||
if (data.result == 1) {
|
||||
$.messager.alert("提示", data.msg);
|
||||
} else {
|
||||
window.open(data.webUrl);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//导出数据
|
||||
function expordataCSV() {
|
||||
var frame_code = $("#frame_code").val();
|
||||
var caseCode = $("#caseCode").val();
|
||||
var createTime = $("#createTime").val();
|
||||
var finishTime = $("#finishTime").val();
|
||||
var params = {};
|
||||
params["frame_code"] = frame_code;
|
||||
params["caseCode"] = caseCode;
|
||||
params["createTime"] = createTime;
|
||||
params["finishTime"] = finishTime;
|
||||
var state = parseInt(${state});
|
||||
params['state'] = state;
|
||||
var checkurl = $("#paths").val() + "/casesInfo/exportDataCSVRepair.do";
|
||||
//刷新列表
|
||||
var data = ajaxgetresultpost(checkurl, params);
|
||||
if (data.result == 1) {
|
||||
$.messager.alert("提示", data.msg);
|
||||
} else {
|
||||
window.open(data.webUrl);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<input type="hidden" id="paths" value="<%=path%>"/>
|
||||
<!--希望打印时不显示的内容设置class="Noprint"样式-->
|
||||
<!--IE内置打印控件IEWebBrowser-->
|
||||
<OBJECT id="wb" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" name="wb"></OBJECT>
|
||||
<div id="main" class="Noprint">
|
||||
<div class="search">
|
||||
|
||||
<table class="searchTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<!-- <td><b><font><font>车牌号</font></font></b></td> -->
|
||||
<td style="position:relative;">
|
||||
<span class="inputTitle"> 案件编号: </span>
|
||||
<span>
|
||||
<input id="caseCode" name="endSubmitDate"
|
||||
type="text" value=""
|
||||
class="mc-ipt-text hasDatepicker"
|
||||
style=""/><span class="mc-ipt"
|
||||
style="width:90%;">
|
||||
<span
|
||||
id="input33Tip"
|
||||
class="mc-ipt-tip-query"
|
||||
style="font-size: 11px; line-height: 40px; height: 40px;"></span></span></span>
|
||||
</td>
|
||||
|
||||
<!-- <td><b><font><font>VIN码</font></font></b></td> -->
|
||||
<td style="position:relative;">
|
||||
<span class="inputTitle">VIN码: </span>
|
||||
<span>
|
||||
<input id="frame_code" name="endSubmitDate"
|
||||
type="text" value=""
|
||||
class="mc-ipt-text hasDatepicker"
|
||||
style=""/><span class="mc-ipt"
|
||||
style="width:90%;"><span
|
||||
id="input33Tip" class="mc-ipt-tip-query"
|
||||
style="font-size: 11px; line-height: 40px; height: 40px;"></span></span></span></td>
|
||||
|
||||
<td colspan="2">
|
||||
|
||||
<button class="t-button searchBtn " id="CaseInfoList2btnCtClear" style="margin-right:10px;"
|
||||
type="button" onclick="expordataCSV()">导出CSV报表
|
||||
</button>
|
||||
<button class="t-button searchBtn " id="CaseInfoList2btnCtClear" style="margin-right:10px;"
|
||||
type="button" onclick="expordata()">导出EXCEL报表
|
||||
</button>
|
||||
<button class="t-button searchBtn" id="CaseInfoList2btnCtClear" style="margin-right:10px;"
|
||||
type="button"
|
||||
onclick="clearVal();"><img class="searchIcon" src="../images/clear.png">清空
|
||||
</button>
|
||||
<button class="t-button searchBtn" style="margin-right:10px;" id="CaseInfoList2btnCtSearch"
|
||||
type="button" onclick="query();"><img class="searchIcon" src="../images/search.png">搜索
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="inputTitle"> 开始日期: </span>
|
||||
<input type="text" id="createTime" class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd',maxDate:'#F{$dp.$D(\'finishTime\')||\'%y-%M-%d\'}'})"
|
||||
style="cursor:pointer;"/>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span class="inputTitle"> 结束日期: </span>
|
||||
<input type="text" id="finishTime" class="Wdate" readonly="readonly"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd',maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'createTime\')}'})"
|
||||
style="cursor:pointer;"/>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table id="datatable"></table>
|
||||
</div>
|
||||
<div class="order_print" style="display: none">
|
||||
<div class="printWrap">
|
||||
<div class="printTitle Noprint">
|
||||
救援完成确认
|
||||
<a class="printBtn" onclick="printOut()">打印</a>
|
||||
<a class="printClose"><img src="<%=path%>/images/close.png" alt=""></a>
|
||||
</div>
|
||||
<div class="printCon">
|
||||
<form>
|
||||
<table class="PrintCase"></table>
|
||||
<hr/>
|
||||
<table class="saveDetail"></table>
|
||||
<table class="sign"></table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(".printClose").on("click", function () {
|
||||
$(".order_print").hide();
|
||||
})
|
||||
|
||||
// function print(){
|
||||
// $(".printCon").jqprint();
|
||||
// }
|
||||
// 打印
|
||||
function printOut() {
|
||||
var explorer = window.navigator.userAgent;
|
||||
// //firefox 浏览器
|
||||
// else if (explorer.indexOf("Firefox") >= 0) {
|
||||
// alert("Firefox浏览器");
|
||||
// }
|
||||
//Chrome浏览器
|
||||
if (explorer.indexOf("Chrome") >= 0) {
|
||||
$(".printCon").jqprint();
|
||||
} else {
|
||||
$("#menucontainer").addClass("Noprint");
|
||||
$("#header").addClass("Noprint");
|
||||
wb.execwb(8, 1);
|
||||
wb.execwb(6, 1);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="footers.jsp" %>
|
@ -237,4 +237,4 @@
|
||||
故障信息 <input type="text" id="hitchInfo" style="width:215px;"></br>
|
||||
<input type="button" value="提交" onclick="submitconsume();">
|
||||
</div> -->
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -172,4 +172,4 @@ $(document).on('click','.cancel',function(){
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp"%>
|
||||
<%@ include file="footers.jsp"%>
|
@ -357,4 +357,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -142,4 +142,4 @@
|
||||
<table id="datatable"></table>
|
||||
</div>
|
||||
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -461,4 +461,4 @@
|
||||
故障信息 <input type="text" id="hitchInfo" style="width:215px;"></br>
|
||||
<input type="button" value="提交" onclick="submitconsume();">
|
||||
</div> -->
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
306
src/main/webapp/page/footers.jsp
Normal file
306
src/main/webapp/page/footers.jsp
Normal file
@ -0,0 +1,306 @@
|
||||
<%@page language="java" contentType="text/html; charset=utf-8"
|
||||
pageEncoding="utf-8" %>
|
||||
<script type="text/javascript" src="<%=webpath%>/js/DatePicker/WdatePicker.js"></script>
|
||||
<script type="text/javascript">
|
||||
function submitMyInfo() {
|
||||
var path = $("#mypaths").val();
|
||||
var newPassword = $("#newPassword").val();
|
||||
var confirmPassword = $("#confirmPassword").val();
|
||||
if (newPassword != confirmPassword) {
|
||||
alert("密码和确认密码不匹配");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
cache: true,
|
||||
type: "POST",
|
||||
url: path + "/enterprise/put_Myenterprise.do",
|
||||
data: $('#enterpriseform').serialize(),// 你的formid
|
||||
async: false,
|
||||
error: function (request) {
|
||||
alert("Connection error");
|
||||
},
|
||||
success: function (data) {
|
||||
var data = eval("(" + data + ")");
|
||||
if (data.flag == 1) {
|
||||
$("#my_info_dialog").hide();
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function getMapUrl() {
|
||||
var mapUrl = $("#map_frame").attr("src");
|
||||
setTimeout(function () {
|
||||
$("#map_frame").attr("src", mapUrl);
|
||||
}, 1);
|
||||
}
|
||||
|
||||
|
||||
function showMyInfoDialog() {
|
||||
$("#enterpriseform").form("clear");
|
||||
var params = {};
|
||||
var result = ajaxgetresultpost($("#mypaths").val()
|
||||
+ '/enterprise/get_my_info.do', params);
|
||||
if (result.flag == 0) {
|
||||
alert(result.msg);
|
||||
} else {
|
||||
// alert(result.data);
|
||||
getMapUrl();
|
||||
loadData(result.data);
|
||||
$("#my_info_dialog").show();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function loadData(obj) {
|
||||
var key, value, tagName, type, arr;
|
||||
for (x in obj) {
|
||||
key = x;
|
||||
value = obj[x];
|
||||
$("#my_info_dialog").find($("[name='" + key + "'],[name='" + key + "[]']")).each(function () {
|
||||
tagName = $(this)[0].tagName;
|
||||
type = $(this).attr('type');
|
||||
if (tagName == 'INPUT') {
|
||||
if (type == 'radio') {
|
||||
$(this).attr('checked', $(this).val() == value);
|
||||
} else if (type == 'checkbox') {
|
||||
arr = value.split(',');
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
//alert($(this).val()+'&&'+arr[i]+i);
|
||||
if ($(this).val() == arr[i]) {
|
||||
//alert(1);
|
||||
$(this).prop('checked', true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$(this).val(value);
|
||||
}
|
||||
} else if (tagName == 'SELECT' || tagName == 'TEXTAREA') {
|
||||
$(this).val(value);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
$(document).on('click', '.cancel1', function () {
|
||||
$(".order_undo1").hide();
|
||||
});
|
||||
$(document).on('click', '.cancel', function () {
|
||||
$(".order_undo").hide();
|
||||
});
|
||||
function loginEmailBlur(strEmail) {
|
||||
var loginEmail = $.trim($("input[name='brands']").val());
|
||||
if (loginEmail == null || loginEmail == "") {
|
||||
alert("您的邮箱账号忘记输入了");
|
||||
}
|
||||
else {
|
||||
if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
alert("请输入正确的邮箱格式");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function () {
|
||||
var firstPage = $("#firstPage").val();
|
||||
var isShow = $("#isShow").val();
|
||||
if (firstPage == '1' && isShow == '1') {
|
||||
var params = {};
|
||||
var result = ajaxgetresultpost($("#mypaths").val()
|
||||
+ '/enterprise/get_my_info.do', params);
|
||||
//alert(result.data);
|
||||
if (result.flag == 0) {
|
||||
alert(result.msg);
|
||||
} else {
|
||||
// alert(result.data);
|
||||
getMapUrl();
|
||||
loadData(result.data);
|
||||
var brands = $("#brands").val();
|
||||
if (brands == null || brands == '') {
|
||||
$("#my_info_dialog").show();
|
||||
setTimeout(function () {
|
||||
alert("对账邮箱信息不能为空");
|
||||
}, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<input id="isShow" type="hidden" value="<%=null != dto.getEnterpriseJlrId() &&0<dto.getEnterpriseJlrId()?1:0%>">
|
||||
<input id="firstPage" type="hidden" value="${firstPage==null||firstPage==''?0:firstPage}">
|
||||
<div class="order_undo1" id="my_info_dialog" style="display: none;">
|
||||
<form action="" id="enterpriseform">
|
||||
<div class="dialog_default" style="width:800px">
|
||||
<div class="dialog_title">编辑</div>
|
||||
<div class="dialog_con2">
|
||||
|
||||
<div class="dialog_left2">
|
||||
<table style="width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span style="margin-right: 30px;">经销商名称</span><input name="name" type="text"
|
||||
value="" readonly="readonly"
|
||||
style="border:0;background:none;"/>
|
||||
</td>
|
||||
<td><span style="margin-right: 30px;">经销商代码</span><input name="abbr_code" type="text"
|
||||
value="" readonly="readonly"
|
||||
style="border:0;background:none;"/>
|
||||
</td>
|
||||
<!-- <td><span>简称</span><input name="registry" type="text"
|
||||
value=""/></td> -->
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="line-height:32px;">
|
||||
<span style="margin-right: 36px;">服务资质</span>
|
||||
<input type="checkbox" id="roadRepair" name="service_qualification" value="路修"
|
||||
style="margin-right:5px;" disabled/> 路修
|
||||
<input type="checkbox" id="trailer" name="service_qualification" value="拖车"
|
||||
style="margin-left:20px;margin-right:5px;" disabled/> 拖车
|
||||
</td>
|
||||
|
||||
<td><span style="margin-right: 30px;">地址</span> <input name="address" id="address"
|
||||
type="text" value=""
|
||||
readonly="readonly"
|
||||
style="border:0;background:none;"/>
|
||||
<!-- <input type="button" class="addressBtn" value="选择地址" onclick="showmap();"/> -->
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span>24小时联系人1</span>
|
||||
<div class="contactWrap"><input class="contactInput" name="contact" placeholder="姓名"
|
||||
type="text" value="" id="contact"/></div>
|
||||
<div class="contactWrap"><input class="contactInput" name="phone1" placeholder="电话"
|
||||
type="text" value="" id="phone1"/></div>
|
||||
<div class="contactWrap"><input class="contactInput" name="job1" placeholder="职务"
|
||||
type="text" value="" id="job1"/></div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span>24小时联系人2</span>
|
||||
<div class="contactWrap"><input class="contactInput" name="contact2" placeholder="姓名"
|
||||
type="text" value=""/></div>
|
||||
<div class="contactWrap"><input class="contactInput" name="phone2"
|
||||
placeholder="电话" type="text"
|
||||
value="" style=""/></div>
|
||||
<div class="contactWrap">
|
||||
<input class="contactInput" name="job2" placeholder="职务" type="text" value=""/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span>对账联系人</span>
|
||||
<div class="contactWrap"><input class="contactInput" name="contact3" placeholder="姓名"
|
||||
type="text" value=""/></div>
|
||||
<div class="contactWrap"><input class="contactInput" name="phone3" placeholder="电话"
|
||||
type="text"
|
||||
value="" style=""/></div>
|
||||
<div class="contactWrap">
|
||||
<input class="contactInput" name="job3" placeholder="职务" type="text" value=""/>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<!-- <td><span>联系人</span><input name="contact" type="text"
|
||||
value="" /></td> -->
|
||||
<td colspan="2"><span>对账邮箱</span><input id="brands" name="brands" type="email"
|
||||
value="" onblur="loginEmailBlur(this.value)"/>
|
||||
<font style="color:red;margin-left:5px;font-size:12px;">该邮箱自动绑定服务费用结算通知,如有变动请及时更新!</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<span>更改密码</span>
|
||||
<input id="newPassword" name="newPassword" type="password" placeholder="密码"
|
||||
value=""/></td>
|
||||
<td>
|
||||
<span>确认密码</span>
|
||||
|
||||
<input id="confirmPassword" name="confirmPassword" type="password" placeholder="确认密码"
|
||||
value=""/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span>VIN码</span>
|
||||
<input id="vin" name="vin_code" type="text" placeholder="VIN码"
|
||||
value=""/></td>
|
||||
<td>
|
||||
<span>车型</span>
|
||||
|
||||
<input id="carType" name="car_type" type="text" placeholder="车型"
|
||||
value=""/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span>首次销售日期</span>
|
||||
<input type="text" id="firstSellDate" placeholder="首次销售日期"
|
||||
class="Wdate" readonly="readonly"
|
||||
name="first_sale_date"
|
||||
onfocus="WdatePicker({errDealMode:2,readOnly:true,startDate:'%y-%M-%d %H:%m:%s',dateFmt:'yyyy/MM/dd'})"
|
||||
style="cursor:pointer;"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<input type="hidden" name="lat"/>
|
||||
<input type="hidden" name="lon"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="confirm_cancel clearfix">
|
||||
|
||||
<a href="javascript:void(0);" class="btn2"
|
||||
style="margin-right:20px;float: left;margin-left:80px;" onclick="submitMyInfo();">确 认</a>
|
||||
<a href="javascript:void(0);" class="btn1 cancel1" style="float: left;">取 消</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<%-- <div class="dialog_right">
|
||||
<iframe src="<%=path%>/base/amap.do" frameborder="0" scrolling="no"
|
||||
id="map_frame" style="width: 715px;height: 550px"></iframe>
|
||||
</div> --%>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<input type="hidden" id="mypaths" value="<%=path%>">
|
||||
<!-- <div class="footer"></div> -->
|
||||
<div></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -82,12 +82,33 @@ LoginUserVo dto = (LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
margin-left: 70px;
|
||||
letter-spacing: 2px;
|
||||
">
|
||||
中道救援
|
||||
</div>
|
||||
<!-- <div id="title">
|
||||
<h1></h1>
|
||||
</div> -->
|
||||
|
||||
<div id="logindisplay">
|
||||
<span id="text">维修信息缺失提醒</span>
|
||||
<span id="warn" style="color:red"></span>
|
||||
<script>
|
||||
$(window).ready(function () {
|
||||
if('${logininfo.enterpriseJlrId}' != 0){
|
||||
$.post("/casesInfo/caseEnterQueryrRepair.do","",function (data) {
|
||||
var data = eval("(" + data + ")");
|
||||
var datas=data.rows;
|
||||
var j=0;
|
||||
for(var i=0;i<datas.length;i++){
|
||||
if(datas[i].STATE == ''){
|
||||
j++;
|
||||
}
|
||||
}
|
||||
$("#warn").html(j);
|
||||
})
|
||||
}else{
|
||||
$("#text").html("");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
欢迎 <%= null != dto ? dto.getName() : "请登陆" %>
|
||||
<%= null != dto.getEnterpriseJlrId() &&0< dto.getEnterpriseJlrId() ? "<a class=\"modifyPas\" onclick=\"showMyInfoDialog();\">[用户中心]</a>" : "" %>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
pageEncoding="utf-8"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@ page language="java"
|
||||
import="java.util.*,com.zhongdao.jlr.business.vo.*"
|
||||
import="com.zhongdao.jlr.business.vo.*"
|
||||
%>
|
||||
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%
|
||||
@ -138,6 +138,28 @@ LoginUserVo dto = (LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
<h1></h1>
|
||||
</div> -->
|
||||
<div id="logindisplay">
|
||||
<span id="text">维修信息缺失提醒</span>
|
||||
<span id="warn" style="color:red"></span>
|
||||
<script>
|
||||
$(window).ready(function () {
|
||||
if('${logininfo.enterpriseJlrId}' != 0){
|
||||
$.post("/casesInfo/caseEnterQueryrRepair.do","",function (data) {
|
||||
var data = eval("(" + data + ")");
|
||||
var datas=data.rows;
|
||||
var j=0;
|
||||
for(var i=0;i<datas.length;i++){
|
||||
if(datas[i].STATE == ''){
|
||||
j++;
|
||||
}
|
||||
}
|
||||
$("#warn").html(j);
|
||||
|
||||
})
|
||||
}else{
|
||||
$("#text").html("");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
欢迎 <%= null != dto ? dto.getName() : "请登陆" %>
|
||||
<%= null != dto.getEnterpriseJlrId() &&0< dto.getEnterpriseJlrId() ? "<a class=\"modifyPas\" onclick=\"showMyInfoDialog();\">[用户中心]</a>" : "" %>
|
||||
<a href="<%=path%>/base/loginout.do" class="logout" >
|
||||
@ -193,4 +215,4 @@ LoginUserVo dto = (LoginUserVo)request.getSession().getAttribute("logininfo");
|
||||
</div>
|
||||
<!-- style="position:absolute;top:115px;left:0;right:0;bottom:10px;background-image: url(../images/timg.jpg);background-size:100% 100%;" -->
|
||||
</div>
|
||||
<%@ include file="footer.jsp"%>
|
||||
<%@ include file="footers.jsp"%>
|
@ -7,4 +7,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp"%>
|
||||
<%@ include file="footers.jsp"%>
|
@ -177,4 +177,4 @@
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -343,4 +343,4 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -360,4 +360,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -241,4 +241,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -200,4 +200,4 @@
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -318,4 +318,4 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -545,4 +545,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
@ -387,4 +387,4 @@
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<%@ include file="footer.jsp" %>
|
||||
<%@ include file="footers.jsp" %>
|
Reference in New Issue
Block a user