editPurchasePay.jsp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.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. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  17. <!-- 选择窗口需要加载的js文件 start-->
  18. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  19. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  20. <script type="text/javascript" src="/shares/js/yw/erp/purchasePayLookup.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/erp/purchasePayOfDetail.js"></script>
  22. <script type="text/javascript" src="/shares/js/yw/erp/purchasePayMoneyDisplay.js"></script>
  23. <!-- 订单明细 -->
  24. <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
  25. <!-- add the jScrollPane script -->
  26. <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/win/jquery.jscrollpane.codrops1.css" />
  27. <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
  28. <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
  29. <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
  30. <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
  31. <script type="text/javascript">
  32. var rowsProductState = [];
  33. var purchaseDetailData = [];
  34. $(function (){
  35. if('${requestScope.flowOnOff}'!="" && typeof('${requestScope.flowOnOff}')!="undefined"){
  36. var obj = window.top;
  37. $("#btnSave").attr({"disabled":"disabled"});
  38. obj.$.ligerDialog.alert("对不起,采购付款流程未配置,请通知流程管理员配置后,再提交!");
  39. }
  40. //订单状态
  41. if('${requestScope.rowsProductState}'!="" && typeof('${requestScope.rowsProductState}')!="undefined"){
  42. rowsProductState = eval('${requestScope.rowsProductState}');
  43. }
  44. if('${requestScope.purchaseDetailData}'!="" && typeof('${requestScope.purchaseDetailData}')!="undefined"){
  45. purchaseDetailData = eval('${requestScope.purchaseDetailData}');
  46. }
  47. $("#purchasePay\\.pay_date").ligerDateEditor({ showTime: false, labelAlign: 'left', width:130,height:21,initValue:'${requestScope.purchasePay.pay_date}'});
  48. loadTypeTree("assignedUserBtn", {
  49. type : "usersingle",
  50. backId : "purchasePay.pay_man_id",
  51. backName : "purchasePay.pay_man",
  52. tab : "1,2,3"
  53. });
  54. //f_initViewGrid();
  55. });
  56. //保存
  57. function savePayForm(){
  58. var obj = window.top;
  59. if(checkForm()){
  60. var flowTheme = $("#flowTheme").val();
  61. obj.$.ligerDialog.prompt('流程标题',flowTheme, function (yes,value){
  62. if(yes){
  63. if(value != "" && typeof (value) != "undefined"){
  64. $("#flowTheme").val("");
  65. $("#flowTheme").val(value);
  66. $("#btnSave").attr({"disabled":"disabled"});
  67. $("#payForm").submit();
  68. }else{
  69. obj.$.ligerDialog.warn("流程标题不能为空!");
  70. return;
  71. }
  72. }
  73. });
  74. }
  75. }
  76. </script>
  77. <style type="text/css">
  78. body {
  79. background: #fff;
  80. }
  81. </style>
  82. </head>
  83. <body style="background: none; overflow: hidden;" ontouchmove="event.preventDefault();">
  84. <form id="payForm" action="mtErpPurchasePayAction.do" method="post">
  85. <div class="s_title b10 f6">
  86. <img src="/shares/images/master1/gg_ico.png" width="27" height="26" />编辑采购付款信息
  87. <div class="article_title">
  88. <input class="art_back" style="width: 50px;" title="返回" name="" onclick="history.back();" type="button" />
  89. <input class="art_sub" title="提交" name="" type="button" value="" onclick="savePayForm()" />
  90. </div>
  91. </div>
  92. <div id="jp-container" class="jp-container liuyan">
  93. <div class="container-layout" >
  94. <div class="forum-container ">
  95. <center>
  96. <table class="l-table-edit">
  97. <tr>
  98. <th colspan="4">采购付款信息</th>
  99. </tr>
  100. <tr>
  101. <td class="l-table-edit-text">付款单号<FONT COLOR="red">*</FONT>:</td>
  102. <td class="l-table-edit-td">
  103. <jsp:include page="/yw/erp/include/code.jsp">
  104. <jsp:param name="name" value="purchasePay.pay_num"/>
  105. <jsp:param name="value" value="${requestScope.purchasePay.pay_num }"/>
  106. </jsp:include>
  107. </td>
  108. <td class="l-table-edit-text">采购单号<FONT COLOR="red">*</FONT>:</td>
  109. <td class="l-table-edit-td">
  110. <input type="hidden" id="purchasePay.purchase_id" name="purchasePay.purchase_id" value="${requestScope.purchasePay.purchase_id}"/>
  111. <input type="text" id="purchasePay.purchase_num" name="purchasePay.purchase_num" value="${requestScope.purchasePay.purchase_num}" readonly="readonly"/>
  112. <input type="button" class="l-button" value="请选择" onclick="choosePurchasePay({purchase_id:'purchasePay\\.purchase_id',purchase_number:'purchasePay\\.purchase_num'});" />
  113. <a href="#" onclick="viewStateInfo('${pageContext.request.contextPath }/erpPurchaseOrderAction.do?task=view&status=pay&purchase_id='+${requestScope.purchasePay.purchase_id}, '查看采购单');"><FONT COLOR="blue">查看采购单</FONT></a>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td class="l-table-edit-text">付款人<FONT COLOR="red"></FONT>:</td>
  118. <td class="l-table-edit-td">
  119. <input type="hidden" id="purchasePay.pay_man_id" name="purchasePay.pay_man_id" value="${requestScope.purchasePay.pay_man_id}"/>
  120. <input type="text" id="purchasePay.pay_man" name="purchasePay.pay_man" value="${requestScope.purchasePay.pay_man}" readonly="readonly"/>
  121. <input type="button" value="请选择" id="assignedUserBtn" class="l-button"/>
  122. </td>
  123. <td class="l-table-edit-text">付款日期<FONT COLOR="red"></FONT>:</td>
  124. <td class="l-table-edit-td">
  125. <input type="text" id="purchasePay.pay_date" name="purchasePay.pay_date" value="${requestScope.purchasePay.pay_date}" readonly="readonly"/>
  126. <label id="pay_empty"></label>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="l-table-edit-text">付款金額<FONT COLOR="red">*</FONT>:</td>
  131. <td class="l-table-edit-td">
  132. <div style="float:left;"><input type="text" id="purchasePay.pay_money" name="purchasePay.pay_money" value="${requestScope.purchasePay.pay_money}" onkeyup="displayChinese(this.value)"/></div>
  133. <div id="displayPurchasePayDiv" class="displayMoneyDiv" style="float:left;margin-top:5px;"></div>
  134. </td>
  135. <td class="l-table-edit-text">付款方式<FONT COLOR="red">*</FONT>:</td>
  136. <td class="l-table-edit-td">
  137. <select id="purchasePay.pay_method" name="purchasePay.pay_method" class="short-text">
  138. <option value="" selected="selected">--请选择--</option>
  139. <c:forEach items="${requestScope.pay_method}" var="pay_method">
  140. <option value="${pay_method.dvalue }" <c:if test="${pay_method.dvalue==requestScope.purchasePay.pay_method}">selected="selected"</c:if>>${pay_method.dname }</option>
  141. </c:forEach>
  142. </select>
  143. </td>
  144. </tr>
  145. </table>
  146. <input type="hidden" id="purchasePay.universalid" name="purchasePay.universalid" value="${requestScope.purchasePay.universalid}">
  147. <input type="hidden" id="purchasePay.au_status" name="purchasePay.au_status" value="${requestScope.purchasePay.au_status}">
  148. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  149. <input type="hidden" id="task" name="task" value="update">
  150. <!-- 流程ID -->
  151. <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }"/>
  152. <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }"/>
  153. <input type="hidden" id="flowTheme" name="flowTheme" value="${requestScope.flowTheme}"/>
  154. </center>
  155. </div>
  156. </div>
  157. </div>
  158. </form>
  159. <%@ include file="/include/message.jsp"%>
  160. </body>
  161. </html>