Commit 08a919abbc456fc8900723932bae74b4c7575d7d

Authored by 魏娟
2 parents b11d0057 b74f7612

Merge branch 'WMSV2-HH' of http://172.16.29.40:8010/wms/wms2 into WMSV2-HH

# Conflicts:
#	.idea/workspace.xml
.idea/misc.xml
@@ -14,4 +14,7 @@ @@ -14,4 +14,7 @@
14 <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK"> 14 <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
15 <output url="file://$PROJECT_DIR$/out" /> 15 <output url="file://$PROJECT_DIR$/out" />
16 </component> 16 </component>
  17 + <component name="SuppressionsComponent">
  18 + <option name="suppComments" value="[]" />
  19 + </component>
17 </project> 20 </project>
18 \ No newline at end of file 21 \ No newline at end of file
.idea/modules.xml deleted
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<project version="4">  
3 - <component name="ProjectModuleManager">  
4 - <modules>  
5 - <module fileurl="file://$PROJECT_DIR$/.idea/wms2.iml" filepath="$PROJECT_DIR$/.idea/wms2.iml" />  
6 - </modules>  
7 - </component>  
8 -</project>  
9 \ No newline at end of file 0 \ No newline at end of file
src/main/java/com/huaheng/pc/config/warehouse/controller/WareHouseController.java
@@ -179,4 +179,5 @@ public class WareHouseController extends BaseController { @@ -179,4 +179,5 @@ public class WareHouseController extends BaseController {
179 public AjaxResult copySave(String newWarehouseCode) { 179 public AjaxResult copySave(String newWarehouseCode) {
180 return toAjax(warehouseService.warehouseCopy(ShiroUtils.getWarehouseCode(), newWarehouseCode)); 180 return toAjax(warehouseService.warehouseCopy(ShiroUtils.getWarehouseCode(), newWarehouseCode));
181 } 181 }
  182 +
182 } 183 }
src/main/java/com/huaheng/pc/config/warehouse/service/WarehouseServiceImpl.java
@@ -209,4 +209,9 @@ public class WarehouseServiceImpl extends ServiceImpl&lt;WarehouseMapper, Warehouse @@ -209,4 +209,9 @@ public class WarehouseServiceImpl extends ServiceImpl&lt;WarehouseMapper, Warehouse
209 public List<Warehouse> selectListEntityByEqual(Warehouse condition) { 209 public List<Warehouse> selectListEntityByEqual(Warehouse condition) {
210 return warehouseMapper.selectListEntityByEqual(condition); 210 return warehouseMapper.selectListEntityByEqual(condition);
211 } 211 }
  212 +
  213 +
  214 + public List<Warehouse> getWarehouse(){
  215 + return this.list();
  216 + }
212 } 217 }
src/main/resources/templates/config/receiptPreference/add.html
@@ -6,13 +6,21 @@ @@ -6,13 +6,21 @@
6 <div class="wrapper wrapper-content animated fadeInRight ibox-content"> 6 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
7 <form class="form-horizontal m" id="form-receiptPreference-add"> 7 <form class="form-horizontal m" id="form-receiptPreference-add">
8 <div class="form-group"> 8 <div class="form-group">
9 - <label class="col-sm-3 control-label">编码:</label> 9 + <label class="col-sm-3 control-label">仓库:</label>
  10 + <div class="col-sm-8">
  11 + <select name="warehousecode" id="warehouse" class="form-control" th:with="warehouseList=${@WarehouseService.getWarehouse()}">
  12 + <option th:each="warehouse : ${warehouseList}" th:text="${warehouse['name']}" th:value="${warehouse['code']}"></option>
  13 + </select>
  14 + </div>
  15 + </div>
  16 + <div class="form-group">
  17 + <label class="col-sm-3 control-label">首选项代码:</label>
10 <div class="col-sm-8"> 18 <div class="col-sm-8">
11 <input id="code" name="code" class="form-control" type="text"> 19 <input id="code" name="code" class="form-control" type="text">
12 </div> 20 </div>
13 </div> 21 </div>
14 <div class="form-group"> 22 <div class="form-group">
15 - <label class="col-sm-3 control-label">名称:</label> 23 + <label class="col-sm-3 control-label">首选项名字:</label>
16 <div class="col-sm-8"> 24 <div class="col-sm-8">
17 <input id="name" name="name" class="form-control" type="text"> 25 <input id="name" name="name" class="form-control" type="text">
18 </div> 26 </div>
@@ -20,9 +28,10 @@ @@ -20,9 +28,10 @@
20 <div class="form-group"> 28 <div class="form-group">
21 <label class="col-sm-3 control-label">入库流程:</label> 29 <label class="col-sm-3 control-label">入库流程:</label>
22 <div class="col-sm-8"> 30 <div class="col-sm-8">
23 - <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}"> 31 + <select id="receiptFlow" name="receivingflow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}">
24 <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> 32 <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option>
25 </select> 33 </select>
  34 +
26 </div> 35 </div>
27 </div> 36 </div>
28 <div class="form-group"> 37 <div class="form-group">
@@ -101,43 +110,59 @@ @@ -101,43 +110,59 @@
101 <div class="form-group"> 110 <div class="form-group">
102 <label class="col-sm-3 control-label">RF逐件收货:</label> 111 <label class="col-sm-3 control-label">RF逐件收货:</label>
103 <div class="col-sm-8"> 112 <div class="col-sm-8">
104 - <input id="checkinByPiece" name="checkinByPiece" class="form-control" type="text"> 113 +<!-- <input id="checkinByPiece" name="checkinByPiece" class="form-control" type="text">-->
  114 + <select name="checkinByPiece" class="form-control" type="text" id="checkinByPiece">
  115 + <option value="0">否</option>
  116 + <option value="-1">是</option>
  117 + </select>
105 </div> 118 </div>
106 </div> 119 </div>
107 <div class="form-group"> 120 <div class="form-group">
108 <label class="col-sm-3 control-label">RF自动提交收货:</label> 121 <label class="col-sm-3 control-label">RF自动提交收货:</label>
109 <div class="col-sm-8"> 122 <div class="col-sm-8">
110 - <input id="pieceConfirm" name="pieceConfirm" class="form-control" type="text"> 123 +<!-- <input id="pieceConfirm" name="pieceConfirm" class="form-control" type="text">-->
  124 + <select id="pieceConfirm" name="pieceConfirm" class="form-control" type="text">
  125 + <option value="0">否</option>
  126 + <option value="-1">是</option>
  127 + </select>
