作者 申海龙

redis配置文件获取 预备新增再次编辑 货主信息 主单号删除

@@ -982,6 +982,27 @@ public class ManifestController extends BasicController { @@ -982,6 +982,27 @@ public class ManifestController extends BasicController {
982 @RequestMapping(value = "/save", method = { RequestMethod.POST }) 982 @RequestMapping(value = "/save", method = { RequestMethod.POST })
983 @ResponseBody 983 @ResponseBody
984 public ResponseModel save(ManifestEntity manifest, HttpServletRequest reuqest) { 984 public ResponseModel save(ManifestEntity manifest, HttpServletRequest reuqest) {
  985 +
  986 +
  987 + //发货人
  988 + String forShortShipper = reuqest.getParameter("for_short_shipper");
  989 + //订舱代理
  990 + String forShortBooking = reuqest.getParameter("for_short_booking");
  991 + //操作代理
  992 + String forShortOperation = reuqest.getParameter("for_short_operation");
  993 +
  994 + List<String> list = new ArrayList<>();
  995 + if (!StringUtils.isEmpty(forShortShipper)){
  996 + list.add(forShortShipper);
  997 + }
  998 + if (!StringUtils.isEmpty(forShortBooking)){
  999 + list.add(forShortBooking);
  1000 + }
  1001 + if (!StringUtils.isEmpty(forShortOperation)){
  1002 + list.add(forShortOperation);
  1003 + }
  1004 +
  1005 +
985 String flightno = manifest.getFlightno(); 1006 String flightno = manifest.getFlightno();
986 String carrier = ""; 1007 String carrier = "";
987 if (StringUtils.isNotBlank(flightno) && flightno.length() > 2) { 1008 if (StringUtils.isNotBlank(flightno) && flightno.length() > 2) {
@@ -1023,6 +1044,26 @@ public class ManifestController extends BasicController { @@ -1023,6 +1044,26 @@ public class ManifestController extends BasicController {
1023 } 1044 }
1024 } 1045 }
1025 1046
  1047 + //查询数据库是否存在 如果不存在直接添加 存在就删除 再进行添加
  1048 + if (hzWaybillService.findHzId(manifest.getWaybillnomaster()).size()>0){
  1049 + if (hzWaybillService.deleteAlls(manifest.getWaybillnomaster())>0){
  1050 + for (String sId : list){
  1051 + HZWAYBLLINFOEntity hzwaybllinfoEntity = new HZWAYBLLINFOEntity();
  1052 + hzwaybllinfoEntity.setWaybill_id(manifest.getWaybillnomaster());
  1053 + hzwaybllinfoEntity.setHzinfor_id(sId);
  1054 + hzWaybillService.save(hzwaybllinfoEntity);
  1055 + }
  1056 + }
  1057 +
  1058 + }else {
  1059 + for (String sId : list){
  1060 + HZWAYBLLINFOEntity hzwaybllinfoEntity = new HZWAYBLLINFOEntity();
  1061 + hzwaybllinfoEntity.setWaybill_id(manifest.getWaybillnomaster());
  1062 + hzwaybllinfoEntity.setHzinfor_id(sId);
  1063 + hzWaybillService.save(hzwaybllinfoEntity);
  1064 + }
  1065 + }
  1066 +
1026 model.setData(manifest); 1067 model.setData(manifest);
1027 model.setStatus(200); 1068 model.setStatus(200);
1028 model.setMsg(HttpJsonMsg.SUCCESS); 1069 model.setMsg(HttpJsonMsg.SUCCESS);
@@ -10,6 +10,7 @@ import com.framework.core.Servlets; @@ -10,6 +10,7 @@ import com.framework.core.Servlets;
10 import com.plugin.easyui.DataGrid; 10 import com.plugin.easyui.DataGrid;
11 import com.plugin.easyui.EasyPage; 11 import com.plugin.easyui.EasyPage;
12 import org.apache.commons.collections.CollectionUtils; 12 import org.apache.commons.collections.CollectionUtils;
  13 +import org.apache.commons.lang.StringUtils;
13 import org.springframework.stereotype.Controller; 14 import org.springframework.stereotype.Controller;
14 import org.springframework.ui.Model; 15 import org.springframework.ui.Model;
15 import org.springframework.web.bind.annotation.RequestMapping; 16 import org.springframework.web.bind.annotation.RequestMapping;
@@ -18,7 +19,10 @@ import org.springframework.web.bind.annotation.ResponseBody; @@ -18,7 +19,10 @@ import org.springframework.web.bind.annotation.ResponseBody;
18 19
19 import javax.annotation.Resource; 20 import javax.annotation.Resource;
20 import javax.servlet.http.HttpServletRequest; 21 import javax.servlet.http.HttpServletRequest;
  22 +import java.text.ParseException;
  23 +import java.text.SimpleDateFormat;
21 import java.util.ArrayList; 24 import java.util.ArrayList;
  25 +import java.util.Date;
22 import java.util.List; 26 import java.util.List;
23 import java.util.Map; 27 import java.util.Map;
24 28
@@ -46,13 +50,26 @@ public class CargoController { @@ -46,13 +50,26 @@ public class CargoController {
46 */ 50 */
47 @RequestMapping(value="grid.json") 51 @RequestMapping(value="grid.json")
48 @ResponseBody 52 @ResponseBody
49 - public DataGrid<CargoCountVo> grid(HttpServletRequest request, EasyPage<CargoCountEntity> pageForm) { 53 + public DataGrid<CargoCountVo> grid(HttpServletRequest request, EasyPage<CargoCountEntity> pageForm) throws ParseException {
50 Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_"); 54 Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_");
51 - if (!searchParams.containsKey("LIKE_tstype")){  
52 - searchParams.put("LIKE_tstype", 1); 55 +//
  56 + if (searchParams.containsKey("GTES_flightdate")){
  57 + String gte_flightdate = searchParams.get("GTES_flightdate").toString();
  58 + if (!StringUtils.isBlank(gte_flightdate)){
  59 + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  60 + Date parse = simpleDateFormat.parse(gte_flightdate);
  61 + searchParams.put("GTES_flightdate", parse);
  62 + }
53 } 63 }
54 64
55 - 65 + if (searchParams.containsKey("LTES_flightdate")){
  66 + String gte_flightdate = searchParams.get("LTES_flightdate").toString();
  67 + if (!StringUtils.isBlank(gte_flightdate)) {
  68 + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  69 + Date parse = simpleDateFormat.parse(gte_flightdate);
  70 + searchParams.put("LTES_flightdate", parse);
  71 + }
  72 + }
56 pageForm.setSearchParams(searchParams); 73 pageForm.setSearchParams(searchParams);
57 pageForm.parseData(cargoCountService.getPage(pageForm)); 74 pageForm.parseData(cargoCountService.getPage(pageForm));
58 DataGrid<CargoCountEntity> cargoCountEntityDataGrid = pageForm.getData(); 75 DataGrid<CargoCountEntity> cargoCountEntityDataGrid = pageForm.getData();
@@ -64,13 +81,15 @@ public class CargoController { @@ -64,13 +81,15 @@ public class CargoController {
64 CargoCountVo vo = new CargoCountVo(); 81 CargoCountVo vo = new CargoCountVo();
65 vo.setForshort(cargo.getForshort()); 82 vo.setForshort(cargo.getForshort());
66 vo.setFullname(cargo.getFullname()); 83 vo.setFullname(cargo.getFullname());
67 - if ("1".equals(cargo.getTstype())){  
68 - vo.setTstype("发货人");  
69 - }else if ("2".equals(cargo.getTstype())){  
70 - vo.setTstype("订舱代理");  
71 - }else {  
72 - vo.setTstype("操作代理");  
73 - } 84 + vo.setTstype(cargo.getTstype());
  85 +// if ("1".equals(cargo.getTstype())){
  86 +// vo.setTstype("发货人");
  87 +// }else if ("2".equals(cargo.getTstype())){
  88 +// vo.setTstype("订舱代理");
  89 +// }else if("3".equals(cargo.getTstype())){
  90 +// vo.setTstype("操作代理");
  91 +// }
  92 + vo.setTstype(cargo.getTstype());
74 vo.setContacts(cargo.getContacts()); 93 vo.setContacts(cargo.getContacts());
75 vo.setPhone(cargo.getPhone()); 94 vo.setPhone(cargo.getPhone());
76 vo.setWaybill(cargo.getWaybill()); 95 vo.setWaybill(cargo.getWaybill());
@@ -93,7 +112,6 @@ public class CargoController { @@ -93,7 +112,6 @@ public class CargoController {
93 vos.setRows(cargoCountVos); 112 vos.setRows(cargoCountVos);
94 vos.setTotal(cargoCountEntityDataGrid.getTotal()); 113 vos.setTotal(cargoCountEntityDataGrid.getTotal());
95 return vos; 114 return vos;
96 -  
97 } 115 }
98 116
99 } 117 }
@@ -20,9 +20,9 @@ public interface ManifestRepository extends PagingAndSortingRepository<ManifestE @@ -20,9 +20,9 @@ public interface ManifestRepository extends PagingAndSortingRepository<ManifestE
20 @Query(value = "UPDATE MANIFEST SET IS_DELETE = 1 WHERE ID = ?1",nativeQuery = true) 20 @Query(value = "UPDATE MANIFEST SET IS_DELETE = 1 WHERE ID = ?1",nativeQuery = true)
21 public void delete(Long id); 21 public void delete(Long id);
22 22
23 - @Transactional 23 +// @Transactional
24 @Modifying 24 @Modifying
25 - @Query(value = "DELETE FROM MANIFEST WHERE ID = ?1",nativeQuery = true) 25 + @Query(value = "DELETE FROM MANIFEST WHERE ID = ?1", nativeQuery = true)
26 void trueDelete(Long id); 26 void trueDelete(Long id);
27 27
28 @Transactional 28 @Transactional
@@ -209,7 +209,9 @@ public class ManifestService extends BasicService<ManifestEntity> { @@ -209,7 +209,9 @@ public class ManifestService extends BasicService<ManifestEntity> {
209 //删除主单和货主绑定关系 209 //删除主单和货主绑定关系
210 hzWaybillRepository.deleteAlls(waybillnomaster); 210 hzWaybillRepository.deleteAlls(waybillnomaster);
211 //主单 211 //主单
212 - manifestRepository.trueDelete(Long.valueOf(id)); 212 + ManifestEntity manifestEntity = new ManifestEntity();
  213 + manifestEntity.setId(Long.valueOf(id));
  214 + manifestRepository.delete(manifestEntity);
213 } 215 }
214 }catch (Exception e){ 216 }catch (Exception e){
215 e.printStackTrace(); 217 e.printStackTrace();
1 package com.agent.xml; 1 package com.agent.xml;
2 2
  3 +import com.framework.util.PropertiesLoader;
3 import org.apache.commons.lang3.StringUtils; 4 import org.apache.commons.lang3.StringUtils;
4 5
5 import redis.clients.jedis.Jedis; 6 import redis.clients.jedis.Jedis;
@@ -18,8 +19,9 @@ import redis.clients.jedis.Jedis; @@ -18,8 +19,9 @@ import redis.clients.jedis.Jedis;
18 class XmlSendTask extends Thread { 19 class XmlSendTask extends Thread {
19 // 创建 缓存服务器的地址ip 20 // 创建 缓存服务器的地址ip
20 // private Jedis jedis = new Jedis("10.50.3.71", 6379); 21 // private Jedis jedis = new Jedis("10.50.3.71", 6379);
21 - private Jedis jedis = new Jedis("10.50.3.84", 6379);  
22 - 22 +// private Jedis jedis = new Jedis("10.50.3.84", 6379);
  23 + private Jedis jedis = new Jedis(PropertiesLoader.getRedis("host"),
  24 + Integer.valueOf(PropertiesLoader.getRedis("port")));
23 private String xml; 25 private String xml;
24 26
25 public XmlSendTask(String xml) { 27 public XmlSendTask(String xml) {
@@ -68,6 +68,18 @@ public class DynamicSpecifications { @@ -68,6 +68,18 @@ public class DynamicSpecifications {
68 case LTE: 68 case LTE:
69 predicates.add(builder.lessThanOrEqualTo(expression, (Comparable) filter.value)); 69 predicates.add(builder.lessThanOrEqualTo(expression, (Comparable) filter.value));
70 break; 70 break;
  71 +// case GTES:
  72 +// predicates.add(builder.greaterThanOrEqualTo(builder.lower(expression), "to_date("+"'"+filter.value.toString()+"'"+", 'yyyy-mm-dd hh24:mi:ss')"));
  73 +// break;
  74 +// case LTES:
  75 +// predicates.add(builder.lessThanOrEqualTo(builder.lower(expression), "to_date("+"'"+filter.value.toString()+"'"+", 'yyyy-mm-dd hh24:mi:ss')"));
  76 +// break;
  77 + case GTES:
  78 + predicates.add(builder.greaterThanOrEqualTo(builder.lower(expression), (Comparable) filter.value));
  79 + break;
  80 + case LTES:
  81 + predicates.add(builder.lessThanOrEqualTo(builder.lower(expression), (Comparable) filter.value));
  82 + break;
71 case IN: 83 case IN:
72 if(filter.value instanceof String[]) { 84 if(filter.value instanceof String[]) {
73 String[] values = (String[])filter.value; 85 String[] values = (String[])filter.value;
@@ -16,7 +16,7 @@ import com.google.common.collect.Maps; @@ -16,7 +16,7 @@ import com.google.common.collect.Maps;
16 public class SearchFilter { 16 public class SearchFilter {
17 17
18 public enum Operator { 18 public enum Operator {
19 - EQ, LIKE, GT, LT, GTE, LTE,IN,IsNotNull,IsNotEmpty,IsNull,IsEmpty,IsNullOrEmpty 19 + EQ, LIKE, GT, LT, GTE, LTE, GTES, LTES, IN,IsNotNull,IsNotEmpty,IsNull,IsEmpty,IsNullOrEmpty
20 } 20 }
21 21
22 public String fieldName; 22 public String fieldName;
@@ -20,6 +20,10 @@ public class PropertiesLoader { @@ -20,6 +20,10 @@ public class PropertiesLoader {
20 private static final Logger logger = LoggerFactory.getLogger(PropertiesLoader.class); 20 private static final Logger logger = LoggerFactory.getLogger(PropertiesLoader.class);
21 21
22 private static final String CONFIG_FILE = "/config.properties"; 22 private static final String CONFIG_FILE = "/config.properties";
  23 +
  24 + private static final String REDIS_FILE = "/redis.properties";
  25 +
  26 + private static final String LOGIN_FILE = "/openRemoteLogin.properties";
23 27
24 /** 28 /**
25 * 配置文件properties获取value 29 * 配置文件properties获取value
@@ -48,6 +52,16 @@ public class PropertiesLoader { @@ -48,6 +52,16 @@ public class PropertiesLoader {
48 } 52 }
49 return properties; 53 return properties;
50 } 54 }
  55 +
  56 + public static String getRedis(String key) {
  57 + Properties properties = PropertiesLoader.loadProperty(REDIS_FILE);
  58 + return properties.getProperty(key);
  59 + }
  60 +
  61 + public static String getLogin(String key) {
  62 + Properties properties = PropertiesLoader.loadProperty(LOGIN_FILE);
  63 + return properties.getProperty(key);
  64 + }
51 65
52 66
53 public static String getConfig(String key) { 67 public static String getConfig(String key) {
  1 +host = 10.50.3.84
  2 +port = 6379
@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 <th field="codes"><spring:message code="manifest.agentCode"/></th> 48 <th field="codes"><spring:message code="manifest.agentCode"/></th>
49 <th field="contacts">联系人</th> 49 <th field="contacts">联系人</th>
50 <th field="phone">电话</th> 50 <th field="phone">电话</th>
51 - <th field="tstype">货主类型</th> 51 + <th field="tstype" formatter="tstype">货主类型</th>
52 <th field="fullname">货主名称</th> 52 <th field="fullname">货主名称</th>
53 <th field="forshort">货主简称</th> 53 <th field="forshort">货主简称</th>
54 <th field="waybill" sortable="true"><spring:message code="manifest.bill.number"/></th> 54 <th field="waybill" sortable="true"><spring:message code="manifest.bill.number"/></th>
@@ -67,11 +67,19 @@ @@ -67,11 +67,19 @@
67 <div id="tb" style="padding:0 30px;"><input type="hidden" id="idcc"> 67 <div id="tb" style="padding:0 30px;"><input type="hidden" id="idcc">
68 <form id="searchForm"> 68 <form id="searchForm">
69 <table class="search_form_table"> 69 <table class="search_form_table">
70 - <select name="search_LIKE_tstype" id="tstype" style="width:166px;height:35px;line-height:35px;" > 70 + <select name="search_LIKE_tstype" id="tstype" style="width:166px;height:35px;line-height:35px;">
  71 + <option value="">请选择</option>
71 <option value="1">发货人</option> 72 <option value="1">发货人</option>
72 <option value="2">订舱代理</option> 73 <option value="2">订舱代理</option>
73 <option value="3">操作代理</option> 74 <option value="3">操作代理</option>
74 </select> 75 </select>
  76 +
  77 + 货主名称: <input class="easyui-textbox" type="text" name="search_LIKE_fullname" style="width:166px;height:35px;line-height:35px;">
  78 +
  79 + 航班开始日期:<input type="text" class=" bill" name="search_GTES_flightdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:166px;height:35px;line-height:35px;">
  80 +
  81 + 航班结束日期:<input type="text" class=" bill" name="search_LTES_flightdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:166px;height:35px;line-height:35px;">
  82 + &nbsp;&nbsp;&nbsp;&nbsp;
75 <a href="javascript:doSearch()" class="easyui-linkbutton" iconCls="icon-search" data-options="selected:true"><spring:message code="opt.search" /></a> 83 <a href="javascript:doSearch()" class="easyui-linkbutton" iconCls="icon-search" data-options="selected:true"><spring:message code="opt.search" /></a>
76 </table> 84 </table>
77 </form> 85 </form>
@@ -82,6 +90,7 @@ @@ -82,6 +90,7 @@
82 </div> 90 </div>
83 91
84 </div> 92 </div>
  93 +<script type="text/javascript" src="<%=basePath%>resource/My97DatePicker/WdatePicker.js?version=${version}"></script>
85 <script type="text/javascript" src="<%=basePath %>resource/easyui/jquery.min.js"></script> 94 <script type="text/javascript" src="<%=basePath %>resource/easyui/jquery.min.js"></script>
86 <script type="text/javascript" src="<%=basePath %>resource/easyui/jquery.easyui.min.js"></script> 95 <script type="text/javascript" src="<%=basePath %>resource/easyui/jquery.easyui.min.js"></script>
87 <script type="text/javascript" src="<%=basePath %>resource/easyui/easyui-lang-${pageContext.response.locale}.js"></script> 96 <script type="text/javascript" src="<%=basePath %>resource/easyui/easyui-lang-${pageContext.response.locale}.js"></script>
@@ -99,6 +108,19 @@ @@ -99,6 +108,19 @@
99 // return row.carrier+row.flightno; 108 // return row.carrier+row.flightno;
100 // } 109 // }
101 110
  111 + function tstype(value, row, index) {
  112 + console.log(row);
  113 + if ("1" == row.tstype){
  114 + return "发货人"
  115 + }
  116 + if ("2" == row.tstype){
  117 + return"订舱代理"
  118 + }
  119 + if("3"== row.tstype){
  120 + return "操作代理"
  121 + }
  122 + }
  123 +
102 function checkResponseText(value, row, index) { 124 function checkResponseText(value, row, index) {
103 var res = ''; 125 var res = '';
104 if(value){ 126 if(value){
@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 </head> 48 </head>
49 <body> 49 <body>
50 <div style="width: 100%; height: 60px"></div> 50 <div style="width: 100%; height: 60px"></div>
51 -<div id="printdiv" style="width: 90%; height: 100%; margin: 0 auto;"> 51 +<div id="printdiv" style="width: 92%; height: 100%; margin: 0 auto;">
52 <div> 52 <div>
53 <p style="line-height: 20pt;"><img src="<%=basePath%>resource/img/bar_code/${path}.png" width="250" height="60" alt="网络异常" style="-aw-left-pos:2.6pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:-52pt; -aw-wrap-type:none; margin-left:30.6pt; margin-top:-6pt; position:absolute; z-index:0" /></p> 53 <p style="line-height: 20pt;"><img src="<%=basePath%>resource/img/bar_code/${path}.png" width="250" height="60" alt="网络异常" style="-aw-left-pos:2.6pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:-52pt; -aw-wrap-type:none; margin-left:30.6pt; margin-top:-6pt; position:absolute; z-index:0" /></p>
54 <p style="line-height:100pt; margin:0pt 0pt -30pt; orphans:0; text-align:center; widows:0"> 54 <p style="line-height:100pt; margin:0pt 0pt -30pt; orphans:0; text-align:center; widows:0">
@@ -81,7 +81,6 @@ @@ -81,7 +81,6 @@
81 <li><a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.user" />||system/user/list',this)"><spring:message code="menu.user" /></a></li> 81 <li><a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.user" />||system/user/list',this)"><spring:message code="menu.user" /></a></li>
82 <li><a href="javascript:void(0);" onclick="addTab('<spring:message code="menu.wbm" />||wbm/list',this)"><spring:message code="menu.wbm" /></a></li> 82 <li><a href="javascript:void(0);" onclick="addTab('<spring:message code="menu.wbm" />||wbm/list',this)"><spring:message code="menu.wbm" /></a></li>
83 <li><a href="javascript:void(0);" onclick="addTab('<spring:message code="hz.info" />||hzinfo/list',this)"><spring:message code="hz.info" /></a></li> 83 <li><a href="javascript:void(0);" onclick="addTab('<spring:message code="hz.info" />||hzinfo/list',this)"><spring:message code="hz.info" /></a></li>
84 - <li><a href="javascript:void(0);" onclick="addTab('<spring:message code="hz.info" />||hzinfo/list',this)"><spring:message code="hz.info" /></a></li>  
85 <li><a href="javascript:void(0);" onclick="addTab('货量统计||cargo/list',this)">货量统计</a></li> 84 <li><a href="javascript:void(0);" onclick="addTab('货量统计||cargo/list',this)">货量统计</a></li>
86 <%-- <li><a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.consignee_info_set" />||consignee/list')"><spring:message code="menu.consignee_info_set" /></a></li> --%> 85 <%-- <li><a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.consignee_info_set" />||consignee/list')"><spring:message code="menu.consignee_info_set" /></a></li> --%>
87 </ul> 86 </ul>
@@ -732,18 +732,25 @@ $(function(){ @@ -732,18 +732,25 @@ $(function(){
732 } 732 }
733 733
734 /* console.log("form-->"+data); */ 734 /* console.log("form-->"+data); */
735 -  
736 - $.post("<%=basePath%>manifest/save",data,function (data) {  
737 - parent.layer.close(layerIndex);  
738 - if (data.status == 200) {  
739 -// layer.confirm("<spring:message code="opt.savesuccess"/>", {btn: ['<spring:message code="opt.confirm"/>', '<spring:message code="opt.cancel"/>']}, function () {  
740 - window.location.href = "<%=basePath%>manifest/list" ;  
741 -// })  
742 - } else {  
743 - //layer.open({content: "<spring:message code="opt.savefailed"/>"});  
744 - layer.open({content:""+data.msg});  
745 - }  
746 - }); 735 + var shipper = $("#for_short_shipper").val();
  736 + var booking = $("#for_short_booking").val();
  737 + var operation = $("#for_short_operation").val();
  738 + //判断货主信息是否为空
  739 + if (notEmpty(shipper) || notEmpty(booking) || notEmpty(operation)) {
  740 + $.post("<%=basePath%>manifest/save", data, function (data) {
  741 + parent.layer.close(layerIndex);
  742 + if (data.status == 200) {
  743 + // layer.confirm("<spring:message code="opt.savesuccess"/>", {btn: ['<spring:message code="opt.confirm"/>', '<spring:message code="opt.cancel"/>']}, function () {
  744 + window.location.href = "<%=basePath%>manifest/list";
  745 + // })
  746 + } else {
  747 + //layer.open({content: "<spring:message code="opt.savefailed"/>"});
  748 + layer.open({content: "" + data.msg});
  749 + }
  750 + });
  751 + }else{
  752 + alert("货主信息不能为空");
  753 + }
747 } 754 }
748 755
749 756