| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <%@ 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="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.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 src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.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>
- <!-- 选择窗口需要加载的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/endproduct/epTranferLookup.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epCarLookup.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epDriverLookup.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epLogistDetail.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/endproduct/epLogistValidate.js"></script>
- <!--选择窗口需要加载的js文件 end -->
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
- <script type="text/javascript">
- var epLogistDetail = [];
- var rowsDepot = [];
- $(function (){
- $("input[type='text']:first").focus();
- //仓库
- if('${requestScope.rowsDepot}'!="" && typeof('${requestScope.rowsDepot}')!="undefined"){
- rowsDepot = eval('${requestScope.rowsDepot}');
- }
- if('${requestScope.epLogistDetail}'!="" && typeof('${requestScope.epLogistDetail}')!="undefined"){
- epLogistDetail = eval('${requestScope.epLogistDetail}');
- $("#logist\\.tran_num").attr("disabled",true);
- $("#logist\\.destination").attr("disabled",true);
- $("#logist\\.carrier_name").attr("disabled",true);
- $("#tran_numBtn").attr("disabled",true);
- }
- if('${requestScope.flowOnOff}'!="" && typeof('${requestScope.flowOnOff}')!="undefined"){
- var obj = window.top;
- $("#btnSave").attr({"disabled":"disabled"});
- obj.$.ligerDialog.alert("对不起,物流指令单流程未配置,请通知流程管理员配置后,再提交!", function (action){
- closeWindow();
- });
- }
- f_initLogDetailGrid();
- });
-
- //保存信息
- function saveLogistForm(){
- var obj = window.top;
- var flags = 0;
- if(checkForm()){
- getDataDetail();
- var DataDetail = eval($("#jsonDetailData").val());
- if(DataDetail != "" && typeof (DataDetail) != "undefined" && null !=DataDetail){
- for(var i=0;i<DataDetail.length;i++){
- if(DataDetail[i].product_number <= 0){
- flags = 1;
- break;
- }
- }
- if(flags==0){
- var flowTheme = $("#flowTheme").val();
- if(flowTheme != "" && typeof (flowTheme) != "undefined"){
- obj.$.ligerDialog.prompt('流程标题',flowTheme, function (yes,value){
- if(yes){
- if(value != "" && typeof (value) != "undefined"){
- $("#flowTheme").val("");
- $("#flowTheme").val(value);
- $("#btnSave").attr({"disabled":"disabled"});
- $("#logistForm").submit();
- }else{
- obj.$.ligerDialog.warn("流程标题不能为空!");
- return;
- }
- }
- });
- }else{
- $("#btnSave").attr({"disabled":"disabled"});
- $("#logistForm").submit();
- }
- }else if(flags==1){
- obj.$.ligerDialog.warn("物流指令明细数量不能为0!");
- return;
- }
- }else{
- obj.$.ligerDialog.warn("物流指令明细不能为空!");
- return;
- }
- }
- }
- </script>
- </head>
- <body>
- <form id="logistForm" action="erpLogistAction.do" method="post">
- <div id="title" class="form-button">
- <input id="btnSave" type="button" class="l-button" value="提交" onclick="saveLogistForm()"/>
- <input type="button" value="关闭" class="l-button" onclick="closeWindow();"/>
- </div>
- <div class="container-layout">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="4">物流指令信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">调拨单号<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="logist.tran_id" name="logist.tran_id" value="${requestScope.logist.tran_id}"/>
- <input type="text" id="logist.tran_num" name="logist.tran_num" value="${requestScope.logist.tran_num}" readonly="readonly"/>
- <input id="tran_numBtn" type="button" class="l-button" value="请选择" onclick="chooseTranfer({universalid:'logist\\.tran_id',tran_num:'logist\\.tran_num',carrier_name:'logist\\.carrier_name',destination:'logist\\.destination'});" />
- </td>
- <td class="l-table-edit-text">承运方<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="logist.carrier_name" name="logist.carrier_name" value="${requestScope.logist.carrier_name}" readonly="readonly" style="border-style: none;"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">司机姓名<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="logist.driver_id" name="logist.driver_id" value="${requestScope.logist.driver_id}"/>
- <input type="text" id="logist.driver_name" name="logist.driver_name" value="${requestScope.logist.driver_name}" readonly="readonly"/>
- <input type="button" class="l-button" value="请选择" onclick="chooseDriver({universalid:'logist\\.driver_id',driver_name:'logist\\.driver_name',identity_card:'logist\\.driver_identity_card',mobile:'logist\\.driver_mobile'});" />
- </td>
- <td class="l-table-edit-text">送达目的地<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="logist.destination" name="logist.destination" value="${requestScope.logist.destination}" readonly="readonly" style="border-style: none;"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">司机身份证<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="logist.driver_identity_card" name="logist.driver_identity_card" value="${requestScope.logist.driver_identity_card}" readonly="readonly"/>
- </td>
- <td class="l-table-edit-text">司机手机号<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="logist.driver_mobile" name="logist.driver_mobile" value="${requestScope.logist.driver_mobile}" readonly="readonly" style="border-style: none;"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">车牌号<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="logist.car_id" name="logist.car_id" value="${requestScope.logist.car_id}"/>
- <input type="text" id="logist.car_number" name="logist.car_number" value="${requestScope.logist.car_number}" readonly="readonly"/>
- <input type="button" class="l-button" value="请选择" onclick="chooseCar({universalid:'logist\\.car_id',car_number:'logist\\.car_number',car_type:'logist\\.car_type',driver_num:'logist\\.car_driver_num',weigh:'logist\\.car_weigh'});" />
- </td>
- <td class="l-table-edit-text">车辆型号<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td" >
- <input type="text" id="logist.car_type" name="logist.car_type" value="${requestScope.logist.car_type}" readonly="readonly" style="border-style: none;"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">行驶证号<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="logist.car_driver_num" name="logist.car_driver_num" value="${requestScope.logist.car_driver_num}" readonly="readonly" style="border-style: none;"/>
- </td>
- <td class="l-table-edit-text">核载重量<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td" >
- <input type="text" id="logist.car_weigh" name="logist.car_weigh" value="${requestScope.logist.car_weigh}" readonly="readonly" style="border-style: none;"/>
- </td>
- </tr>
- <tr>
- <th colspan="4">物流指令明细</th>
- </tr>
- <tr>
- <td colspan="4" height="300">
- <!-- 明细 start -->
- <div>
- <a class="l-button" style="width:100px;float:left; margin-left:10px;margin-top: 10px" onclick="f_import()">选择材料</a>
- </div>
- <div class="l-clear"></div>
- <div id="maingrid" style="margin-top:10px;"></div> <br />
- <div style="display:none;"></div>
- <!-- 明细 end -->
- </td>
- </tr>
- </table>
- <input type="hidden" id="logist.logist_num" name="logist.logist_num" value="${requestScope.logist.logist_num}">
- <input type="hidden" id="logist.universalid" name="logist.universalid" value="${requestScope.logist.universalid}">
- <input type="hidden" id="logist.au_state" name="logist.au_state" value="${requestScope.logist.au_state}">
- <input type="hidden" id="logist.flow_id" name="logist.flow_id" value="${requestScope.logist.flow_id}">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid}">
- <input type="hidden" id="task" name="task" value="edit">
- <input type="hidden" id="jsonDetailData" name="jsonDetailData" value="">
- <!-- 流程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>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|