111 </div> 128 </div>
112 </div> 129 </div>
113 <div class="form-group"> 130 <div class="form-group">
114 <label class="col-sm-3 control-label">abc分类:</label> 131 <label class="col-sm-3 control-label">abc分类:</label>
115 <div class="col-sm-8"> 132 <div class="col-sm-8">
116 - <input id="abcClass" name="abcClass" class="form-control" type="text"> 133 +<!-- <input id="abcClass" name="allowoverreceiving" class="form-control" type="text">-->
  134 + <select id="abcClass" name="allowoverreceiving" class="form-control" type="text">
  135 + <option value="0">否</option>
  136 + <option value="-1">是</option>
  137 + </select>
117 </div> 138 </div>
118 </div> 139 </div>
119 <div class="form-group"> 140 <div class="form-group">
120 <label class="col-sm-3 control-label">保质期(天):</label> 141 <label class="col-sm-3 control-label">保质期(天):</label>
121 <div class="col-sm-8"> 142 <div class="col-sm-8">
122 - <input id="daysToExpire" name="daysToExpire" class="form-control" type="text"> 143 + <input id="daysToExpire" name="daystoexpire" class="form-control" type="number">
123 </div> 144 </div>
124 </div> 145 </div>
125 <div class="form-group"> 146 <div class="form-group">
126 - <label class="col-sm-3 control-label">临期预警(天):</label> 147 + <label class="col-sm-3 control-label">临期预警:</label>
127 <div class="col-sm-8"> 148 <div class="col-sm-8">
128 - <input id="expiringDays" name="expiringDays" class="form-control" type="text"> 149 +<!-- <input id="expiringDays" name="expiringdays" class="form-control" type="text">-->
  150 + <select id="expiringDays" name="expiringdays" class="form-control" type="text">
  151 + <option value="0">否</option>
  152 + <option value="-1">是</option>
  153 + </select>
129 </div> 154 </div>
130 </div> 155 </div>
131 <div class="form-group"> 156 <div class="form-group">
132 <label class="col-sm-3 control-label">收货预警(天):</label> 157 <label class="col-sm-3 control-label">收货预警(天):</label>
133 <div class="col-sm-8"> 158 <div class="col-sm-8">
134 - <input id="minShelfLifeDays" name="minShelfLifeDays" class="form-control" type="text"> 159 + <input id="minShelfLifeDays" name="minshelflifedays" class="form-control" type="number">
135 </div> 160 </div>
136 </div> 161 </div>
137 <div class="form-group"> 162 <div class="form-group">
138 <label class="col-sm-3 control-label">RF快速上架:</label> 163 <label class="col-sm-3 control-label">RF快速上架:</label>
139 <div class="col-sm-8"> 164 <div class="col-sm-8">
140 - <select id="allowQuickPutaway" name="allowQuickPutaway" class="form-control"> 165 + <select id="allowQuickPutaway" name="allowquickputaway" class="form-control">
141 <option value="0">是</option> 166 <option value="0">是</option>
142 <option value="1">否</option> 167 <option value="1">否</option>
143 </select> 168 </select>
@@ -146,13 +171,13 @@ @@ -146,13 +171,13 @@
146 <div class="form-group"> 171 <div class="form-group">
147 <label class="col-sm-3 control-label">属性模板:</label> 172 <label class="col-sm-3 control-label">属性模板:</label>
148 <div class="col-sm-8"> 173 <div class="col-sm-8">
149 - <input id="attributeTemplateCode" name="attributeTemplateCode" class="form-control" type="text"> 174 + <input id="attributeTemplateCode" name="attributetemplatecode" class="form-control" type="text">
150 </div> 175 </div>
151 </div> 176 </div>
152 <div class="form-group"> 177 <div class="form-group">
153 <label class="col-sm-3 control-label">快速入库:</label> 178 <label class="col-sm-3 control-label">快速入库:</label>
154 <div class="col-sm-8"> 179 <div class="col-sm-8">
155 - <select id="useQuickCheckIn" name="useQuickCheckIn" class="form-control"> 180 + <select id="usequickcheckin" name="useQuickCheckIn" class="form-control">
156 <option value="0">是</option> 181 <option value="0">是</option>
157 <option value="1">否</option> 182 <option value="1">否</option>
158 </select> 183 </select>
@@ -298,8 +323,29 @@ @@ -298,8 +323,29 @@
298 tableValue = formValueReplace(tableValue, "emptyLocRule", $("#emptyLocRule option:selected").val()); 323 tableValue = formValueReplace(tableValue, "emptyLocRule", $("#emptyLocRule option:selected").val());
299 tableValue = formValueReplace(tableValue, "useQuickCheckIn", $("#useQuickCheckIn option:selected").val()); 324 tableValue = formValueReplace(tableValue, "useQuickCheckIn", $("#useQuickCheckIn option:selected").val());
300 tableValue = formValueReplace(tableValue, "allowQuickPutaway", $("#allowQuickPutaway option:selected").val()); 325 tableValue = formValueReplace(tableValue, "allowQuickPutaway", $("#allowQuickPutaway option:selected").val());
  326 + tableValue = formValueReplace(tableValue, "warehousecode", $("#allowQuickPutaway option:selected").val());
