作者 Kevin

1、修复主单和分单选取收发货人无法自动填写国家代码和企业代码的bug;

2、优化收发货人管理;
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
14 import com.agent.controller.BasicController; 14 import com.agent.controller.BasicController;
15 import com.agent.entity.agent.ConsigneeEntity; 15 import com.agent.entity.agent.ConsigneeEntity;
16 import com.agent.service.agent.ConsigneeService; 16 import com.agent.service.agent.ConsigneeService;
  17 +import com.agent.service.agent.EnterpriseService;
17 import com.agent.vo.ResponseModel; 18 import com.agent.vo.ResponseModel;
18 19
19 import tools.Tools; 20 import tools.Tools;
@@ -34,13 +35,16 @@ import tools.Tools; @@ -34,13 +35,16 @@ import tools.Tools;
34 public class ConsigneeController extends BasicController { 35 public class ConsigneeController extends BasicController {
35 36
36 @Resource 37 @Resource
37 - private ConsigneeService service; 38 + private ConsigneeService consigneeService;
  39 +
  40 + @Resource
  41 + private EnterpriseService enterpriseService;
38 42
39 @RequestMapping(value = "/getall") 43 @RequestMapping(value = "/getall")
40 @ResponseBody 44 @ResponseBody
41 public ResponseModel getAll(HttpServletRequest request) { 45 public ResponseModel getAll(HttpServletRequest request) {
42 ResponseModel model = new ResponseModel(200, "操作成功", null); 46 ResponseModel model = new ResponseModel(200, "操作成功", null);
43 - List<ConsigneeEntity> dataList = service.findAllByUserId(Tools.getUserId()); 47 + List<ConsigneeEntity> dataList = consigneeService.findAllByUserId(Tools.getUserId());
44 if (dataList == null || dataList.size() == 0) { 48 if (dataList == null || dataList.size() == 0) {
45 model = new ResponseModel(200, "没有数据", null); 49 model = new ResponseModel(200, "没有数据", null);
46 } else { 50 } else {
@@ -53,6 +57,7 @@ public class ConsigneeController extends BasicController { @@ -53,6 +57,7 @@ public class ConsigneeController extends BasicController {
53 @RequestMapping(value = "/list") 57 @RequestMapping(value = "/list")
54 public String list(HttpServletRequest request,boolean isWithChoose) { 58 public String list(HttpServletRequest request,boolean isWithChoose) {
55 request.setAttribute("isWithChoose", isWithChoose); 59 request.setAttribute("isWithChoose", isWithChoose);
  60 + request.setAttribute("version", System.currentTimeMillis());
56 return "consignee/list"; 61 return "consignee/list";
57 } 62 }
58 63
@@ -70,13 +75,13 @@ public class ConsigneeController extends BasicController { @@ -70,13 +75,13 @@ public class ConsigneeController extends BasicController {
70 ResponseModel model = new ResponseModel(200, "", null); 75 ResponseModel model = new ResponseModel(200, "", null);
71 page = page < 1 ? 1 : page; 76 page = page < 1 ? 1 : page;
72 limit = limit < 1 ? 10 : limit; 77 limit = limit < 1 ? 10 : limit;
73 - List<ConsigneeEntity> dataList = service.list(page, limit,key); 78 + List<ConsigneeEntity> dataList = consigneeService.list(page, limit,key);
74 if (dataList == null || dataList.size() == 0) { 79 if (dataList == null || dataList.size() == 0) {
75 model = new ResponseModel(200, "没有数据", null); 80 model = new ResponseModel(200, "没有数据", null);
76 } else { 81 } else {
77 model = new ResponseModel(200, "查询成功", null); 82 model = new ResponseModel(200, "查询成功", null);
78 } 83 }
79 - model.setCount(StringUtils.isBlank(key)?service.total(Tools.getUserId()):service.total(Tools.getUserId(),key)); 84 + model.setCount(StringUtils.isBlank(key)?consigneeService.total(Tools.getUserId()):consigneeService.total(Tools.getUserId(),key));
80 model.setData(dataList); 85 model.setData(dataList);
81 return model; 86 return model;
82 } 87 }
@@ -89,7 +94,7 @@ public class ConsigneeController extends BasicController { @@ -89,7 +94,7 @@ public class ConsigneeController extends BasicController {
89 model = new ResponseModel(200, "", null); 94 model = new ResponseModel(200, "", null);
90 if (ids.indexOf(",") > 1) { 95 if (ids.indexOf(",") > 1) {
91 try { 96 try {
92 - service.deleteAll(ids); 97 + consigneeService.deleteAll(ids);
93 model = new ResponseModel(200, "", null); 98 model = new ResponseModel(200, "", null);
94 } catch (Exception e) { 99 } catch (Exception e) {
95 model = new ResponseModel(500, "删除失败", null); 100 model = new ResponseModel(500, "删除失败", null);
@@ -105,9 +110,11 @@ public class ConsigneeController extends BasicController { @@ -105,9 +110,11 @@ public class ConsigneeController extends BasicController {
105 public String edit(HttpServletRequest request, String id, Model model) { 110 public String edit(HttpServletRequest request, String id, Model model) {
106 111
107 if (StringUtils.isNotBlank(id)) { 112 if (StringUtils.isNotBlank(id)) {
108 - ConsigneeEntity consignee = service.findById(id); 113 + ConsigneeEntity consignee = consigneeService.findById(id);
109 model.addAttribute("consignee", consignee); 114 model.addAttribute("consignee", consignee);
110 } 115 }
  116 + request.setAttribute("version", System.currentTimeMillis());
  117 + request.setAttribute("allCountry", enterpriseService.getAllCountry());
111 return "consignee/edit"; 118 return "consignee/edit";
112 } 119 }
113 120
@@ -116,15 +123,15 @@ public class ConsigneeController extends BasicController { @@ -116,15 +123,15 @@ public class ConsigneeController extends BasicController {
116 public ResponseModel save(ConsigneeEntity consignee) { 123 public ResponseModel save(ConsigneeEntity consignee) {
117 ResponseModel model = new ResponseModel(404, "", null); 124 ResponseModel model = new ResponseModel(404, "", null);
118 if (consignee != null) { 125 if (consignee != null) {
119 - ConsigneeEntity old = service.findByCompanyAndUserId(consignee.getName(),Tools.getUserId()); 126 + ConsigneeEntity old = consigneeService.findByCompanyAndUserId(consignee.getName(),Tools.getUserId());
120 if (old == null) { 127 if (old == null) {
121 consignee.setCreator(Tools.getUserEntity()); 128 consignee.setCreator(Tools.getUserEntity());
122 consignee.setModifier(Tools.getUserEntity()); 129 consignee.setModifier(Tools.getUserEntity());
123 - service.save(consignee); 130 + consigneeService.save(consignee);
124 model = new ResponseModel(200, "操作成功", null); 131 model = new ResponseModel(200, "操作成功", null);
125 } else { 132 } else {
126 if(old.getId()!=null) { 133 if(old.getId()!=null) {
127 - service.save(consignee); 134 + consigneeService.save(consignee);
128 model = new ResponseModel(200, "修改成功", null); 135 model = new ResponseModel(200, "修改成功", null);
129 }else { 136 }else {
130 model = new ResponseModel(500, "不能重复添加", null); 137 model = new ResponseModel(500, "不能重复添加", null);
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.ResponseBody; @@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
14 import com.agent.controller.BasicController; 14 import com.agent.controller.BasicController;
15 import com.agent.entity.agent.ConsignorEntity; 15 import com.agent.entity.agent.ConsignorEntity;
16 import com.agent.service.agent.ConsignorService; 16 import com.agent.service.agent.ConsignorService;
  17 +import com.agent.service.agent.EnterpriseService;
17 import com.agent.vo.ResponseModel; 18 import com.agent.vo.ResponseModel;
18 19
19 import tools.Tools; 20 import tools.Tools;
@@ -34,13 +35,16 @@ import tools.Tools; @@ -34,13 +35,16 @@ import tools.Tools;
34 public class ConsignorController extends BasicController { 35 public class ConsignorController extends BasicController {
35 36
36 @Resource 37 @Resource
37 - private ConsignorService service; 38 + private ConsignorService consignorService;
  39 +
  40 + @Resource
  41 + private EnterpriseService enterpriseService;
38 42
39 @RequestMapping(value = "/getall") 43 @RequestMapping(value = "/getall")
40 @ResponseBody 44 @ResponseBody
41 public ResponseModel getAll(HttpServletRequest request) { 45 public ResponseModel getAll(HttpServletRequest request) {
42 ResponseModel model = new ResponseModel(200, "", null); 46 ResponseModel model = new ResponseModel(200, "", null);
43 - List<ConsignorEntity> dataList = service.findAllByUserId(Tools.getUserId()); 47 + List<ConsignorEntity> dataList = consignorService.findAllByUserId(Tools.getUserId());
44 if (dataList == null || dataList.size() == 0) { 48 if (dataList == null || dataList.size() == 0) {
45 model = new ResponseModel(404, "", null); 49 model = new ResponseModel(404, "", null);
46 } else { 50 } else {
@@ -53,6 +57,7 @@ public class ConsignorController extends BasicController { @@ -53,6 +57,7 @@ public class ConsignorController extends BasicController {
53 @RequestMapping(value = "/list") 57 @RequestMapping(value = "/list")
54 public String list(HttpServletRequest request,boolean isWithChoose) { 58 public String list(HttpServletRequest request,boolean isWithChoose) {
55 request.setAttribute("isWithChoose", isWithChoose); 59 request.setAttribute("isWithChoose", isWithChoose);
  60 + request.setAttribute("version", System.currentTimeMillis());
56 return "consignor/list"; 61 return "consignor/list";
57 } 62 }
58 63
@@ -70,13 +75,13 @@ public class ConsignorController extends BasicController { @@ -70,13 +75,13 @@ public class ConsignorController extends BasicController {
70 ResponseModel model = new ResponseModel(200, "操作成功", null); 75 ResponseModel model = new ResponseModel(200, "操作成功", null);
71 page = page < 1 ? 1 : page; 76 page = page < 1 ? 1 : page;
72 limit = limit < 1 ? 10 : limit; 77 limit = limit < 1 ? 10 : limit;
73 - List<ConsignorEntity> dataList = service.list(page, limit,key); 78 + List<ConsignorEntity> dataList = consignorService.list(page, limit,key);
74 if (dataList == null || dataList.size() == 0) { 79 if (dataList == null || dataList.size() == 0) {
75 model = new ResponseModel(200, "没有数据", null); 80 model = new ResponseModel(200, "没有数据", null);
76 } else { 81 } else {
77 model = new ResponseModel(200, "查询成功", null); 82 model = new ResponseModel(200, "查询成功", null);
78 } 83 }
79 - model.setCount(StringUtils.isBlank(key)?service.total(Tools.getUserId()):service.total(Tools.getUserId(),key)); 84 + model.setCount(StringUtils.isBlank(key)?consignorService.total(Tools.getUserId()):consignorService.total(Tools.getUserId(),key));
80 model.setData(dataList); 85 model.setData(dataList);
81 return model; 86 return model;
82 } 87 }
@@ -89,7 +94,7 @@ public class ConsignorController extends BasicController { @@ -89,7 +94,7 @@ public class ConsignorController extends BasicController {
89 model = new ResponseModel(200, "", null); 94 model = new ResponseModel(200, "", null);
90 if (ids.indexOf(",") > 1) { 95 if (ids.indexOf(",") > 1) {
91 try { 96 try {
92 - service.deleteAll(ids); 97 + consignorService.deleteAll(ids);
93 model = new ResponseModel(200, "", null); 98 model = new ResponseModel(200, "", null);
94 } catch (Exception e) { 99 } catch (Exception e) {
95 model = new ResponseModel(500, "删除失败", null); 100 model = new ResponseModel(500, "删除失败", null);
@@ -105,9 +110,11 @@ public class ConsignorController extends BasicController { @@ -105,9 +110,11 @@ public class ConsignorController extends BasicController {
105 public String edit(HttpServletRequest request, String id, Model model) { 110 public String edit(HttpServletRequest request, String id, Model model) {
106 111
107 if (StringUtils.isNotBlank(id)) { 112 if (StringUtils.isNotBlank(id)) {
108 - ConsignorEntity consignor = service.findById(id); 113 + ConsignorEntity consignor = consignorService.findById(id);
109 model.addAttribute("consignor", consignor); 114 model.addAttribute("consignor", consignor);
110 } 115 }
  116 + request.setAttribute("version", System.currentTimeMillis());
  117 + request.setAttribute("allCountry", enterpriseService.getAllCountry());
111 return "consignor/edit"; 118 return "consignor/edit";
112 } 119 }
113 120
@@ -116,15 +123,15 @@ public class ConsignorController extends BasicController { @@ -116,15 +123,15 @@ public class ConsignorController extends BasicController {
116 public ResponseModel save(ConsignorEntity consignor) { 123 public ResponseModel save(ConsignorEntity consignor) {
117 ResponseModel model = new ResponseModel(404, "", null); 124 ResponseModel model = new ResponseModel(404, "", null);
118 if (consignor != null) { 125 if (consignor != null) {
119 - ConsignorEntity old = service.findByCompanyAndUserId(consignor.getCo_company(),Tools.getUserId()); 126 + ConsignorEntity old = consignorService.findByCompanyAndUserId(consignor.getCo_company(),Tools.getUserId());
120 if (old == null) { 127 if (old == null) {
121 consignor.setCreator(Tools.getUserEntity()); 128 consignor.setCreator(Tools.getUserEntity());
122 consignor.setModifier(Tools.getUserEntity()); 129 consignor.setModifier(Tools.getUserEntity());
123 - service.save(consignor); 130 + consignorService.save(consignor);
124 model = new ResponseModel(200, "操作成功", null); 131 model = new ResponseModel(200, "操作成功", null);
125 } else { 132 } else {
126 if(old.getId()!=null) { 133 if(old.getId()!=null) {
127 - service.save(consignor); 134 + consignorService.save(consignor);
128 model = new ResponseModel(200, "修改成功", null); 135 model = new ResponseModel(200, "修改成功", null);
129 }else { 136 }else {
130 model = new ResponseModel(500, "不能重复添加", null); 137 model = new ResponseModel(500, "不能重复添加", null);
@@ -40,6 +40,7 @@ import com.agent.entity.agent.WaybillReceiptType; @@ -40,6 +40,7 @@ import com.agent.entity.agent.WaybillReceiptType;
40 import com.agent.entity.system.UserEntity; 40 import com.agent.entity.system.UserEntity;
41 import com.agent.imf.agent.redis.RedisSaveMessage; 41 import com.agent.imf.agent.redis.RedisSaveMessage;
42 import com.agent.service.agent.BasicAgentService; 42 import com.agent.service.agent.BasicAgentService;
  43 +import com.agent.service.agent.ConsigneeService;
43 import com.agent.service.agent.ConsignorService; 44 import com.agent.service.agent.ConsignorService;
44 import com.agent.service.agent.ManifestBillService; 45 import com.agent.service.agent.ManifestBillService;
45 import com.agent.service.agent.ManifestCommodityService; 46 import com.agent.service.agent.ManifestCommodityService;
@@ -131,6 +132,9 @@ public class ManifestController extends BasicController { @@ -131,6 +132,9 @@ public class ManifestController extends BasicController {
131 132
132 @Resource 133 @Resource
133 private ConsignorService consignorService; 134 private ConsignorService consignorService;
  135 +
  136 + @Resource
  137 + private ConsigneeService consigneeService;
134 138
135 @Resource 139 @Resource
136 private WaybillReceiptService receiptService; 140 private WaybillReceiptService receiptService;
@@ -141,7 +145,8 @@ public class ManifestController extends BasicController { @@ -141,7 +145,8 @@ public class ManifestController extends BasicController {
141 * @return 145 * @return
142 */ 146 */
143 @RequestMapping(value = "/list") 147 @RequestMapping(value = "/list")
144 - public String getList(Model model) { 148 + public String getList(HttpServletRequest request,Model model) {
  149 + request.setAttribute("version", System.currentTimeMillis());
145 return "manifest/list"; 150 return "manifest/list";
146 } 151 }
147 152
@@ -509,6 +514,7 @@ public class ManifestController extends BasicController { @@ -509,6 +514,7 @@ public class ManifestController extends BasicController {
509 */ 514 */
510 @RequestMapping(value = "/edit") 515 @RequestMapping(value = "/edit")
511 public String edit(HttpServletRequest request, Long id, Model model) { 516 public String edit(HttpServletRequest request, Long id, Model model) {
  517 + request.setAttribute("version", System.currentTimeMillis());
512 ManifestEntity manifest = null; 518 ManifestEntity manifest = null;
513 // 判断是否是便捷 519 // 判断是否是便捷
514 if (id != null) { 520 if (id != null) {
@@ -603,6 +609,7 @@ public class ManifestController extends BasicController { @@ -603,6 +609,7 @@ public class ManifestController extends BasicController {
603 */ 609 */
604 @RequestMapping(value = "/subedit", method = { RequestMethod.GET }) 610 @RequestMapping(value = "/subedit", method = { RequestMethod.GET })
605 private String subedit(HttpServletRequest request, Long id, Long mawbId, String type, Model model) { 611 private String subedit(HttpServletRequest request, Long id, Long mawbId, String type, Model model) {
  612 + request.setAttribute("version", System.currentTimeMillis());
606 ManifestEntity manifest = null; 613 ManifestEntity manifest = null;
607 List<PreparesecondaryEntity> preparesecondaryList = null; 614 List<PreparesecondaryEntity> preparesecondaryList = null;
608 PreparesecondaryEntity pre = null; 615 PreparesecondaryEntity pre = null;
@@ -813,6 +820,7 @@ public class ManifestController extends BasicController { @@ -813,6 +820,7 @@ public class ManifestController extends BasicController {
813 manifest.setCarrier(carrier); 820 manifest.setCarrier(carrier);
814 manifest.setFlightno(flightno); 821 manifest.setFlightno(flightno);
815 822
  823 + consigneeService.saveFromManifest(manifest, Tools.getUserId());
816 consignorService.saveFromManifest(manifest, Tools.getUserId()); 824 consignorService.saveFromManifest(manifest, Tools.getUserId());
817 825
818 ResponseModel model = new ResponseModel(); 826 ResponseModel model = new ResponseModel();
@@ -911,6 +919,7 @@ public class ManifestController extends BasicController { @@ -911,6 +919,7 @@ public class ManifestController extends BasicController {
911 manifest.setCarrier(carrier); 919 manifest.setCarrier(carrier);
912 manifest.setFlightno(flightno); 920 manifest.setFlightno(flightno);
913 921
  922 + consigneeService.saveFromManifest(manifest, Tools.getUserId());
914 consignorService.saveFromManifest(manifest, Tools.getUserId()); 923 consignorService.saveFromManifest(manifest, Tools.getUserId());
915 924
916 ResponseModel model = new ResponseModel(); 925 ResponseModel model = new ResponseModel();
@@ -1061,6 +1070,7 @@ public class ManifestController extends BasicController { @@ -1061,6 +1070,7 @@ public class ManifestController extends BasicController {
1061 preparesecondary.setCarrier(carrier); 1070 preparesecondary.setCarrier(carrier);
1062 preparesecondary.setFlightno(flightno); 1071 preparesecondary.setFlightno(flightno);
1063 1072
  1073 + consigneeService.saveFromPreparesecondary(preparesecondary, Tools.getUserId());
1064 consignorService.saveFromPreparesecondary(preparesecondary, Tools.getUserId()); 1074 consignorService.saveFromPreparesecondary(preparesecondary, Tools.getUserId());
1065 1075
1066 ResponseModel model = new ResponseModel(); 1076 ResponseModel model = new ResponseModel();
@@ -1140,6 +1150,7 @@ public class ManifestController extends BasicController { @@ -1140,6 +1150,7 @@ public class ManifestController extends BasicController {
1140 preparesecondary.setCarrier(carrier); 1150 preparesecondary.setCarrier(carrier);
1141 preparesecondary.setFlightno(flightno); 1151 preparesecondary.setFlightno(flightno);
1142 1152
  1153 + consigneeService.saveFromPreparesecondary(preparesecondary, Tools.getUserId());
1143 consignorService.saveFromPreparesecondary(preparesecondary, Tools.getUserId()); 1154 consignorService.saveFromPreparesecondary(preparesecondary, Tools.getUserId());
1144 1155
1145 ResponseModel model = new ResponseModel(); 1156 ResponseModel model = new ResponseModel();
@@ -565,7 +565,7 @@ public class ManifestEntity extends BasicEntity implements Serializable { @@ -565,7 +565,7 @@ public class ManifestEntity extends BasicEntity implements Serializable {
565 @Column(name = "STOWAGEDATE") 565 @Column(name = "STOWAGEDATE")
566 public Date getStowagedate() { 566 public Date getStowagedate() {
567 // return stowagedate; 567 // return stowagedate;
568 - return new Date(); 568 + return new Date(System.currentTimeMillis()+6*3600);
569 } 569 }
570 570
571 public void setStowagedate(Date stowagedate) { 571 public void setStowagedate(Date stowagedate) {
@@ -592,7 +592,7 @@ public class PreparesecondaryEntity extends BasicEntity { @@ -592,7 +592,7 @@ public class PreparesecondaryEntity extends BasicEntity {
592 @Column(name = "STOWAGEDATE") 592 @Column(name = "STOWAGEDATE")
593 public Date getStowagedate() { 593 public Date getStowagedate() {
594 // return stowagedate; 594 // return stowagedate;
595 - return new Date(); 595 + return new Date(System.currentTimeMillis()+6*3600);
596 } 596 }
597 597
598 public void setStowagedate(Date stowagedate) { 598 public void setStowagedate(Date stowagedate) {
@@ -13,6 +13,9 @@ public interface EnterpriseRepository extends PagingAndSortingRepository<Enterpr @@ -13,6 +13,9 @@ public interface EnterpriseRepository extends PagingAndSortingRepository<Enterpr
13 @Query(value = "SELECT * FROM T_BAS_ENTERPRISE WHERE COUNTRY_CODE like ?1% AND ROWID=ANY(SELECT MAX(ROWID) FROM T_BAS_ENTERPRISE GROUP BY NAME_EN) ORDER BY ID ASC", nativeQuery = true) 13 @Query(value = "SELECT * FROM T_BAS_ENTERPRISE WHERE COUNTRY_CODE like ?1% AND ROWID=ANY(SELECT MAX(ROWID) FROM T_BAS_ENTERPRISE GROUP BY NAME_EN) ORDER BY ID ASC", nativeQuery = true)
14 public List<EnterpriseEntity> search(String start); 14 public List<EnterpriseEntity> search(String start);
15 15
  16 + @Query(value = "SELECT * FROM T_BAS_ENTERPRISE WHERE ROWID=ANY(SELECT MAX(ROWID) FROM T_BAS_ENTERPRISE GROUP BY NAME_EN) ORDER BY ID ASC", nativeQuery = true)
  17 + public List<EnterpriseEntity> getAllCountry();
  18 +
16 @Query(value = "SELECT * FROM T_BAS_ENTERPRISE WHERE COUNTRY_CODE = ?1 ORDER BY ID ASC", nativeQuery = true) 19 @Query(value = "SELECT * FROM T_BAS_ENTERPRISE WHERE COUNTRY_CODE = ?1 ORDER BY ID ASC", nativeQuery = true)
17 public List<EnterpriseEntity> findTypeByCountryCode(String countryCode); 20 public List<EnterpriseEntity> findTypeByCountryCode(String countryCode);
18 } 21 }
@@ -28,6 +28,10 @@ public class EnterpriseService { @@ -28,6 +28,10 @@ public class EnterpriseService {
28 public EnterpriseService() { 28 public EnterpriseService() {
29 } 29 }
30 30
  31 + public List<EnterpriseEntity> getAllCountry(){
  32 + return service.getAllCountry();
  33 + }
  34 +
31 public List<EnterpriseEntity> search(String start){ 35 public List<EnterpriseEntity> search(String start){
32 return service.search(start); 36 return service.search(start);
33 } 37 }
1 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 1 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  2 +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
2 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 3 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
3 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 4 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 5 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
@@ -18,10 +19,15 @@ @@ -18,10 +19,15 @@
18 <script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script> 19 <script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script>
19 <!-- validate 验证中英文 --> 20 <!-- validate 验证中英文 -->
20 <script type="text/javascript" 21 <script type="text/javascript"
21 - src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script>  
22 -<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css" media="all">  
23 -<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script>  
24 -<script type="text/javascript" src="<%=basePath%>resource/js/tools.js"></script> 22 + src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js?version=${version}"></script>
  23 +<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css?version=${version}" media="all">
  24 +<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js?version=${version}"></script>
  25 +<script type="text/javascript" src="<%=basePath%>resource/js/tools.js?version=${version}"></script>
  26 +
  27 +<script src="<%=basePath%>resource/easyui/jquery.easyui.min.js?version=${version}"></script>
  28 +<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/easyui/uimaker/icon.css?version=${version}">
  29 +<link rel="stylesheet" href="<%=basePath%>resource/easyui/uimaker/easyui.css?version=${version}">
  30 +
25 <style type="text/css"> 31 <style type="text/css">
26 .required_span { 32 .required_span {
27 color: red; 33 color: red;
@@ -58,13 +64,17 @@ @@ -58,13 +64,17 @@
58 64
59 <td><spring:message code="manifest.telephone" /></td> 65 <td><spring:message code="manifest.telephone" /></td>
60 <td> 66 <td>
61 - <input type="text" name="tel" value="${consignee.tel}"  
62 - autocomplete="off" class="layui-input" maxlength="50"> 67 + <input type="text" name="tel" id="tel" value="${consignee.tel}"
  68 + autocomplete="off" class="layui-input" maxlength="50"
  69 + oninput="onInputChange(event,'tel','oninput')"
  70 + onpropertychange="onInputChange(event,'tel','onpropertychange')">
63 </td> 71 </td>
64 72
65 <td><spring:message code="manifest.fax" /></td> 73 <td><spring:message code="manifest.fax" /></td>
66 <td> 74 <td>
67 - <input type="text" name="fax" value="${consignee.fax}" 75 + <input type="text" name="fax" id="fax" value="${consignee.fax}"
  76 + oninput="onInputChange(event,'fax','oninput')"
  77 + onpropertychange="onInputChange(event,'fax','onpropertychange')"
68 autocomplete="off" class="layui-input" maxlength="50"> 78 autocomplete="off" class="layui-input" maxlength="50">
69 </td> 79 </td>
70 </tr> 80 </tr>
@@ -72,10 +82,12 @@ @@ -72,10 +82,12 @@
72 <tr> 82 <tr>
73 <td><spring:message code="manifest.country" /><span class="required_span">*</span></td> 83 <td><spring:message code="manifest.country" /><span class="required_span">*</span></td>
74 <td> 84 <td>
75 - <input required type="text" name="country" id="country" value="${consignee.country}"  
76 - autocomplete="off" class="layui-input" maxlength="2" lay-verify="required"  
77 - oninput="onInputChange(event,'country','oninput')"  
78 - onpropertychange="onInputChange(event,'country','onpropertychange')"> 85 + <input required lay-verify="required" class="layui-input"
  86 + id="country" name="country" maxlength="2" type="text"
  87 + <c:if test="${empty consignee.country}">value=""</c:if>
  88 + <c:if test="${not empty consignee.country}">value="${consignee.country}"</c:if>
  89 + oninput="onInputChange(event,'country','oninput')"
  90 + onpropertychange="onInputChange(event,'country','onpropertychange')">
79 </td> 91 </td>
80 92
81 <td><spring:message code="manifest.city" /><span class="required_span">*</span></td> 93 <td><spring:message code="manifest.city" /><span class="required_span">*</span></td>
@@ -88,21 +100,32 @@ @@ -88,21 +100,32 @@
88 100
89 <td><spring:message code="manifest.zip.code" /></td> 101 <td><spring:message code="manifest.zip.code" /></td>
90 <td> 102 <td>
91 - <input type="text" name="zipcode" value="${consignee.zipcode}" autocomplete="off" class="layui-input" maxlength="9"> 103 + <input type="text" name="zipcode" id="zipcode" value="${consignee.zipcode}"
  104 + oninput="onInputChange(event,'zipcode','oninput')"
  105 + onpropertychange="onInputChange(event,'zipcode','onpropertychange')"
  106 + autocomplete="off" class="layui-input" maxlength="9">
92 </td> 107 </td>
93 </tr> 108 </tr>
94 109
95 <tr> 110 <tr>
96 <td><spring:message code="manifest.address" /><span class="required_span">*</span></td> 111 <td><spring:message code="manifest.address" /><span class="required_span">*</span></td>
97 - <td colspan="5"> 112 + <td colspan="2">
98 <input required type="text" name="address" id="address" value="${consignee.address}" 113 <input required type="text" name="address" id="address" value="${consignee.address}"
99 autocomplete="off" class="layui-input" maxlength="70" lay-verify="required" 114 autocomplete="off" class="layui-input" maxlength="70" lay-verify="required"
100 oninput="onInputChange(event,'address','oninput')" 115 oninput="onInputChange(event,'address','oninput')"
101 onpropertychange="onInputChange(event,'address','onpropertychange')"> 116 onpropertychange="onInputChange(event,'address','onpropertychange')">
102 </td> 117 </td>
  118 +
  119 + <td><spring:message code="manifest.shr.cneaeo" /></td>
  120 + <td colspan="2">
  121 + <input type="text" name="aeo" id="cneaeo"
  122 + value="${consignee.aeo}" autocomplete="off" class="layui-input" maxlength="20"
  123 + oninput="onInputChange(event,'cneaeo','oninput')"
  124 + onpropertychange="onInputChange(event,'cneaeo','onpropertychange')">
  125 + </td>
103 </tr> 126 </tr>
104 127
105 - <tr> 128 + <%-- <tr>
106 <td><spring:message code="manifest.enterprise.code" /><span class="required_span">*</span></td> 129 <td><spring:message code="manifest.enterprise.code" /><span class="required_span">*</span></td>
107 <td> 130 <td>
108 <input required id="cnecusid" type="text" name="cusid" value="${consignee.cusid}" 131 <input required id="cnecusid" type="text" name="cusid" value="${consignee.cusid}"
@@ -110,15 +133,40 @@ @@ -110,15 +133,40 @@
110 oninput="onInputChange(event,'cnecusid','oninput')" 133 oninput="onInputChange(event,'cnecusid','oninput')"
111 onpropertychange="onInputChange(event,'cnecusid','onpropertychange')"> 134 onpropertychange="onInputChange(event,'cnecusid','onpropertychange')">
112 </td> 135 </td>
113 -  
114 - <td><spring:message code="manifest.shr.cneaeo" /></td>  
115 - <td colspan="3">  
116 - <input type="text" name="aeo" id="cneaeo"  
117 - value="${consignee.aeo}" autocomplete="off" class="layui-input" maxlength="20"  
118 - oninput="onInputChange(event,'cneaeo','oninput')"  
119 - onpropertychange="onInputChange(event,'cneaeo','onpropertychange')">  
120 - </td>  
121 - </tr> 136 + </tr> --%>
  137 +
  138 + <tr>
  139 + <td colspan="6">
  140 + <div class="layui-row">
  141 + <div class="layui-col-md2">
  142 + <select id="cne_cusid" required lay-verify="required">
  143 + <c:if test="${not empty consignee.cusid}">
  144 + <c:set var="tempCneType" value='${fn:split(consignee.cusid,"+")[0]}' />
  145 + <option value="${tempCneType}">${tempCneType}</option>
  146 + </c:if>
  147 +
  148 + <c:if test="${empty consignee.cusid}">
  149 + <option value=""><spring:message code="manifest.enterprise.code.type" /></option>
  150 + </c:if>
  151 + </select>
  152 + </div>
  153 + <div class="layui-col-md1" style="text-align: center; margin-top: 10px;width:20px;">
  154 + <span style="color: black; font-size: 16px;">+</span>
  155 + </div>
  156 + <div class="layui-col-md5">
  157 + <input id="cnecusid" type="text" maxlength="100" class="layui-input" required lay-verify="required"
  158 + <c:if test="${not empty consignee.cusid}">
  159 + <c:set var="tempCneValue" value='${fn:split(consignee.cusid,"+")[1]}' />
  160 + value="${tempCneValue}"
  161 + </c:if>
  162 +
  163 + placeholder="<spring:message code='manifest.enterprise.code' />"
  164 + oninput="onInputChange(event,'cnecusid','oninput')"
  165 + onpropertychange="onInputChange(event,'cnecusid','onpropertychange')">
  166 + </div>
  167 + </div>
  168 + </td>
  169 + </tr>
122 </tbody> 170 </tbody>
123 </table> 171 </table>
124 172
@@ -133,6 +181,74 @@ @@ -133,6 +181,74 @@
133 </div> 181 </div>
134 182
135 <script> 183 <script>
  184 + var api = "<%=basePath %>enterprise/search";
  185 + $('#country').combogrid({
  186 + panelWidth:260,
  187 + url: api,
  188 + idField:'country_code',
  189 + textField:'start',
  190 + mode:'remote',
  191 + fitColumns:true,
  192 + onBeforeLoad: function (parm) { //在请求加载数据之前触发,返回 false 则取消加载动作
  193 + var value = $('#country').combobox('getValue');
  194 + if (value) {
  195 + var upper = value.toUpperCase();
  196 + $('#country').combogrid('setValue',upper);
  197 + parm.start = upper;
  198 +
  199 + onGetData('cne_cusid','country');
  200 + return true;
  201 + }
  202 + return false;
  203 + },
  204 + onSelect: function(row,rowData){
  205 + //当用户选择一个列表项时触发。
  206 + $('#country').combogrid('setValue',rowData.country_code);
  207 +
  208 + onGetData('cne_cusid','country');
  209 + },
  210 + columns:[[
  211 + {field:'name_cn',title:'名称',width:106},
  212 + {field:'country_code',title:'代码',width:106}
  213 + ]]
  214 + });
  215 +
  216 + function onGetData(selectId,inputId) {
  217 + var cneType = "";
  218 + var cne_cusid = "${consignee.cusid}";
  219 + if(notEmpty(cne_cusid)){
  220 + cneType = cne_cusid.split("+")[0];
  221 + }
  222 +
  223 + var select = $("#"+selectId);
  224 + select.html("");
  225 + select.append("<option value=''><spring:message code='manifest.enterprise.code.type' /></option>");
  226 +
  227 + var countryCode = $('#'+inputId).combobox('getValue');
  228 +
  229 + $.ajax({
  230 + url:"<%=basePath%>/enterprise/list?countryCode="+countryCode,
  231 + success:function(data){
  232 + if(data.status == 200){
  233 + if(data.data){
  234 + for(var i = 0; i < data.data.length; i++){
  235 + var type = data.data[i].enterprise_type;
  236 + if(notEmpty(cneType)&&type&&(type==cneType)){
  237 + select.append("<option selected value='"+type+"'>"+type+"</option>");
  238 + }else{
  239 + select.append("<option value='"+type+"'>"+type+"</option>");
  240 + }
  241 + layui.use('form', function() {
  242 + var form = layui.form;
  243 + form.render("select");
  244 + });
  245 + }
  246 + }
  247 + }
  248 + }
  249 + });
  250 + }
  251 +
136 var layer; 252 var layer;
137 layui.use('layer', function() { 253 layui.use('layer', function() {
138 layer = layui.layer; 254 layer = layui.layer;
@@ -161,6 +277,15 @@ @@ -161,6 +277,15 @@
161 if (data.cusid) { 277 if (data.cusid) {
162 params += "&cusid=" + data.cusid; 278 params += "&cusid=" + data.cusid;
163 } 279 }
  280 +
  281 + var cusid_type = getSelectedValue("cne_cusid");
  282 + var cusid = $("#cnecusid").val();
  283 +
  284 + if(notEmpty(cusid_type)&&notEmpty(cusid)){
  285 + cusid = cusid_type+"+"+cusid;
  286 + params+="&cusid="+encodeURIComponent(cusid);
  287 + }
  288 +
164 if (data.aeo) { 289 if (data.aeo) {
165 params += "&aeo=" + data.aeo; 290 params += "&aeo=" + data.aeo;
166 } 291 }
@@ -12,16 +12,23 @@ @@ -12,16 +12,23 @@
12 <head> 12 <head>
13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
14 <meta name="viewport" content="width=device-width, initial-scale=1"> 14 <meta name="viewport" content="width=device-width, initial-scale=1">
  15 +<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
15 <title><spring:message code="menu.consignee_info_set" /></title> 16 <title><spring:message code="menu.consignee_info_set" /></title>
16 -<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script>  
17 -<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script>  
18 -<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script> 17 +<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js?version=${version}"></script>
  18 +<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js?version=${version}"></script>
  19 +<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js?version=${version}"></script>
19 <!-- validate 验证中英文 --> 20 <!-- validate 验证中英文 -->
20 <script type="text/javascript" 21 <script type="text/javascript"
21 - src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script>  
22 -<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css" media="all">  
23 -<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script>  
24 -<script type="text/javascript" src="<%=basePath%>resource/js/tools.js"></script> 22 + src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js?version=${version}"></script>
  23 +<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css?version=${version}" media="all">
  24 +<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js?version=${version}"></script>
  25 +<script type="text/javascript" src="<%=basePath%>resource/js/tools.js?version=${version}"></script>
  26 +<style type="text/css">
  27 + .layui-table-cell .layui-form-checkbox[lay-skin="primary"]{
  28 + top: 50%;
  29 + transform: translateY(-50%);
  30 + }
  31 +</style>
25 </head> 32 </head>
26 <body> 33 <body>
27 <div class="layui-collapse"> 34 <div class="layui-collapse">
@@ -51,10 +58,10 @@ @@ -51,10 +58,10 @@
51 </div> 58 </div>
52 59
53 <script type="text/html" id="opt-bar"> 60 <script type="text/html" id="opt-bar">
54 - <i class="layui-icon layui-icon-edit" style="font-size: 14px; color: #1E9FFF;" lay-event="edit">编辑</i> 61 + <button type="button" class="layui-btn layui-btn-normal layui-btn-sm layui-icon layui-icon-edit" lay-event="edit">编辑</button>
55 </script> 62 </script>
56 <script type="text/html" id="choose-bar"> 63 <script type="text/html" id="choose-bar">
57 - <i class="layui-icon layui-icon-ok" style="font-size: 15px;font:bold; color: blue;" lay-event="choose">选择</i> 64 + <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-ok" lay-event="choose">选择</button>
58 </script> 65 </script>
59 66
60 <script> 67 <script>
@@ -95,9 +102,7 @@ @@ -95,9 +102,7 @@
95 text : {none:'暂无数据'}, 102 text : {none:'暂无数据'},
96 cols : [ [ //表头 103 cols : [ [ //表头
97 { 104 {
98 - type : 'checkbox',  
99 - fixed : 'left',  
100 - width : 60 105 + type : 'checkbox'
101 }, { 106 }, {
102 field : '', 107 field : '',
103 title : '操作', 108 title : '操作',
@@ -120,6 +125,9 @@ @@ -120,6 +125,9 @@
120 }, { 125 }, {
121 field : 'tel', 126 field : 'tel',
122 title : '电话' 127 title : '电话'
  128 + },{
  129 + field : 'cusid',
  130 + title : '企业代码'
123 } ] ] 131 } ] ]
124 }); 132 });
125 }); 133 });
1 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 1 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  2 +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
2 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 3 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
3 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 4 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 5 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
@@ -13,15 +14,20 @@ @@ -13,15 +14,20 @@
13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
14 <meta name="viewport" content="width=device-width, initial-scale=1"> 15 <meta name="viewport" content="width=device-width, initial-scale=1">
15 <title><spring:message code="menu.consignor_info_set" /></title> 16 <title><spring:message code="menu.consignor_info_set" /></title>
16 -<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script>  
17 -<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script>  
18 -<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script> 17 +<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js?version=${version}"></script>
  18 +<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js?version=${version}"></script>
  19 +<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js?version=${version}"></script>
19 <!-- validate 验证中英文 --> 20 <!-- validate 验证中英文 -->
20 <script type="text/javascript" 21 <script type="text/javascript"
21 - src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script>  
22 -<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css" media="all">  
23 -<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script>  
24 -<script type="text/javascript" src="<%=basePath%>resource/js/tools.js"></script> 22 + src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js?version=${version}"></script>
  23 +<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css?version=${version}" media="all">
  24 +<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js?version=${version}"></script>
  25 +<script type="text/javascript" src="<%=basePath%>resource/js/tools.js?version=${version}"></script>
  26 +
  27 +<script src="<%=basePath%>resource/easyui/jquery.easyui.min.js?version=${version}"></script>
  28 +<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/easyui/uimaker/icon.css?version=${version}">
  29 +<link rel="stylesheet" href="<%=basePath%>resource/easyui/uimaker/easyui.css?version=${version}">
  30 +
25 <style type="text/css"> 31 <style type="text/css">
26 .required_span { 32 .required_span {
27 color: red; 33 color: red;
@@ -52,19 +58,27 @@ @@ -52,19 +58,27 @@
52 oninput="onInputChange(event,'co_name','oninput')" 58 oninput="onInputChange(event,'co_name','oninput')"
53 onpropertychange="onInputChange(event,'co_name','onpropertychange')"></td> 59 onpropertychange="onInputChange(event,'co_name','onpropertychange')"></td>
54 <td><spring:message code="manifest.telephone" /></td> 60 <td><spring:message code="manifest.telephone" /></td>
55 - <td><input type="text" name="co_telephone" placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>" 61 + <td><input type="text" name="co_telephone" id="co_telephone" placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"
  62 + oninput="onInputChange(event,'co_telephone','oninput')"
  63 + onpropertychange="onInputChange(event,'co_telephone','onpropertychange')"
56 value="${consignor.co_telephone}" autocomplete="off" class="layui-input" maxlength="50"></td> 64 value="${consignor.co_telephone}" autocomplete="off" class="layui-input" maxlength="50"></td>
57 <td><spring:message code="manifest.fax" /></td> 65 <td><spring:message code="manifest.fax" /></td>
58 - <td><input type="text" name="co_fax" placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>" value="${consignor.co_fax}"  
59 - autocomplete="off" class="layui-input" maxlength="50"></td> 66 + <td><input type="text" name="co_fax" id="co_fax" placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>" value="${consignor.co_fax}"
  67 + autocomplete="off" class="layui-input" maxlength="50"
  68 + oninput="onInputChange(event,'co_fax','oninput')"
  69 + onpropertychange="onInputChange(event,'co_fax','onpropertychange')"></td>
60 </tr> 70 </tr>
61 71
62 <tr> 72 <tr>
63 <td><spring:message code="manifest.country" /><span class="required_span">*</span></td> 73 <td><spring:message code="manifest.country" /><span class="required_span">*</span></td>
64 - <td><input required id="co_country" type="text" name="co_country" value="${consignor.co_country}"  
65 - autocomplete="off" class="layui-input" maxlength="2" lay-verify="required"  
66 - oninput="onInputChange(event,'co_country','oninput')"  
67 - onpropertychange="onInputChange(event,'co_country','onpropertychange')"></td> 74 + <td>
  75 + <input required lay-verify="required" class="layui-input"
  76 + id="co_country" name="co_country" maxlength="2" type="text"
  77 + <c:if test="${empty consignor.co_country}">value="CN"</c:if>
  78 + <c:if test="${not empty consignor.co_country}">value="${consignor.co_country}"</c:if>
  79 + oninput="onInputChange(event,'co_country','oninput')"
  80 + onpropertychange="onInputChange(event,'co_country','onpropertychange')">
  81 + </td>
68 <td><spring:message code="manifest.city" /></td> 82 <td><spring:message code="manifest.city" /></td>
69 <td> 83 <td>
70 <input type="text" name="co_city" id="co_city" value="${consignor.co_city}" 84 <input type="text" name="co_city" id="co_city" value="${consignor.co_city}"
@@ -73,29 +87,58 @@ @@ -73,29 +87,58 @@
73 onpropertychange="onInputChange(event,'co_city','onpropertychange')"> 87 onpropertychange="onInputChange(event,'co_city','onpropertychange')">
74 </td> 88 </td>
75 <td><spring:message code="manifest.zip.code" /></td> 89 <td><spring:message code="manifest.zip.code" /></td>
76 - <td><input type="text" name="co_zipcode" value="${consignor.co_zipcode}" 90 + <td><input type="text" name="co_zipcode" id="co_zipcode" value="${consignor.co_zipcode}"
  91 + oninput="onInputChange(event,'co_zipcode','oninput')"
  92 + onpropertychange="onInputChange(event,'co_zipcode','onpropertychange')"
77 autocomplete="off" class="layui-input" maxlength="9"></td> 93 autocomplete="off" class="layui-input" maxlength="9"></td>
78 </tr> 94 </tr>
79 - 95 +
80 <tr> 96 <tr>
81 <td><spring:message code="manifest.address" /><span class="required_span">*</span></td> 97 <td><spring:message code="manifest.address" /><span class="required_span">*</span></td>
82 - <td colspan="5"><input id="co_address" required type="text" name="co_address" lay-verify="required" 98 + <td colspan="2"><input id="co_address" required type="text" name="co_address" lay-verify="required"
83 value="${consignor.co_address}" autocomplete="off" class="layui-input" maxlength="70" 99 value="${consignor.co_address}" autocomplete="off" class="layui-input" maxlength="70"
84 oninput="onInputChange(event,'co_address','oninput')" 100 oninput="onInputChange(event,'co_address','oninput')"
85 onpropertychange="onInputChange(event,'co_address','onpropertychange')"></td> 101 onpropertychange="onInputChange(event,'co_address','onpropertychange')"></td>
86 - </tr>  
87 -  
88 - <tr>  
89 - <td><spring:message code="manifest.enterprise.code" /><span class="required_span">*</span></td>  
90 - <td><input required id="shpcusid" type="text" name="shpcusid" value="${consignor.shpcusid}" lay-verify="required"  
91 - autocomplete="off" class="layui-input" maxlength="128" oninput="onInputChange(event,'shpcusid','oninput')"  
92 - onpropertychange="onInputChange(event,'shpcusid','onpropertychange')"></td>  
93 <td><spring:message code="manifest.fhr.shpaeo" /></td> 102 <td><spring:message code="manifest.fhr.shpaeo" /></td>
94 - <td colspan="3"><input type="text" name="shpaeo" id="shpaeo" 103 + <td colspan="2"><input type="text" name="shpaeo" id="shpaeo"
95 value="${consignor.shpaeo}" autocomplete="off" class="layui-input" maxlength="20" 104 value="${consignor.shpaeo}" autocomplete="off" class="layui-input" maxlength="20"
96 oninput="onInputChange(event,'shpaeo','oninput')" 105 oninput="onInputChange(event,'shpaeo','oninput')"
97 onpropertychange="onInputChange(event,'shpaeo','onpropertychange')"></td> 106 onpropertychange="onInputChange(event,'shpaeo','onpropertychange')"></td>
98 </tr> 107 </tr>
  108 +
  109 + <tr>
  110 + <td colspan="6">
  111 + <div class="layui-row">
  112 + <div class="layui-col-md2">
  113 + <select id="co_cusid" required lay-verify="required">
  114 + <c:if test="${not empty consignor.shpcusid}">
  115 + <c:set var="tempShpType" value='${fn:split(consignor.shpcusid,"+")[0]}' />
  116 + <option value="${tempShpType}">${tempShpType}</option>
  117 + </c:if>
  118 +
  119 + <c:if test="${empty consignor.shpcusid}">
  120 + <option value=""><spring:message code="manifest.enterprise.code.type" /></option>
  121 + </c:if>
  122 + </select>
  123 + </div>
  124 + <div class="layui-col-md1" style="text-align: center; margin-top: 10px;width:20px;">
  125 + <span style="color: black; font-size: 16px;">+</span>
  126 + </div>
  127 + <div class="layui-col-md5">
  128 + <input id="shpcusid" type="text" maxlength="100" class="layui-input" required lay-verify="required"
  129 + <c:if test="${not empty consignor.shpcusid}">
  130 + <c:set var="tempShpValue" value='${fn:split(consignor.shpcusid,"+")[1]}' />
  131 + value="${tempShpValue}"
  132 + </c:if>
  133 +
  134 + placeholder="<spring:message code='manifest.enterprise.code' />"
  135 + oninput="onInputChange(event,'shpcusid','oninput')"
  136 + onpropertychange="onInputChange(event,'shpcusid','onpropertychange')">
  137 + </div>
  138 + </div>
  139 + </td>
  140 + </tr>
  141 +
99 </tbody> 142 </tbody>
100 </table> 143 </table>
101 144
@@ -110,14 +153,79 @@ @@ -110,14 +153,79 @@
110 </div> 153 </div>
111 154
112 <script> 155 <script>
  156 + var api = "<%=basePath %>enterprise/search";
  157 + $('#co_country').combogrid({
  158 + panelWidth:260,
  159 + url: api,
  160 + idField:'country_code',
  161 + textField:'start',
  162 + mode:'remote',
  163 + fitColumns:true,
  164 + onBeforeLoad: function (parm) { //在请求加载数据之前触发,返回 false 则取消加载动作
  165 + var value = $('#co_country').combobox('getValue');
  166 + if (value) {
  167 + var upper = value.toUpperCase();
  168 + $('#co_country').combogrid('setValue',upper);
  169 + parm.start = upper;
  170 +
  171 + onGetData('co_cusid','co_country');
  172 + return true;
  173 + }
  174 + return false;
  175 + },
  176 + onSelect: function(row,rowData){
  177 + //当用户选择一个列表项时触发。
  178 + $('#co_country').combogrid('setValue',rowData.country_code);
  179 +
  180 + onGetData('co_cusid','co_country');
  181 + },
  182 + columns:[[
  183 + {field:'name_cn',title:'名称',width:106},
  184 + {field:'country_code',title:'代码',width:106}
  185 + ]]
  186 + });
  187 +
  188 + function onGetData(selectId,inputId) {
  189 + var shpType = "";
  190 + var shp_cusid = "${consignor.shpcusid}";
  191 + if(notEmpty(shp_cusid)){
  192 + shpType = shp_cusid.split("+")[0];
  193 + }
  194 +
  195 + var select = $("#"+selectId);
  196 + select.html("");
  197 + select.append("<option value=''><spring:message code='manifest.enterprise.code.type' /></option>");
  198 +
  199 + var countryCode = $('#'+inputId).combobox('getValue');
  200 +
  201 + $.ajax({
  202 + url:"<%=basePath%>/enterprise/list?countryCode="+countryCode,
  203 + success:function(data){
  204 + if(data.status == 200){
  205 + if(data.data){
  206 + for(var i = 0; i < data.data.length; i++){
  207 + var type = data.data[i].enterprise_type;
  208 + if(notEmpty(shpType)&&type&&(type==shpType)){
  209 + select.append("<option selected value='"+type+"'>"+type+"</option>");
  210 + }else{
  211 + select.append("<option value='"+type+"'>"+type+"</option>");
  212 + }
  213 + layui.use('form', function() {
  214 + var form = layui.form;
  215 + form.render("select");
  216 + });
  217 + }
  218 + }
  219 + }
  220 + }
  221 + });
  222 + }
  223 +
113 var layer; 224 var layer;
114 layui.use('layer', function() { 225 layui.use('layer', function() {
115 layer = layui.layer; 226 layer = layui.layer;
116 }); 227 });
117 228
118 - $(window).load(function() {  
119 - });  
120 -  
121 layui.use('form', function() { 229 layui.use('form', function() {
122 var form = layui.form; 230 var form = layui.form;
123 231
@@ -128,7 +236,6 @@ @@ -128,7 +236,6 @@
128 layer.msg("电话和传真必须填写一项!"); 236 layer.msg("电话和传真必须填写一项!");
129 return false; 237 return false;
130 } 238 }
131 -  
132 save(data.field); 239 save(data.field);
133 return false; 240 return false;
134 }); 241 });
@@ -142,9 +249,15 @@ @@ -142,9 +249,15 @@
142 if (data.id) { 249 if (data.id) {
143 params += "&id=" + data.id; 250 params += "&id=" + data.id;
144 } 251 }
145 - if (data.shpcusid) {  
146 - params += "&shpcusid=" + data.shpcusid;  
147 - } 252 +
  253 + var shp_cusid_type = getSelectedValue("co_cusid");
  254 + var sh_cusid = $("#shpcusid").val();
  255 +
  256 + if(notEmpty(shp_cusid_type)&&notEmpty(sh_cusid)){
  257 + shpcusid = shp_cusid_type+"+"+sh_cusid;
  258 + params+="&shpcusid="+encodeURIComponent(shpcusid);
  259 + }
  260 +
148 if (data.shpaeo) { 261 if (data.shpaeo) {
149 params += "&shpaeo=" + data.shpaeo; 262 params += "&shpaeo=" + data.shpaeo;
150 } 263 }
@@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
12 <head> 12 <head>
13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
14 <meta name="viewport" content="width=device-width, initial-scale=1"> 14 <meta name="viewport" content="width=device-width, initial-scale=1">
  15 +<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
15 <title><spring:message code="menu.consignor_info_set" /></title> 16 <title><spring:message code="menu.consignor_info_set" /></title>
16 <script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script> 17 <script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script>
17 <script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script> 18 <script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script>
@@ -23,6 +24,14 @@ @@ -23,6 +24,14 @@
23 <script type="text/javascript" src="<%=basePath%>resource/layer-v3.0.3/layer/layer.js"></script> 24 <script type="text/javascript" src="<%=basePath%>resource/layer-v3.0.3/layer/layer.js"></script>
24 <script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script> 25 <script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script>
25 <script type="text/javascript" src="<%=basePath%>resource/js/tools.js"></script> 26 <script type="text/javascript" src="<%=basePath%>resource/js/tools.js"></script>
  27 +
  28 +<style type="text/css">
  29 + .layui-table-cell .layui-form-checkbox[lay-skin="primary"]{
  30 + top: 50%;
  31 + transform: translateY(-50%);
  32 + }
  33 +</style>
  34 +
26 </head> 35 </head>
27 <body> 36 <body>
28 <input type="hidden" id="mainIframeName" name="mainIframeName" value="${parentName}"> 37 <input type="hidden" id="mainIframeName" name="mainIframeName" value="${parentName}">
@@ -53,11 +62,11 @@ @@ -53,11 +62,11 @@
53 </div> 62 </div>
54 63
55 <script type="text/html" id="opt-bar"> 64 <script type="text/html" id="opt-bar">
56 - <i class="layui-icon layui-icon-edit" style="font-size: 14px; color: #1E9FFF;" lay-event="edit">编辑</i> 65 + <button type="button" class="layui-btn layui-btn-normal layui-btn-sm layui-icon layui-icon-edit" lay-event="edit">编辑</button>
57 </script> 66 </script>
58 67
59 <script type="text/html" id="choose-bar"> 68 <script type="text/html" id="choose-bar">
60 - <i class="layui-icon layui-icon-ok" style="font-size: 15px;font:bold; color: blue;" lay-event="choose">选择</i> 69 + <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-ok" lay-event="choose">选择</button>
61 </script> 70 </script>
62 71
63 <script> 72 <script>
@@ -98,9 +107,7 @@ @@ -98,9 +107,7 @@
98 text : {none:'暂无数据'}, 107 text : {none:'暂无数据'},
99 cols : [ [ //表头 108 cols : [ [ //表头
100 { 109 {
101 - type : 'checkbox',  
102 - fixed : 'left',  
103 - width : 60 110 + type : 'checkbox'
104 }, { 111 }, {
105 field : '', 112 field : '',
106 title : '操作', 113 title : '操作',
@@ -123,6 +130,9 @@ @@ -123,6 +130,9 @@
123 }, { 130 }, {
124 field : 'co_telephone', 131 field : 'co_telephone',
125 title : '电话' 132 title : '电话'
  133 + },{
  134 + field : 'shpcusid',
  135 + title : '企业代码'
126 } ] ] 136 } ] ]
127 }); 137 });
128 }); 138 });
@@ -14,18 +14,18 @@ @@ -14,18 +14,18 @@
14 <head> 14 <head>
15 <meta charset="utf-8"> 15 <meta charset="utf-8">
16 <meta name="viewport" content="width=device-width, initial-scale=1"> 16 <meta name="viewport" content="width=device-width, initial-scale=1">
17 -<link href="<%=basePath%>resource/css/base.css?ver=1.0" rel="stylesheet"> 17 +<link href="<%=basePath%>resource/css/base.css?version=${version}" rel="stylesheet">
18 <link href="<%=basePath%>resource/css/basic_info.css" rel="stylesheet"> 18 <link href="<%=basePath%>resource/css/basic_info.css" rel="stylesheet">
19 -<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/easyui/uimaker/icon.css">  
20 -<link rel="stylesheet" href="<%=basePath%>resource/easyui/uimaker/easyui.css">  
21 -<link rel="stylesheet" href="<%=basePath%>resource/css/form.css">  
22 -<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script>  
23 -<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script>  
24 -<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script> 19 +<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/easyui/uimaker/icon.css?version=${version}">
  20 +<link rel="stylesheet" href="<%=basePath%>resource/easyui/uimaker/easyui.css?version=${version}">
  21 +<link rel="stylesheet" href="<%=basePath%>resource/css/form.css?version=${version}">
  22 +<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js?version=${version}"></script>
  23 +<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js?version=${version}"></script>
  24 +<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js?version=${version}"></script>
25 25
26 -<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css" media="all">  
27 -<script type="text/javascript" src="<%=basePath%>resource/layer-v3.0.3/layer/layer.js"></script>  
28 -<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script> 26 +<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css?version=${version}" media="all">
  27 +<script type="text/javascript" src="<%=basePath%>resource/layer-v3.0.3/layer/layer.js?version=${version}"></script>
  28 +<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js?version=${version}"></script>
29 29
30 <style type="text/css"> 30 <style type="text/css">
31 .required_span { 31 .required_span {
@@ -95,7 +95,8 @@ @@ -95,7 +95,8 @@
95 class="required_span">*</span></td> 95 class="required_span">*</span></td>
96 <td class="kv-content"><input required id="flightno" name="flightno" type="text" 96 <td class="kv-content"><input required id="flightno" name="flightno" type="text"
97 placeholder="<spring:message code='manifest.carrier.flightno.tip'/>" 97 placeholder="<spring:message code='manifest.carrier.flightno.tip'/>"
98 - value="${manifest.carrier}${manifest.flightno}" oninput="onInputChange(event,'flightno','oninput')" 98 + value="${manifest.carrier}${manifest.flightno}"
  99 + oninput="onInputChange(event,'flightno','oninput')"
99 onpropertychange="onInputChange(event,'flightno','onpropertychange')" 100 onpropertychange="onInputChange(event,'flightno','onpropertychange')"
100 autocomplete="off"></td> 101 autocomplete="off"></td>
101 102
@@ -158,7 +159,6 @@ @@ -158,7 +159,6 @@
158 <td class="kv-label"><spring:message code="manifest.payment.method" /><span 159 <td class="kv-label"><spring:message code="manifest.payment.method" /><span
159 class="required_span">*</span></td> 160 class="required_span">*</span></td>
160 <td class="kv-content"><select required id="paymode" name="paymode"> 161 <td class="kv-content"><select required id="paymode" name="paymode">
161 - <%-- <option value=""><spring:message code="opt.select"/></option> --%>  
162 <option value="PP" <c:if test = "${manifest.paymode == 'PP' }">selected="selected"</c:if>><spring:message 162 <option value="PP" <c:if test = "${manifest.paymode == 'PP' }">selected="selected"</c:if>><spring:message
163 code="manifest.prepaid" /></option> 163 code="manifest.prepaid" /></option>
164 <option value="CC" <c:if test = "${manifest.paymode == 'CC' }">selected="selected"</c:if>><spring:message 164 <option value="CC" <c:if test = "${manifest.paymode == 'CC' }">selected="selected"</c:if>><spring:message
@@ -173,7 +173,6 @@ @@ -173,7 +173,6 @@
173 <td class="kv-label"><spring:message code="manifest.customs.status" /><span 173 <td class="kv-label"><spring:message code="manifest.customs.status" /><span
174 class="required_span">*</span></td> 174 class="required_span">*</span></td>
175 <td class="kv-content" colspan="3"><select id="customsstatus" name="customsstatus" required> 175 <td class="kv-content" colspan="3"><select id="customsstatus" name="customsstatus" required>
176 - <%-- <option value=""><spring:message code="opt.select" /></option> --%>  
177 <option value="001" 176 <option value="001"
178 <c:if test="${manifest.customsstatus == 001 }">selected="selected"</c:if>><spring:message 177 <c:if test="${manifest.customsstatus == 001 }">selected="selected"</c:if>><spring:message
179 code="manifest.customs_status_001" /></option> 178 code="manifest.customs_status_001" /></option>
@@ -224,67 +223,6 @@ @@ -224,67 +223,6 @@
224 <td style="background-color: #EBEDF4; color: black;" class="kv-label" colspan="1"><spring:message 223 <td style="background-color: #EBEDF4; color: black;" class="kv-label" colspan="1"><spring:message
225 code="manifest.shipper.information" /></td> 224 code="manifest.shipper.information" /></td>
226 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsignorDialog()">请选择发货人</button> </td> 225 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsignorDialog()">请选择发货人</button> </td>
227 - <%-- <td class="kv-content" colspan="4"><select onchange="changeConsignorSelect()"  
228 - id="fh_select">  
229 - <option value="-1">请选择</option>  
230 - </select> <script>  
231 - var consignorList = null;  
232 - function changeConsignorSelect(){  
233 - if(consignorList != null)  
234 - {  
235 - var index = parseInt($("#fh_select").find("option:selected").val());  
236 - if(index >= 0)  
237 - {  
238 - var consignor = consignorList[index];  
239 - $("#co_company").val(consignor.co_company?consignor.co_company.toUpperCase():"");  
240 - var address = consignor.co_address;  
241 - if(notEmpty(address)){  
242 - if(address.length>70){  
243 - address = address.substring(0,70);  
244 - }  
245 - }else{  
246 - address = "";  
247 - }  
248 - $("#co_address").val(address.toUpperCase());  
249 - $("#co_telephone").val(consignor.co_telephone?consignor.co_telephone:"");  
250 - $("#co_country").val(consignor.co_country?consignor.co_country:"CN");  
251 - $("#co_city").val(consignor.co_city?consignor.co_city.toUpperCase():"");  
252 - $("#co_deltaname").val(consignor.co_deltaname?consignor.co_deltaname.toUpperCase():"");  
253 - $("#co_name").val(consignor.co_name?consignor.co_name.toUpperCase():"");  
254 - $("#co_fax").val(consignor.co_fax?consignor.co_fax:"");  
255 - $("#co_zipcode").val(consignor.co_zipcode?consignor.co_zipcode:"");  
256 - $("#shpaeo").val(consignor.shpaeo?consignor.shpaeo:"");  
257 -  
258 - if(notEmpty(consignor.shpcusid)){  
259 - var temp = consignor.shpcusid.split("+")[1];  
260 - if(notEmpty(temp)){  
261 - $("#shpcusid").val(temp.toUpperCase());  
262 - }  
263 - }  
264 -  
265 - }  
266 - }  
267 - }  
268 -  
269 - $.ajax({  
270 - url:"<%=basePath%>/consignor/getall",  
271 - success:function(data){  
272 - if(data.status == 200)  
273 - {  
274 - if(data.data)  
275 - {  
276 - consignorList = data.data;  
277 - for(var i = 0; i < data.data.length; i ++)  
278 - {  
279 - var select = $("#fh_select");  
280 - select.append("<option value='"+i+"'>"+data.data[i].co_company+"</option>");  
281 - }  
282 - }  
283 - }  
284 - }  
285 - });  
286 - </script>  
287 - </td> --%>  
288 </tr> 226 </tr>
289 <tr> 227 <tr>
290 <td class="kv-label"><spring:message code="manifest.company" /><span 228 <td class="kv-label"><spring:message code="manifest.company" /><span
@@ -310,7 +248,9 @@ @@ -310,7 +248,9 @@
310 <tr> 248 <tr>
311 <td class="kv-label"><spring:message code="manifest.state" /></td> 249 <td class="kv-label"><spring:message code="manifest.state" /></td>
312 <td class="kv-content"><input id="co_deltaname" name="co_deltaname" type="text" maxlength="35" 250 <td class="kv-content"><input id="co_deltaname" name="co_deltaname" type="text" maxlength="35"
313 - value="${manifest.co_deltaname}"></td> 251 + value="${manifest.co_deltaname}"
  252 + oninput="onInputChange(event,'co_deltaname','oninput')"
  253 + onpropertychange="onInputChange(event,'co_deltaname','onpropertychange')"></td>
314 <td class="kv-label"><spring:message code="manifest.zip.code" /></td> 254 <td class="kv-label"><spring:message code="manifest.zip.code" /></td>
315 <td class="kv-content" colspan="3"><input id="co_zipcode" name="co_zipcode" type="text" maxlength="9" 255 <td class="kv-content" colspan="3"><input id="co_zipcode" name="co_zipcode" type="text" maxlength="9"
316 value="${manifest.co_zipcode }"></td> 256 value="${manifest.co_zipcode }"></td>
@@ -319,10 +259,14 @@ @@ -319,10 +259,14 @@
319 <td class="kv-label"><spring:message code="manifest.telephone" /></td> 259 <td class="kv-label"><spring:message code="manifest.telephone" /></td>
320 <td class="kv-content"><input id="co_telephone" name="co_telephone" type="text" maxlength="50" 260 <td class="kv-content"><input id="co_telephone" name="co_telephone" type="text" maxlength="50"
321 value="${manifest.co_telephone }" 261 value="${manifest.co_telephone }"
  262 + oninput="onInputChange(event,'co_telephone','oninput')"
  263 + onpropertychange="onInputChange(event,'co_telephone','onpropertychange')"
322 placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td> 264 placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td>
323 <td class="kv-label"><spring:message code="manifest.fax" /></td> 265 <td class="kv-label"><spring:message code="manifest.fax" /></td>
324 <td class="kv-content"><input id="co_fax" name="co_fax" type="text" maxlength="50" 266 <td class="kv-content"><input id="co_fax" name="co_fax" type="text" maxlength="50"
325 value="${manifest.co_fax }" 267 value="${manifest.co_fax }"
  268 + oninput="onInputChange(event,'co_fax','oninput')"
  269 + onpropertychange="onInputChange(event,'co_fax','onpropertychange')"
326 placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td> 270 placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td>
327 <td class="kv-label"><spring:message code="manifest.fhr.shpaeo" /></td> 271 <td class="kv-label"><spring:message code="manifest.fhr.shpaeo" /></td>
328 <td class="kv-content"><input id="shpaeo" name="shpaeo" type="text" maxlength="20" 272 <td class="kv-content"><input id="shpaeo" name="shpaeo" type="text" maxlength="20"
@@ -367,55 +311,6 @@ @@ -367,55 +311,6 @@
367 <td style="background-color: #EBEDF4; color: black;" class="kv-label" colspan="1"><spring:message 311 <td style="background-color: #EBEDF4; color: black;" class="kv-label" colspan="1"><spring:message
368 code="manifest.consignee" /></td> 312 code="manifest.consignee" /></td>
369 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsigneeDialog()">请选择收货人</button> </td> 313 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsigneeDialog()">请选择收货人</button> </td>
370 - <%-- <td class="kv-content" colspan="5"><select onchange="changeConsigneeSelect()"  
371 - id="consignee_select">  
372 - <option value="-1">请选择</option>  
373 - </select> <script>  
374 - var consigneeList = null;  
375 - function changeConsigneeSelect(){  
376 - if(consigneeList != null)  
377 - {  
378 - var index = parseInt($("#consignee_select").find("option:selected").val());  
379 - if(index >= 0)  
380 - {  
381 - var consignee = consigneeList[index];  
382 - $("#sh_company").val(consignee.code?consignee.code:"");  
383 -  
384 - var address = consignee.address;  
385 - if(notEmpty(address)){  
386 - if(address.length>70){  
387 - address = address.substring(0,70);  
388 - }  
389 - }else{  
390 - address = "";  
391 - }  
392 -  
393 - $("#sh_address").val(address.toUpperCase());  
394 - $("#sh_telephone").val(consignee.tel?consignee.tel:"");  
395 - $("#sh_country").val(consignee.name?consignee.name:"");  
396 - $("#sh_name").val(consignee.code?consignee.code:"");  
397 - }  
398 - }  
399 - }  
400 - $.ajax({  
401 - url:"<%=basePath%>/consignee/getall",  
402 - success:function(data){  
403 - if(data.status == 200)  
404 - {  
405 - if(data.data)  
406 - {  
407 - consigneeList = data.data;  
408 - for(var i = 0; i < data.data.length; i ++)  
409 - {  
410 - var select = $("#consignee_select");  
411 - select.append("<option value='"+i+"'>"+consigneeList[i].code+"</option>");  
412 -  
413 - }  
414 - }  
415 - }  
416 - }  
417 - });  
418 - </script></td> --%>  
419 </tr> 314 </tr>
420 <tr> 315 <tr>
421 <td class="kv-label"><spring:message code="manifest.company" /><span 316 <td class="kv-label"><spring:message code="manifest.company" /><span
@@ -432,7 +327,7 @@ @@ -432,7 +327,7 @@
432 <td class="kv-label"><spring:message code="manifest.country" /><span 327 <td class="kv-label"><spring:message code="manifest.country" /><span
433 class="required_span">*</span></td> 328 class="required_span">*</span></td>
434 <td class="kv-content"><input required id="sh_country" name="sh_country" maxlength="2" 329 <td class="kv-content"><input required id="sh_country" name="sh_country" maxlength="2"
435 - type="text" value="${manifest.sh_country }" 330 + type="text" value="${manifest.sh_country}" class="layui-input"
436 oninput="onInputChange(event,'sh_country','oninput')" 331 oninput="onInputChange(event,'sh_country','oninput')"
437 onpropertychange="onInputChange(event,'sh_country','onpropertychange')"></td> 332 onpropertychange="onInputChange(event,'sh_country','onpropertychange')"></td>
438 </tr> 333 </tr>
@@ -443,10 +338,16 @@ @@ -443,10 +338,16 @@
443 onpropertychange="onInputChange(event,'sh_city','onpropertychange')"></td> 338 onpropertychange="onInputChange(event,'sh_city','onpropertychange')"></td>
444 <td class="kv-label"><spring:message code="manifest.state" /></td> 339 <td class="kv-label"><spring:message code="manifest.state" /></td>
445 <td class="kv-content"><input id="sh_deltaname" name="sh_deltaname" type="text" maxlength="35" 340 <td class="kv-content"><input id="sh_deltaname" name="sh_deltaname" type="text" maxlength="35"
446 - value="${manifest.sh_deltaname}"></td> 341 + value="${manifest.sh_deltaname}"
  342 + oninput="onInputChange(event,'sh_deltaname','oninput')"
  343 + onpropertychange="onInputChange(event,'sh_deltaname','onpropertychange')"></td>
447 <td class="kv-label"><spring:message code="manifest.zip.code" /></td> 344 <td class="kv-label"><spring:message code="manifest.zip.code" /></td>
448 - <td class="kv-content"><input id="sh_zipcode" name="sh_zipcode" type="text" maxlength="9"  
449 - value="${manifest.sh_zipcode }"></td> 345 + <td class="kv-content">
  346 + <input id="sh_zipcode" name="sh_zipcode" type="text"
  347 + maxlength="9"value="${manifest.sh_zipcode }"
  348 + oninput="onInputChange(event,'sh_zipcode','oninput')"
  349 + onpropertychange="onInputChange(event,'sh_zipcode','onpropertychange')" >
  350 + </td>
450 </tr> 351 </tr>
451 <tr> 352 <tr>
452 <td class="kv-label"><spring:message code="manifest.telephone" /></td> 353 <td class="kv-label"><spring:message code="manifest.telephone" /></td>
@@ -454,7 +355,9 @@ @@ -454,7 +355,9 @@
454 value="${manifest.sh_telephone }"></td> 355 value="${manifest.sh_telephone }"></td>
455 <td class="kv-label"><spring:message code="manifest.fax" /></td> 356 <td class="kv-label"><spring:message code="manifest.fax" /></td>
456 <td class="kv-content"><input id="sh_fax" name="sh_fax" type="text" maxlength="50" 357 <td class="kv-content"><input id="sh_fax" name="sh_fax" type="text" maxlength="50"
457 - value="${manifest.sh_fax }"></td> 358 + value="${manifest.sh_fax }"
  359 + oninput="onInputChange(event,'sh_fax','oninput')"
  360 + onpropertychange="onInputChange(event,'sh_fax','onpropertychange')" ></td>
458 <td class="kv-label"><spring:message code="manifest.shr.cneaeo" /></td> 361 <td class="kv-label"><spring:message code="manifest.shr.cneaeo" /></td>
459 <td class="kv-content"><input id="cneaeo" name="cneaeo" type="text" maxlength="20" 362 <td class="kv-content"><input id="cneaeo" name="cneaeo" type="text" maxlength="20"
460 value="${manifest.cneaeo }" oninput="onInputChange(event,'cneaeo','oninput')" 363 value="${manifest.cneaeo }" oninput="onInputChange(event,'cneaeo','oninput')"
@@ -659,8 +562,8 @@ @@ -659,8 +562,8 @@
659 </div> 562 </div>
660 563
661 <!-- 外部js --> 564 <!-- 外部js -->
662 - <script type="text/javascript" src="<%=basePath%>resource/My97DatePicker/WdatePicker.js"></script>  
663 - <script src="<%=basePath%>resource/easyui/jquery.easyui.min.js"></script> 565 + <script type="text/javascript" src="<%=basePath%>resource/My97DatePicker/WdatePicker.js?version=${version}"></script>
  566 + <script src="<%=basePath%>resource/easyui/jquery.easyui.min.js?version=${version}"></script>
664 <script src="<%=basePath%>/resource/js/tools.js?version=${version}"></script> 567 <script src="<%=basePath%>/resource/js/tools.js?version=${version}"></script>
665 <!--弹出层引入的JS--> 568 <!--弹出层引入的JS-->
666 <script type="text/javascript"> 569 <script type="text/javascript">
@@ -1027,7 +930,8 @@ $(function(){ @@ -1027,7 +930,8 @@ $(function(){
1027 } 930 }
1028 $("#co_address").val(address.toUpperCase()); 931 $("#co_address").val(address.toUpperCase());
1029 $("#co_telephone").val(consignor.co_telephone?consignor.co_telephone:""); 932 $("#co_telephone").val(consignor.co_telephone?consignor.co_telephone:"");
1030 - $("#co_country").val(consignor.co_country?consignor.co_country:"CN"); 933 + var country = consignor.co_country?consignor.co_country:"CN";
  934 + $('#co_country').combogrid('setValue',country);
1031 $("#co_city").val(consignor.co_city?consignor.co_city.toUpperCase():""); 935 $("#co_city").val(consignor.co_city?consignor.co_city.toUpperCase():"");
1032 $("#co_deltaname").val(consignor.co_deltaname?consignor.co_deltaname.toUpperCase():""); 936 $("#co_deltaname").val(consignor.co_deltaname?consignor.co_deltaname.toUpperCase():"");
1033 $("#co_name").val(consignor.co_name?consignor.co_name.toUpperCase():""); 937 $("#co_name").val(consignor.co_name?consignor.co_name.toUpperCase():"");
@@ -1038,6 +942,12 @@ $(function(){ @@ -1038,6 +942,12 @@ $(function(){
1038 if(notEmpty(consignor.shpcusid)){ 942 if(notEmpty(consignor.shpcusid)){
1039 var temp_1 = consignor.shpcusid.split("+")[0]; 943 var temp_1 = consignor.shpcusid.split("+")[0];
1040 var temp_2 = consignor.shpcusid.split("+")[1]; 944 var temp_2 = consignor.shpcusid.split("+")[1];
  945 + if(notEmpty(temp_1)){
  946 + var select = $("#co_cusid");
  947 + select.html("");
  948 + select.append("<option value='"+temp_1.toUpperCase()+"'>"+temp_1.toUpperCase()+"</option>");
  949 + }
  950 +
1041 if(notEmpty(temp_2)){ 951 if(notEmpty(temp_2)){
1042 $("#shpcusid").val(temp_2.toUpperCase()); 952 $("#shpcusid").val(temp_2.toUpperCase());
1043 } 953 }
@@ -1074,7 +984,8 @@ $(function(){ @@ -1074,7 +984,8 @@ $(function(){
1074 $("#sh_address").val(address.toUpperCase()); 984 $("#sh_address").val(address.toUpperCase());
1075 $("#sh_company").val(consignee.name?consignee.name:""); 985 $("#sh_company").val(consignee.name?consignee.name:"");
1076 $("#sh_telephone").val(consignee.tel?consignee.tel:""); 986 $("#sh_telephone").val(consignee.tel?consignee.tel:"");
1077 - $("#sh_country").val(consignee.name?consignee.name:""); 987 + var country = consignee.country?consignee.country:"";
  988 + $('#sh_country').combogrid('setValue',country);
1078 $("#sh_name").val(consignee.code?consignee.code:""); 989 $("#sh_name").val(consignee.code?consignee.code:"");
1079 $("#sh_city").val(consignee.city?consignee.city.toUpperCase():""); 990 $("#sh_city").val(consignee.city?consignee.city.toUpperCase():"");
1080 $("#sh_fax").val(consignee.fax?consignee.fax:""); 991 $("#sh_fax").val(consignee.fax?consignee.fax:"");
@@ -1084,6 +995,13 @@ $(function(){ @@ -1084,6 +995,13 @@ $(function(){
1084 if(notEmpty(consignee.cusid)){ 995 if(notEmpty(consignee.cusid)){
1085 var temp_1 = consignee.cusid.split("+")[0]; 996 var temp_1 = consignee.cusid.split("+")[0];
1086 var temp_2 = consignee.cusid.split("+")[1]; 997 var temp_2 = consignee.cusid.split("+")[1];
  998 +
  999 + if(notEmpty(temp_1)){
  1000 + var select = $("#sh_cusid");
  1001 + select.html("");
  1002 + select.append("<option value='"+temp_1.toUpperCase()+"'>"+temp_1.toUpperCase()+"</option>");
  1003 + }
  1004 +
1087 if(notEmpty(temp_2)){ 1005 if(notEmpty(temp_2)){
1088 $("#cnecusid").val(temp_2.toUpperCase()); 1006 $("#cnecusid").val(temp_2.toUpperCase());
1089 } 1007 }
@@ -13,18 +13,18 @@ @@ -13,18 +13,18 @@
13 <head> 13 <head>
14 <meta charset="utf-8"> 14 <meta charset="utf-8">
15 <meta name="viewport" content="width=device-width, initial-scale=1"> 15 <meta name="viewport" content="width=device-width, initial-scale=1">
16 -<link href="<%=basePath%>resource/css/base.css?ver=1.0" rel="stylesheet"> 16 +<link href="<%=basePath%>resource/css/base.css?version=${version}" rel="stylesheet">
17 <link href="<%=basePath%>resource/css/basic_info.css" rel="stylesheet"> 17 <link href="<%=basePath%>resource/css/basic_info.css" rel="stylesheet">
18 -<link rel="stylesheet" href="<%=basePath%>resource/easyui/uimaker/easyui.css"> 18 +<link rel="stylesheet" href="<%=basePath%>resource/easyui/uimaker/easyui.css?version=${version}">
19 <link href="<%=basePath%>resource/css/form.css" rel="stylesheet"> 19 <link href="<%=basePath%>resource/css/form.css" rel="stylesheet">
20 -<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script>  
21 -<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script>  
22 -<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script>  
23 -<link rel="stylesheet" href="<%=basePath%>resource/css/form.css"> 20 +<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js?version=${version}"></script>
  21 +<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js?version=${version}"></script>
  22 +<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js?version=${version}"></script>
  23 +<link rel="stylesheet" href="<%=basePath%>resource/css/form.css?version=${version}">
24 24
25 -<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css" media="all">  
26 -<script type="text/javascript" src="<%=basePath%>resource/layer-v3.0.3/layer/layer.js"></script>  
27 -<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script> 25 +<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css?version=${version}" media="all">
  26 +<script type="text/javascript" src="<%=basePath%>resource/layer-v3.0.3/layer/layer.js?version=${version}"></script>
  27 +<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js?version=${version}"></script>
28 28
29 <style type="text/css"> 29 <style type="text/css">
30 .required_span { 30 .required_span {
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 </style> 35 </style>
36 <!-- validate 验证中英文 --> 36 <!-- validate 验证中英文 -->
37 <script type="text/javascript" 37 <script type="text/javascript"
38 - src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script> 38 + src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js?version=${version}"></script>
39 </head> 39 </head>
40 <body> 40 <body>
41 <div class="container"> 41 <div class="container">
@@ -216,66 +216,6 @@ @@ -216,66 +216,6 @@
216 <td style="background-color: #EBEDF4; color: black;" class="kv-label"><spring:message 216 <td style="background-color: #EBEDF4; color: black;" class="kv-label"><spring:message
217 code="manifest.shipper.information" /></td> 217 code="manifest.shipper.information" /></td>
218 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsignorDialog()">请选择发货人</button> </td> 218 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsignorDialog()">请选择发货人</button> </td>
219 - <%-- <td class="kv-content" colspan="5"><select onchange="changeConsignorSelect()"  
220 - id="fh_select">  
221 - <option value="-1">请选择</option>  
222 - </select> <script>  
223 - var consignorList = null;  
224 - function changeConsignorSelect(){  
225 - if(consignorList != null)  
226 - {  
227 - var index = parseInt($("#fh_select").find("option:selected").val());  
228 - if(index >= 0)  
229 - {  
230 - var consignor = consignorList[index];  
231 - $("#co_company").val(consignor.co_company?consignor.co_company.toUpperCase():"");  
232 - var address = consignor.co_address;  
233 - if(notEmpty(address)){  
234 - if(address.length>70){  
235 - address = address.substring(0,70);  
236 - }  
237 - }else{  
238 - address = "";  
239 - }  
240 - $("#co_address").val(address.toUpperCase());  
241 - $("#co_telephone").val(consignor.co_telephone?consignor.co_telephone:"");  
242 - $("#co_country").val(consignor.co_country?consignor.co_country:"CN");  
243 - $("#co_city").val(consignor.co_city?consignor.co_city:"");  
244 - $("#co_deltaname").val(consignor.co_deltaname?consignor.co_deltaname:"");  
245 - $("#co_name").val(consignor.co_name?consignor.co_name:"");  
246 - $("#co_fax").val(consignor.co_fax?consignor.co_fax:"");  
247 - $("#co_zipcode").val(consignor.co_zipcode?consignor.co_zipcode:"");  
248 - $("#shpaeo").val(consignor.shpaeo?consignor.shpaeo:"");  
249 -  
250 - if(notEmpty(consignor.shpcusid)){  
251 - var temp = consignor.shpcusid.split("+")[1];  
252 - if(notEmpty(temp)){  
253 - $("#shpcusid").val(temp.toUpperCase());  
254 - }  
255 - }  
256 - }  
257 - }  
258 - }  
259 -  
260 - $.ajax({  
261 - url:"<%=basePath%>/consignor/getall",  
262 - success:function(data){  
263 - if(data.status == 200)  
264 - {  
265 - if(data.data)  
266 - {  
267 - consignorList = data.data;  
268 - for(var i = 0; i < data.data.length; i ++)  
269 - {  
270 - var select = $("#fh_select");  
271 - select.append("<option value='"+i+"'>"+consignorList[i].co_company+"</option>");  
272 -  
273 - }  
274 - }  
275 - }  
276 - }  
277 - });  
278 - </script></td> --%>  
279 </tr> 219 </tr>
280 <tr> 220 <tr>
281 <td class="kv-label"><spring:message code="manifest.company" /><span 221 <td class="kv-label"><spring:message code="manifest.company" /><span
@@ -301,18 +241,26 @@ @@ -301,18 +241,26 @@
301 <tr> 241 <tr>
302 <td class="kv-label"><spring:message code="manifest.state" /></td> 242 <td class="kv-label"><spring:message code="manifest.state" /></td>
303 <td class="kv-content"><input id="co_deltaname" name="co_deltaname" type="text" maxlength="35" 243 <td class="kv-content"><input id="co_deltaname" name="co_deltaname" type="text" maxlength="35"
304 - value="${pre.co_deltaname }"></td> 244 + value="${pre.co_deltaname }"
  245 + oninput="onInputChange(event,'co_deltaname','oninput')"
  246 + onpropertychange="onInputChange(event,'co_deltaname','onpropertychange')"></td>
305 <td class="kv-label"><spring:message code="manifest.zip.code" /></td> 247 <td class="kv-label"><spring:message code="manifest.zip.code" /></td>
306 <td class="kv-content" colspan="3"><input id="co_zipcode" name="co_zipcode" type="text" maxlength="9" 248 <td class="kv-content" colspan="3"><input id="co_zipcode" name="co_zipcode" type="text" maxlength="9"
307 - value="${pre.co_zipcode }"></td> 249 + value="${pre.co_zipcode }"
  250 + oninput="onInputChange(event,'co_zipcode','oninput')"
  251 + onpropertychange="onInputChange(event,'co_zipcode','onpropertychange')"></td>
308 </tr> 252 </tr>
309 <tr> 253 <tr>
310 <td class="kv-label"><spring:message code="manifest.telephone" /></td> 254 <td class="kv-label"><spring:message code="manifest.telephone" /></td>
311 <td class="kv-content"><input id="co_telephone" name="co_telephone" type="text" maxlength="50" 255 <td class="kv-content"><input id="co_telephone" name="co_telephone" type="text" maxlength="50"
312 value="${pre.co_telephone }" 256 value="${pre.co_telephone }"
  257 + oninput="onInputChange(event,'co_telephone','oninput')"
  258 + onpropertychange="onInputChange(event,'co_telephone','onpropertychange')"
313 placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td> 259 placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td>
314 <td class="kv-label"><spring:message code="manifest.fax" /></td> 260 <td class="kv-label"><spring:message code="manifest.fax" /></td>
315 <td class="kv-content"><input id="co_fax" name="co_fax" type="text" maxlength="50" 261 <td class="kv-content"><input id="co_fax" name="co_fax" type="text" maxlength="50"
  262 + oninput="onInputChange(event,'co_fax','oninput')"
  263 + onpropertychange="onInputChange(event,'co_fax','onpropertychange')"
316 value="${pre.co_fax }" placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td> 264 value="${pre.co_fax }" placeholder="<spring:message code="manifest.fhr.fh_placeholder"/>"></td>
317 <td style="display: none;" class="kv-label"><spring:message code="manifest.name" /><span 265 <td style="display: none;" class="kv-label"><spring:message code="manifest.name" /><span
318 class="required_span">*</span></td> 266 class="required_span">*</span></td>
@@ -349,45 +297,6 @@ @@ -349,45 +297,6 @@
349 <td style="background-color: #EBEDF4; color: black;" class="kv-label" colspan="1"><spring:message 297 <td style="background-color: #EBEDF4; color: black;" class="kv-label" colspan="1"><spring:message
350 code="manifest.consignee" /></td> 298 code="manifest.consignee" /></td>
351 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsigneeDialog()">请选择收货人</button> </td> 299 <td class="kv-label"> <button type="button" class="layui-btn layui-btn-sm layui-icon layui-icon-user" onclick="showConsigneeDialog()">请选择收货人</button> </td>
352 - <%-- <td class="kv-content" colspan="5"><select onchange="changeConsigneeSelect()"  
353 - id="consignee_select">  
354 - <option value="-1">请选择</option>  
355 - </select> <script>  
356 - var consigneeList = null;  
357 - function changeConsigneeSelect(){  
358 - if(consigneeList != null)  
359 - {  
360 - var index = parseInt($("#consignee_select").find("option:selected").val());  
361 - if(index >= 0)  
362 - {  
363 - var consignee = consigneeList[index];  
364 - $("#sh_company").val(consignee.code?consignee.code.toUpperCase():"");  
365 - $("#sh_address").val(consignee.address?consignee.address.toUpperCase():"");  
366 - $("#sh_telephone").val(consignee.tel?consignee.tel:"");  
367 - $("#sh_country").val(consignee.name?consignee.name:"");  
368 - $("#sh_name").val(consignee.code?consignee.code.toUpperCase():"");  
369 - }  
370 - }  
371 - }  
372 - $.ajax({  
373 - url:"<%=basePath%>/consignee/getall",  
374 - success:function(data){  
375 - if(data.status == 200)  
376 - {  
377 - if(data.data)  
378 - {  
379 - consigneeList = data.data;  
380 - for(var i = 0; i < data.data.length; i ++)  
381 - {  
382 - var select = $("#consignee_select");  
383 - select.append("<option value='"+i+"'>"+consigneeList[i].code+"</option>");  
384 -  
385 - }  
386 - }  
387 - }  
388 - }  
389 - });  
390 - </script></td> --%>  
391 </tr> 300 </tr>
392 <tr> 301 <tr>
393 <td class="kv-label"><spring:message code="manifest.company" /><span 302 <td class="kv-label"><spring:message code="manifest.company" /><span
@@ -403,7 +312,9 @@ @@ -403,7 +312,9 @@
403 onpropertychange="onInputChange(event,'sh_address','onpropertychange')"></td> 312 onpropertychange="onInputChange(event,'sh_address','onpropertychange')"></td>
404 <td class="kv-label"><spring:message code="manifest.zip.code" /></td> 313 <td class="kv-label"><spring:message code="manifest.zip.code" /></td>
405 <td class="kv-content"><input id="sh_zipcode" name="sh_zipcode" type="text" maxlength="9" 314 <td class="kv-content"><input id="sh_zipcode" name="sh_zipcode" type="text" maxlength="9"
406 - value="${pre.sh_zipcode }"></td> 315 + value="${pre.sh_zipcode }"
  316 + oninput="onInputChange(event,'sh_zipcode','oninput')"
  317 + onpropertychange="onInputChange(event,'sh_zipcode','onpropertychange')"></td>
407 </tr> 318 </tr>
408 <tr> 319 <tr>
409 <td class="kv-label"><spring:message code="manifest.city" /><span class="required_span">*</span></td> 320 <td class="kv-label"><spring:message code="manifest.city" /><span class="required_span">*</span></td>
@@ -423,10 +334,14 @@ @@ -423,10 +334,14 @@
423 <tr> 334 <tr>
424 <td class="kv-label"><spring:message code="manifest.telephone" /></td> 335 <td class="kv-label"><spring:message code="manifest.telephone" /></td>
425 <td class="kv-content"><input id="sh_telephone" name="sh_telephone" type="text" maxlength="50" 336 <td class="kv-content"><input id="sh_telephone" name="sh_telephone" type="text" maxlength="50"
426 - value="${pre.sh_telephone }"></td> 337 + value="${pre.sh_telephone }"
  338 + oninput="onInputChange(event,'sh_telephone','oninput')"
  339 + onpropertychange="onInputChange(event,'sh_telephone','onpropertychange')"></td>
427 <td class="kv-label"><spring:message code="manifest.fax" /></td> 340 <td class="kv-label"><spring:message code="manifest.fax" /></td>
428 <td class="kv-content"><input id="sh_fax" name="sh_fax" type="text" maxlength="50" 341 <td class="kv-content"><input id="sh_fax" name="sh_fax" type="text" maxlength="50"
429 - value="${pre.sh_fax }"></td> 342 + value="${pre.sh_fax }"
  343 + oninput="onInputChange(event,'sh_fax','oninput')"
  344 + onpropertychange="onInputChange(event,'sh_fax','onpropertychange')"></td>
430 <td style="display: none;" class="kv-label"><spring:message code="manifest.name" /></td> 345 <td style="display: none;" class="kv-label"><spring:message code="manifest.name" /></td>
431 <td style="display: none;" class="kv-content" colspan="5"><input id="sh_name" 346 <td style="display: none;" class="kv-content" colspan="5"><input id="sh_name"
432 name="sh_name" type="text" value="${pre.sh_name }"></td> 347 name="sh_name" type="text" value="${pre.sh_name }"></td>
@@ -610,8 +525,8 @@ @@ -610,8 +525,8 @@
610 </form> 525 </form>
611 </div> 526 </div>
612 </div> 527 </div>
613 - <script src="<%=basePath%>resource/easyui/jquery.easyui.min.js"></script>  
614 - <script src="<%=basePath%>resource/My97DatePicker/WdatePicker.js"></script> 528 + <script src="<%=basePath%>resource/easyui/jquery.easyui.min.js?version=${version}"></script>
  529 + <script src="<%=basePath%>resource/My97DatePicker/WdatePicker.js?version=${version}"></script>
615 <script src="<%=basePath%>resource/js/tools.js?version=${version}"></script> 530 <script src="<%=basePath%>resource/js/tools.js?version=${version}"></script>
616 <script type="text/javascript"> 531 <script type="text/javascript">
617 532
@@ -1068,7 +983,10 @@ @@ -1068,7 +983,10 @@
1068 } 983 }
1069 $("#co_address").val(address.toUpperCase()); 984 $("#co_address").val(address.toUpperCase());
1070 $("#co_telephone").val(consignor.co_telephone?consignor.co_telephone:""); 985 $("#co_telephone").val(consignor.co_telephone?consignor.co_telephone:"");
1071 - $("#co_country").val(consignor.co_country?consignor.co_country:"CN"); 986 +
  987 + var country = consignor.co_country?consignor.co_country:"CN";
  988 + $('#co_country').combogrid('setValue',country);
  989 +
1072 $("#co_city").val(consignor.co_city?consignor.co_city.toUpperCase():""); 990 $("#co_city").val(consignor.co_city?consignor.co_city.toUpperCase():"");
1073 $("#co_deltaname").val(consignor.co_deltaname?consignor.co_deltaname.toUpperCase():""); 991 $("#co_deltaname").val(consignor.co_deltaname?consignor.co_deltaname.toUpperCase():"");
1074 $("#co_name").val(consignor.co_name?consignor.co_name.toUpperCase():""); 992 $("#co_name").val(consignor.co_name?consignor.co_name.toUpperCase():"");
@@ -1079,6 +997,12 @@ @@ -1079,6 +997,12 @@
1079 if(notEmpty(consignor.shpcusid)){ 997 if(notEmpty(consignor.shpcusid)){
1080 var temp_1 = consignor.shpcusid.split("+")[0]; 998 var temp_1 = consignor.shpcusid.split("+")[0];
1081 var temp_2 = consignor.shpcusid.split("+")[1]; 999 var temp_2 = consignor.shpcusid.split("+")[1];
  1000 + if(notEmpty(temp_1)){
  1001 + var select = $("#co_cusid");
  1002 + select.html("");
  1003 + select.append("<option value='"+temp_1.toUpperCase()+"'>"+temp_1.toUpperCase()+"</option>");
  1004 + }
  1005 +
1082 if(notEmpty(temp_2)){ 1006 if(notEmpty(temp_2)){
1083 $("#shpcusid").val(temp_2.toUpperCase()); 1007 $("#shpcusid").val(temp_2.toUpperCase());
1084 } 1008 }
@@ -1115,7 +1039,10 @@ @@ -1115,7 +1039,10 @@
1115 $("#sh_address").val(address.toUpperCase()); 1039 $("#sh_address").val(address.toUpperCase());
1116 $("#sh_company").val(consignee.name?consignee.name:""); 1040 $("#sh_company").val(consignee.name?consignee.name:"");
1117 $("#sh_telephone").val(consignee.tel?consignee.tel:""); 1041 $("#sh_telephone").val(consignee.tel?consignee.tel:"");
1118 - $("#sh_country").val(consignee.name?consignee.name:""); 1042 +
  1043 + var country = consignee.country?consignee.country:"";
  1044 + $('#sh_country').combogrid('setValue',country);
  1045 +
1119 $("#sh_name").val(consignee.code?consignee.code:""); 1046 $("#sh_name").val(consignee.code?consignee.code:"");
1120 $("#sh_city").val(consignee.city?consignee.city.toUpperCase():""); 1047 $("#sh_city").val(consignee.city?consignee.city.toUpperCase():"");
1121 $("#sh_fax").val(consignee.fax?consignee.fax:""); 1048 $("#sh_fax").val(consignee.fax?consignee.fax:"");
@@ -1125,6 +1052,13 @@ @@ -1125,6 +1052,13 @@
1125 if(notEmpty(consignee.cusid)){ 1052 if(notEmpty(consignee.cusid)){
1126 var temp_1 = consignee.cusid.split("+")[0]; 1053 var temp_1 = consignee.cusid.split("+")[0];
1127 var temp_2 = consignee.cusid.split("+")[1]; 1054 var temp_2 = consignee.cusid.split("+")[1];
  1055 +
  1056 + if(notEmpty(temp_1)){
  1057 + var select = $("#sh_cusid");
  1058 + select.html("");
  1059 + select.append("<option value='"+temp_1.toUpperCase()+"'>"+temp_1.toUpperCase()+"</option>");
  1060 + }
  1061 +
1128 if(notEmpty(temp_2)){ 1062 if(notEmpty(temp_2)){
1129 $("#cnecusid").val(temp_2.toUpperCase()); 1063 $("#cnecusid").val(temp_2.toUpperCase());
1130 } 1064 }