Commit c6e4539c2b4e24af30dec53acc27a006e097107e

Authored by fuxiaohan
1 parent 6c00a325

合并信义源码 提交入库首选项,方便娟姐改样式

src/main/java/com/huaheng/common/utils/VelocityUtils.java
... ... @@ -166,9 +166,9 @@ public class VelocityUtils {
166 166 } else if (template.contains("mapper.xml.vm")) {
167 167 fileName = StringUtils.format("{}/{}Mapper.xml", mybatisPath, className);
168 168 } else if (template.contains("list.html.vm")) {
169   - fileName = StringUtils.format("{}/{}.html", htmlPath, businessName);
  169 + fileName = StringUtils.format("{}/list.html", htmlPath, businessName);
170 170 } else if (template.contains("list-tree.html.vm")) {
171   - fileName = StringUtils.format("{}/{}.html", htmlPath, businessName);
  171 + fileName = StringUtils.format("{}/list.html", htmlPath, businessName);
172 172 } else if (template.contains("tree.html.vm")) {
173 173 fileName = StringUtils.format("{}/tree.html", htmlPath);
174 174 } else if (template.contains("add.html.vm")) {
... ...
src/main/java/com/huaheng/pc/config/receiptPreference/controller/ReceiptPreferenceController.java
... ... @@ -40,7 +40,7 @@ public class ReceiptPreferenceController extends BaseController {
40 40 @RequiresPermissions("config:receiptPreference:view")
41 41 @GetMapping()
42 42 public String bomHeader() {
43   - return prefix + "/receiptPreference";
  43 + return prefix + "/list";
44 44 }
45 45  
46 46 //@ApiOperation(value="查看入库首选项", notes="根据首选项编码、名称、入库流程、 入库类型、创建时间查询入库首选项", httpMethod = "POST")
... ...
src/main/resources/static/css/style.css
... ... @@ -717,18 +717,17 @@ body.canvas-menu.mini-navbar nav.navbar-static-side {
717 717 }
718 718  
719 719 .btn-primary.disabled, .btn-primary.disabled:hover, .btn-primary.disabled:focus, .btn-primary.disabled:active, .btn-primary.disabled.active, .btn-primary[disabled], .btn-primary[disabled]:hover, .btn-primary[disabled]:focus, .btn-primary[disabled]:active, .btn-primary.active[disabled], fieldset[disabled] .btn-primary, fieldset[disabled] .btn-primary:hover, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary:active, fieldset[disabled] .btn-primary.active {
720   - background-color: #1dc5a3;
721 720 border-color: #1dc5a3;
722 721 }
723 722  
724 723 .btn-success {
725   - background-color: #1c84c6;
  724 +
726 725 border-color: #1c84c6;
727 726 color: #FFFFFF;
728 727 }
729 728  
730 729 .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success {
731   - background-color: #1a7bb9;
  730 +
732 731 border-color: #1a7bb9;
733 732 color: #FFFFFF;
734 733 }
... ... @@ -738,18 +737,18 @@ body.canvas-menu.mini-navbar nav.navbar-static-side {
738 737 }
739 738  
740 739 .btn-success.disabled, .btn-success.disabled:hover, .btn-success.disabled:focus, .btn-success.disabled:active, .btn-success.disabled.active, .btn-success[disabled], .btn-success[disabled]:hover, .btn-success[disabled]:focus, .btn-success[disabled]:active, .btn-success.active[disabled], fieldset[disabled] .btn-success, fieldset[disabled] .btn-success:hover, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:active, fieldset[disabled] .btn-success.active {
741   - background-color: #1f90d8;
  740 +
742 741 border-color: #1f90d8;
743 742 }
744 743  
745 744 .btn-info {
746   - background-color: #23c6c8;
  745 +
747 746 border-color: #23c6c8;
748 747 color: #FFFFFF;
749 748 }
750 749  
751 750 .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info {
752   - background-color: #21b9bb;
  751 +
753 752 border-color: #21b9bb;
754 753 color: #FFFFFF;
755 754 }
... ... @@ -759,18 +758,18 @@ body.canvas-menu.mini-navbar nav.navbar-static-side {
759 758 }
760 759  
761 760 .btn-info.disabled, .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled:active, .btn-info.disabled.active, .btn-info[disabled], .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled]:active, .btn-info.active[disabled], fieldset[disabled] .btn-info, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info.active {
762   - background-color: #26d7d9;
  761 +
763 762 border-color: #26d7d9;
764 763 }
765 764  
766 765 .btn-default {
767   - background-color: #c2c2c2;
  766 +
768 767 border-color: #c2c2c2;
769 768 color: #FFFFFF;
770 769 }
771 770  
772 771 .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
773   - background-color: #bababa;
  772 +
774 773 border-color: #bababa;
775 774 color: #FFFFFF;
776 775 }
... ... @@ -780,18 +779,18 @@ body.canvas-menu.mini-navbar nav.navbar-static-side {
780 779 }
781 780  
782 781 .btn-default.disabled, .btn-default.disabled:hover, .btn-default.disabled:focus, .btn-default.disabled:active, .btn-default.disabled.active, .btn-default[disabled], .btn-default[disabled]:hover, .btn-default[disabled]:focus, .btn-default[disabled]:active, .btn-default.active[disabled], fieldset[disabled] .btn-default, fieldset[disabled] .btn-default:hover, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default:active, fieldset[disabled] .btn-default.active {
783   - background-color: #cccccc;
  782 +
784 783 border-color: #cccccc;
785 784 }
786 785  
787 786 .btn-warning {
788   - background-color: #f8ac59;
  787 +
789 788 border-color: #f8ac59;
790 789 color: #FFFFFF;
791 790 }
792 791  
793 792 .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning {
794   - background-color: #f7a54a;
  793 +
795 794 border-color: #f7a54a;
796 795 color: #FFFFFF;
797 796 }
... ... @@ -801,18 +800,18 @@ body.canvas-menu.mini-navbar nav.navbar-static-side {
801 800 }
802 801  
803 802 .btn-warning.disabled, .btn-warning.disabled:hover, .btn-warning.disabled:focus, .btn-warning.disabled:active, .btn-warning.disabled.active, .btn-warning[disabled], .btn-warning[disabled]:hover, .btn-warning[disabled]:focus, .btn-warning[disabled]:active, .btn-warning.active[disabled], fieldset[disabled] .btn-warning, fieldset[disabled] .btn-warning:hover, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning:active, fieldset[disabled] .btn-warning.active {
804   - background-color: #f9b66d;
  803 +
805 804 border-color: #f9b66d;
806 805 }
807 806  
808 807 .btn-danger {
809   - background-color: #ed5565;
  808 +
810 809 border-color: #ed5565;
811 810 color: #FFFFFF;
812 811 }
813 812  
814 813 .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger {
815   - background-color: #ec4758;
  814 +
816 815 border-color: #ec4758;
817 816 color: #FFFFFF;
818 817 }
... ...
src/main/resources/templates/config/receiptPreference/list.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 + <form id="formId">
  10 + <div class="select-list">
  11 + <ul>
  12 + <li>
  13 + <label>仓库:</label>
  14 + <input type="text" name="warehousecode"/>
  15 + </li>
  16 + <li>
  17 + <label>首选项代码:</label>
  18 + <input type="text" name="code"/>
  19 + </li>
  20 + <li>
  21 + <label>首选项名字:</label>
  22 + <input type="text" name="name"/>
  23 + </li>
  24 + <li>
  25 + <label>入库流程:</label>
  26 + <input type="text" name="receivingflow"/>
  27 + </li>
  28 + <li>
  29 + <label>自动生成托盘号:</label>
  30 + <input type="text" name="autoassignlpn"/>
  31 + </li>
  32 + <li>
  33 + <label>允许超收:</label>
  34 + <select name="allowoverreceiving">
  35 + <option value="">所有</option>
  36 + <option value="-1">代码生成请选择字典属性</option>
  37 + </select>
  38 + </li>
  39 + <li>
  40 + <label>允许超收范围:</label>
  41 + <input type="text" name="allowoverreceivingqty"/>
  42 + </li>
  43 + <li>
  44 + <label>自动定位:</label>
  45 + <input type="text" name="autolocate"/>
  46 + </li>
  47 + <li>
  48 + <label>RF显示未收数量:</label>
  49 + <input type="text" name="showopenqty"/>
  50 + </li>
  51 + <li>
  52 + <label>RF组车收货:</label>
  53 + <input type="text" name="groupputaway"/>
  54 + </li>
  55 + <li>
  56 + <label>人工组盘:</label>
  57 + <input type="text" name="manuallybuildlpn"/>
  58 + </li>
  59 + <li>
  60 + <label>定位规则:</label>
  61 + <input type="text" name="locationrule"/>
  62 + </li>
  63 + <li>
  64 + <label>空库位规则:</label>
  65 + <input type="text" name="emptylocrule"/>
  66 + </li>
  67 + <li>
  68 + <label>RF逐件收货:</label>
  69 + <input type="text" name="checkinbypiece"/>
  70 + </li>
  71 + <li>
  72 + <label>RF自动提交收货:</label>
  73 + <input type="text" name="piececonfirm"/>
  74 + </li>
  75 + <li>
  76 + <label>abc分类 0 否 1是:</label>
  77 + <input type="text" name="abcclass"/>
  78 + </li>
  79 + <li>
  80 + <label>保质期:</label>
  81 + <input type="text" name="daystoexpire"/>
  82 + </li>
  83 + <li>
  84 + <label>临期预警:</label>
  85 + <input type="text" name="expiringdays"/>
  86 + </li>
  87 + <li>
  88 + <label>收货预警(天):</label>
  89 + <input type="text" name="minshelflifedays"/>
  90 + </li>
  91 + <li>
  92 + <label>RF快速上架:</label>
  93 + <input type="text" name="allowquickputaway"/>
  94 + </li>
  95 + <li>
  96 + <label>属性模板:</label>
  97 + <input type="text" name="attributetemplatecode"/>
  98 + </li>
  99 + <li>
  100 + <label>快速入库:</label>
  101 + <input type="text" name="usequickcheckin"/>
  102 + </li>
  103 + <li class="select-time">
  104 + <label>创建时间:</label>
  105 + <input type="text" class="time-input" id="startTime" placeholder="开始时间"
  106 + name="params[beginCreated]"/>
  107 + <span>-</span>
  108 + <input type="text" class="time-input" id="endTime" placeholder="结束时间"
  109 + name="params[endCreated]"/>
  110 + </li>
  111 + <li>
  112 + <label>创建用户:</label>
  113 + <input type="text" name="createdby"/>
  114 + </li>
  115 + <li class="select-time">
  116 + <label>创建时间:</label>
  117 + <input type="text" class="time-input" id="startTime" placeholder="开始时间"
  118 + name="params[beginLastupdated]"/>
  119 + <span>-</span>
  120 + <input type="text" class="time-input" id="endTime" placeholder="结束时间"
  121 + name="params[endLastupdated]"/>
  122 + </li>
  123 + <li>
  124 + <label>更新用户:</label>
  125 + <input type="text" name="lastupdatedby"/>
  126 + </li>
  127 +
  128 + <li>
  129 + <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
  130 + class="fa fa-search"></i>&nbsp;搜索</a>
  131 + <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
  132 + class="fa fa-refresh"></i>&nbsp;重置</a>
  133 + </li>
  134 + </ul>
  135 + </div>
  136 + </form>
  137 + </div>
  138 + <div class="btn-group hidden-xs" id="toolbar" role="group">
  139 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()"
  140 + shiro:hasPermission="config:receiptPreference:add">
  141 + <i class="fa fa-plus"></i> 新增
  142 + </a>
  143 + <a class="btn btn-outline btn-primary " onclick="$.operate.editUrl()"
  144 + shiro:hasPermission="config:receiptPreference:edit">
  145 + <i class="fa fa-edit"></i> 修改
  146 + </a>
  147 + <a class="btn btn-outline btn-danger btn-rounded " onclick="$.operate.batRemove()"
  148 + shiro:hasPermission="config:receiptPreference:remove">
  149 + <i class="fa fa-trash-o"></i> 删除
  150 + </a>
  151 + </div>
  152 +
  153 + <div class="col-sm-12 select-info table-striped">
  154 + <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
  155 + </div>
  156 + </div>
  157 +
  158 +</div>
  159 +<div th:include="include :: footer"></div>
  160 +<script th:inline="javascript">
  161 + var editFlag = [[${@permission.hasPermi('task:receiptPreference:edit')}]];
  162 + var removeFlag = [[${@permission.hasPermi('task:receiptPreference:remove')}]];
  163 + var prefix = ctx + "config/receiptPreference"
  164 +
  165 + $(function () {
  166 + var options = {
  167 + url: prefix + "/list",
  168 + createUrl: prefix + "/add",
  169 + updateUrl: prefix + "/edit/{id}",
  170 + removeUrl: prefix + "/remove",
  171 + modalName: "入库首选",
  172 + columns: [{
  173 + checkbox: true
  174 + },
  175 + {
  176 + field: 'id',
  177 + title: 'ID',
  178 + visible: false
  179 + },
  180 + {
  181 + field: 'warehousecode',
  182 + title: '仓库'
  183 + },
  184 + {
  185 + field: 'code',
  186 + title: '首选项代码'
  187 + },
  188 + {
  189 + field: 'name',
  190 + title: '首选项名字'
  191 + },
  192 + {
  193 + field: 'receivingflow',
  194 + title: '入库流程'
  195 + },
  196 + {
  197 + field: 'autoassignlpn',
  198 + title: '自动生成托盘号'
  199 + },
  200 + {
  201 + field: 'allowoverreceiving',
  202 + title: '允许超收'
  203 + },
  204 + {
  205 + field: 'allowoverreceivingqty',
  206 + title: '允许超收范围'
  207 + },
  208 + {
  209 + field: 'autolocate',
  210 + title: '自动定位'
  211 + },
  212 + {
  213 + field: 'showopenqty',
  214 + title: 'RF显示未收数量'
  215 + },
  216 + {
  217 + field: 'groupputaway',
  218 + title: 'RF组车收货'
  219 + },
  220 + {
  221 + field: 'manuallybuildlpn',
  222 + title: '人工组盘'
  223 + },
  224 + {
  225 + field: 'locationrule',
  226 + title: '定位规则'
  227 + },
  228 + {
  229 + field: 'emptylocrule',
  230 + title: '空库位规则'
  231 + },
  232 + {
  233 + field: 'checkinbypiece',
  234 + title: 'RF逐件收货'
  235 + },
  236 + {
  237 + field: 'piececonfirm',
  238 + title: 'RF自动提交收货'
  239 + },
  240 + {
  241 + field: 'abcclass',
  242 + title: 'abc分类 0 否 1是'
  243 + },
  244 + {
  245 + field: 'daystoexpire',
  246 + title: '保质期'
  247 + },
  248 + {
  249 + field: 'expiringdays',
  250 + title: '临期预警'
  251 + },
  252 + {
  253 + field: 'minshelflifedays',
  254 + title: '收货预警(天)'
  255 + },
  256 + {
  257 + field: 'allowquickputaway',
  258 + title: 'RF快速上架'
  259 + },
  260 + {
  261 + field: 'attributetemplatecode',
  262 + title: '属性模板'
  263 + },
  264 + {
  265 + field: 'usequickcheckin',
  266 + title: '快速入库'
  267 + },
  268 + {
  269 + field: 'created',
  270 + title: '创建时间'
  271 + },
  272 + {
  273 + field: 'createdby',
  274 + title: '创建用户'
  275 + },
  276 + {
  277 + field: 'lastupdated',
  278 + title: '创建时间'
  279 + },
  280 + {
  281 + field: 'lastupdatedby',
  282 + title: '更新用户'
  283 + },
  284 +
  285 + {
  286 + title: '操作',
  287 + align: 'center',
  288 + formatter: function (value, row, index) {
  289 + var actions = [];
  290 +
  291 + return actions.join('');
  292 + }
  293 + }]
  294 + };
  295 + $.table.init(options);
  296 + });
  297 +</script>
  298 +</body>
  299 +</html>
0 300 \ No newline at end of file
... ...
src/main/resources/templates/config/receiptType/receiptType.html
... ... @@ -36,7 +36,7 @@
36 36 </a>
37 37 </div>
38 38  
39   - <div class="col-sm-12 select-info">
  39 + <div class="col-sm-12 select-info table-striped">
40 40 <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
41 41 </div>
42 42 <div>
... ...