301 $.operate.save(prefix + "/add", tableValue); 327 $.operate.save(prefix + "/add", tableValue);
302 } 328 }
  329 +
  330 +
  331 + });
  332 + $(function () {
  333 + $.ajax({
  334 + url: "../getWarehouseByUserCode",
  335 + type: 'post',
  336 + dataType: "json",
  337 + data: {
  338 + username: "fxh"
  339 + },
  340 + success: function (value) {
  341 + // console.log(value.data);
  342 + $("#warehouse").contents().remove();
  343 + if (value != null && value.data.length >= 1)
  344 + for (var i = 0; i < value.data.length; i++) {
  345 + $('<option value=' + value.data[i].id + ' code=' + value.data[i].code + '>' + value.data[i].name + '</option>').appendTo('#warehouse');
  346 + }
  347 + }
  348 + })
303 }); 349 });
304 </script> 350 </script>
305 </body> 351 </body>
src/main/resources/templates/config/receiptPreference/edit.html
@@ -7,13 +7,13 @@ @@ -7,13 +7,13 @@
7 <form class="form-horizontal m" id="form-receiptPreference-edit" th:object="${receiptPreference}"> 7 <form class="form-horizontal m" id="form-receiptPreference-edit" th:object="${receiptPreference}">
8 <input id="id" name="id" th:field="*{id}" type="hidden"> 8 <input id="id" name="id" th:field="*{id}" type="hidden">
9 <div class="form-group"> 9 <div class="form-group">
10 - <label class="col-sm-3 control-label">码:</label> 10 + <label class="col-sm-3 control-label">首选项代码:</label>
11 <div class="col-sm-8"> 11 <div class="col-sm-8">
12 <input id="code" name="code" class="form-control" type="text" th:field="*{code}"> 12 <input id="code" name="code" class="form-control" type="text" th:field="*{code}">
13 </div> 13 </div>
14 </div> 14 </div>
15 <div class="form-group"> 15 <div class="form-group">
16 - <label class="col-sm-3 control-label">名称:</label> 16 + <label class="col-sm-3 control-label">首选项名字:</label>
17 <div class="col-sm-8"> 17 <div class="col-sm-8">
18 <input id="name" name="name" class="form-control" type="text" th:field="*{name}"> 18 <input id="name" name="name" class="form-control" type="text" th:field="*{name}">
19 </div> 19 </div>
@@ -103,37 +103,53 @@ @@ -103,37 +103,53 @@
103 <div class="form-group"> 103 <div class="form-group">
104 <label class="col-sm-3 control-label">RF逐件收货:</label> 104 <label class="col-sm-3 control-label">RF逐件收货:</label>
105 <div class="col-sm-8"> 105 <div class="col-sm-8">
106 - <input id="checkinByPiece" name="checkinByPiece" class="form-control" type="text" th:field="*{checkinByPiece}"> 106 +<!-- <input id="checkinByPiece" name="checkinByPiece" class="form-control" type="text" th:field="*{checkinByPiece}">-->
  107 + <select id="checkinByPiece" name="checkinByPiece" class="form-control" type="text" th:field="*{checkinByPiece}">
  108 + <option value="0">否</option>
  109 + <option value="-1">是</option>
  110 + </select>
107 </div> 111 </div>
108 </div> 112 </div>
109 <div class="form-group"> 113 <div class="form-group">
110 <label class="col-sm-3 control-label">RF自动提交收货:</label> 114 <label class="col-sm-3 control-label">RF自动提交收货:</label>
111 <div class="col-sm-8"> 115 <div class="col-sm-8">
112 - <input id="pieceConfirm" name="pieceConfirm" class="form-control" type="text" th:field="*{pieceConfirm}"> 116 +<!-- <input id="pieceConfirm" name="pieceConfirm" class="form-control" type="text" th:field="*{pieceConfirm}">-->
  117 + <select id="pieceConfirm" name="pieceConfirm" class="form-control" type="text" th:field="*{pieceConfirm}">
  118 + <option value="0">否</option>
  119 + <option value="-1">是</option>
  120 + </select>
113 </div> 121 </div>
114 </div> 122 </div>
115 <div class="form-group"> 123 <div class="form-group">
116 <label class="col-sm-3 control-label">abc分类:</label> 124 <label class="col-sm-3 control-label">abc分类:</label>
117 <div class="col-sm-8"> 125 <div class="col-sm-8">
118 - <input id="abcClass" name="abcClass" class="form-control" type="text" th:field="*{abcClass}"> 126 +<!-- <input id="abcClass" name="allowoverreceiving" class="form-control" type="text" th:field="*{abcClass}">-->
  127 + <select id="abcClass" name="allowoverreceiving" class="form-control" type="text" th:field="*{abcClass}">
  128 + <option value="0">否</option>
  129 + <option value="-1">是</option>
  130 + </select>
119 </div> 131 </div>
120 </div> 132 </div>
121 <div class="form-group"> 133 <div class="form-group">
122 <label class="col-sm-3 control-label">保质期(天):</label> 134 <label class="col-sm-3 control-label">保质期(天):</label>
123 <div class="col-sm-8"> 135 <div class="col-sm-8">
124 - <input id="daysToExpire" name="daysToExpire" class="form-control" type="text" th:field="*{daysToExpire}"> 136 + <input id="daysToExpire" name="daysToExpire" class="form-control" type="number" th:field="*{daysToExpire}">
125 </div> 137 </div>
126 </div> 138 </div>
127 <div class="form-group"> 139 <div class="form-group">
128 - <label class="col-sm-3 control-label">临期预警(天):</label> 140 + <label class="col-sm-3 control-label">临期预警:</label>
129 <div class="col-sm-8"> 141 <div class="col-sm-8">
130 - <input id="expiringDays" name="expiringDays" class="form-control" type="text" th:field="*{expiringDays}"> 142 +<!-- <input id="expiringDays" name="expiringDays" class="form-control" type="text" th:field="*{expiringDays}">-->
  143 + <select id="expiringDays" name="expiringDays" class="form-control" type="text" th:field="*{expiringDays}">
  144 + <option value="0">否</option>
  145 + <option value="-1">是</option>
  146 + </select>
131 </div> 147 </div>
132 </div> 148 </div>
133 <div class="form-group"> 149 <div class="form-group">
134 <label class="col-sm-3 control-label">收货预警(天):</label> 150 <label class="col-sm-3 control-label">收货预警(天):</label>
135 <div class="col-sm-8"> 151 <div class="col-sm-8">
136 - <input id="minShelfLifeDays" name="minShelfLifeDays" class="form-control" type="text" th:field="*{minShelfLifeDays}"> 152 + <input id="minShelfLifeDays" name="minShelfLifeDays" class="form-control" type="number" th:field="*{minShelfLifeDays}">
137 </div> 153 </div>
138 </div> 154 </div>
139 <div class="form-group"> 155 <div class="form-group">
src/main/resources/templates/config/receiptPreference/list.html
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> 2 <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
3 <meta charset="utf-8"> 3 <meta charset="utf-8">
4 -<head th:include="include :: header"></head> 4 +<head th:include="include :: header">
  5 +
  6 +</head>
