| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <%@page import="cn.com.lzt.common.util.StringUtil"%>
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>订单表</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script src="plug-in/layer/layer.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#tt').tabs({
- onSelect:function(title){
- $('#tt .panel-body').css('width','auto');
- }
- });
- $(".tabs-wrap").css('width','100%');
-
- //画面数值初期化
-
- // 总金额
- $("#totalMoney").val(0);
- // 格式 月和日
- function p(s) {
- return s < 10 ? '0' + s: s;
- }
- var myDate = new Date();
- //获取当前年
- var year=myDate.getFullYear();
- //获取当前月
- var month=myDate.getMonth()+1;
- //获取当前日
- var date=myDate.getDate();
- var orderDate=year+'-'+p(month);
- $("#orderDate").val(orderDate);
- });
- function btn_ok(){
- var trList = $("#add_orderDetails_table").children("tr");
- if(trList.length == 0){
- layer.alert("请至少输入一条货品详细信息");
- return;
- }
-
- $("#btnsub").click();
- }
- function btn_back(){
- window.location.href="onhandReportController.do?listInitial";
- }
- function callback(data){
- if(data.success){
- layer.alert(data.msg, function(index){
- window.location.href="onhandReportController.do?listInitial";
- layer.close(index);
- });
- }
- else{
- layer.alert(data.msg);
- }
- }
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" tiptype="1" action="onhandReportController.do?doAddInitial" callback="callback">
- <input id="id" name="id" type="hidden" value="${ordersPage.id }">
- <input id="createBy" name="createBy" type="hidden" value="${ordersPage.createBy }">
- <input id="updateName" name="updateName" type="hidden" value="${ordersPage.updateName }">
- <input id="updateBy" name="updateBy" type="hidden" value="${ordersPage.updateBy }">
- <input id="updateDate" name="updateDate" type="hidden" value="${ordersPage.updateDate }">
- <input id="bpmStatus" name="bpmStatus" type="hidden" value="${ordersPage.bpmStatus }">
- <input id="orderStatus" name="orderStatus" type="hidden" value="${ordersPage.orderStatus }">
- <input id="orderOnumber" name="orderOnumber" type="hidden" value="${ordersPage.orderOnumber }">
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false" >
- <t:tab href="onhandReportController.do?OnhandReportDetailsList&id=${ordersPage.id}" icon="icon-search" title="物料上报存货列表" id="orderDetails" heigth="1000px"></t:tab>
- </t:tabs>
- <%--底部begin --%>
- <table cellpadding="0" cellspacing="1" class="formtable" style="position:fixed;bottom:0px;">
- <tr>
- <td align="right" width="100px">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>领料点:</label>
- </td>
- <td class="value" nowrap>
- <input id="warehouseId" name="warehouseId" type="hidden" value='${ordersPage.warehouseId}'><%-- '${ordersPage.warehouseId}' --%>
- <input name="warehouseName" class="inputxt" value='${ordersPage.warehouseName}' style="width: 150px" id="warehouseName" readonly="readonly" datatype="*" nullmsg="请选择领料点"/><%-- '${ordersPage.warehouseName}' --%>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">领料点</label>
- <t:choose hiddenName="warehouseId" hiddenid="id" url="onhandReportController.do?selectReferWareHouse&classname=cn.com.lzt.warehouse.entity.WarehouseEntity&codefield=warehouseCode&namefield=warehouseName&scope=all" name="list"
- icon="icon-search" title="领料点" textname="warehouseName" isclear="true" isInit="true" ></t:choose>
- </td>
-
- <td align="right">
- <label class="Validform_label">上报月份:</label>
- </td>
- <td class="value">
- <input id="orderDate" name="orderDate" type="text" style="width: 150px" class="inputxt"
- onClick="WdatePicker({dateFmt:'yyyy-MM'})">
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">上报月份</label>
- </td>
- <%-- <td align="right">
- <label class="Validform_label">总金额:</label>
- </td>
- <td class="value">
- <input id="totalMoney" name="totalMoney" value='${ordersPage.totalMoney}' type="text" style="width: 150px" class="inputxt" readonly="readonly"><b> 元</b>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">总金额</label>
- </td> --%>
- <td align="right">
-
- </td>
- <td align="right">
-
- </td>
- <td align="right">
-
- </td>
- <td align="right">
-
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">制单人:</label>
- </td>
- <td class="value">
- <input id="createName" name="createName" type="text" style="width: 150px" class="inputxt" readonly="readonly">
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">制单人</label>
- </td>
- <td align="right">
- <label class="Validform_label">制单日期:</label>
- </td>
- <td class="value">
- <input id="createDate" name="createDate" type="text" style="width: 150px" class="inputxt" readonly="readonly">
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">制单日期</label>
- </td>
- <td align="right">
-
- </td>
- <td align="right">
-
- </td>
- <td align="right">
-
- </td>
- <td align="right">
-
- </td>
- </tr>
- <tr>
- <td height="50px" align="center" colspan="8">
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">确定</a>
- <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
-
- </td>
- </tr>
- </table>
- <%--底部end --%>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <div id="listdiv" fit="false" style="margin: 0px; padding: 0px; overflow: hidden; width: auto;">
- <table style="display:none;width: auto;" id="add_orderDetails_table" >
- <tbody id="add_orderDetails_table_template" >
- <tr>
- <td align="center"><div style="width: 35px;" name="xh"></div></td>
- <td align="center"><input style="width:35px;" type="checkbox" name="ck"/></td>
- <td align="left" style="display: none;">
- <input name="onhandReportDetailsList[#index#].pnumber" maxlength="32"
- type="text" class="inputxt" style="width:130px;" readonly="readonly">
- <label class="Validform_label" style="display: none;">货品名称</label>
- </td>
- <td align="left">
- <input name="onhandReportDetailsList[#index#].pname" maxlength="32"
- type="text" class="inputxt" style="width:130px;" readonly="readonly">
- <label class="Validform_label" style="display: none;">货品名称</label>
- </td>
- <td align="left">
- <input name="onhandReportDetailsList[#index#].specType" maxlength="50" readonly="readonly"
- type="text" class="inputxt" style="width:130px;" readonly="readonly">
- <label class="Validform_label" style="display: none;">规格型号</label>
- </td>
- <td align="left">
- <t:dictSelect field="onhandReportDetailsList[#index#].measureUnit" type="list" extendJson="{class:'form-control',style:'width:132px'}"
- typeGroupCode="metering_calcu_unit" defaultVal="" hasLabel="false" title="计量单位" ></t:dictSelect>
- <label class="Validform_label" style="display: none;">计量单位</label>
- </td>
- <td align="left">
- <input name="onhandReportDetailsList[#index#].quantity" maxlength="10"
- type="text" class="inputxt" style="width:130px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">
- <label class="Validform_label" style="display: none;">数量</label>
- </td>
- <td align="left">
- <input name="onhandReportDetailsList[#index#].purchasePrice" maxlength="10"
- type="hidden" class="inputxt" style="width:130px;">
- <!-- <label class="Validform_label" style="display: none;">采购单价</label> -->
- </td>
- <td align="left">
- <input name="onhandReportDetailsList[#index#].money" readonly="readonly"
- type="hidden" class="inputxt" style="width:130px;" >
- <%-- <label class="Validform_label" style="display: none;">金额</label> --%>
- </td>
- <td align="left">
- <input name="onhandReportDetailsList[#index#].remark" maxlength="100" style="width:130px;"
- type="text" class="inputxt">
- <label class="Validform_label" style="display: none;">备注</label>
- <input name="onhandReportDetailsList[#index#].goodsId" type="text" style="display:none"/>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </body>
- <script src = "webpage/cn/com/lzt/onhandreport/onhandreport.js"></script>
-
|