| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <%@ 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="${webBasePath}/webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
- <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%');
- // 区分浏览器 IE浏览器时
- if (window.ActiveXObject || "ActiveXObject" in window){
- $('#discountMoney').bind("input",function(){
- // 优惠金额
- var discountMoney = parseFloat($("#discountMoney").val()) || 0;
- var totalmoney = parseFloat($("#totalMoney").val()) || 0;
- var money = Math.round((totalmoney - discountMoney)*100)/100;
- // 应付金额
- $("#amountPayable").val(money);
- });
- // 非IE浏览器时
- }else{
- $('#discountMoney').bind("input",function(){
- // 优惠金额
- var discountMoney = parseFloat($("#discountMoney").val()) || 0;
- var totalmoney = parseFloat($("#totalMoney").val()) || 0;
- var money = Math.round((totalmoney - discountMoney)*100)/100;
- // 应付金额
- $("#amountPayable").val(money);
- });
- }
- // 查看的时候隐藏返回和提交按钮
- if($("#viewFlag").val() != null && $("#viewFlag").val() == '1'){
- $("#buttomTable").find('tr:eq(2)').remove();
- }
- // 金额转换方法 科学计数法 转为 数字
- var discountMoney = $("#discountMoney").val();
- if(discountMoney != null && discountMoney != ''){
- $("#discountMoney").val(new Number(discountMoney));
- }
- var prepaidMoney = $("#prepaidMoney").val();
- if(prepaidMoney != null && prepaidMoney != ''){
- $("#prepaidMoney").val(new Number(prepaidMoney));
- }
- var totalMoney = $("#totalMoney").val();
- if(totalMoney != null && totalMoney != ''){
- $("#totalMoney").val(new Number(totalMoney));
- }
- var amountPayable = $("#amountPayable").val();
- if(amountPayable != null && amountPayable != ''){
- $("#amountPayable").val(new Number(amountPayable));
- }
- });
- function btn_ok(){
- $("#btnsub").click();
- }
- function btn_back(){
- window.location.href="ordersController.do?list";
- }
- function callback(data){
- if(data.success){
- layer.alert(data.msg, function(index){
- window.location.href="ordersController.do?list";
- layer.close(index);
- });
- }
- else{
- layer.alert(data.msg);
- }
- }
-
- function callbackTable(msg){
- window.parent.callbackTable(msg);
- }
- function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
- var trList = $("#add_orderProducts_table").children("tr");
- var msg = checkUnknownRow(trList);
- if(msg.length > 0){
- layer.alert(msg);
- return;
- }
- resetDisabled();
- console.info($('#formobj').serialize());
- $.ajax({
- cache: true,
- type: "POST",
- url:"ordersController.do?doUpdate",
- data:$('#formobj').serialize(),// 你的formid
- dataType:"json",
- async: false,
- success: function(data) {
- //dealProcFlowNoOption(title,taskId,nextNodeId,nextNodeCount,false);
- popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- }});
- // popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- }
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="ordersController.do?doUpdate" 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 }">
- <%-- 增加一个div,用于调节页面大小,否则默认太小
- <table cellpadding="0" cellspacing="1" class="mtable">
- <tr>
- <td align="right"
- <label class="Validform_label">领料点:</label>
- </td>
- <td class="value">
- <input id="warehouseId" name="warehouseId" type="hidden" value='${ordersPage.warehouseId}'>
- <input name="warehouseName" class="inputxt" type="text" value='${ordersPage.warehouseName}' style="width: 150px" id="warehouseName" readonly="readonly" datatype="*" nullmsg="请选择领料点"/>
- </td>
- <td align="right">
- <label class="Validform_label">总金额:</label>
- </td>
- <td class="value">
- <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" value='${ordersPage.totalMoney}' readonly="readonly"><b> 元</b>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">总金额</label>
- </td>
- </tr>
- </table>--%>
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
- <t:tab href="ordersController.do?orderProductsProcUpdateList&id=${ordersPage.id}" icon="icon-search" title="采购货品" id="orderProducts" ></t:tab>
- </t:tabs>
- <%--底部begin --%>
- <table cellpadding="0" cellspacing="1" class="formtable" id="buttomTable" style="position:fixed;bottom:0px;">
- <tr>
- <td align="right">
- <label class="Validform_label">领料点:</label>
- </td>
- <td class="value">
- <input id="warehouseId" name="warehouseId" type="hidden" value='${ordersPage.warehouseId}'>
- <input name="warehouseName" class="inputxt" type="text" value='${ordersPage.warehouseName}' style="width: 150px" id="warehouseName" readonly="readonly" datatype="*" nullmsg="请选择领料点"/>
- </td>
- <td align="right">
- <label class="Validform_label">申购月份:</label>
- </td>
- <td>
- <t:dictSelect field="orderMonths" id="orderMonths" type="list"
- dictTable="t_b_ordermonths" dictField="id"
- dictText="ordermonths_name" datatype="*" readonly="readonly"
- defaultVal="${ordersPage.orderMonths}"
- hasLabel="false" title="申购月份"></t:dictSelect>
- <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" type="text" style="width: 150px" class="inputxt" value='${ordersPage.totalMoney}' readonly="readonly">
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">总金额</label>
- </td>
- </tr>
- <%--
- <tr >
- <td align="right">
- <label class="Validform_label">保洁类金额:</label>
- </td>
- <td class="value">
- <input id="baojieSum" name="baojieSum" type="text" style="width: 150px" class="inputxt" value='${ordersPage.baojieSum}' readonly="readonly"><b> 元</b>
- <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="gongchengSum" name="gongchengSum" type="text" style="width: 150px" class="inputxt" value='${ordersPage.gongchengSum}' readonly="readonly"><b> 元</b>
- <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="bangongSum" name="bangongSum" type="text" style="width: 150px" class="inputxt" value='${ordersPage.bangongSum}' 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>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="#FF0000"></font>
- 备注说明:
- </label>
- </td>
- <td class="value" colspan="3" >
- <div style="text-align:left;">
- <textarea style="width:680px;height: 20px;"disabled="disabled" class="inputxt" rows="3" id="description" maxlength="200" name="description" >${ordersPage.description}</textarea></div>
- <label class="Validform_label" style="display: none;">备注说明</label>
- </td>
-
- </tr>
- <tr>
- <td colspan="4" style="text-align:center;>
- <input id="eli" value="${flage}" type="hidden"/>
- <c:forEach items="${transitionList}" var="trans">
- <li style="list-style:none;"><button class="btn btn-default" style="width:80px; height:35px;border-radius:5px;background:#3275C6;border:0 none;margin-right:5px;color:white;" type="button" id="${trans.nextnode}"
- onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',600,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
- </c:forEach>
- </td>
- </tr>
- </table>
- <%--底部end --%>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <%-- <div style="width: auto;height: 200px;"></div>--%>
- <table style="display:none" id="add_orderProducts_table">
- <tbody id="add_orderProducts_table_template">
- <tr>
- <td align="center">
- <div style="width: 35px;" name="xh"></div>
- <input name="orderProductsList[#index#].supplierId" type="hidden" />
- <input name="orderProductsList[#index#].supplierName" type="hidden" />
- </td>
- <td align="center"><input style="width:35px;" type="checkbox" name="ck"/></td>
- <td align="left" style="display: none;">
- <input name="orderProductsList[#index#].pnumber" maxlength="16"
- type="text" class="inputxt" style="width:130px;"
- >
- <label class="Validform_label" style="display: none;">货品编码</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].pname" maxlength="32"
- type="text" class="inputxt" style="width:130px;"
- >
- <label class="Validform_label" style="display: none;">货品名称</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].specType" maxlength="50"
- type="text" class="inputxt" style="width:130px;"
- >
- <label class="Validform_label" style="display: none;">规格型号</label>
- </td>
- <td align="left">
- <t:dictSelect field="orderProductsList[#index#].measureUnit" type="list" extendJson="{class:'form-control',style:'width:132px'}"
- typeGroupCode="metering_calcu_unit" defaultVal="" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
- <label class="Validform_label" style="display: none;">计量单位</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].quantity" maxlength="10" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')"
- type="text" class="inputxt" style="width:130px;"
- datatype="*">
- <label class="Validform_label" style="display: none;">数量</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].purchasePrice" maxlength="10" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')"
- type="text" class="inputxt" style="width:130px;" readonly="readonly"
- datatype="*">
- <label class="Validform_label" style="display: none;">采购单价</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].money" readonly="readonly"
- type="text" class="inputxt" style="width:130px;"
- >
- <label class="Validform_label" style="display: none;">金额</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].lastMonthUsedAmount" readonly="readonly"
- type="text" class="inputxt" style="width:130px;">
- <label class="Validform_label" style="display: none;">前两月使用数</label>
- </td>
-
- <td align="left">
- <input name="orderProductsList[#index#].onHandAmount" readonly="readonly"
- type="text" class="inputxt" style="width:130px;">
- <label class="Validform_label" style="display: none;">现存量</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].remark" maxlength="100"
- type="text" class="inputxt" style="width:130px;">
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
-
- </tr>
- </tbody>
- </table>
-
- </body>
- <script src = "webpage/cn/com/lzt/orders/orders-proc.js"></script>
|