5 <body class="gray-bg"> 7 <body class="gray-bg">
6 <div class="container-div"> 8 <div class="container-div">
7 <div class="row"> 9 <div class="row">
@@ -12,7 +14,8 @@ @@ -12,7 +14,8 @@
12 <ul> 14 <ul>
13 <li> 15 <li>
14 <label>仓库:</label> 16 <label>仓库:</label>
15 - <input type="text" name="warehousecode"/> 17 + <select name="warehousecode" id="warehouse" >
  18 + </select>
16 </li> 19 </li>
17 <li> 20 <li>
18 <label>首选项代码:</label> 21 <label>首选项代码:</label>
@@ -26,13 +29,13 @@ @@ -26,13 +29,13 @@
26 <label>入库流程:</label> 29 <label>入库流程:</label>
27 <input type="text" name="receivingflow"/> 30 <input type="text" name="receivingflow"/>
28 </li> 31 </li>
29 - <li class="select-time"> 32 + <li class="time">
30 <label>创建时间:</label> 33 <label>创建时间:</label>
31 <input type="text" class="time-input" id="startTime" placeholder="开始时间" 34 <input type="text" class="time-input" id="startTime" placeholder="开始时间"
32 - name="params[beginCreated]"/> 35 + name="beginCreated" />
33 <span>-</span> 36 <span>-</span>
34 <input type="text" class="time-input" id="endTime" placeholder="结束时间" 37 <input type="text" class="time-input" id="endTime" placeholder="结束时间"
35 - name="params[endCreated]"/> 38 + name="endCreated"/>
36 </li> 39 </li>
37 40
38 <li> 41 <li>
@@ -52,7 +55,10 @@ @@ -52,7 +55,10 @@
52 </li> 55 </li>
53 <li> 56 <li>
54 <label>自动定位:</label> 57 <label>自动定位:</label>
55 - <input type="text" name="autolocate"/> 58 + <select name="autolocate">
  59 + <option value="0">否</option>
  60 + <option value="-1">是</option>
  61 + </select>
56 </li> 62 </li>
57 <li> 63 <li>
58 <label>RF显示未收数量:</label> 64 <label>RF显示未收数量:</label>
@@ -76,34 +82,46 @@ @@ -76,34 +82,46 @@
76 </li> 82 </li>
77 <li> 83 <li>
78 <label>RF逐件收货:</label> 84 <label>RF逐件收货:</label>
79 - <input type="text" name="checkinbypiece"/> 85 + <select name="checkinbypiece">
  86 + <option value="0">否</option>
  87 + <option value="-1">是</option>
  88 + </select>
80 </li> 89 </li>
81 <li> 90 <li>
82 <label>RF自动提交收货:</label> 91 <label>RF自动提交收货:</label>
83 - <input type="text" name="piececonfirm"/> 92 + <select name="piececonfirm">
  93 + <option value="0">否</option>
  94 + <option value="-1">是</option>
  95 + </select>
84 </li> 96 </li>
85 <li> 97 <li>
86 <label>abc分类:</label> 98 <label>abc分类:</label>
87 <select name="allowoverreceiving"> 99 <select name="allowoverreceiving">
88 - <option value="">0否</option>  
89 - <option value="-1">1是</option> 100 + <option value="0">否</option>
  101 + <option value="-1">是</option>
90 </select> 102 </select>
91 </li> 103 </li>
92 <li> 104 <li>
93 - <label>保质期:</label>  
94 - <input type="text" name="daystoexpire"/> 105 + <label>保质期(天):</label>
  106 + <input type="number" name="daystoexpire"/>
95 </li> 107 </li>
96 <li> 108 <li>
97 <label>临期预警:</label> 109 <label>临期预警:</label>
98 - <input type="text" name="expiringdays"/> 110 + <select name="expiringdays">
  111 + <option value="0">否</option>
  112 + <option value="-1">是</option>
  113 + </select>
99 </li> 114 </li>
100 <li> 115 <li>
101 <label>收货预警(天):</label> 116 <label>收货预警(天):</label>
102 - <input type="text" name="minshelflifedays"/> 117 + <input type="number" name="minshelflifedays"/>
103 </li> 118 </li>
104 <li> 119 <li>
105 <label>RF快速上架:</label> 120 <label>RF快速上架:</label>
106 - <input type="text" name="allowquickputaway"/> 121 + <select name="allowquickputaway">
  122 + <option value="0">否</option>
  123 + <option value="-1">是</option>
  124 + </select>
107 </li> 125 </li>
108 <li> 126 <li>
109 <label>属性模板:</label> 127 <label>属性模板:</label>
@@ -111,7 +129,10 @@ @@ -111,7 +129,10 @@
111 </li> 129 </li>
112 <li> 130 <li>
113 <label>快速入库:</label> 131 <label>快速入库:</label>
114 - <input type="text" name="usequickcheckin"/> 132 + <select name="usequickcheckin">
  133 + <option value="0">否</option>
  134 + <option value="-1">是</option>
  135 + </select>
115 </li> 136 </li>
116 <li> 137 <li>
117 <label>创建用户:</label> 138 <label>创建用户:</label>
@@ -119,7 +140,10 @@ @@ -119,7 +140,10 @@
119 </li> 140 </li>
120 <li> 141 <li>
121 <label>更新用户:</label> 142 <label>更新用户:</label>
122 - <input type="text" name="lastupdatedby"/> 143 + <select name="lastupdatedby">
  144 + <option value="0">否</option>
  145 + <option value="-1">是</option>
  146 + </select>
123 </li> 147 </li>
124 148
125 <p style=" float:right;text-align: right; padding:10px 50px 0 0"> 149 <p style=" float:right;text-align: right; padding:10px 50px 0 0">
@@ -281,6 +305,7 @@ @@ -281,6 +305,7 @@
281 305
282 </div> 306 </div>
283 <div th:include="include :: footer"></div> 307 <div th:include="include :: footer"></div>
  308 +
284 <script th:inline="javascript"> 309 <script th:inline="javascript">
285 var editFlag = [[${@permission.hasPermi('task:receiptPreference:edit')}]]; 310 var editFlag = [[${@permission.hasPermi('task:receiptPreference:edit')}]];
286 var removeFlag = [[${@permission.hasPermi('task:receiptPreference:remove')}]]; 311 var removeFlag = [[${@permission.hasPermi('task:receiptPreference:remove')}]];
@@ -305,105 +330,321 @@ @@ -305,105 +330,321 @@
305 field: 'warehousecode', 330 field: 'warehousecode',
306 title: '仓库' 331 title: '仓库'
307 }, 332 },
  333 + // {
  334 + // field: 'warehousecode',
  335 + // title: '仓库',
  336 + // width: "10%",
  337 + // formatter: function (value, row, index) {
  338 + // var data = [{ index: index, warehousecode: value }];
  339 + // return $("#javaTypeTpl").tmpl(data).html();
  340 + // }
  341 + // },
