作者 申海龙

分单删除

@@ -319,9 +319,32 @@ public class WaybillnomasterController extends BasicController { @@ -319,9 +319,32 @@ public class WaybillnomasterController extends BasicController {
319 } 319 }
320 320
321 321
  322 + /**
  323 + * 分单删除
  324 + *
  325 + * @param id
  326 + * @return
  327 + */
  328 + @RequestMapping(value = "/subdelete", method = { RequestMethod.POST })
  329 + @ResponseBody
  330 + public ResponseModel subdelete(Long id) {
  331 + ResponseModel model = new ResponseModel();
  332 + try {
  333 + preparesecondaryServer.delete(id);
  334 + model.setStatus(200);
  335 + model.setMsg(HttpJsonMsg.SUCCESS);
  336 + } catch (Exception e) {
  337 + model.setStatus(500);
  338 + model.setMsg(HttpJsonMsg.ERROR);
  339 + logger.error("系统异常 >>", e);
  340 + }
  341 + return model;
  342 + }
  343 +
  344 +
322 //编辑 345 //编辑
323 - @RequestMapping(value = "/edit/{id}")  
324 - public String edit(Model model, @PathVariable("id") Long id){ 346 + @RequestMapping(value = "/edit")
  347 + public String edit(Model model, Long id){
325 ManifestEntity manifest = null; 348 ManifestEntity manifest = null;
326 UserEntity user = SessionUtil.getUser(); 349 UserEntity user = SessionUtil.getUser();
327 // 判断是否是便捷 350 // 判断是否是便捷
@@ -189,7 +189,7 @@ @@ -189,7 +189,7 @@
189 return res; 189 return res;
190 } 190 }
191 }, 191 },
192 - {field:'..', title:'<spring:message code="opt.operator" />', formatter:preoperatorFormat, width:40} 192 + <%--{field:'..', title:'<spring:message code="opt.operator" />', formatter:preoperatorFormat, width:40}--%>
193 ]], 193 ]],
194 onResize:function(){ 194 onResize:function(){
195 $('#dg').datagrid('fixDetailRowHeight',index); 195 $('#dg').datagrid('fixDetailRowHeight',index);
@@ -211,10 +211,10 @@ @@ -211,10 +211,10 @@
211 return html; 211 return html;
212 } 212 }
213 213
214 - //分单撤销按钮 214 + //分单撤销
215 function preoperatorFormat(val, row, index){ 215 function preoperatorFormat(val, row, index){
216 - var html = "<a href='javascript:void(0)' style='text-decoration:none;color:blue;'></a>";  
217 - html+="<a href='javascript:void(0)' style='text-decoration:none;color:blue;margin-left:20px;'></a>"; 216 + var html = "<a href='javascript:void(0)' onclick='prebackout("+row.id+")' style='text-decoration:none;color:blue;'><spring:message code='opt.delete'/></a>";
  217 + // html+="<a href='javascript:void(0)' style='text-decoration:none;color:blue;margin-left:20px;'></a>";
218 return html; 218 return html;
219 } 219 }
220 220
@@ -312,8 +312,8 @@ @@ -312,8 +312,8 @@
312 } 312 }
313 313
314 function editHbillFormat(val,row,index){ 314 function editHbillFormat(val,row,index){
315 - var html='<a href="javascript:void(0)" style="text-decoration:none;margin-left:20px;color:blue;" onclick="editHbillRow('+row.id+')"><i class="iconfont">&#xe65a;</i></a>';  
316 -// html += '<a href="javascript:void(0)" style="text-decoration:none;margin-left:20px;color:red;" onclick="delHbillRow('+row.id+','+row.mawbId+','+index+')"><i class="iconfont">&#xe661;</i></a>'; 315 + // var html='<a href="javascript:void(0)" style="text-decoration:none;margin-left:20px;color:blue;" onclick="editHbillRow('+row.id+')"><i class="iconfont">&#xe65a;</i></a>';
  316 + var html = '<a href="javascript:void(0)" style="text-decoration:none;margin-left:20px;color:red;" onclick="delHbillRow('+row.id+','+row.mawbId+','+index+')"><i class="iconfont">&#xe661;</i></a>';
317 return html; 317 return html;
318 } 318 }
319 319
@@ -336,7 +336,7 @@ @@ -336,7 +336,7 @@
336 maxmin : true, 336 maxmin : true,
337 shadeClose : false, // 点击遮罩关闭层 337 shadeClose : false, // 点击遮罩关闭层
338 area : [ '450px', '300px' ], 338 area : [ '450px', '300px' ],
339 - content : '/wbm/edit/'+id 339 + content : '<%=basePath %>wbm/edit?id='+id
340 }); 340 });
341 } 341 }
342 342