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 | 96 | StatusFlowHeader statusFlowHeader = statusFlowHeaderService.getById(headerId); |
97 | 97 | mmap.put("headerId",headerId); |
98 | 98 | mmap.put("headerCode", statusFlowHeader.getCode()); |
99 | + mmap.put("moduleType", statusFlowHeader.getModuleType()); | |
99 | 100 | return prefix + "/add"; |
100 | 101 | } |
101 | 102 | |
... | ... |
src/main/resources/templates/config/filterConfigHeader/add.html
... | ... | @@ -9,7 +9,10 @@ |
9 | 9 | <div class="form-group"> |
10 | 10 | <label class="col-sm-3 control-label">类型:</label> |
11 | 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 | 16 | <option th:each="item : ${recordType}" th:text="${item['dictLabel']}" th:value="${item['dictValue']}"></option> |
14 | 17 | </select> |
15 | 18 | </div> |
... | ... |
src/main/resources/templates/config/receiptPreference/receiptPreference.html
src/main/resources/templates/config/receiptType/add.html
... | ... | @@ -47,6 +47,7 @@ |
47 | 47 | <label class="col-sm-3 control-label">入库流程:</label> |
48 | 48 | <div class="col-sm-8"> |
49 | 49 | <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}"> |
50 | + <option value="">请选择</option> | |
50 | 51 | <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> |
51 | 52 | </select> |
52 | 53 | </div> |
... | ... |
src/main/resources/templates/config/receiptType/edit.html
... | ... | @@ -49,6 +49,7 @@ |
49 | 49 | <label class="col-sm-3 control-label">入库流程:</label> |
50 | 50 | <div class="col-sm-8"> |
51 | 51 | <select id="receiptFlow" name="receiptFlow" class="form-control" th:with="statusFlowList=${@StatusFlow.flowList('receivingFlow')}" th:field="*{receiptFlow}"> |
52 | + <option value="">请选择</option> | |
52 | 53 | <option th:each="flow : ${statusFlowList}" th:text="${flow['name']}" th:value="${flow['code']}"></option> |
53 | 54 | </select> |
54 | 55 | </div> |
... | ... |
src/main/resources/templates/config/statusFlowDetail/add.html
... | ... | @@ -16,9 +16,7 @@ |
16 | 16 | <div class="form-group"> |
17 | 17 | <label class="col-sm-3 control-label">模块:</label> |
18 | 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 | 20 | </div> |
23 | 21 | </div> |
24 | 22 | <div class="form-group"> |
... | ... |
src/main/resources/templates/receipt/receiptDetail/edit.html
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | <div class="form-group"> |
54 | 54 | <label class="col-sm-3 control-label">是否质检:</label> |
55 | 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 | 57 | <option value="1">否</option> |
58 | 58 | <option value="0">是</option> |
59 | 59 | </select> |
... | ... |
src/main/resources/templates/receipt/receiptHeader/receiptHeader.html
... | ... | @@ -474,7 +474,17 @@ |
474 | 474 | }, |
475 | 475 | { |
476 | 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 | 490 | field : 'projectNo', |
... | ... | @@ -547,6 +557,7 @@ |
547 | 557 | { |
548 | 558 | field : 'isVirtualBom', |
549 | 559 | title : '是否虚拟套件', |
560 | + align : "center", | |
550 | 561 | formatter: function(value, row, index) { |
551 | 562 | return $.table.selectDictLabel(isVirtualBoms, value); |
552 | 563 | } |
... | ... |