308 { 342 {
309 field: 'code', 343 field: 'code',
310 title: '首选项代码' 344 title: '首选项代码'
311 }, 345 },
  346 + // {
  347 + // field: 'name',
  348 + // title: '首选项名字'
  349 + // },
312 { 350 {
313 field: 'name', 351 field: 'name',
314 - title: '首选项名字' 352 + title: '首选项名字',
  353 + width: "10%",
  354 + formatter: function (value, row, index) {
  355 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  356 + return html;
  357 + }
315 }, 358 },
  359 + // {
  360 + // field: 'receivingflow',
  361 + // title: '入库流程'
  362 + // },
316 { 363 {
317 field: 'receivingflow', 364 field: 'receivingflow',
318 - title: '入库流程' 365 + title: '入库流程',
  366 + width: "10%",
  367 + formatter: function (value, row, index) {
  368 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  369 + return html;
  370 + }
319 }, 371 },
  372 + // {
  373 + // field: 'autoassignlpn',
  374 + // title: '自动生成托盘号'
  375 + // },
320 { 376 {
321 field: 'autoassignlpn', 377 field: 'autoassignlpn',
322 - title: '自动生成托盘号' 378 + title: '自动生成托盘号',
  379 + width: "10%",
  380 + formatter: function (value, row, index) {
  381 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  382 + return html;
  383 + }
323 }, 384 },
  385 + // {
  386 + // field: 'allowoverreceiving',
  387 + // title: '允许超收'
  388 + // },
324 { 389 {
325 field: 'allowoverreceiving', 390 field: 'allowoverreceiving',
326 - title: '允许超收' 391 + title: '允许超收',
  392 + width: "10%",
  393 + formatter: function (value, row, index) {
  394 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  395 + return html;
  396 + }
327 }, 397 },
  398 + // {
  399 + // field: 'allowoverreceivingqty',
  400 + // title: '允许超收范围'
  401 + // },
328 { 402 {
329 field: 'allowoverreceivingqty', 403 field: 'allowoverreceivingqty',
330 - title: '允许超收范围' 404 + title: '允许超收范围',
  405 + width: "10%",
  406 + formatter: function (value, row, index) {
  407 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  408 + return html;
  409 + }
331 }, 410 },
  411 + // {
  412 + // field: 'autolocate',
  413 + // title: '自动定位'
  414 + // },
332 { 415 {
333 field: 'autolocate', 416 field: 'autolocate',
334 - title: '自动定位' 417 + title: '自动定位',
  418 + width: "5%",
  419 + formatter: function (value, row, index) {
  420 + var isCheck = value == 1 ? 'checked' : '';
  421 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  422 + return html;
  423 + }
335 }, 424 },
  425 + // {
  426 + // field: 'showopenqty',
  427 + // title: 'RF显示未收数量'
  428 + // },
336 { 429 {
337 field: 'showopenqty', 430 field: 'showopenqty',
338 - title: 'RF显示未收数量' 431 + title: 'RF显示未收数量',
  432 + width: "10%",
  433 + formatter: function (value, row, index) {
  434 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  435 + return html;
  436 + }
339 }, 437 },
  438 +
  439 + // {
  440 + // field: 'groupputaway',
  441 + // title: 'RF组车收货'
  442 + // },
340 { 443 {
341 field: 'groupputaway', 444 field: 'groupputaway',
342 - title: 'RF组车收货' 445 + title: 'RF组车收货',
  446 + width: "5%",
  447 + formatter: function (value, row, index) {
  448 + var isCheck = value == 1 ? 'checked' : '';
  449 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  450 + return html;
  451 + }
343 }, 452 },
  453 + // {
  454 + // field: 'manuallybuildlpn',
  455 + // title: '人工组盘'
  456 + // },
344 { 457 {
345 field: 'manuallybuildlpn', 458 field: 'manuallybuildlpn',
346 - title: '人工组盘' 459 + title: '人工组盘',
  460 + width: "10%",
  461 + formatter: function (value, row, index) {
  462 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  463 + return html;
  464 + }
347 }, 465 },
  466 + // {
  467 + // field: 'locationrule',
  468 + // title: '定位规则'
  469 + // },
348 { 470 {
349 field: 'locationrule', 471 field: 'locationrule',
350 - title: '定位规则' 472 + title: '定位规则',
  473 + width: "10%",
  474 + formatter: function (value, row, index) {
  475 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  476 + return html;
  477 + }
351 }, 478 },
  479 + // {
  480 + // field: 'emptylocrule',
  481 + // title: '空库位规则'
  482 + // },
352 { 483 {
353 field: 'emptylocrule', 484 field: 'emptylocrule',
354 - title: '空库位规则' 485 + title: '空库位规则',
  486 + width: "10%",
  487 + formatter: function (value, row, index) {
  488 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  489 + return html;
  490 + }
355 }, 491 },
  492 + // {
  493 + // field: 'checkinbypiece',
  494 + // title: 'RF逐件收货'
  495 + // },
356 { 496 {
357 field: 'checkinbypiece', 497 field: 'checkinbypiece',
358 - title: 'RF逐件收货' 498 + title: 'RF逐件收货',
  499 + width: "5%",
  500 + formatter: function (value, row, index) {
  501 + var isCheck = value == 1 ? 'checked' : '';
  502 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  503 + return html;
  504 + }
359 }, 505 },
  506 + // {
  507 + // field: 'piececonfirm',
  508 + // title: 'RF自动提交收货'
  509 + // },
360 { 510 {
361 field: 'piececonfirm', 511 field: 'piececonfirm',
362 - title: 'RF自动提交收货' 512 + title: 'RF自动提交收货',
  513 + width: "5%",
  514 + formatter: function (value, row, index) {
  515 + var isCheck = value == 1 ? 'checked' : '';
  516 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  517 + return html;
  518 + }
363 }, 519 },
  520 + // {
  521 + // field: 'abcclass',
  522 + // title: 'abc分类 0 否 1是'
  523 + // },
