| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>新增采购付款订单</title>
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <!-- 选择窗口需要加载的js文件 start-->
- <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/purchasePayLookup.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/purchasePayOfDetail.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/purchasePayMoneyDisplay.js"></script>
- <!-- 订单明细 -->
- <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
- <!-- add the jScrollPane script -->
- <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/win/jquery.jscrollpane.codrops1.css" />
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
- <script type="text/javascript">
- var rowsProductState = [];
- var purchaseDetailData = [];
- $(function (){
- if('${requestScope.flowOnOff}'!="" && typeof('${requestScope.flowOnOff}')!="undefined"){
- var obj = window.top;
- $("#btnSave").attr({"disabled":"disabled"});
- obj.$.ligerDialog.alert("对不起,采购付款流程未配置,请通知流程管理员配置后,再提交!");
- }
- //订单状态
- if('${requestScope.rowsProductState}'!="" && typeof('${requestScope.rowsProductState}')!="undefined"){
- rowsProductState = eval('${requestScope.rowsProductState}');
- }
- if('${requestScope.purchaseDetailData}'!="" && typeof('${requestScope.purchaseDetailData}')!="undefined"){
- purchaseDetailData = eval('${requestScope.purchaseDetailData}');
- }
-
- $("#purchasePay\\.pay_date").ligerDateEditor({ showTime: false, labelAlign: 'left', width:130,height:21,initValue:'${requestScope.purchasePay.pay_date}'});
- loadTypeTree("assignedUserBtn", {
- type : "usersingle",
- backId : "purchasePay.pay_man_id",
- backName : "purchasePay.pay_man",
- tab : "1,2,3"
- });
- //f_initViewGrid();
- });
- //保存
- function savePayForm(){
- var obj = window.top;
- if(checkForm()){
- var flowTheme = $("#flowTheme").val();
- obj.$.ligerDialog.prompt('流程标题',flowTheme, function (yes,value){
- if(yes){
- if(value != "" && typeof (value) != "undefined"){
- $("#flowTheme").val("");
- $("#flowTheme").val(value);
- $("#btnSave").attr({"disabled":"disabled"});
- $("#payForm").submit();
- }else{
- obj.$.ligerDialog.warn("流程标题不能为空!");
- return;
- }
- }
- });
- }
- }
- </script>
- <style type="text/css">
- body {
- background: #fff;
- }
- </style>
- </head>
- <body style="background: none; overflow: hidden;" ontouchmove="event.preventDefault();">
- <form id="payForm" action="mtErpPurchasePayAction.do" method="post">
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" />编辑采购付款信息
- <div class="article_title">
- <input class="art_back" style="width: 50px;" title="返回" name="" onclick="history.back();" type="button" />
- <input class="art_sub" title="提交" name="" type="button" value="" onclick="savePayForm()" />
- </div>
- </div>
- <div id="jp-container" class="jp-container liuyan">
- <div class="container-layout" >
- <div class="forum-container ">
- <center>
- <table class="l-table-edit">
- <tr>
- <th colspan="4">采购付款信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">付款单号<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <jsp:include page="/yw/erp/include/code.jsp">
- <jsp:param name="name" value="purchasePay.pay_num"/>
- <jsp:param name="value" value="${requestScope.purchasePay.pay_num }"/>
- </jsp:include>
- </td>
- <td class="l-table-edit-text">采购单号<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="purchasePay.purchase_id" name="purchasePay.purchase_id" value="${requestScope.purchasePay.purchase_id}"/>
- <input type="text" id="purchasePay.purchase_num" name="purchasePay.purchase_num" value="${requestScope.purchasePay.purchase_num}" readonly="readonly"/>
- <input type="button" class="l-button" value="请选择" onclick="choosePurchasePay({purchase_id:'purchasePay\\.purchase_id',purchase_number:'purchasePay\\.purchase_num'});" />
- <a href="#" onclick="viewStateInfo('${pageContext.request.contextPath }/erpPurchaseOrderAction.do?task=view&status=pay&purchase_id='+${requestScope.purchasePay.purchase_id}, '查看采购单');"><FONT COLOR="blue">查看采购单</FONT></a>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">付款人<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="purchasePay.pay_man_id" name="purchasePay.pay_man_id" value="${requestScope.purchasePay.pay_man_id}"/>
- <input type="text" id="purchasePay.pay_man" name="purchasePay.pay_man" value="${requestScope.purchasePay.pay_man}" readonly="readonly"/>
- <input type="button" value="请选择" id="assignedUserBtn" class="l-button"/>
- </td>
- <td class="l-table-edit-text">付款日期<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="purchasePay.pay_date" name="purchasePay.pay_date" value="${requestScope.purchasePay.pay_date}" readonly="readonly"/>
- <label id="pay_empty"></label>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">付款金額<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <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>
- <div id="displayPurchasePayDiv" class="displayMoneyDiv" style="float:left;margin-top:5px;"></div>
- </td>
- <td class="l-table-edit-text">付款方式<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <select id="purchasePay.pay_method" name="purchasePay.pay_method" class="short-text">
- <option value="" selected="selected">--请选择--</option>
- <c:forEach items="${requestScope.pay_method}" var="pay_method">
- <option value="${pay_method.dvalue }" <c:if test="${pay_method.dvalue==requestScope.purchasePay.pay_method}">selected="selected"</c:if>>${pay_method.dname }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- </table>
- <input type="hidden" id="purchasePay.universalid" name="purchasePay.universalid" value="${requestScope.purchasePay.universalid}">
- <input type="hidden" id="purchasePay.au_status" name="purchasePay.au_status" value="${requestScope.purchasePay.au_status}">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="task" name="task" value="update">
- <!-- 流程ID -->
- <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }"/>
- <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }"/>
- <input type="hidden" id="flowTheme" name="flowTheme" value="${requestScope.flowTheme}"/>
- </center>
- </div>
- </div>
- </div>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|