| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828 |
- <%-- <%@ include file="/include/head.jsp"%> --%>
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <HEAD>
- <TITLE>新增合同</TITLE>
- <link href="main.css" rel="stylesheet" type="text/css"></link>
- <link href="./liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"></link>
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.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/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <!-- 里程碑 -->
- <link href="/shares/xheditor/xheditor-1.1.14/demos/common.css" rel="stylesheet" type="text/css" media="screen" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/form.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/tms/task.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <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/ligerDialog.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/endproduct/eplogistLookupToListDetail.js"></script>
- <script type="text/javascript">
- var grid = null;
- var gr=null;
- var is_load=false;
- var logist_tache=false;
- $(document).ready(function(){
- $("input[type='text']:first").focus();
- loadLogistDetailList();
- var logist_detail_id=$("#logist_detail_id").val();
- loadShipmentList(logist_detail_id);
- var initTime=$("#shipment\\.shipment_date_string").val();
- $("#shipment\\.shipment_date").ligerDateEditor({
- labelWidth : 128,
- labelAlign : 'right',
- showTime : true,
- initValue: initTime
- });
- });
-
- //初始化材料列表
- function loadLogistDetailList() {
- var universalid=$("#shipment\\.logist_id").val();
- var columns = [
- {display : '调拨材料',name : 'product_name',width : 350,
- render : function(row) {
- var load_finish = "";
- var product_name = row.product_name == undefined ?'': row.product_name;
- var product_stand_model = row.product_stand_model == undefined ?'': row.product_stand_model;
- if(row.is_load_finish=='0'){
- load_finish="<font style='color:#ff0000'>(出货中)</font>";
- }else if(row.is_load_finish=='1'){
- load_finish="<font style='color:#0000FF'>(出货完成)</font>";
- }
- var html = product_name + ' '+product_stand_model+load_finish;
- return html;
- }
- },
- //{display : '材料名称',name : 'product_name',width : 120},
- //{display : '材料规格',name : 'product_stand_model',width : 120},
- {display : '调拨数量',name : 'product_number',width : 120,
- render : function(row) {
- var html = row.product_number + ' 吨';
- return html;
- }
- },
- {
- display : '发料仓库',
- name : 'sdepot_name',
- width : 120
- },
- // {
- // display : '出货状态',
- // name : 'is_load_finish',
- // width : 120,
- // render : function(row) {
- // var html = "";
- // if(row.is_load_finish=='0'){
- // html="<font style='color:#ff0000'>未完成</font>";
- // }else if(row.is_load_finish=='1'){
- // html="<font style='color:#0000FF'>完成</font>";
- // }
- // return html;
- // }
- // },
- {
- display : '出货操作人',
- name : 'load_user_name',
- width : 120
- },
- {
- display : '出货操作时间',
- name : 'load_date',
- width : 165
- }];
- /* if(universalid!=""){ */
- grid = $("#logistDetailGrid")
- .ligerGrid(
- { columns:columns,
- url : 'erpEndProdShipmentAction.do?task=getLogistDetailList&universalid='+universalid+'&time=' + new Date().getTime(),
- width : "85.8%",
- height : 100,
- checkbox: true,
- isChecked: f_isChecked,
- onCheckRow : function(checked, rowdata, rowindex) {
- $("#logist_detail_id").val(rowdata.universalid);
- $("#product_name").val(rowdata.product_name);
- $("#product_stand_model").val(rowdata.product_stand_model);
- for ( var rowid in this.records)
- this.unselect(rowid);
- this.select(rowindex);
- if(checked=true){
- loadShipmentList(rowdata.universalid);
- }
- },
- pageSize : 15,
- pageParmName : 'p',
- usePager:false,
- pagesizeParmName : 'pSize'
- });
- /* }else{
- grid = $("#logistDetailGrid")
- .ligerGrid(
- { columns:columns,
- data : {
- Rows : []
- },
- checkbox: true,
- onCheckRow : function(checked, rowdata, rowindex) {
- $("#logist_detail_id").val(rowdata.universalid);
- for ( var rowid in this.records)
- this.unselect(rowid);
- this.select(rowindex);
- if(checked=true){
- loadShipmentList(rowdata.universalid);
- }
- },
- width : "70.8%",
- height : 100,
- pageSize : 15,
- enabledEdit: true,
- clickToEdit: false,
- rownumbers:false,
- pageParmName : 'p',
- usePager:false,
- pagesizeParmName : 'pSize'
- });
- } */
-
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- function f_isChecked(rowdata){
- if (rowdata.__id == 'r1001'){
- $("#logist_detail_id").val(rowdata.universalid);
- $("#product_name").val(rowdata.product_name);
- $("#product_stand_model").val(rowdata.product_stand_model);
- loadShipmentList(rowdata.universalid);
- return true;
- }
- return false;
- }
- //初始化出货列表
- function loadShipmentList(universalid){
- var columns = [
- {
- display : '操作',
- name : '',
- width : 80,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"delShipmentEntry('
- + row.universalid
- + ')\">删除</a> ';
- return html;
- }
- },
- {
- display : '类型',
- name : 'product_type',
- width : 80,
- render : function(row) {
- var html = "";
- if(row.product_type=='1'){
- html='装货';
- }else if(row.product_type=='2'){
- html='退包';
- }else if(row.product_type=='3'){
- html='增包';
- }
- return html;
- }
- },
- {
- display : '材料名称',
- name : 'product_name',
- width : 120
- },
- {
- display : '材料规格',
- name : 'product_stand_model',
- width : 120
- },
- {
- display : '数量',
- name : 'product_count',
- width : 120,
- render : function(row) {
- var html = "";
- html+=row.product_count+" 包";
- return html;
- }
- },
- {
- display : '点包器编号',
- name : 'ctmach_num',
- width : 100
- },
- {
- display : '点包时间',
- name : 'ctmach_date',
- width : 150
- },
- {
- display : '操作人',
- name : 'create_user_name',
- width : 150
- },
- {
- display : '操作时间',
- name : 'create_date',
- width : 150
- }];
-
- gr = $("#shipmentGrid")
- .ligerGrid(
- { columns:columns,
- url : 'erpEndProdShipmentAction.do?task=shipmentDetailList&universalid='+universalid+'&time=' + new Date().getTime(),
- width : "99.8%",
- height : "99.8%",
- /* checkbox: true,
- onCheckRow : function(checked, rowdata, rowindex) {
- for ( var rowid in this.records){
- this.unselect(rowid);
- }
- this.select(rowindex);
- if(checked=true){
- loadShipmentList(rowdata.universalid);
- }
- }, */
- pageSize : 15,
- enabledEdit: true,
- clickToEdit: false,
- rownumbers:false,
- pageParmName : 'p',
- usePager:false,
- pagesizeParmName : 'pSize'
- });
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- statisShipment();
- }
- //添加出货
- function addShipmentEntry(){
- var rows = grid.getCheckedRows();
- if(rows.length==0){
- $.ligerDialog.warn('请选择材料!');
- return;
- }
- if(rows.length>1){
- $.ligerDialog.warn('只能选择一个材料!');
- return;
- }
- var logist_detail_id=$("#logist_detail_id").val();
- var spdata={"logist_detail_id":logist_detail_id};
- //验证物流情况
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=verifyLogist",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- if(data.tache!='2'){
- logist_tache=false;
- }else{
- logist_tache=true;
- if(data.is_load_finish=='1'){
- is_load=true;
- }else{
- is_load=false;
- }
- }
-
- },
- complete:function(){
- if(logist_tache){
- if(is_load){
- $.ligerDialog.error('该材料已经装货完成!');
- return;
- }
- }else{
- $.ligerDialog.error('该物流指令已经进入二次过磅环节!');
- return;
- }
- logist_detail_id=rows[0].universalid;
- $("#logist_detail_id").val(logist_detail_id);
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog.open({
- title : '点包器计数选择',
- width : 700,
- height : 370,
- url : 'erpEndProdShipmentAction.do?task=toSelectShipment&logist_detail_id='+logist_detail_id,
-
- buttons : [
- // {
- // text : '刷新',
- // onclick : f_refreshShipmentOk
- // },
- {
- text : '确定',
- onclick : f_selectShipmentOk
- },{
- text : '取消',
- onclick : selectShipmentCancel
- } ]
- });
-
-
- }
- }
- });
- }
- function f_refreshShipmentOk(item, dialog){
- dialog.frame.f_refresh();
- return;
- }
- function f_selectShipmentOk(item, dialog){
- var logist_detail_id=$("#logist_detail_id").val();
- var rough=$("#rough").val();
- var suttle=$("#suttle").val();
- var rows = dialog.frame.f_select();
- var counter_nos="";
- var counter_vals="";
- var counter_times="";
- var counter_ids="";
- for(var i=0;i<rows.length;i++){
- if(i>0){
- counter_nos+=",";
- counter_vals+=",";
- counter_times+=",";
- counter_ids+=",";
- }
- counter_nos+=rows[i].counter_no;
- counter_vals+=rows[i].counter_val;
- counter_times+=rows[i].counter_time;
- counter_ids+=rows[i].universalid;
- }
- var spdata={"counter_nos":counter_nos,"counter_vals":counter_vals,"counter_times":counter_times,
- "logist_detail_id":logist_detail_id,"rough":rough,"suttle":suttle,"counter_ids":counter_ids};
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=addShipment",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
-
- },
- complete:function(){
- loadShipmentList(logist_detail_id);
- }
- });
- dialog.close();
-
-
- }
- function selectShipmentCancel(item, dialog){
- dialog.close();
- }
- function delShipmentEntry(universalid){
- var logist_detail_id=$("#logist_detail_id").val();
- var spdata={"universalid":universalid};
- if (window.confirm("确定要删除吗?")){
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=delShipmentEntry",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- if(data.error!=null){
- $.ligerDialog.error(data.error);
- }
- if(data.success!=null){
- $.ligerDialog.success(data.success);
- }
- },
- complete:function(){
- loadShipmentList(logist_detail_id);
- }
- });
- }
-
- }
- //出货完成
- function finishShipment(){
- var rows = grid.getCheckedRows();
- if(rows.length==0){
- $.ligerDialog.warn('请选择材料!');
- return;
- }
- if(rows.length>1){
- $.ligerDialog.warn('只能选择一个材料!');
- return;
- }
- var product_name=$("#product_name").val();
- var product_stand_model=$("#product_stand_model").val();
- var logist_detail_id=$("#logist_detail_id").val();
- var spdata={"logist_detail_id":logist_detail_id};
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=verifyLogist",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- if(data.tache!='2'){
- logist_tache=false;
- }else{
- logist_tache=true;
- if(data.is_load_finish=='1'){
- is_load=true;
- }else{
- is_load=false;
- }
- }
-
- },
- complete:function(){
- if(logist_tache){
- if(is_load){
- $.ligerDialog.error('该材料已经装货完成!');
- return;
- }
- }else{
- $.ligerDialog.error('该物流指令已经进入二次过磅环节!');
- return;
- }
- if (window.confirm("是否该材料("+product_name+" "+product_stand_model+") 已出货完成?")){
- var logist_id=$("#shipment\\.logist_id").val();
- var sdata={"logist_id":logist_id,"logist_detail_id":logist_detail_id};
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=finishShipment",
- data : sdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- if(data.error!=null){
- $.ligerDialog.error(data.error);
- }
- if(data.success!=null){
- $.ligerDialog.success(data.success);
- }
- },
- complete:function(){
- loadShipmentList(logist_detail_id);
- grid = $("#logistDetailGrid").ligerGetGridManager();
- grid.loadData();
- }
- });
- }
-
- }
- });
- }
- //退包
- function reduceShipment(){
- var rows = grid.getCheckedRows();
- if(rows.length==0){
- $.ligerDialog.warn('请选择材料!');
- return;
- }
- if(rows.length>1){
- $.ligerDialog.warn('只能选择一个材料!');
- return;
- }
- var rough=$("#rough").val();
- var suttle=$("#suttle").val();
- var logist_detail_id=$("#logist_detail_id").val();
- var spdata={"logist_detail_id":logist_detail_id};
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=verifyLogist",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- if(data.tache!='2'){
- logist_tache=false;
- }else{
- logist_tache=true;
- if(data.is_load_finish=='1'){
- is_load=true;
- }else{
- is_load=false;
- }
- }
-
- },
- complete:function(){
- if(logist_tache){
- if(is_load){
- $.ligerDialog.error('该材料已经装货完成!');
- return;
- }
- }else{
- $.ligerDialog.error('该物流指令已经进入二次过磅环节!');
- return;
- }
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog.open({
- title : '退包',
- width : 500,
- height : 270,
- url : 'erpEndProdShipmentAction.do?task=toReduceShipment&logist_detail_id='+logist_detail_id+'&rough='+rough+'&suttle='+suttle,
- buttons : [ {
- text : '确定',
- onclick : f_reduceShipmentOk
- },{
- text : '取消',
- onclick : selectShipmentCancel
- } ]
- });
- }
- }
- });
- }
- //增包
- function increaseShipment(){
- var rows = grid.getCheckedRows();
- if(rows.length==0){
- $.ligerDialog.warn('请选择材料!');
- return;
- }
- if(rows.length>1){
- $.ligerDialog.warn('只能选择一个材料!');
- return;
- }
- var rough=$("#rough").val();
- var suttle=$("#suttle").val();
- var logist_detail_id=$("#logist_detail_id").val();
- var spdata={"logist_detail_id":logist_detail_id};
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=verifyLogist",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- if(data.tache!='2'){
- logist_tache=false;
- }else{
- logist_tache=true;
- if(data.is_load_finish=='1'){
- is_load=true;
- }else{
- is_load=false;
- }
- }
-
- },
- complete:function(){
- if(logist_tache){
- if(is_load){
- $.ligerDialog.error('该材料已经装货完成!');
- return;
- }
- }else{
- $.ligerDialog.error('该物流指令已经进入二次过磅环节!');
- return;
- }
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog.open({
- title : '增包',
- width : 500,
- height : 270,
- url : 'erpEndProdShipmentAction.do?task=toIncreaseShipment&logist_detail_id='+logist_detail_id+'&rough='+rough+'&suttle='+suttle,
- buttons : [ {
- text : '确定',
- onclick : f_reduceShipmentOk
- },{
- text : '取消',
- onclick : selectShipmentCancel
- } ]
- });
- }
- }
- });
- }
- function f_reduceShipmentOk(item, dialog){
- var rs=dialog.frame.addReduceEntry();
- if(rs!=0){
- var logist_detail_id=$("#logist_detail_id").val();
- setTimeout("loadShipmentList("+logist_detail_id+")",200);
- //loadShipmentList(logist_detail_id);
- dialog.close();
- }else{
- return;
- }
- }
- //统计
- function statisShipment(){
- var logist_detail_id=$("#logist_detail_id").val();
- if(logist_detail_id!=''){
- var spdata={"logist_detail_id":logist_detail_id};
- $.ajax({
- type:"POST",
- url:"erpEndProdShipmentAction.do?task=statisShipment",
- data : spdata,
- timeout:10000,
- dataType:"json",
- success:function(data){
- var suttle = $("#suttle").val();//净重(公斤/包)
- //$("#rough_sum").html(data.rough_sum);
- var product_number = grid.getCheckedRows()[0].product_number;//调拨吨数
- $("#product_number").html(product_number);
- var product_number_suttle = ((product_number * 1000)/suttle).toFixed(0);//调拨包数
- $("#product_number_suttle").html(product_number_suttle);
- var suttle_sum = (data.suttle_sum/1000).toFixed(4)*100/100;//已装货吨数
- $("#suttle_sum").html(suttle_sum);
- $("#product_count").html(data.product_count);//已装货多少包
- var deal_suttle_sum = (product_number - suttle_sum).toFixed(4)*100/100;//待装货吨数
- $("#deal_suttle_sum").html(deal_suttle_sum);
- var deal_count = ((deal_suttle_sum * 1000)/suttle).toFixed(0);//待装货包数
- $("#deal_count").html(deal_count);
- },
- });
- }
-
- }
- //修改毛/净重设置
- function updateWeighSet(){
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog.open({
- title : '修改设置',
- width : 500,
- height : 270,
- url : 'erpEndProdShipmentAction.do?task=toUpdateWeighSet',
- buttons : [ {
- text : '确定',
- onclick : f_updateWeighSetOk
- },{
- text : '取消',
- onclick : selectShipmentCancel
- } ]
- });
- }
- }
- function f_updateWeighSetOk(item, dialog){
- var rs=dialog.frame.updateWeighSet();
- if(rs!=0){
- var result=rs.split(",");
- var rough=result[0];
- var suttle=result[1];
- $("#rough").val(rough);
- $("#suttle").val(suttle);
- var rough_show="毛重:"+rough+"公斤/包";
- var suttle_show="净重:"+suttle+"公斤/包";
- $("#rough_show").html(rough_show);
- $("#suttle_show").html(suttle_show);
- statisShipment();//重新统计
- dialog.close();
- }else{
- return;
- }
-
- }
- </script>
- <style type="text/css">
- body {
- padding: 5px;
- margin: 0;
- }
- #layout1 {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- .l-button {
- margin-left: 1px;
- }
- #deptBtn {
- width: 100%;
- background: #e5ecf9;
- text-align: center;
- height: 25px;
- padding-top: 3px
- }
- #leftBtn{
- width: 100%;
- background: #e5ecf9;
- height: 25px;
- padding-top: 3px
- }
- .l-layout-left {
- overflow-y: auto;
- }
- #displayMoneyDiv{
- font-family: "楷体_GB2312";
- /* "宋体",, "黑体",Arial,Helvetica, sans-serif */
- /* color:#000000; */
- color:red;
- font-size: 13px;
- }
- </style>
- </HEAD>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div id="title" class="form-button">
- <input type="button" value="关闭" class="l-button" onclick="closeWindow();"/>
- </div>
- <div class="container-layout" >
- <form id="addShipmentEntryForm" name="addShipmentEntryForm" method="post" action="erpEndProdShipmentAction.do?task=addShipmentEntry">
- <div class="forum-container">
- <input type="hidden" id="logist_detail_id" name="logist_detail_id" value=""/>
- <input type="hidden" id="product_name" name="product_name" value=""/>
- <input type="hidden" id="product_stand_model" name="product_stand_model" value=""/>
- <%-- <input type="hidden" id="shipment.shipment_date_string" name="shipment.shipment_date_string" value="${shipment.shipment_date_string }"/> --%>
- <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
- <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
- <tr>
- <th colspan="4">物流指令信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text" style="width:15%;">物流指令<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" style="width:35%;">
- <input type="hidden" id="shipment.logist_id" name="shipment.logist_id" value="${shipment.logist_id }" />
- <input id="shipment.logist_num" name="shipment.logist_num" type='text' value="${shipment.logist_num }" style="border: 0px;"/>
- <c:if test="${requestScope.toView == null || requestScope.toView == '' }">
- <input type="button" id="chooseLogistBtn" value="请选择" class="l-button"
- onclick="chooseLogist({universalid:'shipment\\.logist_id',logist_num:'shipment\\.logist_num',driver_name:'shipment\\.driver_name',car_number:'shipment\\.car_number',tran_num:'shipment\\.tran_num',tache:'2'})"/>
- </c:if>
- </td>
- <td class="l-table-edit-text" style="width:15%;">司机姓名:</td>
- <td class="l-table-edit-td" style="width:35%;">
- <input id="shipment.driver_name" name="shipment.driver_name" type='text' value="${shipment.driver_name }" readonly="readonly" style="border: 0px;"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">车牌号:</td>
- <td class="l-table-edit-td" >
- <input id="shipment.car_number" name="shipment.car_number" type='text' value="${shipment.car_number }" readonly="readonly" style="border: 0px;"/>
- </td>
- <td class="l-table-edit-text">调拨单:</td>
- <td class="l-table-edit-td" >
- <input id="shipment.tran_num" name="shipment.tran_num" type='text' value="${shipment.tran_num }" style="width:260px;border: 0px;" readonly="readonly" />
- </td>
- </tr>
- </table>
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="logistDetailGrid" style="margin: 0; padding: 0"></div>
- </div>
- <div position="center" id="center" title="" class="forum-container">
- <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
- <tr>
- <th colspan="4">出货信息</th>
- </tr>
- </table>
- <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
- <tr>
- <td colspan="4" style="font-size: 25px;">
- 待装货:<span id="deal_suttle_sum" style="color: red;font-size: 25px;"></span>吨/约<span id="deal_count" style="color: red;font-size: 25px;"></span>包
-
- 调拨数:<span id="product_number" style="font-size: 25px;"></span>吨/约<span id="product_number_suttle" style="font-size: 25px;"></span>包
-
- 已装货:<span id="suttle_sum" style="font-size: 25px;"></span>吨/<span id="product_count" style="font-size: 25px;"></span>包
- </td>
- </tr>
- </table>
- <div style="overflow: visible; clear: both;margin-top:5px;">
- <c:if test="${requestScope.toView == null || requestScope.toView == '' }">
- <input type="button" class="l-button" value="+装货" onclick="addShipmentEntry()" id="addShipmentEntryBtn" />
-
- <input type="button" class="l-button" value="√装货完成" onclick="finishShipment()"/>
-
- <input type="button" class="l-button" value="+增包" onclick="increaseShipment()"/>
-
- <input type="button" class="l-button" value="-退包" onclick="reduceShipment()"/>
- </c:if>
- <input type="hidden" id="rough" name="rough" value="${rough }"/>
- <input type="hidden" id="suttle" name="suttle" value="${suttle }"/>
- <span id="rough_show">毛重:${rough }公斤/包</span>
- <span id="suttle_show">净重:${suttle }公斤/包</span>
- <a href="#" onclick="updateWeighSet()">修改</a>
- </div>
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="shipmentGrid" style="margin: 0; padding: 0"></div>
-
- </div>
- </form>
-
- </div>
- </BODY>
- </HTML>
|