364 { 524 {
365 field: 'abcclass', 525 field: 'abcclass',
366 - title: 'abc分类 0 否 1是' 526 + title: 'abc分类',
  527 + width: "5%",
  528 + formatter: function (value, row, index) {
  529 + var isCheck = value == 1 ? 'checked' : '';
  530 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  531 + return html;
  532 + }
367 }, 533 },
  534 + // {
  535 + // field: 'daystoexpire',
  536 + // title: '保质期'
  537 + // },
368 { 538 {
369 field: 'daystoexpire', 539 field: 'daystoexpire',
370 - title: '保质期' 540 + title: '保质期',
  541 + width: "10%",
  542 + formatter: function (value, row, index) {
  543 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  544 + return html;
  545 + }
371 }, 546 },
  547 + // {
  548 + // field: 'expiringdays',
  549 + // title: '临期预警'
  550 + // },
372 { 551 {
373 field: 'expiringdays', 552 field: 'expiringdays',
374 - title: '临期预警' 553 + title: '临期预警',
  554 + width: "5%",
  555 + formatter: function (value, row, index) {
  556 + var isCheck = value == 1 ? 'checked' : '';
  557 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  558 + return html;
  559 + }
375 }, 560 },
  561 + // {
  562 + // field: 'minshelflifedays',
  563 + // title: '收货预警(天)'
  564 + // },
376 { 565 {
377 field: 'minshelflifedays', 566 field: 'minshelflifedays',
378 - title: '收货预警(天)' 567 + title: '收货预警(天)',
  568 + width: "10%",
  569 + formatter: function (value, row, index) {
  570 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  571 + return html;
  572 + }
379 }, 573 },
  574 + // {
  575 + // field: 'allowquickputaway',
  576 + // title: 'RF快速上架'
  577 + // },
380 { 578 {
381 field: 'allowquickputaway', 579 field: 'allowquickputaway',
382 - title: 'RF快速上架' 580 + title: 'RF快速上架',
  581 + width: "5%",
  582 + formatter: function (value, row, index) {
  583 + var isCheck = value == 1 ? 'checked' : '';
  584 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  585 + return html;
  586 + }
383 }, 587 },
  588 + // {
  589 + // field: 'attributetemplatecode',
  590 + // title: '属性模板'
  591 + // },
384 { 592 {
385 field: 'attributetemplatecode', 593 field: 'attributetemplatecode',
386 - title: '属性模板' 594 + title: '属性模板',
  595 + width: "10%",
  596 + formatter: function (value, row, index) {
  597 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  598 + return html;
  599 + }
387 }, 600 },
  601 + // {
  602 + // field: 'usequickcheckin',
  603 + // title: '快速入库'
  604 + // },
388 { 605 {
389 field: 'usequickcheckin', 606 field: 'usequickcheckin',
390 - title: '快速入库' 607 + title: '快速入库',
  608 + width: "10%",
  609 + formatter: function (value, row, index) {
  610 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  611 + return html;
  612 + }
391 }, 613 },
392 { 614 {
393 field: 'created', 615 field: 'created',
394 title: '创建时间' 616 title: '创建时间'
395 }, 617 },
  618 + // {
  619 + // field: 'createdby',
  620 + // title: '创建用户'
  621 + // },
396 { 622 {
397 field: 'createdby', 623 field: 'createdby',
398 - title: '创建用户'  
399 - },  
400 - {  
401 - field: 'lastupdated',  
402 - title: '创建时间' 624 + title: '创建用户',
  625 + width: "10%",
  626 + formatter: function (value, row, index) {
  627 + var html = $.common.sprintf("<input class='form-control' type='text' name='columns[%s].columnComment' value='%s'>", index, $.common.nullToStr(value));
  628 + return html;
  629 + }
403 }, 630 },
  631 + // {
  632 + // field: 'lastupdated',
  633 + // title: '创建时间'
  634 + // },
  635 + // {
  636 + // field: 'lastupdatedby',
  637 + // title: '更新用户'
  638 + // },
404 { 639 {
405 field: 'lastupdatedby', 640 field: 'lastupdatedby',
406 - title: '更新用户' 641 + title: '更新用户',
  642 + width: "5%",
  643 + formatter: function (value, row, index) {
  644 + var isCheck = value == 1 ? 'checked' : '';
  645 + var html = $.common.sprintf("<label class='check-box'><input type='checkbox' name='columns[%s].isInsert' value='1' %s></label>", index, isCheck);
  646 + return html;
  647 + }
407 }, 648 },
408 649
409 { 650 {
@@ -417,11 +658,7 @@ @@ -417,11 +658,7 @@
417 }] 658 }]
418 }; 659 };
419 $.table.init(options); 660 $.table.init(options);
420 - });  
421 -</script>  
422 -<script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script>  
423 -<script>  
424 - $(document).ready(function(){ 661 +
425 var a =$(".box2 ul li:gt(3):not(:last)"); 662 var a =$(".box2 ul li:gt(3):not(:last)");
426 a.hide(); 663 a.hide();
427 $(".boxdown").click(function(){ 664 $(".boxdown").click(function(){
@@ -433,7 +670,28 @@ @@ -433,7 +670,28 @@
433 $(this).addClass('up'); 670 $(this).addClass('up');
434 } 671 }
435 }); 672 });
  673 +
  674 +
  675 + $.ajax({
  676 + url: "../getWarehouseByUserCode",
  677 + type: 'post',
  678 + dataType: "json",
  679 + data: {
  680 + username: "fxh"
  681 + },
  682 + success: function (value) {
  683 + // console.log(value.data);
  684 + $("#warehouse").contents().remove();
  685 + if (value != null && value.data.length >= 1)
  686 + for (var i = 0; i < value.data.length; i++) {
  687 + $('<option value=' + value.data[i].id + ' code=' + value.data[i].code + '>' + value.data[i].name + '</option>').appendTo('#warehouse');
  688 + }
  689 + }
  690 + })
  691 +
436 }); 692 });
  693 +
  694 +
