| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <%@ 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(){
- var warehouseid = '${ordersPage.warehouseId}';
- if(warehouseid == null || warehouseid==''){
- layer.alert('只有领料点管理员可以填写申购单', {icon: 3, title:'提示'}, function(index){
- //do something
- window.location.href="ordersFixAssetController.do?listByWarehouse&orderFor=1";
- layer.close(index);});
- }
- $('#tt').tabs({
- onSelect:function(title){
- $('#tt .panel-body').css('width','auto');
- }
- });
- $(".tabs-wrap").css('width','100%');
- });
- function beforeSubmit(){
- var trList = $("#add_orderProducts_table").children("tr");
- if(trList.length == 0){
- layer.alert("请至少输入一条货品详细信息");
- return false;
- }
- var msg = checkUnknownRow(trList);
- if(msg.length > 0){
- layer.alert(msg);
- return false;
- }
- return true;
- }
- /*function btn_ok(){
- var trList = $("#add_orderProducts_table").children("tr");
- if(trList.length == 0){
- layer.alert("请至少输入一条货品详细信息");
- return;
- }
- var msg = checkUnknownRow(trList);
- if(msg.length > 0){
- layer.alert(msg);
- return;
- }
-
- $("#btnsub").click();
- }*/
- /*function btn_back(){
- window.location.href="ordersController.do?listByWarehouse";
- }
- function callback(data){
- if(data.success){
- layer.alert(data.msg, function(index){
- window.location.href="ordersController.do?listByWarehouse";
- layer.close(index);
- });
- }
- else{
- layer.alert(data.msg);
- }
- }*/
- </script>
- </head>
- <c:set var="_callback">
- <c:choose>
- <c:when test="${in_process}">@Overridecallback</c:when>
- <c:otherwise>callback</c:otherwise>
- </c:choose>
- </c:set>
- <%--flag 1制单人重填 2金额不可见 3金额可见可修改 4 金额可见--%>
- <c:set var="editMoney">${in_process && (param.flag==3)}</c:set>
- <c:set var="showMoney">${(in_process && param.flag>=3) || ordersPage.orderFor==1}</c:set>
- <c:if test="${editMoney}"><c:set var="update" value="true"/></c:if>
- <c:if test="${param.forPurchase=='true'}"><c:set var="forPurchase" value="true"/></c:if>
- <c:set var="_updateUrl">
- <c:choose>
- <c:when test="${forPurchase}">pOrdersController.do?doAdd4FixAsset</c:when> <%--采购单--%>
- <c:otherwise>ordersFixAssetController.do?doAdd</c:otherwise>
- </c:choose>
- </c:set>
- <c:if test="${forPurchase}"><%--采购单都能看 能改--%>
- <c:set var="editMoney">true</c:set>
- <c:set var="showMoney">true</c:set>
- </c:if>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="${_updateUrl}"
- callback="${_callback}" beforeSubmit="beforeSubmit">
- <input id="id" name="id" type="hidden" value="${ordersPage.id }">
- <input id="orderFor" name="orderFor" type="hidden" value="${ordersPage.orderFor}">
- <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="ordersFixAssetController.do?orderProductsList&orderFor=1&id=${ordersPage.id}&warehouseid=${ordersPage.warehouseId}&in_process=${in_process}&flag=${param.flag}&forPurchase=${param.forPurchase}" icon="icon-search" title="自行采购货品明细" id="orderProducts" 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">领料点:</label>
- </td>
- <td class="value" >
- <input id="warehouseId" name="warehouseId" type="hidden" value="${ordersPage.warehouseId}"/>
- <input id="warehouseName" name="warehouseName" type="text" readonly="readonly" style="width: 150px" class="inputxt" value="${ordersPage.warehouseName}" />
- </td>
- <td align="right" width="100px">
- <label class="Validform_label">采购方式:</label>
- </td>
- <td class="value">
- <input type="text" readonly="readonly" style="width: 150px" class="inputxt" value="${ordersPage.orderFor==0?'公司采购':'自行采购'}"/>
- </td>
- <c:if test="${ordersPage.orderFor==0}">
- <td align="right" width="100px">
- <label class="Validform_label">所属部门:</label>
- </td>
- <td class="value">
- <input id="departId" name="departId" type="hidden" value="${ordersPage.departId}"/>
- <input id="depName" name="depName" type="text" readonly="readonly" style="width: 150px" class="inputxt" value="${ordersPage.depName}" />
- </td>
- </c:if>
- <c:if test="${ordersPage.orderFor==1}">
- <input id="departId" name="departId" type="hidden" value="${ordersPage.departId}"/>
- <input id="depName" name="depName" type="hidden" readonly="readonly" style="width: 150px" class="inputxt" value="${ordersPage.depName}" />
- </c:if>
- <c:if test="${showMoney}">
- <td align="right" width="100px">
- <label class="Validform_label">总金额(元):</label>
- </td>
- <td class="value">
- <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${ordersPage.totalMoney}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">总金额</label>
- </td>
- </c:if>
- <c:if test="${!showMoney}">
- <input id="totalMoney" name="totalMoney" type="hidden" value="${ordersPage.totalMoney}"/>
- </c:if>
- </tr>
- <%--<c:if test="${param.flag>=4}">
- <tr>
- <td align="right" width="100px">
- <label class="Validform_label">固定资产类金额(元):</label>
- </td>
- <td class="value">
- <input name="gudingSum" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${ordersPage.gudingSum}"/>
- </td>
- <td align="right" width="100px">
- <label class="Validform_label">应急采购类金额(元):</label>
- </td>
- <td class="value">
- <input name="yingjiSum" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${ordersPage.yingjiSum}"/>
- </td>
- <td align="right" width="100px">
- <label class="Validform_label">其他类金额(元):</label>
- </td>
- <td class="value">
- <input name="qitaSum" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${ordersPage.qitaSum}"/>
- </td>
- </tr>
- </c:if>--%>
- <c:if test="${!forPurchase}"><%--采购单不要备注--%>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="#FF0000"></font>
- 备注说明:
- </label>
- </td>
- <td class="value" colspan="5" >
- <div style="text-align:left;">
- <textarea style="width:680px;height: 20px;" class="inputxt" rows="3" id="description" maxlength="200" name="description" placeholder="请输入备注说明(最多输入文字数200)">${ordersPage.description}</textarea>
- </div>
- <label class="Validform_label" style="display: none;">备注说明</label>
- </td>
- </tr>
- </c:if>
- <%--<tr>
- <td height="50px" align="center" colspan="8">
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
- <a style="margin-left:20px" href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
- </td>
- </tr>--%>
- </table>
- <%--底部end --%>
- <table style="width: 100%">
- <tr>
- <td style="text-align:center;">
- <%@include file="/webpage/cn/com/lzt/useractiviti/view_submit_buttons.jsp"%>
- </td>
- </tr>
- </table>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <div id="listdiv" fit="false" style="margin: 0px; padding: 0px; overflow: hidden; width: auto;">
- <table style="display:none;width: auto;" id="add_orderProducts_table" >
- <tbody id="add_orderProducts_table_template" >
- <tr>
- <input name="orderProductsList[#index#].specType" maxlength="50" readonly="readonly"
- type="hidden" class="inputxt" style="width:130px;" ><%--规格型号--%>
- <c:if test="${!showMoney}"><%--不显示的时候要有隐藏 保存值--%>
- <input name="orderProductsList[#index#].purchasePrice" type="hidden"/>
- <input name="orderProductsList[#index#].money" type="hidden" />
- </c:if>
- <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="orderProductsList[#index#].pnumber" maxlength="16"
- type="text" class="inputxt" style="width:130px;" readonly="readonly">
- <label class="Validform_label" style="display: none;">货品编码</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].pname" maxlength="32" 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#].belongCategoryCode" maxlength="32" readonly="readonly"
- type="hidden" class="inputxt" style="width:130px;">
- <input name="orderProductsList[#index#].belongCategoryName" maxlength="32" readonly="readonly"
- type="text" class="inputxt" style="width:130px;">
- </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"
- 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>
- <c:if test="${showMoney}">
- <td align="left">
- <input name="orderProductsList[#index#].purchasePrice" 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="orderProductsList[#index#].money" readonly="readonly"
- type="text" class="inputxt" style="width:130px;" >
- <label class="Validform_label" style="display: none;">金额</label>
- </td>
- </c:if>
- <td>
- <input name="orderProductsList[#index#].supplierId" type="hidden" >
- <input name="orderProductsList[#index#].supplierName" readonly="readonly" type="text" class="inputxt" style="width:130px;" onclick="openRelatedSelect(0)">
- <label class="Validform_label" style="display: none;">供应商</label>
- </td>
- <td align="left">
- <input name="orderProductsList[#index#].remark" maxlength="100" style="width:390px;"
- type="text" class="inputxt">
- <label class="Validform_label" style="display: none;">备注</label>
- <input name="orderProductsList[#index#].goodsId" type="text" style="display:none"/>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </body>
- <script src = "webpage/cn/com/lzt/ordersfixasset/orders-own.js?v=3"></script>
|