Commit 68cbf5732fc4604883b78517f72bb102aa7a1f45
Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop
Showing
8 changed files
with
22 additions
and
6 deletions
src/main/java/com/huaheng/pc/config/statusFlow/controller/StatusFlowDetailController.java
@@ -96,6 +96,7 @@ public class StatusFlowDetailController extends BaseController { | @@ -96,6 +96,7 @@ public class StatusFlowDetailController extends BaseController { | ||
96 | StatusFlowHeader statusFlowHeader = statusFlowHeaderService.getById(headerId); | 96 | StatusFlowHeader statusFlowHeader = statusFlowHeaderService.getById(headerId); |
97 | mmap.put("headerId",headerId); | 97 | mmap.put("headerId",headerId); |
98 | mmap.put("headerCode", statusFlowHeader.getCode()); | 98 | mmap.put("headerCode", statusFlowHeader.getCode()); |
99 | + mmap.put("moduleType", statusFlowHeader.getModuleType()); | ||
99 | return prefix + "/add"; | 100 | return prefix + "/add"; |
100 | } | 101 | } |
101 | 102 |
src/main/resources/templates/config/filterConfigHeader/add.html
@@ -9,7 +9,10 @@ | @@ -9,7 +9,10 @@ | ||
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 | - <select id="recordType" name="recordType" class="form-control" th:with="recordType=${@dict.getType('recordType')}"> | 12 | + <select id="recordType" name="recordType" class="form-control" th:if="${moduleType == 'receipt'}" th:with="recordType=${@dict.getType('receiptRuleType')}"> |
13 | + <option th:each="item : ${recordType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option> | ||
14 | + </select> | ||
15 | + <select id="recordType" name="recordType" class="form-control" th:if="${moduleType != 'receipt'}" th:with="recordType=${@dict.getType('shipmentRuleType')}"> | ||
13 | <option th:each="item : ${recordType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option> | 16 | <option th:each="item : ${recordType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option> |
14 | </select> | 17 | </select> |
15 | </div> | 18 | </div> |
src/main/resources/templates/config/receiptPreference/receiptPreference.html
@@ -139,6 +139,7 @@ | @@ -139,6 +139,7 @@ | ||
139 | { | 139 | { |
140 | field : 'manuallyBuildLPN', | 140 | field : 'manuallyBuildLPN', |
141 | title : '人工组盘', | 141 | title : '人工组盘', |
142 | + align : "center", | ||
142 | formatter : function(value, row, index) { | 143 | formatter : function(value, row, index) { |
143 | return $.table.selectWhetherLabel(value); | 144 | return $.table.selectWhetherLabel(value); |
144 | }, | 145 | }, |
src/main/resources/templates/config/receiptType/add.html
@@ -47,6 +47,7 @@ | @@ -47,6 +47,7 @@ | ||
47 | <label class="col-sm-3 control-label">入库流程:</label> | 47 | <label class="col-sm-3 control-label">入库流程:</label> |
48 | <div class="col-sm-8"> | 48 | <div class="col-sm-8"> |
49 | <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}"> | 49 | <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}"> |
50 | + <option value="">请选择</option> | ||
50 | <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> | 51 | <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> |
51 | </select> | 52 | </select> |
52 | </div> | 53 | </div> |
src/main/resources/templates/config/receiptType/edit.html
@@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
49 | <label class="col-sm-3 control-label">入库流程:</label> | 49 | <label class="col-sm-3 control-label">入库流程:</label> |
50 | <div class="col-sm-8"> | 50 | <div class="col-sm-8"> |
51 | <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}" th:field="*{receiptFlow}"> | 51 | <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}" th:field="*{receiptFlow}"> |
52 | + <option value="">请选择</option> | ||
52 | <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> | 53 | <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> |
53 | </select> | 54 | </select> |
54 | </div> | 55 | </div> |
src/main/resources/templates/config/statusFlowDetail/add.html
@@ -16,9 +16,7 @@ | @@ -16,9 +16,7 @@ | ||
16 | <div class="form-group"> | 16 | <div class="form-group"> |
17 | <label class="col-sm-3 control-label">模块:</label> | 17 | <label class="col-sm-3 control-label">模块:</label> |
18 | <div class="col-sm-8"> | 18 | <div class="col-sm-8"> |
19 | - <select id="moduleType" name="moduleType" class="form-control" th:with="moduleType=${@dict.getType('moduleType')}"> | ||
20 | - <option th:each="item : ${moduleType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option> | ||
21 | - </select> | 19 | + <input id="moduleType" name="moduleType" class="form-control" type="text" th:value="${moduleType}" readonly="readonly"> |
22 | </div> | 20 | </div> |
23 | </div> | 21 | </div> |
24 | <div class="form-group"> | 22 | <div class="form-group"> |
src/main/resources/templates/receipt/receiptDetail/edit.html
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | <div class="form-group"> | 53 | <div class="form-group"> |
54 | <label class="col-sm-3 control-label">是否质检:</label> | 54 | <label class="col-sm-3 control-label">是否质检:</label> |
55 | <div class="col-sm-8"> | 55 | <div class="col-sm-8"> |
56 | - <select id="qcCheck" name="qcCheck" class="form-control"> | 56 | + <select id="qcCheck" name="qcCheck" class="form-control" th:field="*{qcCheck}"> |
57 | <option value="1">否</option> | 57 | <option value="1">否</option> |
58 | <option value="0">是</option> | 58 | <option value="0">是</option> |
59 | </select> | 59 | </select> |
src/main/resources/templates/receipt/receiptHeader/receiptHeader.html
@@ -474,7 +474,17 @@ | @@ -474,7 +474,17 @@ | ||
474 | }, | 474 | }, |
475 | { | 475 | { |
476 | field : 'qcCheck', | 476 | field : 'qcCheck', |
477 | - title : '是否质检' | 477 | + title : '是否质检', |
478 | + align : "center", | ||
479 | + formatter: function(value, row, index) { | ||
480 | + var actions = []; | ||
481 | + if (value == 0) { | ||
482 | + actions.push("<span class='badge badge-info'>是</span>"); | ||
483 | + } else { | ||
484 | + actions.push("<span class='badge badge-info'>否</span>"); | ||
485 | + } | ||
486 | + return actions.join(''); | ||
487 | + } | ||
478 | }, | 488 | }, |
479 | { | 489 | { |
480 | field : 'projectNo', | 490 | field : 'projectNo', |
@@ -547,6 +557,7 @@ | @@ -547,6 +557,7 @@ | ||
547 | { | 557 | { |
548 | field : 'isVirtualBom', | 558 | field : 'isVirtualBom', |
549 | title : '是否虚拟套件', | 559 | title : '是否虚拟套件', |
560 | + align : "center", | ||
550 | formatter: function(value, row, index) { | 561 | formatter: function(value, row, index) { |
551 | return $.table.selectDictLabel(isVirtualBoms, value); | 562 | return $.table.selectDictLabel(isVirtualBoms, value); |
552 | } | 563 | } |