Commit 77970d74ea8feb32f21cf719617a97d800bcb849
1 parent
56210a87
修改入库单明细中 入库流程和是否质检的显示
Showing
3 changed files
with
14 additions
and
2 deletions
src/main/resources/templates/config/receiptPreference/receiptPreference.html
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 | } |
... | ... |