editLogistEntry.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>编辑物流指令</title>
  8. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/file.js"></script>
  15. <!-- 选择窗口需要加载的js文件 start-->
  16. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  18. <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epTranferLookup.js"></script>
  19. <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epCarLookup.js"></script>
  20. <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epDriverLookup.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epLogistDetail.js"></script>
  22. <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epLogistValidate.js"></script>
  23. <!--选择窗口需要加载的js文件 end -->
  24. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  25. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
  26. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
  27. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  28. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
  29. <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
  30. <script type="text/javascript">
  31. var epLogistDetail = [];
  32. var rowsDepot = [];
  33. $(function (){
  34. $("input[type='text']:first").focus();
  35. //仓库
  36. if('${requestScope.rowsDepot}'!="" && typeof('${requestScope.rowsDepot}')!="undefined"){
  37. rowsDepot = eval('${requestScope.rowsDepot}');
  38. }
  39. if('${requestScope.epLogistDetail}'!="" && typeof('${requestScope.epLogistDetail}')!="undefined"){
  40. epLogistDetail = eval('${requestScope.epLogistDetail}');
  41. $("#logist\\.tran_num").attr("disabled",true);
  42. $("#logist\\.destination").attr("disabled",true);
  43. $("#logist\\.carrier_name").attr("disabled",true);
  44. $("#tran_numBtn").attr("disabled",true);
  45. }
  46. if('${requestScope.flowOnOff}'!="" && typeof('${requestScope.flowOnOff}')!="undefined"){
  47. var obj = window.top;
  48. $("#btnSave").attr({"disabled":"disabled"});
  49. obj.$.ligerDialog.alert("对不起,物流指令单流程未配置,请通知流程管理员配置后,再提交!", function (action){
  50. closeWindow();
  51. });
  52. }
  53. f_initLogDetailGrid();
  54. });
  55. //保存信息
  56. function saveLogistForm(){
  57. var obj = window.top;
  58. var flags = 0;
  59. if(checkForm()){
  60. getDataDetail();
  61. var DataDetail = eval($("#jsonDetailData").val());
  62. if(DataDetail != "" && typeof (DataDetail) != "undefined" && null !=DataDetail){
  63. for(var i=0;i<DataDetail.length;i++){
  64. if(DataDetail[i].product_number <= 0){
  65. flags = 1;
  66. break;
  67. }
  68. }
  69. if(flags==0){
  70. var flowTheme = $("#flowTheme").val();
  71. if(flowTheme != "" && typeof (flowTheme) != "undefined"){
  72. obj.$.ligerDialog.prompt('流程标题',flowTheme, function (yes,value){
  73. if(yes){
  74. if(value != "" && typeof (value) != "undefined"){
  75. $("#flowTheme").val("");
  76. $("#flowTheme").val(value);
  77. $("#btnSave").attr({"disabled":"disabled"});
  78. $("#logistForm").submit();
  79. }else{
  80. obj.$.ligerDialog.warn("流程标题不能为空!");
  81. return;
  82. }
  83. }
  84. });
  85. }else{
  86. $("#btnSave").attr({"disabled":"disabled"});
  87. $("#logistForm").submit();
  88. }
  89. }else if(flags==1){
  90. obj.$.ligerDialog.warn("物流指令明细数量不能为0!");
  91. return;
  92. }
  93. }else{
  94. obj.$.ligerDialog.warn("物流指令明细不能为空!");
  95. return;
  96. }
  97. }
  98. }
  99. </script>
  100. </head>
  101. <body>
  102. <form id="logistForm" action="erpLogistAction.do" method="post">
  103. <div id="title" class="form-button">
  104. <input id="btnSave" type="button" class="l-button" value="提交" onclick="saveLogistForm()"/>
  105. <input type="button" value="关闭" class="l-button" onclick="closeWindow();"/>
  106. </div>
  107. <div class="container-layout">
  108. <div class="forum-container">
  109. <center>
  110. <table class="l-table-edit line">
  111. <tr>
  112. <th colspan="4">物流指令信息</th>
  113. </tr>
  114. <tr>
  115. <td class="l-table-edit-text">调拨单号<FONT COLOR="red">*</FONT>:</td>
  116. <td class="l-table-edit-td">
  117. <input type="hidden" id="logist.tran_id" name="logist.tran_id" value="${requestScope.logist.tran_id}"/>
  118. <input type="text" id="logist.tran_num" name="logist.tran_num" value="${requestScope.logist.tran_num}" readonly="readonly"/>
  119. <input id="tran_numBtn" type="button" class="l-button" value="请选择" onclick="chooseTranfer({universalid:'logist\\.tran_id',tran_num:'logist\\.tran_num',carrier_name:'logist\\.carrier_name',destination:'logist\\.destination'});" />
  120. </td>
  121. <td class="l-table-edit-text">承运方<FONT COLOR="red"></FONT>:</td>
  122. <td class="l-table-edit-td">
  123. <input type="text" id="logist.carrier_name" name="logist.carrier_name" value="${requestScope.logist.carrier_name}" readonly="readonly" style="border-style: none;"/>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td class="l-table-edit-text">司机姓名<FONT COLOR="red">*</FONT>:</td>
  128. <td class="l-table-edit-td">
  129. <input type="hidden" id="logist.driver_id" name="logist.driver_id" value="${requestScope.logist.driver_id}"/>
  130. <input type="text" id="logist.driver_name" name="logist.driver_name" value="${requestScope.logist.driver_name}" readonly="readonly"/>
  131. <input type="button" class="l-button" value="请选择" onclick="chooseDriver({universalid:'logist\\.driver_id',driver_name:'logist\\.driver_name',identity_card:'logist\\.driver_identity_card',mobile:'logist\\.driver_mobile'});" />
  132. </td>
  133. <td class="l-table-edit-text">送达目的地<FONT COLOR="red"></FONT>:</td>
  134. <td class="l-table-edit-td">
  135. <input type="text" id="logist.destination" name="logist.destination" value="${requestScope.logist.destination}" readonly="readonly" style="border-style: none;"/>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td class="l-table-edit-text">司机身份证<FONT COLOR="red"></FONT>:</td>
  140. <td class="l-table-edit-td">
  141. <input type="text" id="logist.driver_identity_card" name="logist.driver_identity_card" value="${requestScope.logist.driver_identity_card}" readonly="readonly"/>
  142. </td>
  143. <td class="l-table-edit-text">司机手机号<FONT COLOR="red"></FONT>:</td>
  144. <td class="l-table-edit-td">
  145. <input type="text" id="logist.driver_mobile" name="logist.driver_mobile" value="${requestScope.logist.driver_mobile}" readonly="readonly" style="border-style: none;"/>
  146. </td>
  147. </tr>
  148. <tr>
  149. <td class="l-table-edit-text">车牌号<FONT COLOR="red">*</FONT>:</td>
  150. <td class="l-table-edit-td">
  151. <input type="hidden" id="logist.car_id" name="logist.car_id" value="${requestScope.logist.car_id}"/>
  152. <input type="text" id="logist.car_number" name="logist.car_number" value="${requestScope.logist.car_number}" readonly="readonly"/>
  153. <input type="button" class="l-button" value="请选择" onclick="chooseCar({universalid:'logist\\.car_id',car_number:'logist\\.car_number',car_type:'logist\\.car_type',driver_num:'logist\\.car_driver_num',weigh:'logist\\.car_weigh'});" />
  154. </td>
  155. <td class="l-table-edit-text">车辆型号<FONT COLOR="red"></FONT>:</td>
  156. <td class="l-table-edit-td" >
  157. <input type="text" id="logist.car_type" name="logist.car_type" value="${requestScope.logist.car_type}" readonly="readonly" style="border-style: none;"/>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td class="l-table-edit-text">行驶证号<FONT COLOR="red"></FONT>:</td>
  162. <td class="l-table-edit-td">
  163. <input type="text" id="logist.car_driver_num" name="logist.car_driver_num" value="${requestScope.logist.car_driver_num}" readonly="readonly" style="border-style: none;"/>
  164. </td>
  165. <td class="l-table-edit-text">核载重量<FONT COLOR="red"></FONT>:</td>
  166. <td class="l-table-edit-td" >
  167. <input type="text" id="logist.car_weigh" name="logist.car_weigh" value="${requestScope.logist.car_weigh}" readonly="readonly" style="border-style: none;"/>
  168. </td>
  169. </tr>
  170. <tr>
  171. <th colspan="4">物流指令明细</th>
  172. </tr>
  173. <tr>
  174. <td colspan="4" height="300">
  175. <!-- 明细 start -->
  176. <div>
  177. <a class="l-button" style="width:100px;float:left; margin-left:10px;margin-top: 10px" onclick="f_import()">选择材料</a>
  178. </div>
  179. <div class="l-clear"></div>
  180. <div id="maingrid" style="margin-top:10px;"></div> <br />
  181. <div style="display:none;"></div>
  182. <!-- 明细 end -->
  183. </td>
  184. </tr>
  185. </table>
  186. <input type="hidden" id="logist.logist_num" name="logist.logist_num" value="${requestScope.logist.logist_num}">
  187. <input type="hidden" id="logist.universalid" name="logist.universalid" value="${requestScope.logist.universalid}">
  188. <input type="hidden" id="logist.au_state" name="logist.au_state" value="${requestScope.logist.au_state}">
  189. <input type="hidden" id="logist.flow_id" name="logist.flow_id" value="${requestScope.logist.flow_id}">
  190. <input type="hidden" id="tabid" name="tabid" value="${param.tabid}">
  191. <input type="hidden" id="task" name="task" value="edit">
  192. <input type="hidden" id="jsonDetailData" name="jsonDetailData" value="">
  193. <!-- 流程ID -->
  194. <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }">
  195. <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }">
  196. <input type="hidden" id="flowTheme" name="flowTheme" value="${requestScope.flowTheme}"/>
  197. </center>
  198. </div>
  199. </div>
  200. </form>
  201. <%@ include file="/include/message.jsp"%>
  202. </body>
  203. </html>