437 </script> 695 </script>
438 </body> 696 </body>
439 </html> 697 </html>
440 \ No newline at end of file 698 \ No newline at end of file
src/main/resources/templates/inventory/cycleCountHeader/cyclecountHeader.html 0 → 100644
  1 +<!DOCTYPE HTML>
  2 +<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3 +<meta charset="utf-8">
  4 +<head th:include="include :: header"></head>
  5 +<body class="gray-bg">
  6 +<div class="container-div">
  7 + <div class="row">
  8 + <div class="col-sm-12 select-info">
  9 + <ul id="myTab" class="nav nav-tabs">
  10 + <li class="active"><a href="#tabHeader" data-toggle="tab">主表</a></li>
  11 + <li><a href="#tabDetail" data-toggle="tab">明细</a></li>
  12 + </ul>
  13 + <div id="myTabContent" class="tab-content">
  14 + <div class="tab-pane fade in active" id="tabHeader">
  15 + <div class="col-sm-12 select-info">
  16 + <form id="cycleHeader-form">
  17 + <div class="select-list">
  18 + <ul>
  19 + <li>
  20 + 盘点主单ID:<input type="text" name="id"/>
  21 + </li>
  22 + <li>
  23 + 源盘点单号:<input type="text" name="sourceCode"/>
  24 + </li>
  25 + <li>
  26 + 盘点单编码:<input type="text" name="code"/>
  27 + </li>
  28 + <li>
  29 + 原始盘点ID:<input type="text" name="countOrderId"/>
  30 + </li>
  31 + <li>
  32 + 盘点单类型:<select name="countType"
  33 + th:with="firstStatus=${@dict.getType('cyclecountType')}">
  34 + <option value="">所有</option>
  35 + <option th:each="e : ${firstStatus}" th:text="${e['dictLabel']}"
  36 + th:value="${e['dictValue']}"></option>
  37 + </select>
  38 + </li>
  39 + <li>
  40 + 盘点单状态:<select name="statusCyc"
  41 + th:with="lastStatus=${@dict.getType('cyclecountStatus')}">
  42 + <option value="">所有</option>
  43 + <option th:each="e : ${lastStatus}" th:text="${e['dictLabel']}"
  44 + th:value="${e['dictValue']}"></option>
  45 + </select>
  46 + </li>
  47 + <li class="time">
  48 + <label>创建时间: </label>
  49 + <input type="text" class="time-input" id="startTime" placeholder="开始时间"
  50 + name="createdBegin"/>
  51 + <span>-</span>
  52 + <input type="text" class="time-input" id="endTime" placeholder="结束时间"
  53 + name="createdEnd"/>
  54 + </li>
  55 + <li>
  56 + <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
  57 + class="fa fa-search"></i>&nbsp;搜索</a>
  58 + <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('cycleHeader-form')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  59 + </li>
  60 + </ul>
  61 + </div>
  62 + </form>
  63 + </div>
  64 + <div class="btn-group hidden-xs" id="toolbar" role="group">
  65 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()"
  66 + shiro:hasPermission="inventory:cycleCountHeader:add">
  67 + <i class="fa fa-plus"></i> 新增
  68 + </a>
  69 + <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()"
  70 + shiro:hasPermission="inventory:cycleCountHeader:remove">
  71 + <i class="fa fa-trash-o"></i> 删除
  72 + </a>-->
  73 + </div>
  74 + <table id="bootstrap-table" data-mobile-responsive="true"
  75 + class="table table-bordered table-hover"></table>
  76 + </div>
  77 + <div class="tab-pane fade" id="tabDetail"></div>
  78 + </div>
  79 + </div>
  80 +
  81 + </div>
  82 +</div>
  83 +<div th:include="include :: footer"></div>
  84 +<script th:inline="javascript">
  85 + var reportFlag = [[${@permission.hasPermi('inventory:cycleCountHeader:report')}]];
  86 + //var editFlag = [[${@permission.hasPermi('inventory:cycleCountHeader:edit')}]];
  87 + var addAdjust = [[${@permission.hasPermi('inventory:cyclecountHead:addAdjust')}]];
  88 + var removeFlag = [[${@permission.hasPermi('inventory:cycleCount:remove')}]];
  89 + var prefix = ctx + "inventory/cycleCountHeader";
  90 + var datas = [[${@dict.getType('sys_normal_disable')}]];
  91 + var types = [[${@dict.getType('cyclecountType')}]];
  92 + var cyclecountStatus = [[${@dict.getType('cyclecountStatus')}]];
  93 + var ifs = [[${@dict.getType('false_and_true')}]];
  94 + $(function () {
  95 + var options = {
  96 + url: prefix + "/list",
  97 + createUrl: prefix + "/add",
  98 + updateUrl: prefix + "/edit/{id}",
  99 + removeUrl: prefix + "/remove",
  100 + modalName: "盘点单主",
  101 + sortName: "created",
  102 + sortOrder: "desc",
  103 + search: false,
  104 + onDblClickRow:function(row){
  105 + detail(row.id,row.masterCode);
  106 + },
  107 + columns: [{
  108 + checkbox: true
  109 + },
  110 + {
  111 + field: 'id',
  112 + title: 'ID',
  113 + sortable: true
  114 + },
  115 + {
  116 + field: 'code',
  117 + title: '盘点单编码'
  118 + },
  119 + {
  120 + field: 'warehouseCode',
  121 + title: '仓库',
  122 + visible: false
  123 + },
  124 + {
  125 + field: 'companyCode',
  126 + title: '货主编码'
  127 + },
  128 + {
  129 + field: 'round',
  130 + title: ' 盘点轮次',
  131 + visible: false
  132 + },
  133 + {
  134 + field: 'sourceCode',
  135 + title: '源盘点单'
  136 + },
  137 +
  138 + {
  139 + field: 'countOrderId',
  140 + title: '原始盘点内部号'
  141 + },
  142 +
  143 + {
  144 + field: 'totalLocs',
  145 + title: '总货位数'
  146 + },
  147 + {
  148 + field: 'totalItems',
  149 + title: '总物料数'
  150 + },
  151 + {
  152 + field: 'zoneCode',
  153 + title: '指定区域'
  154 + },
  155 + {
  156 + field: 'locationFilter',
  157 + title: '库位条件(模糊)',
  158 + visible: false
  159 + },
  160 + {
  161 + field: 'releasedBy',
  162 + title: '释放人',
  163 + visible: false
  164 + },
  165 + {
  166 + field: 'releasedAt',
  167 + title: '释放时间',
  168 + visible: false
  169 + },
  170 + {
  171 + field: 'closedBy',
  172 + title: '关闭人',
  173 + visible: false
  174 + },
  175 + {
  176 + field: 'closedAt',
  177 + title: '关闭时间',
  178 + visible: false
  179 + },
  180 + {
  181 + field: 'countType',
  182 + title: '盘点单类型',
  183 + align: 'center',
  184 + formatter: function (value, row, index) {
  185 + return $.table.selectDictLabel(types, value);
  186 + },
  187 + sortable: true
  188 + },
  189 + {
  190 + field: 'statusCyc',
  191 + title: '盘点主单状态',
  192 + formatter: function(value, row, index) {
  193 + return $.table.selectDictLabel(cyclecountStatus, value);
  194 + },
  195 + visible: true
  196 + },
  197 + {
  198 + field: 'verifyBy',
  199 + title: '审核人'
  200 + },
  201 + {
  202 + field: 'uploadTime',
  203 + title: '上传时间',
  204 + visible: false
  205 + },
  206 + {
  207 + field: 'uploadStatus',
  208 + title: '上传状态',
  209 + align: 'center',
  210 + formatter: function (value, row, index) {
  211 + return $.table.selectDictLabel(ifs, value);
  212 + }
  213 + },
  214 + {
  215 + field: 'version',
  216 + title: '数据版本',
  217 + visible: false
  218 + },
  219 + {
  220 + field: 'created',
  221 + title: '创建时间',
  222 + formatter: function (created, row, index) { //去除时间中间的T
  223 + return created.replace("T", " ");
  224 + }
  225 + },
  226 + {
  227 + field: 'createdBy',
  228 + title: '创建用户'
  229 + },
  230 + {
  231 + field: 'lastUpdated',
  232 + title: '更新时间',
  233 + formatter: function (lastUpdated, row, index) { //去除时间中间的T
  234 + return lastUpdated.replace("T", " ");
  235 + }
  236 + },
  237 + {
  238 + field: 'lastUpdatedBy',
  239 + title: '更新用户'
  240 + },
  241 + {
  242 + field: 'enable',
  243 + title: '是否有效',
  244 + align: 'center',
  245 + formatter: function (value, row, index) {
  246 + return $.table.selectDictLabel(datas, value);
  247 + }
  248 + },
  249 + {
  250 + field: 'remark',
  251 + title: '备注',
  252 + visible: true
  253 + },
  254 + // {
  255 + // field : 'userDef1',
  256 + // title : '自定义字段1'
  257 + // },
  258 + // {
  259 + // field : 'userDef2',
  260 + // title : '自定义字段2'
  261 + // },
  262 + // {
  263 + // field : 'userDef3',
  264 + // title : '自定义字段3'
  265 + // },
  266 + {
  267 + title: '操作',
  268 + align: 'center',
  269 + formatter: function (value, row, index) {
  270 + var actions = [];
  271 + actions.push('<a class="btn btn-success btn-xs ' + reportFlag + '" href="#" onclick="cyclecountPrint(\'' + row.id + '\')"><i class="fa fa-print"></i>打印</a> ');
  272 + if(row.statusCyc === 100){
  273 + actions.push('<a class="btn btn-warning btn-xs ' + addAdjust + '" href="#" onclick="goAdjust(\'' + row.id + '\')"><i class="fa fa-gbp"></i>生成调整单</a> ');
  274 + }
  275 + //actions.push('<a class="btn btn-info btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  276 + actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-trash-o"></i>删除</a> ');
  277 + return actions.join('');
  278 + }
  279 + }]
  280 + };
  281 + $.table.init(options);
  282 + $("#myTab li:eq(1)").click(function () {
  283 + // var cyc_id = $("#bootstrap-table tr:eq(1) td:eq(1)").text();
  284 + // var cyc_code = $("#bootstrap-table tr:eq(1) td:eq(2)").text();
  285 + detail();
  286 + });
  287 + });
  288 +
  289 + function detail(id,code) {
  290 + let url = ctx + "inventory/cycleCountDetail";
  291 + if (code) {
  292 + url = ctx + "inventory/cycleCountDetail?cycleCountHeadCode=" + code;
  293 + }
  294 + $("#tabDetail").children().remove();
  295 + $("#myTab li").removeClass("active");
  296 + var height = $(document).height() - 100 + 'px';
  297 + var str = '<iframe class="huaheng_iframe" name="iframe" width="100%" height="' + height + '" src="' + url + '" frameborder="0" data-id="' + url + '" seamless></iframe>';
  298 + $("#tabDetail").empty();
  299 + $("#tabDetail").append(str);
  300 + $(".tab-pane").removeClass("in active");
  301 + $("#myTab li:eq(1)").addClass("active");
  302 + $("#tabDetail").addClass("in active");
  303 + }
  304 +
  305 + //盘点单打印
  306 + function cyclecountPrint(id) {
  307 + var url = prefix + "/report/" + id;
  308 + $.modal.open("盘点单打印", url);
  309 + }
  310 +
  311 + //生成差异调整单
  312 + function goAdjust(id) {
  313 + var url = prefix + "/goAdjust";
  314 + var data = {"id": id};
  315 + postInner(url, data);
  316 + }
  317 +
  318 + function postInner(url, data) {
  319 + $.modal.loading("正在处理中,请稍后...");
  320 + $.ajax({
  321 + url: url,
  322 + type: "post",
  323 + data: data,
  324 + success: function (result) {
  325 + if (result.code == web_status.SUCCESS) {
  326 + $.modal.msgSuccess(result.msg);
  327 + //update();
  328 + $("button [name = 'refresh']").click(); //点击事件成功后刷新
  329 + } else {
  330 + $.modal.alertError(result.msg);
  331 + }
  332 + $.modal.closeLoading();
  333 + }
  334 + })
  335 + }
  336 +</script>
  337 +</body>
  338 +</html>
0 \ No newline at end of file 339 \ No newline at end of file
src/main/resources/templates/task/taskHeader/taskHeader.html
@@ -179,7 +179,7 @@ @@ -179,7 +179,7 @@
179 { 179 {
180 field : 'companyCode', 180 field : 'companyCode',
181 title : '货主编码', 181 title : '货主编码',
182 - visible:true 182 + visible:false
183 }, 183 },
184 { 184 {
185 field : 'taskType', 185 field : 'taskType',