| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@ 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=UTF-8">
- <META content=IE=edge,chrome=1 http-equiv=X-UA-Compatible>
- <META name=description content="">
- <META name=viewport content=width=device-width>
- <title>查看订单</title>
- <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <LINK rel=stylesheet href="/shares/single/single_files/prism.css">
- <LINK rel=stylesheet href="/shares/single/single_files/website.css">
- <LINK rel=stylesheet href="/shares/single/single_files/drawingboard.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/jquery-1.8.2.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.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 type="text/javascript" src="${pageContext.request.contextPath}/yw/contract/contractPurchaseOrder/js/purchaseOrder.js"></script>
- <STYLE type="text/css">
- body {
- background-color: white;
- }
-
- </STYLE>
- <script type="text/javascript">
- $(document).ready(function() {
- $("#addBuyInfo").remove();
- $(".substract1").remove();
- $(".TextDisplay").each(function (i, v) { // 将input隐藏,显示该input的文本值(不带文本框)
- $(v).hide();
- if ($(v).val() == '') {
- $(v).after('');
- } else {
- $(v).after($(v).val());
- }
- });
- //点击添加tr
- $("#addBuyInfo").click(function () {
- getMaterial();
- });
- //删除某行数据
- $(".substract1").live('click', function () {
- var obj = $(this).parent().parent();
- $.ligerDialog.confirm('确定删除该行', function (yes) {
- if (yes == true) {
- obj.remove();
- addIdAndName();
- calTotalAmount();
- }
- });
- });
- //计算物品合计金额
- $(".qty").live('blur', function () {
- calTotalAmount();
- });
- $(".price").live('blur', function () {
- calTotalAmount();
- });
- $(".cess").live('blur', function () {
- calTotalAmount();
- });
- });
-
-
- function checkForm() {
- var rs = true;
- rs = $.validate({name: "contractPurchaseOrder.contractNumber", model: [{type: "require", msg: "请选择合同!"}]});
- return rs;
- }
-
- function saveContractNumber(){
- var result = saveForm("contractPurchaseOrderAction.do", "#cform");
- if(result){
- closeTabAndRefreshOpener();
- }
- }
- </script>
- </head>
- <body>
- <form action="contractPurchaseOrderAction.do" method="post" id="cform" name="cform"
- onsubmit="return checkForm();">
- <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
- <input type="hidden" id="universalid" name="contractPurchaseOrder.universalid" value="${contractPurchaseOrder.universalid}">
- <input type="hidden" id="task" name="task" value="saveContractNumber">
- <div id="title" class="form-button" style="width: 100%;">
- <c:if test="${contractPurchaseOrder.source == 1 && empty contractPurchaseOrder.contractNumber}">
- <input type="button" onclick="saveContractNumber()" class="l-button" value="保存合同" />
- </c:if>
- <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
- </div>
- <div class="container-layout">
- <!-- <div class="container"> -->
- <div class="forum-container">
- <center>
- <table class="l-table-edit line" style="width: 100%;">
- <tr>
- <th colspan="4">采购订单</th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="20%">采购订单编号:</td>
- <td class="l-table-edit-td" width="30%">
- ${contractPurchaseOrder.orderNumber }
- </td>
- <td class="l-table-edit-text" width="20%">采购订单名称:</td>
- <td class="l-table-edit-td" width="30%">
- ${contractPurchaseOrder.orderName }
- </td>
- </tr>
- <c:choose>
- <c:when test="${contractPurchaseOrder.source == 0}">
- <tr>
- <td class="l-table-edit-text">来源 :</td>
- <td class="l-table-edit-td" colspan="3">
- 无
- </td>
- </tr>
- </c:when>
- <c:when test="${contractPurchaseOrder.source == 1}">
- <tr>
- <td class="l-table-edit-text">来源 :</td>
- <td class="l-table-edit-td">
- 合同
- </td>
- <td class="l-table-edit-text">合同:</td>
- <td class="l-table-edit-td">
- <c:choose>
- <c:when test="${empty contractPurchaseOrder.contractNumber}">
- <input type="hidden" id="contractId" name="contractPurchaseOrder.contractId" value="${contractPurchaseOrder.contractId }" />
- <input type="text" readonly="readonly" id="contractNumber" name="contractPurchaseOrder.contractNumber" value="${contractPurchaseOrder.contractNumber }">
- <input type="hidden" id="contractName" name="contractPurchaseOrder.contractName" value="${contractPurchaseOrder.contractName }">
- <img id="searchContract" class="fee" onClick="selectContract()" src="${pageContext.request.contextPath}/images/sousuo.png" style="height: 20px; width: 20px; cursor: pointer;">
- <input id="clearContractBtn" name="clearContractBtn" type="button" class="button_fj" value="清除" onclick="clearContract()"/>
- <input type="hidden" id="purchaseId" name="contractPurchaseOrder.purchaseId" value="${contractPurchaseOrder.purchaseId }" />
- <input type="hidden" id="purchaseNumber" name="contractPurchaseOrder.purchaseNumber" value="${contractPurchaseOrder.purchaseNumber }"/>
- </c:when>
- <c:otherwise>
- ${contractPurchaseOrder.contractNumber }
- </c:otherwise>
- </c:choose>
- </td>
- </tr>
- </c:when>
- <c:when test="${contractPurchaseOrder.source == 2}">
- <tr>
- <td class="l-table-edit-text">来源 :</td>
- <td class="l-table-edit-td">
- 采购申请单
- </td>
- <td class="l-table-edit-text">采购申请单:</td>
- <td class="l-table-edit-td">
- ${contractPurchaseOrder.purchaseNumber }
- </td>
- </tr>
- </c:when>
- </c:choose>
- <tr>
- <td class="l-table-edit-text">供应商 :</td>
- <td class="l-table-edit-td">
- ${contractPurchaseOrder.supplierName }
- </td>
- <td class="l-table-edit-text">订单状态:</td>
- <td class="l-table-edit-td">
- <c:choose>
- <c:when test="${contractPurchaseOrder.orderStatus == 0}">未开始</c:when>
- <c:when test="${contractPurchaseOrder.orderStatus == 1}">进行中</c:when>
- <c:when test="${contractPurchaseOrder.orderStatus == 2}">已完成</c:when>
- <c:otherwise>未知</c:otherwise>
- </c:choose>
- </td>
- </tr>
- </table>
-
-
- <div id="firstDiv">
- <table id="headTable" class="l-table-edit line" style="width:99%">
- <tr>
- <td colspan="2" style="text-align:center; font-size:16px;font-weight:bold;">
- <span style="font-size: 20px;">物品信息</span>
- <img align="bottom" id="addBuyInfo" style="cursor: pointer" class="add"
- src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jia.png">
- </td>
- </tr>
- </table>
- <table class="l-table-edit line" width="99%">
- <tr>
- <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">物料编码</th>
- <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">物料名称</th>
- <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">型号/规格</th>
- <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">数量</th>
- <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">单价</th>
- <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">税率</th>
- </tr>
- <c:forEach items="${contractPurchaseOrderDetailList}" var="items">
- <tr class="startTr1">
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
- <input type="hidden" name="" class="input-width universalid" value="${items.universalid}">
- <input type="text" name="" class="input-width materialCode TextDisplay" value="${items.materialCode}" readonly>
- </td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
- <input type="text" name="" class="input-width materialName TextDisplay" value="${items.materialName}" readonly>
- </td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
- <input type="text" name="" class="input-width materialModel TextDisplay" value="${items.materialModel}" readonly>
- <input type="hidden" name="" class="measureName" value="${items.measureName}">
- </td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
- <input type="text" name="" class="input-width qty TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.qty}">
- </td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
- <input type="text" name="" class="input-width price TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.price}">
- </td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
- <input type="text" name="" class="input-width cess TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.cess}">
- <img align="bottom" style="cursor: pointer" class="substract1" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
- </td>
- </tr>
- </c:forEach>
- <tr id="firstPoint"></tr>
- <tr>
- <td class="l-table-edit-new" colspan="3" style="padding-right: 0px;padding-left: 0px;"></td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;"> 合计(元):</td>
- <td class="l-table-edit-new" colspan="1"
- style="padding-right: 0px;padding-left: 0px;text-align: center;">
- ${contractPurchaseOrder.totalAmount}
- </td>
- <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;"></td>
- </tr>
-
- </table>
- </div>
-
- <input type="hidden" id="task" name="task" value="edit">
- <input type="hidden" id="tabid" name="tabid"
- value="${param.tabid }">
- </center>
- </div>
- </div>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|