1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- {Template header}
- <body>
- <div class="warp">
- <div class="title winnone">货柜物品 - 修改</div>
- <ul class="setting-UMeditor">
- <li>
- <em>货物名称:</em>
- <input class="must" value="{$container['title']}" name="title" type="text" >
- </li>
- <li>
- <em>数量:</em>
- <input class="must" value="{$container['num']}" name="num" type="text" >
- </li>
- <li>
- <em>单位重量:</em>
- <input value="{$container['weight']}" name="weight" type="text" > 千克
- </li>
- <li>
- <em>总重量:</em>
- <input value="{$container['zweight']}" name="zweight" type="text" readonly style="background-color: #ebebe4;"> 千克
- </li>
- <li>
- <em>预估体积:</em>
- <input value="{$container['volume']}" name="volume" type="text" > 立方米
- </li>
- <li>
- <em>优先级:</em><select name="type" class="select">
- <option value="1" {if $container['type'] == '1'}selected="selected"{/if}>A-必须发</option>
- <option value="2" {if $container['type'] == '2'}selected="selected"{/if}>B-如果发不完可先发走一部分</option>
- <option value="3" {if $container['type'] == '3'}selected="selected"{/if}>C-拼箱用,可发可不发</option>
- </select>
- </li>
- <li>
- <em>用途:</em>
- <input value="{$container['yt']}" name="yt" type="text" >
- </li>
- <li>
- <em>提交人:</em>
- <input class="must" value="{$container['name']}" name="name" type="text" >
- </li>
- </ul>
- <input type="hidden" name="id" value="{$container['id']}" />
- <div class="button"><font class="datasave">提 交</font> <font class="fh">关 闭</font></div>
- </div>
- <script>var addedit="/container/edit/";var rowsurl="/container/rows/";var scwd = "/fullorderexcel/scwd";
- $("input[name=num]").bind("input propertychange",function(event){
- var num = $("input[name=num]").val()*1;
- var weight = $("input[name=weight]").val()*1;
- var zweight = num*weight;
- console.log($("input[name=zweight]").val(zweight.toFixed(2)))
- });
- $("input[name=weight]").bind("input propertychange",function(event){
- var num = $("input[name=num]").val()*1;
- var weight = $("input[name=weight]").val()*1;
- var zweight = num*weight;
- console.log($("input[name=zweight]").val(zweight.toFixed(2)))
- });
- </script>
- {Template footer}
|