Commit 4535bb1af4dac5a9b5543d48bd50c79a06c9d787

Authored by pengcheng
1 parent 78382ae4

页面格式和排版更改

src/main/java/com/huaheng/pc/config/FilterConfigDetail/controller/FilterConfigDetailController.java
... ... @@ -123,6 +123,7 @@ public class FilterConfigDetailController extends BaseController {
123 123 }
124 124 filterConfigDetail.setModuleType(configHeader.getModuleType());
125 125 filterConfigDetail.setRecordType(configHeader.getRecordType());
  126 + filterConfigDetail.setFilterCode(configHeader.getFilterCode());
126 127 filterConfigDetail.setWarehouseCode(ShiroUtils.getWarehouseCode());
127 128 filterConfigDetail.setCreatedBy(ShiroUtils.getLoginName());
128 129 filterConfigDetail.setLastUpdatedBy(ShiroUtils.getLoginName());
... ...
src/main/java/com/huaheng/pc/config/FilterConfigDetail/domain/FilterConfigDetail.java
... ... @@ -78,9 +78,9 @@ public class FilterConfigDetail implements Serializable {
78 78 @ApiModelProperty(value="全SQL")
79 79 private String statement;
80 80  
81   - @TableField(value = "sqll")
  81 + @TableField(value = "statements")
82 82 @ApiModelProperty(value="后续分组排序")
83   - private String sqll;
  83 + private String statements;
84 84  
85 85 /**
86 86 * 是否系统创建
... ...
src/main/java/com/huaheng/pc/config/waveFlowDetail/controller/WaveFlowDetailController.java
... ... @@ -50,9 +50,9 @@ public class WaveFlowDetailController extends BaseController {
50 50  
51 51  
52 52 @RequiresPermissions("config:waveFlowDetail:view")
53   - @GetMapping("/list/{id}")
54   - public String waveFlowDetail(@PathVariable("id")Integer id, ModelMap mmap) {
55   - mmap.put("headerId",id);
  53 + @GetMapping("/list/{headerId}")
  54 + public String waveFlowDetail(@PathVariable("id")Integer headerId, ModelMap mmap) {
  55 + mmap.put("headerId",headerId);
56 56 return prefix + "/waveFlowDetail";
57 57 }
58 58  
... ...
src/main/java/com/huaheng/pc/shipment/shipmentHeader/service/ShipmentHeaderServiceImpl.java
... ... @@ -108,6 +108,7 @@ public class ShipmentHeaderServiceImpl extends ServiceImpl<ShipmentHeaderMapper,
108 108 //说明没有货箱,则直接首位均为新建
109 109 shipmentHeader.setFirstStatus(100);
110 110 shipmentHeader.setLastStatus(100);
  111 +
111 112 this.saveOrUpdate(shipmentHeader);
112 113 }else {
113 114 int firstStatus = map.get("maxStatus");
... ...
src/main/java/com/huaheng/pc/shipment/shippingCombination/service/ShippingCombinationService.java
... ... @@ -78,7 +78,7 @@ public class ShippingCombinationService {
78 78  
79 79 //根据sql查库存
80 80 try {
81   - list = inventoryDetailService.selectBysql(filterConfigDetail.getStatement(),shipmentDetail,filterConfigDetail.getSqll(),shipmentPreference);
  81 + list = inventoryDetailService.selectBysql(filterConfigDetail.getStatement(),shipmentDetail,filterConfigDetail.getStatements(),shipmentPreference);
82 82 }catch (Exception e){
83 83 throw new ServiceException("sql错误");
84 84 }
... ... @@ -98,7 +98,7 @@ public class ShippingCombinationService {
98 98 }
99 99  
100 100 //根据sql查库存
101   - list=inventoryDetailService.selectBysql(filterConfigDetail.getStatement(),shipmentDetail,filterConfigDetail.getSqll(),shipmentPreference);
  101 + list=inventoryDetailService.selectBysql(filterConfigDetail.getStatement(),shipmentDetail,filterConfigDetail.getStatements(),shipmentPreference);
102 102 return list;
103 103 }
104 104  
... ... @@ -112,7 +112,7 @@ public class ShippingCombinationService {
112 112 }
113 113  
114 114 //根据sql查库存
115   - list=inventoryDetailService.selectBysql(filterConfigDetail.getStatement(),shipmentDetail,filterConfigDetail.getSqll(),shipmentPreference);
  115 + list=inventoryDetailService.selectBysql(filterConfigDetail.getStatement(),shipmentDetail,filterConfigDetail.getStatements(),shipmentPreference);
116 116 return list;
117 117 }
118 118  
... ...
src/main/resources/templates/config/filterConfigDetail/add.html
... ... @@ -24,12 +24,12 @@
24 24 <!--<input id="recordType" name="recordType" class="form-control" type="text">-->
25 25 <!--</div>-->
26 26 <!--</div>-->
27   - <div class="form-group">
28   - <label class="col-sm-3 control-label">条件名:</label>
29   - <div class="col-sm-8">
30   - <input id="filterCode" name="filterCode" class="form-control" type="text">
31   - </div>
32   - </div>
  27 + <!--<div class="form-group">-->
  28 + <!--<label class="col-sm-3 control-label">条件名:</label>-->
  29 + <!--<div class="col-sm-8">-->
  30 + <!--<input id="filterCode" name="filterCode" class="form-control" type="text">-->
  31 + <!--</div>-->
  32 + <!--</div>-->
33 33 <div class="form-group">
34 34 <label class="col-sm-3 control-label">描述:</label>
35 35 <div class="col-sm-8">
... ... @@ -43,6 +43,12 @@
43 43 </div>
44 44 </div>
45 45 <div class="form-group">
  46 + <label class="col-sm-3 control-label">后续分组排序:</label>
  47 + <div class="col-sm-8">
  48 + <input id="statements" name="statements" class="form-control" type="text">
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
46 52 <label class="col-sm-3 control-label">是否系统创建:</label>
47 53 <div class="col-sm-8">
48 54 <div class="onoffswitch">
... ... @@ -82,15 +88,6 @@
82 88 code:{
83 89 required:true,
84 90 },
85   - // moduleType:{
86   - // required:true,
87   - // },
88   - // recordType:{
89   - // required:true,
90   - // },
91   - filterCode:{
92   - required:true,
93   - },
94 91 },
95 92 submitHandler: function(form) {
96 93 // $.operate.save(prefix + "/add", $('#form-locationType-add').serialize());
... ...
src/main/resources/templates/config/filterConfigDetail/edit.html
... ... @@ -25,12 +25,7 @@
25 25 <!--<input id="recordType" name="recordType" class="form-control" type="text" th:field="*{recordType}">-->
26 26 <!--</div>-->
27 27 <!--</div>-->
28   - <div class="form-group">
29   - <label class="col-sm-3 control-label">条件名:</label>
30   - <div class="col-sm-8">
31   - <input id="filterCode" name="filterCode" class="form-control" type="text" th:field="*{filterCode}">
32   - </div>
33   - </div>
  28 +
34 29 <div class="form-group">
35 30 <label class="col-sm-3 control-label">描述:</label>
36 31 <div class="col-sm-8">
... ... @@ -83,15 +78,6 @@
83 78 code:{
84 79 required:true,
85 80 },
86   - // moduleType:{
87   - // required:true,
88   - // },
89   - // recordType:{
90   - // required:true,
91   - // },
92   - filterCode:{
93   - required:true,
94   - },
95 81 },
96 82 submitHandler: function(form) {
97 83 // $.operate.save(prefix + "/add", $('#form-locationType-add').serialize());
... ...
src/main/resources/templates/config/filterConfigDetail/filterConfigDetail.html
... ... @@ -92,6 +92,10 @@
92 92 title : '全SQL'
93 93 },
94 94 {
  95 + field : 'statements',
  96 + title : '后续分组排序'
  97 + },
  98 + {
95 99 field : 'systemCreated',
96 100 title : '是否系统创建',
97 101 formatter: function (value, item, index) {
... ...
src/main/resources/templates/config/waveMaster/add.html
... ... @@ -68,21 +68,25 @@
68 68 <div class="form-group">
69 69 <label class="col-sm-3 control-label">是否补货:</label>
70 70 <div class="col-sm-8">
71   - <div class="radio radio-info radio-inline" style="transform: scale(1.1, 1.1);">
72   - <input type="radio" id="needReplenishment1" name="needReplenishment" value="true" checked="checked"
73   - class="radio_select">
74   - <label for="needReplenishment1">是</label>
75   - </div>
76   - <div class="radio radio-danger radio-inline " style="transform: scale(1.1, 1.1);">
77   - <input type="radio" id="needReplenishment2" name="needReplenishment" value="false">
78   - <label for="needReplenishment2">否</label>
  71 + <div class="onoffswitch">
  72 + <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="needReplenishment" name="needReplenishment">
  73 + <label class="onoffswitch-label" for="needReplenishment">
  74 + <span class="onoffswitch-inner"></span>
  75 + <span class="onoffswitch-switch"></span>
  76 + </label>
79 77 </div>
80 78 </div>
81 79 </div>
82 80 <div class="form-group">
83 81 <label class="col-sm-3 control-label">取消波次时保留补货任务:</label>
84 82 <div class="col-sm-8">
85   - <input id="holdRplnTask" name="holdRplnTask" class="form-control" type="text">
  83 + <div class="onoffswitch">
  84 + <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="holdRplnTask" name="holdRplnTask">
  85 + <label class="onoffswitch-label" for="holdRplnTask">
  86 + <span class="onoffswitch-inner"></span>
  87 + <span class="onoffswitch-switch"></span>
  88 + </label>
  89 + </div>
86 90 </div>
87 91 </div>
88 92 <!--<div class="form-group">
... ...
src/main/resources/templates/config/waveMaster/edit.html
... ... @@ -69,23 +69,28 @@
69 69 <div class="form-group">
70 70 <label class="col-sm-3 control-label">是否补货:</label>
71 71 <div class="col-sm-8">
72   - <div class="radio radio-info radio-inline" style="transform: scale(1.1, 1.1);">
73   - <input type="radio" id="needReplenishment1" name="needReplenishment" value="true" th:field="*{needReplenishment}"
74   - class="radio_select">
75   - <label for="needReplenishment1">是</label>
76   - </div>
77   - <div class="radio radio-danger radio-inline " style="transform: scale(1.1, 1.1);">
78   - <input type="radio" id="needReplenishment2" name="needReplenishment" value="false" th:field="*{needReplenishment}">
79   - <label for="needReplenishment2">否</label>
  72 + <div class="onoffswitch">
  73 + <input type="checkbox" th:checked="*{needReplenishment}" class="onoffswitch-checkbox" id="needReplenishment" name="needReplenishment">
  74 + <label class="onoffswitch-label" for="needReplenishment">
  75 + <span class="onoffswitch-inner"></span>
  76 + <span class="onoffswitch-switch"></span>
  77 + </label>
80 78 </div>
81 79 </div>
82 80 </div>
83 81 <div class="form-group">
84 82 <label class="col-sm-3 control-label">取消波次时保留补货任务:</label>
85 83 <div class="col-sm-8">
86   - <input id="holdRplnTask" name="holdRplnTask" class="form-control" type="text" th:field="*{holdRplnTask}">
  84 + <div class="onoffswitch">
  85 + <input type="checkbox" th:checked="*{holdRplnTask}" class="onoffswitch-checkbox" id="holdRplnTask" name="holdRplnTask">
  86 + <label class="onoffswitch-label" for="holdRplnTask">
  87 + <span class="onoffswitch-inner"></span>
  88 + <span class="onoffswitch-switch"></span>
  89 + </label>
  90 + </div>
87 91 </div>
88 92 </div>
  93 +
89 94 <!--<div class="form-group">
90 95 <label class="col-sm-3 control-label">数据版本:</label>
91 96 <div class="col-sm-8">
... ...
src/main/resources/templates/config/waveMaster/waveMaster.html
... ... @@ -104,8 +104,8 @@
104 104 <div class="tab-pane fade" id="tabDetail">
105 105  
106 106 <div class="btn-group hidden-xs" id="toolbar2" role="group">
107   - <a class="btn btn-outline btn-success btn-rounded" onclick="detailAdd()"
108   - shiro:hasPermission="config:waveFlowHeader:add">
  107 + <a class="btn btn-outline btn-success btn-rounded" onclick="detailAdd()" style="display:none;"
  108 + id="detailAdd" shiro:hasPermission="config:waveFlowHeader:add">
109 109 <i class="fa fa-plus"></i> 新增
110 110 </a>
111 111 <a class="btn btn-outline btn-danger btn-rounded" onclick="detailBatRemove()"
... ... @@ -216,7 +216,15 @@
216 216 },
217 217 {
218 218 field : 'holdRplnTask',
219   - title : '取消波次时保留补货任务'
  219 + title : '取消波次时保留补货任务',
  220 + formatter: function (value, item, index) {
  221 + if (value==true) {
  222 + return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
  223 + }
  224 + else if (value==false) {
  225 + return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
  226 + }
  227 + }
220 228 },
221 229 {
222 230 field : 'created',
... ... @@ -524,6 +532,7 @@
524 532  
525 533 function detailReg(rowId){
526 534 headerId = rowId;
  535 + $("#detailAdd").css("display","block");
527 536 detail();
528 537 }
529 538  
... ... @@ -598,7 +607,7 @@
598 607 }
599 608  
600 609 function detailAdd() {
601   - var url = prefix2+"/add";
  610 + var url = prefix2+"/add/"+headerId;
602 611 $.modal.open("添加明细", url);
603 612 }
604 613  
... ...