Commit 1747157e5dca59d00d9b44f627309df69c473012

Authored by pengcheng
2 parents 744aee73 d1d6277b

Merge remote-tracking branch 'origin/develop' into develop

Showing 45 changed files with 2018 additions and 1417 deletions
.idea/MyBatisCodeHelperDatasource.xml
... ... @@ -6,9 +6,9 @@
6 6 <option name="addSerializeUid" value="true" />
7 7 <option name="generateService" value="true" />
8 8 <option name="generateServiceInterface" value="true" />
9   - <option name="javaMapperPackage" value="com.huaheng.pc.task.taskPreference.mapper" />
  9 + <option name="javaMapperPackage" value="com.huaheng.pc.config.excelTempate.mapper" />
10 10 <option name="javaMapperPath" value="$PROJECT_DIR$/src/main/java" />
11   - <option name="javaModelPackage" value="com.huaheng.pc.task.taskPreference.domain" />
  11 + <option name="javaModelPackage" value="com.huaheng.pc.config.excelTempate.domain" />
12 12 <option name="javaModelPath" value="$PROJECT_DIR$/src/main/java" />
13 13 <option name="lastDatabaseCrudChooseModuleName" value="huaheng" />
14 14 <option name="moduleNameToPackageAndPathMap">
... ... @@ -30,21 +30,22 @@
30 30 <entry key="huaheng">
31 31 <value>
32 32 <UserPackageAndPathInfoByModule>
33   - <option name="javaMapperPackage" value="com.huaheng.pc.task.taskPreference.mapper" />
  33 + <option name="javaMapperPackage" value="com.huaheng.pc.config.excelTempate.mapper" />
34 34 <option name="javaMapperPath" value="$PROJECT_DIR$/src/main/java" />
35   - <option name="javaModelPacakge" value="com.huaheng.pc.task.taskPreference.domain" />
  35 + <option name="javaModelPacakge" value="com.huaheng.pc.config.excelTempate.domain" />
36 36 <option name="javaModelPath" value="$PROJECT_DIR$/src/main/java" />
37   - <option name="javaServiceInterfacePackage" value="com.huaheng.pc.task.taskPreference.service" />
  37 + <option name="javaServiceInterfacePackage" value="com.huaheng.pc.config.excelTempate.service" />
38 38 <option name="javaServiceInterfacePath" value="$PROJECT_DIR$/src/main/java" />
39   - <option name="javaServicePackage" value="com.huaheng.pc.task.taskPreference.service" />
  39 + <option name="javaServicePackage" value="com.huaheng.pc.config.excelTempate.service" />
40 40 <option name="javaServicePath" value="$PROJECT_DIR$/src/main/java" />
41   - <option name="xmlPackage" value="task" />
  41 + <option name="xmlPackage" value="config" />
42 42 <option name="xmlPath" value="E:\code\wms2\src\main\resources\mybatis" />
43 43 </UserPackageAndPathInfoByModule>
44 44 </value>
45 45 </entry>
46 46 </map>
47 47 </option>
  48 + <option name="mybatisPlusStaticField" value="false" />
48 49 <option name="tableGenerateConfigs">
49 50 <map>
50 51 <entry key="wms_v2:bom_detail">
... ... @@ -117,6 +118,26 @@
117 118 </TableGenerateConfig>
118 119 </value>
119 120 </entry>
  121 + <entry key="wms_v2:eccel_template">
  122 + <value>
  123 + <TableGenerateConfig>
  124 + <option name="generatedKey" value="" />
  125 + <option name="javaModelName" value="EccelTemplate" />
  126 + <option name="moduleName" value="huaheng" />
  127 + <option name="useActualColumnName" value="true" />
  128 + </TableGenerateConfig>
  129 + </value>
  130 + </entry>
  131 + <entry key="wms_v2:excel_template">
  132 + <value>
  133 + <TableGenerateConfig>
  134 + <option name="generatedKey" value="" />
  135 + <option name="javaModelName" value="ExcelTemplate" />
  136 + <option name="moduleName" value="huaheng" />
  137 + <option name="useActualColumnName" value="true" />
  138 + </TableGenerateConfig>
  139 + </value>
  140 + </entry>
120 141 <entry key="wms_v2:inventory_transaction">
121 142 <value>
122 143 <TableGenerateConfig>
... ... @@ -333,7 +354,7 @@
333 354 <option name="useLomBokOnModel" value="true" />
334 355 <option name="useSwagger" value="true" />
335 356 <option name="userMybatisPlus" value="true" />
336   - <option name="xmlMapperPackage" value="task" />
  357 + <option name="xmlMapperPackage" value="config" />
337 358 <option name="xmlMapperPath" value="E:\code\wms2\src\main\resources\mybatis" />
338 359 </ProjectProfile>
339 360 </option>
... ...
.idea/compiler.xml
... ... @@ -6,8 +6,8 @@
6 6 <sourceOutputDir name="target/generated-sources/annotations" />
7 7 <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8 8 <outputRelativeToContentRoot value="true" />
9   - <module name="huaheng" />
10 9 <module name="wms2" />
  10 + <module name="huaheng" />
11 11 </profile>
12 12 </annotationProcessing>
13 13 </component>
... ...
.idea/dataSources.xml
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <project version="4">
3 3 <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
4   - <data-source source="LOCAL" name="@172.16.29.45" uuid="f0ef190b-e501-4096-a600-42861f79c6c6">
  4 + <data-source source="LOCAL" name="@172.16.29.45" uuid="2845c0bf-201c-4178-b161-2bab8cfbfe5d">
5 5 <driver-ref>mysql.8</driver-ref>
6 6 <synchronize>true</synchronize>
7 7 <jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
... ...
.idea/workspace.xml
... ... @@ -2,20 +2,10 @@
2 2 <project version="4">
3 3 <component name="ChangeListManager">
4 4 <list default="true" id="9ff7b25e-dc1a-4859-8a0c-00039489e359" name="Default Changelist" comment="">
5   - <change afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/receiptType/controller/receiptTypeController.java" afterDir="false" />
6   - <change afterPath="$PROJECT_DIR$/src/main/resources/mybatis/general/BomDetailMapper.xml" afterDir="false" />
7   - <change afterPath="$PROJECT_DIR$/src/main/resources/templates/config/receiptType/add.html" afterDir="false" />
8   - <change afterPath="$PROJECT_DIR$/src/main/resources/templates/config/receiptType/edit.html" afterDir="false" />
9   - <change afterPath="$PROJECT_DIR$/src/main/resources/templates/config/receiptType/receiptType.html" afterDir="false" />
10 5 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
11   - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/receipt/receiptType/domain/ReceiptType.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/receiptType/domain/ReceiptType.java" afterDir="false" />
12   - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/receipt/receiptType/mapper/ReceiptTypeMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/receiptType/mapper/ReceiptTypeMapper.java" afterDir="false" />
13   - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/receipt/receiptType/service/ReceiptTypeService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/receiptType/service/ReceiptTypeService.java" afterDir="false" />
14   - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/receipt/receiptType/service/ReceiptTypeServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/receiptType/service/ReceiptTypeServiceImpl.java" afterDir="false" />
15   - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentDetail/domain/ShipmentDetail.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentDetail/domain/ShipmentDetail.java" afterDir="false" />
16   - <change beforePath="$PROJECT_DIR$/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application.yml" afterDir="false" />
17   - <change beforePath="$PROJECT_DIR$/src/main/resources/mybatis/receipt/ReceiptTypeMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/mybatis/config/ReceiptTypeMapper.xml" afterDir="false" />
18   - <change beforePath="$PROJECT_DIR$/src/main/resources/templates/tool/import/import.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/tool/import/import.html" afterDir="false" />
  6 + <change beforePath="$PROJECT_DIR$/sql/bug" beforeDir="false" />
  7 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/domain/InventoryDetail.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/domain/InventoryDetail.java" afterDir="false" />
  8 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java" afterDir="false" />
19 9 </list>
20 10 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
21 11 <option name="SHOW_DIALOG" value="false" />
... ... @@ -53,6 +43,64 @@
53 43 </expand>
54 44 <select />
55 45 </component>
  46 + <component name="FileEditorManager">
  47 + <leaf>
  48 + <file pinned="false" current-in-tab="false">
  49 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java">
  50 + <provider selected="true" editor-type-id="text-editor">
  51 + <state relative-caret-position="-304">
  52 + <caret line="25" column="13" selection-start-line="25" selection-start-column="13" selection-end-line="25" selection-end-column="13" />
  53 + </state>
  54 + </provider>
  55 + </entry>
  56 + </file>
  57 + <file pinned="false" current-in-tab="false">
  58 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/domain/ShipmentCombinationModel.java">
  59 + <provider selected="true" editor-type-id="text-editor">
  60 + <state relative-caret-position="68">
  61 + <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
  62 + </state>
  63 + </provider>
  64 + </entry>
  65 + </file>
  66 + <file pinned="false" current-in-tab="false">
  67 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderServiceImpl.java">
  68 + <provider selected="true" editor-type-id="text-editor">
  69 + <state relative-caret-position="202">
  70 + <caret line="76" column="16" lean-forward="true" selection-start-line="76" selection-start-column="16" selection-end-line="76" selection-end-column="16" />
  71 + </state>
  72 + </provider>
  73 + </entry>
  74 + </file>
  75 + <file pinned="false" current-in-tab="true">
  76 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/domain/InventoryDetail.java">
  77 + <provider selected="true" editor-type-id="text-editor">
  78 + <state relative-caret-position="1156">
  79 + <caret line="81" column="11" lean-forward="true" selection-start-line="81" selection-start-column="11" selection-end-line="81" selection-end-column="11" />
  80 + </state>
  81 + </provider>
  82 + </entry>
  83 + </file>
  84 + <file pinned="false" current-in-tab="false">
  85 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java">
  86 + <provider selected="true" editor-type-id="text-editor">
  87 + <state relative-caret-position="60">
  88 + <caret line="155" selection-start-line="155" selection-end-line="155" />
  89 + </state>
  90 + </provider>
  91 + </entry>
  92 + </file>
  93 + <file pinned="false" current-in-tab="false">
  94 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/controller/InventoryHeaderController.java">
  95 + <provider selected="true" editor-type-id="text-editor">
  96 + <state relative-caret-position="200">
  97 + <caret line="30" column="13" selection-start-line="30" selection-start-column="13" selection-end-line="30" selection-end-column="13" />
  98 + </state>
  99 + </provider>
  100 + </entry>
  101 + </file>
  102 + </leaf>
  103 + </component>
56 104 <component name="FileTemplateManagerImpl">
57 105 <option name="RECENT_TEMPLATES">
58 106 <list>
... ... @@ -71,6 +119,14 @@
71 119 </map>
72 120 </option>
73 121 </component>
  122 + <component name="IdeDocumentHistory">
  123 + <option name="CHANGED_PATHS">
  124 + <list>
  125 + <option value="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java" />
  126 + <option value="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/domain/InventoryDetail.java" />
  127 + </list>
  128 + </option>
  129 + </component>
74 130 <component name="IgnoredFileRootStore">
75 131 <option name="generatedRoots">
76 132 <set>
... ... @@ -78,10 +134,217 @@
78 134 </set>
79 135 </option>
80 136 </component>
  137 + <component name="ProjectFrameBounds" extendedState="6">
  138 + <option name="x" value="-10" />
  139 + <option name="y" value="-10" />
  140 + <option name="width" value="1940" />
  141 + <option name="height" value="1050" />
  142 + </component>
81 143 <component name="ProjectId" id="1P5Ngjh73HToCarlEZkqMxrL7pm" />
82 144 <component name="ProjectLevelVcsManager">
83 145 <ConfirmationsSetting value="2" id="Add" />
84 146 </component>
  147 + <component name="ProjectView">
  148 + <navigator proportions="" version="1">
  149 + <foldersAlwaysOnTop value="true" />
  150 + </navigator>
  151 + <panes>
  152 + <pane id="PackagesPane" />
  153 + <pane id="ProjectPane">
  154 + <subPane>
  155 + <expand>
  156 + <path>
  157 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  158 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  159 + </path>
  160 + <path>
  161 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  162 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  163 + <item name="src" type="462c0819:PsiDirectoryNode" />
  164 + </path>
  165 + <path>
  166 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  167 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  168 + <item name="src" type="462c0819:PsiDirectoryNode" />
  169 + <item name="main" type="462c0819:PsiDirectoryNode" />
  170 + </path>
  171 + <path>
  172 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  173 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  174 + <item name="src" type="462c0819:PsiDirectoryNode" />
  175 + <item name="main" type="462c0819:PsiDirectoryNode" />
  176 + <item name="java" type="462c0819:PsiDirectoryNode" />
  177 + </path>
  178 + <path>
  179 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  180 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  181 + <item name="src" type="462c0819:PsiDirectoryNode" />
  182 + <item name="main" type="462c0819:PsiDirectoryNode" />
  183 + <item name="java" type="462c0819:PsiDirectoryNode" />
  184 + <item name="com" type="462c0819:PsiDirectoryNode" />
  185 + </path>
  186 + <path>
  187 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  188 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  189 + <item name="src" type="462c0819:PsiDirectoryNode" />
  190 + <item name="main" type="462c0819:PsiDirectoryNode" />
  191 + <item name="java" type="462c0819:PsiDirectoryNode" />
  192 + <item name="com" type="462c0819:PsiDirectoryNode" />
  193 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  194 + </path>
  195 + <path>
  196 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  197 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  198 + <item name="src" type="462c0819:PsiDirectoryNode" />
  199 + <item name="main" type="462c0819:PsiDirectoryNode" />
  200 + <item name="java" type="462c0819:PsiDirectoryNode" />
  201 + <item name="com" type="462c0819:PsiDirectoryNode" />
  202 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  203 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  204 + </path>
  205 + <path>
  206 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  207 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  208 + <item name="src" type="462c0819:PsiDirectoryNode" />
  209 + <item name="main" type="462c0819:PsiDirectoryNode" />
  210 + <item name="java" type="462c0819:PsiDirectoryNode" />
  211 + <item name="com" type="462c0819:PsiDirectoryNode" />
  212 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  213 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  214 + <item name="inventory" type="462c0819:PsiDirectoryNode" />
  215 + </path>
  216 + <path>
  217 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  218 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  219 + <item name="src" type="462c0819:PsiDirectoryNode" />
  220 + <item name="main" type="462c0819:PsiDirectoryNode" />
  221 + <item name="java" type="462c0819:PsiDirectoryNode" />
  222 + <item name="com" type="462c0819:PsiDirectoryNode" />
  223 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  224 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  225 + <item name="inventory" type="462c0819:PsiDirectoryNode" />
  226 + <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" />
  227 + </path>
  228 + <path>
  229 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  230 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  231 + <item name="src" type="462c0819:PsiDirectoryNode" />
  232 + <item name="main" type="462c0819:PsiDirectoryNode" />
  233 + <item name="java" type="462c0819:PsiDirectoryNode" />
  234 + <item name="com" type="462c0819:PsiDirectoryNode" />
  235 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  236 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  237 + <item name="inventory" type="462c0819:PsiDirectoryNode" />
  238 + <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" />
  239 + <item name="domain" type="462c0819:PsiDirectoryNode" />
  240 + </path>
  241 + <path>
  242 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  243 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  244 + <item name="src" type="462c0819:PsiDirectoryNode" />
  245 + <item name="main" type="462c0819:PsiDirectoryNode" />
  246 + <item name="java" type="462c0819:PsiDirectoryNode" />
  247 + <item name="com" type="462c0819:PsiDirectoryNode" />
  248 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  249 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  250 + <item name="inventory" type="462c0819:PsiDirectoryNode" />
  251 + <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" />
  252 + </path>
  253 + <path>
  254 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  255 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  256 + <item name="src" type="462c0819:PsiDirectoryNode" />
  257 + <item name="main" type="462c0819:PsiDirectoryNode" />
  258 + <item name="java" type="462c0819:PsiDirectoryNode" />
  259 + <item name="com" type="462c0819:PsiDirectoryNode" />
  260 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  261 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  262 + <item name="inventory" type="462c0819:PsiDirectoryNode" />
  263 + <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" />
  264 + <item name="controller" type="462c0819:PsiDirectoryNode" />
  265 + </path>
  266 + <path>
  267 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  268 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  269 + <item name="src" type="462c0819:PsiDirectoryNode" />
  270 + <item name="main" type="462c0819:PsiDirectoryNode" />
  271 + <item name="java" type="462c0819:PsiDirectoryNode" />
  272 + <item name="com" type="462c0819:PsiDirectoryNode" />
  273 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  274 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  275 + <item name="inventory" type="462c0819:PsiDirectoryNode" />
  276 + <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" />
  277 + <item name="domain" type="462c0819:PsiDirectoryNode" />
  278 + </path>
  279 + <path>
  280 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  281 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  282 + <item name="src" type="462c0819:PsiDirectoryNode" />
  283 + <item name="main" type="462c0819:PsiDirectoryNode" />
  284 + <item name="java" type="462c0819:PsiDirectoryNode" />
  285 + <item name="com" type="462c0819:PsiDirectoryNode" />
  286 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  287 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  288 + <item name="shipment" type="462c0819:PsiDirectoryNode" />
  289 + </path>
  290 + <path>
  291 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  292 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  293 + <item name="src" type="462c0819:PsiDirectoryNode" />
  294 + <item name="main" type="462c0819:PsiDirectoryNode" />
  295 + <item name="java" type="462c0819:PsiDirectoryNode" />
  296 + <item name="com" type="462c0819:PsiDirectoryNode" />
  297 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  298 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  299 + <item name="shipment" type="462c0819:PsiDirectoryNode" />
  300 + <item name="shipmentContainerHeader" type="462c0819:PsiDirectoryNode" />
  301 + </path>
  302 + <path>
  303 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  304 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  305 + <item name="src" type="462c0819:PsiDirectoryNode" />
  306 + <item name="main" type="462c0819:PsiDirectoryNode" />
  307 + <item name="java" type="462c0819:PsiDirectoryNode" />
  308 + <item name="com" type="462c0819:PsiDirectoryNode" />
  309 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  310 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  311 + <item name="shipment" type="462c0819:PsiDirectoryNode" />
  312 + <item name="shipmentContainerHeader" type="462c0819:PsiDirectoryNode" />
  313 + <item name="domain" type="462c0819:PsiDirectoryNode" />
  314 + </path>
  315 + <path>
  316 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  317 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  318 + <item name="src" type="462c0819:PsiDirectoryNode" />
  319 + <item name="main" type="462c0819:PsiDirectoryNode" />
  320 + <item name="java" type="462c0819:PsiDirectoryNode" />
  321 + <item name="com" type="462c0819:PsiDirectoryNode" />
  322 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  323 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  324 + <item name="shipment" type="462c0819:PsiDirectoryNode" />
  325 + <item name="shipmentContainerHeader" type="462c0819:PsiDirectoryNode" />
  326 + <item name="mapper" type="462c0819:PsiDirectoryNode" />
  327 + </path>
  328 + <path>
  329 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  330 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  331 + <item name="src" type="462c0819:PsiDirectoryNode" />
  332 + <item name="main" type="462c0819:PsiDirectoryNode" />
  333 + <item name="java" type="462c0819:PsiDirectoryNode" />
  334 + <item name="com" type="462c0819:PsiDirectoryNode" />
  335 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  336 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  337 + <item name="shipment" type="462c0819:PsiDirectoryNode" />
  338 + <item name="shipmentContainerHeader" type="462c0819:PsiDirectoryNode" />
  339 + <item name="service" type="462c0819:PsiDirectoryNode" />
  340 + </path>
  341 + </expand>
  342 + <select />
  343 + </subPane>
  344 + </pane>
  345 + <pane id="Scope" />
  346 + </panes>
  347 + </component>
85 348 <component name="PropertiesComponent">
86 349 <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
87 350 <property name="DatabaseDriversLRU" value="mysql" />
... ... @@ -140,7 +403,7 @@
140 403 </component>
141 404 <component name="RunManager">
142 405 <configuration name="HuaHengApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
143   - <module name="huaheng" />
  406 + <module name="wms2" />
144 407 <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" />
145 408 <option name="ALTERNATIVE_JRE_PATH" />
146 409 <option name="UPDATE_ACTION_UPDATE_POLICY" value="UpdateClassesAndResources" />
... ... @@ -306,6 +569,42 @@
306 569 <option name="localTasksCounter" value="14" />
307 570 <servers />
308 571 </component>
  572 + <component name="ToolWindowManager">
  573 + <frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
  574 + <editor active="true" />
  575 + <layout>
  576 + <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2627346" />
  577 + <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
  578 + <window_info id="Web" order="2" side_tool="true" />
  579 + <window_info id="Designer" order="3" />
  580 + <window_info id="UI Designer" order="4" />
  581 + <window_info id="Favorites" order="5" side_tool="true" />
  582 + <window_info anchor="bottom" id="Messages" visible="true" weight="0.06798867" />
  583 + <window_info anchor="bottom" id="MyBatis Log" />
  584 + <window_info anchor="bottom" id="Message" order="0" />
  585 + <window_info anchor="bottom" id="Find" order="1" />
  586 + <window_info anchor="bottom" id="Run" order="2" />
  587 + <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
  588 + <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
  589 + <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
  590 + <window_info anchor="bottom" id="TODO" order="6" />
  591 + <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
  592 + <window_info anchor="bottom" id="Version Control" order="8" />
  593 + <window_info anchor="bottom" id="Run Dashboard" order="9" />
  594 + <window_info anchor="bottom" id="Spring" order="10" />
  595 + <window_info anchor="bottom" id="Database Changes" order="11" />
  596 + <window_info anchor="bottom" id="Event Log" order="12" side_tool="true" />
  597 + <window_info anchor="bottom" id="Java Enterprise" order="13" />
  598 + <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
  599 + <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
  600 + <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
  601 + <window_info anchor="right" id="Palette" order="3" />
  602 + <window_info anchor="right" id="Maven" order="4" />
  603 + <window_info anchor="right" id="Bean Validation" order="5" />
  604 + <window_info anchor="right" id="Database" order="6" />
  605 + <window_info anchor="right" id="Palette&#9;" order="7" />
  606 + </layout>
  607 + </component>
309 608 <component name="TypeScriptGeneratedFilesManager">
310 609 <option name="version" value="1" />
311 610 </component>
... ... @@ -315,6 +614,12 @@
315 614 <entry key="MAIN">
316 615 <value>
317 616 <State>
  617 + <option name="RECENTLY_FILTERED_USER_GROUPS">
  618 + <collection />
  619 + </option>
  620 + <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
  621 + <collection />
  622 + </option>
318 623 <option name="COLUMN_ORDER" />
319 624 </State>
320 625 </value>
... ... @@ -358,27 +663,79 @@
358 663 <line-breakpoint enabled="true" type="java-line">
359 664 <url>file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/controller/MaterialController.java</url>
360 665 <line>198</line>
  666 + <properties />
361 667 <option name="timeStamp" value="11" />
362 668 </line-breakpoint>
363 669 <line-breakpoint enabled="true" type="java-line">
364 670 <url>file://$PROJECT_DIR$/src/main/java/com/huaheng/common/utils/poi/ExcelUtil.java</url>
365 671 <line>302</line>
  672 + <properties />
366 673 <option name="timeStamp" value="12" />
367 674 </line-breakpoint>
368 675 <line-breakpoint enabled="true" type="java-line">
369 676 <url>file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/controller/MaterialController.java</url>
370 677 <line>187</line>
  678 + <properties />
371 679 <option name="timeStamp" value="16" />
372 680 </line-breakpoint>
373 681 <line-breakpoint enabled="true" type="java-line">
374 682 <url>file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/service/MaterialServiceImpl.java</url>
375 683 <line>66</line>
  684 + <properties />
376 685 <option name="timeStamp" value="24" />
377 686 </line-breakpoint>
378 687 </breakpoints>
379 688 </breakpoint-manager>
380 689 </component>
381   - <component name="com.intellij.coverage.CoverageDataManagerImpl">
382   - <SUITE FILE_PATH="coverage/wmsv2$HuaHengApplication.ic" NAME="HuaHengApplication Coverage Results" MODIFIED="1565752188059" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
  690 + <component name="editorHistoryManager">
  691 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java">
  692 + <provider selected="true" editor-type-id="text-editor">
  693 + <state relative-caret-position="60">
  694 + <caret line="155" selection-start-line="155" selection-end-line="155" />
  695 + </state>
  696 + </provider>
  697 + </entry>
  698 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/controller/InventoryHeaderController.java">
  699 + <provider selected="true" editor-type-id="text-editor">
  700 + <state relative-caret-position="200">
  701 + <caret line="30" column="13" selection-start-line="30" selection-start-column="13" selection-end-line="30" selection-end-column="13" />
  702 + </state>
  703 + </provider>
  704 + </entry>
  705 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java">
  706 + <provider selected="true" editor-type-id="text-editor">
  707 + <state relative-caret-position="-304">
  708 + <caret line="25" column="13" selection-start-line="25" selection-start-column="13" selection-end-line="25" selection-end-column="13" />
  709 + </state>
  710 + </provider>
  711 + </entry>
  712 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/domain/ShipmentContainerHeader.java">
  713 + <provider selected="true" editor-type-id="text-editor">
  714 + <state relative-caret-position="-356">
  715 + <caret line="118" column="16" selection-start-line="118" selection-start-column="16" selection-end-line="118" selection-end-column="16" />
  716 + </state>
  717 + </provider>
  718 + </entry>
  719 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/domain/ShipmentCombinationModel.java">
  720 + <provider selected="true" editor-type-id="text-editor">
  721 + <state relative-caret-position="68">
  722 + <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
  723 + </state>
  724 + </provider>
  725 + </entry>
  726 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderServiceImpl.java">
  727 + <provider selected="true" editor-type-id="text-editor">
  728 + <state relative-caret-position="202">
  729 + <caret line="76" column="16" lean-forward="true" selection-start-line="76" selection-start-column="16" selection-end-line="76" selection-end-column="16" />
  730 + </state>
  731 + </provider>
  732 + </entry>
  733 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/domain/InventoryDetail.java">
  734 + <provider selected="true" editor-type-id="text-editor">
  735 + <state relative-caret-position="1156">
  736 + <caret line="81" column="11" lean-forward="true" selection-start-line="81" selection-start-column="11" selection-end-line="81" selection-end-column="11" />
  737 + </state>
  738 + </provider>
  739 + </entry>
383 740 </component>
384 741 </project>
385 742 \ No newline at end of file
... ...
doc/说明 0 → 100644
  1 +
  2 +
  3 +mybatis plus框架封装方法
  4 +
  5 +le小于等于
  6 +eq等于
... ...
sql/bug deleted
1   -
2   -
3   -
4   -
5   -
6   -
7   -
8   -
9   -
10   -
11   -
12   -
13   -
src/main/java/com/huaheng/pc/config/excelTemplate/controller/excelTemplateController.java 0 → 100644
  1 +package com.huaheng.pc.config.excelTemplate.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.config.excelTemplate.domain.ExcelTemplate;
  18 +import com.huaheng.pc.config.excelTemplate.service.ExcelTemplateService;
  19 +import io.swagger.annotations.ApiOperation;
  20 +import io.swagger.annotations.ApiParam;
  21 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  22 +import org.springframework.stereotype.Controller;
  23 +import org.springframework.ui.ModelMap;
  24 +import org.springframework.web.bind.annotation.*;
  25 +
  26 +import javax.annotation.Resource;
  27 +import java.util.ArrayList;
  28 +import java.util.List;
  29 +
  30 +@Controller
  31 +@RequestMapping("/config/excelTemplate")
  32 +public class excelTemplateController extends BaseController {
  33 +
  34 + @Resource
  35 + private ExcelTemplateService excelTemplateService;
  36 +
  37 + private String prefix ="/config/excelTemplate";
  38 +
  39 + @RequiresPermissions("config:excelTemplate:view")
  40 + @GetMapping()
  41 + public String receiptDetailHistory() {
  42 + return prefix + "/excelTemplate";
  43 + }
  44 +
  45 + /**
  46 + * 查询导入
  47 + */
  48 + @ApiOperation(value="查看导入列表", notes="根据名称、创建时间获取导入", httpMethod = "POST")
  49 + @RequiresPermissions("config:excelTemplate:list")
  50 + @Log(title = "配置-导入模板",operating = "导入模板列表", action = BusinessType.GRANT)
  51 + @PostMapping("/list")
  52 + @ResponseBody
  53 + public TableDataInfo list(@ApiParam(name="ExcelTemplate",value="名称") ExcelTemplate excelTemplate,
  54 + @ApiParam(name = "createdBegin", value = "起止时间") String createdBegin,
  55 + @ApiParam(name = "createdEnd", value = "结束时间") String createdEnd) {
  56 + LambdaQueryWrapper<ExcelTemplate> lambdaQueryWrapper = Wrappers.lambdaQuery();
  57 + PageDomain pageDomain = TableSupport.buildPageRequest();
  58 + Integer pageNum = pageDomain.getPageNum();
  59 + Integer pageSize = pageDomain.getPageSize();
  60 + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), ExcelTemplate::getCreated, createdBegin)
  61 + .lt(StringUtils.isNotEmpty(createdEnd), ExcelTemplate::getCreated, createdEnd)
  62 + .eq(StringUtils.isNotEmpty(excelTemplate.getName()), ExcelTemplate::getName, excelTemplate.getName())
  63 + .eq(ExcelTemplate::getWarehouseCode, ShiroUtils.getWarehouseCode())
  64 + .in(ExcelTemplate::getCompanyCode, ShiroUtils.getCompanyCodeList());
  65 +
  66 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  67 + /*使用分页查询*/
  68 + Page<ExcelTemplate> page = new Page<>(pageNum, pageSize);
  69 + IPage<ExcelTemplate> iPage = excelTemplateService.page(page, lambdaQueryWrapper);
  70 + return getMpDataTable(iPage.getRecords(), iPage.getTotal());
  71 + } else {
  72 + List<ExcelTemplate> list = excelTemplateService.list(lambdaQueryWrapper);
  73 + return getDataTable(list);
  74 + }
  75 + }
  76 +
  77 + /**
  78 + * 新增导入模板列表
  79 + */
  80 + @GetMapping("/add")
  81 + public String add() {
  82 + return prefix + "/add";
  83 + }
  84 +
  85 + /**
  86 + * 新增保存导入模板列表
  87 + */
  88 + @ApiOperation(value="新增保存导入模板列表", notes="新增保存导入模板列表", httpMethod = "POST")
  89 + @RequiresPermissions("config:excelTemplate:add")
  90 + @Log(title = "配置-导入模板列表",operating = "新增保存导入模板列表", action = BusinessType.INSERT)
  91 + @PostMapping("/add")
  92 + @ResponseBody
  93 + public AjaxResult addSave(ExcelTemplate excelTemplate) {
  94 + excelTemplate.setWarehouseCode(ShiroUtils.getWarehouseCode());
  95 + excelTemplate.setCreatedBy(ShiroUtils.getLoginName());
  96 + excelTemplate.setLastUpdatedBy(ShiroUtils.getLoginName());
  97 + return toAjax(excelTemplateService.save(excelTemplate ));
  98 + }
  99 +
  100 + /**
  101 + * 修改导入模板
  102 + */
  103 + @GetMapping("/edit/{id}")
  104 + public String edit(@PathVariable("id") Integer id, ModelMap mmap) {
  105 + ExcelTemplate excelTemplate = excelTemplateService.getById(id);
  106 + mmap.put("excelTemplate", excelTemplate);
  107 + return prefix + "/edit";
  108 + }
  109 +
  110 + /**
  111 + * 修改报存导入模板
  112 + */
  113 + @ApiOperation(value="修改导入模板列表信息", notes="修改导入模板列表信息", httpMethod = "POST")
  114 + @RequiresPermissions("config:excelTemplate:edit")
  115 + @Log(title = "配置-导入模板列表",operating = "修改导入模板列表", action = BusinessType.UPDATE)
  116 + @PostMapping("/edit")
  117 + @ResponseBody
  118 + public AjaxResult editSave(ExcelTemplate excelTemplate) {
  119 + excelTemplate.setLastUpdatedBy(ShiroUtils.getLoginName());
  120 + return toAjax(excelTemplateService.updateById(excelTemplate));
  121 + }
  122 +
  123 + /**
  124 + * 删除报存导入模板
  125 + */
  126 + @ApiOperation(value="删除报存导入模板信息", notes="单条删除或批量删除报存导入模板信息,示例1或1,2,3", httpMethod = "POST")
  127 + @RequiresPermissions("config:excelTemplate:remove")
  128 + @Log(title = "配置-报存导入模板",operating = "删除报存导入模板", action = BusinessType.DELETE)
  129 + @PostMapping( "/remove")
  130 + @ResponseBody
  131 + public AjaxResult remove(String ids) {
  132 + if (StringUtils.isEmpty(ids)) {
  133 + return AjaxResult.error("id不能为空");
  134 + }
  135 + List<Integer> list = new ArrayList<>();
  136 + for (Integer id : Convert.toIntArray(ids)) {
  137 + list.add(id);
  138 + }
  139 + return toAjax(excelTemplateService.removeByIds(list));
  140 + }
  141 +}
... ...
src/main/java/com/huaheng/pc/config/excelTemplate/domain/ExcelTemplate.java 0 → 100644
  1 +package com.huaheng.pc.config.excelTemplate.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import io.swagger.annotations.ApiModel;
  8 +import io.swagger.annotations.ApiModelProperty;
  9 +import java.io.Serializable;
  10 +import java.util.Date;
  11 +import lombok.Data;
  12 +
  13 +@ApiModel(value="com.huaheng.pc.config.excelTemplate.domain.ExcelTemplate")
  14 +@Data
  15 +@TableName(value = "excel_template")
  16 +public class ExcelTemplate implements Serializable {
  17 + /**
  18 + * 主键
  19 + */
  20 + @TableId(value = "id", type = IdType.INPUT)
  21 + @ApiModelProperty(value="主键")
  22 + private Integer id;
  23 +
  24 + /**
  25 + * 仓库编码
  26 + */
  27 + @TableField(value = "warehouseCode")
  28 + @ApiModelProperty(value="仓库编码")
  29 + private String warehouseCode;
  30 +
  31 + /**
  32 + * 货主编码
  33 + */
  34 + @TableField(value = "companyCode")
  35 + @ApiModelProperty(value="货主编码")
  36 + private String companyCode;
  37 +
  38 + /**
  39 + * 导入表名称
  40 + */
  41 + @TableField(value = "name")
  42 + @ApiModelProperty(value="导入表名称")
  43 + private String name;
  44 +
  45 + /**
  46 + * 请求地址
  47 + */
  48 + @TableField(value = "url")
  49 + @ApiModelProperty(value="请求地址")
  50 + private String url;
  51 +
  52 + /**
  53 + * 创建时间
  54 + */
  55 + @TableField(value = "created")
  56 + @ApiModelProperty(value="创建时间")
  57 + private Date created;
  58 +
  59 + /**
  60 + * 创建者
  61 + */
  62 + @TableField(value = "createdBy")
  63 + @ApiModelProperty(value="创建者")
  64 + private String createdBy;
  65 +
  66 + /**
  67 + * 最后更新时间
  68 + */
  69 + @TableField(value = "lastUpdateBy")
  70 + @ApiModelProperty(value="最后更新时间")
  71 + private Date lastUpdateBy;
  72 +
  73 + /**
  74 + * 最后更新者
  75 + */
  76 + @TableField(value = "lastUpdatedBy")
  77 + @ApiModelProperty(value="最后更新者")
  78 + private String lastUpdatedBy;
  79 +
  80 + /**
  81 + * 数据版本
  82 + */
  83 + @TableField(value = "version")
  84 + @ApiModelProperty(value="数据版本")
  85 + private String version;
  86 +
  87 + /**
  88 + * 是否有效
  89 + */
  90 + @TableField(value = "enable")
  91 + @ApiModelProperty(value="是否有效")
  92 + private Boolean enable;
  93 +
  94 + private static final long serialVersionUID = 1L;
  95 +}
0 96 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/config/excelTemplate/mapper/ExcelTemplateMapper.java 0 → 100644
  1 +package com.huaheng.pc.config.excelTemplate.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.huaheng.pc.config.excelTemplate.domain.ExcelTemplate;
  5 +
  6 +public interface ExcelTemplateMapper extends BaseMapper<ExcelTemplate> {
  7 +}
0 8 \ No newline at end of file
... ...
src/main/java/com/huaheng/pc/config/excelTemplate/service/ExcelTemplateService.java 0 → 100644
  1 +package com.huaheng.pc.config.excelTemplate.service;
  2 +
  3 +import com.huaheng.pc.config.excelTemplate.domain.ExcelTemplate;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +
  6 +import java.util.List;
  7 +import java.util.Map;
  8 +
  9 +public interface ExcelTemplateService extends IService<ExcelTemplate>{
  10 +
  11 + List<Map<String, Object>> getList();
  12 +}
... ...
src/main/java/com/huaheng/pc/config/excelTemplate/service/ExcelTemplateServiceImpl.java 0 → 100644
  1 +package com.huaheng.pc.config.excelTemplate.service;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  5 +import com.huaheng.common.utils.security.ShiroUtils;
  6 +import org.springframework.stereotype.Service;
  7 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  8 +import com.huaheng.pc.config.excelTemplate.domain.ExcelTemplate;
  9 +import com.huaheng.pc.config.excelTemplate.mapper.ExcelTemplateMapper;
  10 +
  11 +import java.util.List;
  12 +import java.util.Map;
  13 +
  14 +@Service("excelService")
  15 +public class ExcelTemplateServiceImpl extends ServiceImpl<ExcelTemplateMapper, ExcelTemplate> implements ExcelTemplateService{
  16 +
  17 + public List<Map<String, Object>> getList(){
  18 + LambdaQueryWrapper<ExcelTemplate> lambdaQueryWrapper = Wrappers.lambdaQuery();
  19 + lambdaQueryWrapper.eq(ExcelTemplate::getWarehouseCode, ShiroUtils.getWarehouseCode())
  20 + .in(ExcelTemplate::getCompanyCode, ShiroUtils.getCompanyCodeList())
  21 + .eq(ExcelTemplate::getEnable,true);
  22 +
  23 + return this.listMaps(lambdaQueryWrapper);
  24 + }
  25 +}
... ...
src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java 0 → 100644
  1 +package com.huaheng.pc.inventory.inventoryDetail.controller;
  2 +
  3 +import com.huaheng.common.utils.StringUtils;
  4 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  5 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  6 +import com.huaheng.framework.web.controller.BaseController;
  7 +import com.huaheng.framework.web.domain.AjaxResult;
  8 +import com.huaheng.framework.web.page.TableDataInfo;
  9 +import com.huaheng.pc.general.material.service.MaterialServiceImpl;
  10 +import com.huaheng.pc.inventory.inventoryHeader.service.InventoryHeaderService;
  11 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  12 +import org.springframework.stereotype.Controller;
  13 +import org.springframework.web.bind.annotation.GetMapping;
  14 +import org.springframework.web.bind.annotation.PostMapping;
  15 +import org.springframework.web.bind.annotation.RequestMapping;
  16 +import org.springframework.web.bind.annotation.ResponseBody;
  17 +
  18 +import javax.annotation.Resource;
  19 +
  20 +/**
  21 + * 库存明细控制层
  22 + *
  23 + */
  24 +@Controller
  25 +@RequestMapping("/inventory/inventoryHeader")
  26 +public class InventoryDetailController extends BaseController
  27 +{
  28 + private String prefix = "inventoryHeader/inventoryHeader";
  29 +
  30 + @Resource
  31 + private MaterialServiceImpl materialService;
  32 + @Resource
  33 + private InventoryHeaderService inventoryHeaderService;
  34 +
  35 +
  36 +
  37 + @RequiresPermissions("inventoryHeader:inventoryHeader:view")
  38 + @GetMapping()
  39 + public String inventory()
  40 + {
  41 + return prefix + "/inventoryHeader";
  42 + }
  43 +
  44 + /**
  45 + * 查询库存列表
  46 + */
  47 + @RequiresPermissions("inventoryHeader:inventoryHeader:list")
  48 + @Log(title = "库存-库存查看",operating = "查看库存列表", action = BusinessType.GRANT)
  49 + @PostMapping("/inventoryLook")
  50 + @ResponseBody
  51 + public TableDataInfo list()
  52 + {
  53 +
  54 + return null;
  55 + }
  56 +
  57 + @GetMapping("/transfer")
  58 + public String transfer(){
  59 + return prefix + "/transfer";
  60 + }
  61 +
  62 + /**移库*/
  63 + @RequiresPermissions("inventoryHeader:inventoryHeader:transfer")
  64 + @PostMapping("/transfer")
  65 + @ResponseBody
  66 + public AjaxResult transfer(String sourceLocation, String destinationLocation, Integer companyId, String companyCode){
  67 + return null;
  68 + //inventoryHeaderService.transfer(sourceLocation,destinationLocation,companyId,companyCode);
  69 + }
  70 +
  71 + /**出库查看*/
  72 + @RequiresPermissions("inventoryHeader:inventoryHeader:seeOut")
  73 + @PostMapping("/createCheckOutTask")
  74 + @ResponseBody
  75 + public AjaxResult createCheckOutTask(String ids){
  76 + if(StringUtils.isEmpty(ids)){
  77 + return AjaxResult.error("ids不能为空");
  78 + }
  79 + return null;
  80 + //taskService.createCheckOutTask(ids.split(","));
  81 + }
  82 +
  83 +}
... ...
src/main/java/com/huaheng/pc/inventory/inventoryDetail/domain/InventoryDetail.java
... ... @@ -18,6 +18,12 @@ public class InventoryDetail implements Serializable {
18 18 @TableId(value = "id", type = IdType.AUTO)
19 19 private Integer id;
20 20  
  21 + /**
  22 + * 库存头ID
  23 + * */
  24 + @TableField(value = "inventoryHeaderId")
  25 + private Integer inventoryHeaderId;
  26 +
21 27 /**
22 28 * 仓库
23 29 */
... ... @@ -246,7 +252,6 @@ public class InventoryDetail implements Serializable {
246 252 @TableField(value = "userDef3")
247 253 private String userDef3;
248 254  
249   -
250 255 /**
251 256 * 处理标记
252 257 */
... ... @@ -255,6 +260,8 @@ public class InventoryDetail implements Serializable {
255 260  
256 261 private static final long serialVersionUID = 1L;
257 262  
  263 + public static final String COL_INVENTORYHEADERID = "inventoryHeaderId";
  264 +
258 265 public static final String COL_WAREHOUSECODE = "warehouseCode";
259 266  
260 267 public static final String COL_COMPANYCODE = "companyCode";
... ...
src/main/java/com/huaheng/pc/inventory/inventoryHeader/controller/InventoryHeaderController.java 0 → 100644
  1 +package com.huaheng.pc.inventory.inventoryHeader.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.utils.StringUtils;
  8 +import com.huaheng.common.utils.security.ShiroUtils;
  9 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  10 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  11 +import com.huaheng.framework.web.controller.BaseController;
  12 +import com.huaheng.framework.web.domain.AjaxResult;
  13 +import com.huaheng.framework.web.page.PageDomain;
  14 +import com.huaheng.framework.web.page.TableDataInfo;
  15 +import com.huaheng.framework.web.page.TableSupport;
  16 +import com.huaheng.pc.general.material.service.MaterialServiceImpl;
  17 +import com.huaheng.pc.inventory.inventoryHeader.domain.InventoryHeader;
  18 +import com.huaheng.pc.inventory.inventoryHeader.service.InventoryHeaderService;
  19 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  20 +import org.springframework.stereotype.Controller;
  21 +import org.springframework.web.bind.annotation.*;
  22 +import javax.annotation.Resource;
  23 +import java.util.List;
  24 +
  25 +/**
  26 + * 库存控制层
  27 + *
  28 + */
  29 +@Controller
  30 +@RequestMapping("/inventory/inventoryHeader")
  31 +public class InventoryHeaderController extends BaseController
  32 +{
  33 + private String prefix = "inventoryHeader/inventoryHeader";
  34 +
  35 + @Resource
  36 + private MaterialServiceImpl materialService;
  37 + @Resource
  38 + private InventoryHeaderService inventoryHeaderService;
  39 +
  40 +
  41 + @RequiresPermissions("inventoryHeader:inventoryHeader:view")
  42 + @GetMapping()
  43 + public String inventoryHeader()
  44 + {
  45 + return prefix + "/inventoryHeader";
  46 + }
  47 +
  48 + /**
  49 + * 查询库存列表
  50 + */
  51 + @RequiresPermissions("inventoryHeader:inventoryHeader:list")
  52 + @Log(title = "库存-库存查看",operating = "查看库存列表", action = BusinessType.GRANT)
  53 + @PostMapping("/inventoryLook")
  54 + @ResponseBody
  55 + public TableDataInfo list(InventoryHeader inventoryHeader,String createdBegin, String createdEnd)
  56 + {
  57 + LambdaQueryWrapper<InventoryHeader> lambdaQueryWrapper = Wrappers.lambdaQuery();
  58 + PageDomain pageDomain = TableSupport.buildPageRequest();
  59 + Integer pageNum = pageDomain.getPageNum();
  60 + Integer pageSize = pageDomain.getPageSize();
  61 +
  62 + lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),InventoryHeader::getCreated, createdBegin)
  63 + .le(StringUtils.isNotEmpty(createdEnd), InventoryHeader::getCreated, createdEnd)//创建时间范围
  64 + .eq(InventoryHeader::getWarehouseCode,ShiroUtils.getWarehouseCode())//仓库
  65 + .eq(StringUtils.isNotEmpty(inventoryHeader.getLocationCode()),InventoryHeader::getLocationCode,inventoryHeader.getLocationCode()) //库位
  66 + .eq(StringUtils.isNotEmpty(inventoryHeader.getContainerCode()),InventoryHeader::getContainerCode,inventoryHeader.getContainerCode())//容器
  67 + .eq(StringUtils.isNotEmpty(inventoryHeader.getCompanyCode()), InventoryHeader::getCompanyCode,inventoryHeader.getCompanyCode())//货主
  68 + .eq(StringUtils.isNotEmpty(inventoryHeader.getBatchs()), InventoryHeader::getBatchs, inventoryHeader.getBatchs())//批次
  69 + .eq(StringUtils.isNotEmpty(inventoryHeader.getLots()),InventoryHeader::getLots,inventoryHeader.getLots())//批号
  70 + .orderByDesc(InventoryHeader::getId);
  71 +
  72 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  73 + //分页查询
  74 + Page<InventoryHeader> page = new Page<>(pageNum, pageSize);
  75 + IPage<InventoryHeader> iPage = inventoryHeaderService.page(page, lambdaQueryWrapper);
  76 + return getMpDataTable(iPage.getRecords(),iPage.getTotal());
  77 + } else {
  78 + List<InventoryHeader> list = inventoryHeaderService.list(lambdaQueryWrapper);
  79 + return getDataTable(list);
  80 + }
  81 +
  82 + }
  83 + /**
  84 + * 移库页面
  85 + * */
  86 + @GetMapping("/transfer")
  87 + public String transfer(){
  88 + return prefix + "/transfer";
  89 + }
  90 +
  91 + /**移库*/
  92 + @RequiresPermissions("inventoryHeader:inventoryHeader:transfer")
  93 + @PostMapping("/transfer")
  94 + @ResponseBody
  95 + public AjaxResult transfer(String sourceLocation, String destinationLocation, Integer companyId, String companyCode){
  96 + return null;
  97 + //inventoryHeaderService.transfer(sourceLocation,destinationLocation,companyId,companyCode);
  98 + }
  99 +
  100 + /**出库查看*/
  101 + @RequiresPermissions("inventoryHeader:inventoryHeader:seeOut")
  102 + @PostMapping("/createCheckOutTask")
  103 + @ResponseBody
  104 + public AjaxResult createCheckOutTask(String ids){
  105 + if(StringUtils.isEmpty(ids)){
  106 + return AjaxResult.error("ids不能为空");
  107 + }
  108 + return null;
  109 + //taskService.createCheckOutTask(ids.split(","));
  110 + }
  111 +
  112 +}
... ...
src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java
... ... @@ -71,7 +71,7 @@ public class InventoryHeader implements Serializable {
71 71 private Integer totalQty;
72 72  
73 73 /**
74   - * 总数量
  74 + * 总行数
75 75 */
76 76 @TableField(value = "totalLines")
77 77 private Integer totalLines;
... ... @@ -155,36 +155,6 @@ public class InventoryHeader implements Serializable {
155 155 private String userDef3;
156 156  
157 157 /**
158   - * 自定义字段4
159   - */
160   - @TableField(value = "userDef4")
161   - private String userDef4;
162   -
163   - /**
164   - * 自定义字段5
165   - */
166   - @TableField(value = "userDef5")
167   - private String userDef5;
168   -
169   - /**
170   - * 自定义字段6
171   - */
172   - @TableField(value = "userDef6")
173   - private String userDef6;
174   -
175   - /**
176   - * 自定义字段7
177   - */
178   - @TableField(value = "userDef7")
179   - private String userDef7;
180   -
181   - /**
182   - * 自定义字段8
183   - */
184   - @TableField(value = "userDef8")
185   - private String userDef8;
186   -
187   - /**
188 158 * 库存详情
189 159 */
190 160 private InventoryDetail inventoryDetail;
... ...
src/main/java/com/huaheng/pc/inventory/inventoryHeader/service/InventoryHeaderService.java
... ... @@ -2,7 +2,12 @@ package com.huaheng.pc.inventory.inventoryHeader.service;
2 2  
3 3 import com.huaheng.pc.inventory.inventoryHeader.domain.InventoryHeader;
4 4 import com.baomidou.mybatisplus.extension.service.IService;
  5 +import org.springframework.stereotype.Service;
  6 +
  7 +@Service
5 8 public interface InventoryHeaderService extends IService<InventoryHeader>{
6 9  
7 10  
  11 +
  12 +
8 13 }
... ...
src/main/java/com/huaheng/pc/inventory/inventoryTransaction/domain/InventoryTransaction.java
... ... @@ -10,7 +10,7 @@ import java.io.Serializable;
10 10 import java.util.Date;
11 11 import lombok.Data;
12 12  
13   -@ApiModel(value="com.huaheng.pc.inventory.inventoryTransaction.domain.InventoryTransaction")
  13 +@ApiModel(value="com.huaheng.pc.inventoryHeader.inventoryTransaction.domain.InventoryTransaction")
14 14 @Data
15 15 @TableName(value = "inventory_transaction")
16 16 public class InventoryTransaction implements Serializable {
... ...
src/main/java/com/huaheng/pc/shipment/shipmentHeader/domain/ShipmentHeader.java
... ... @@ -356,42 +356,6 @@ public class ShipmentHeader implements Serializable {
356 356 @TableField(value = "userDef3")
357 357 @ApiModelProperty(value = "自定义字段3")
358 358 private String userDef3;
359   -
360   - /**
361   - * 自定义字段4
362   - */
363   - @TableField(value = "userDef4")
364   - @ApiModelProperty(value = "自定义字段4")
365   - private String userDef4;
366   -
367   - /**
368   - * 自定义字段5
369   - */
370   - @TableField(value = "userDef5")
371   - @ApiModelProperty(value = "自定义字段5")
372   - private String userDef5;
373   -
374   - /**
375   - * 自定义字段6
376   - */
377   - @TableField(value = "userDef6")
378   - @ApiModelProperty(value = "自定义字段6")
379   - private String userDef6;
380   -
381   - /**
382   - * 自定义字段7
383   - */
384   - @TableField(value = "userDef7")
385   - @ApiModelProperty(value = "自定义字段7")
386   - private String userDef7;
387   -
388   - /**
389   - * 自定义字段8
390   - */
391   - @TableField(value = "userDef8")
392   - @ApiModelProperty(value = "自定义字段8")
393   - private String userDef8;
394   -
395 359 /**
396 360 * 处理标记
397 361 */
... ... @@ -502,16 +466,6 @@ public class ShipmentHeader implements Serializable {
502 466  
503 467 public static final String COL_USERDEF3 = "userDef3";
504 468  
505   - public static final String COL_USERDEF4 = "userDef4";
506   -
507   - public static final String COL_USERDEF5 = "userDef5";
508   -
509   - public static final String COL_USERDEF6 = "userDef6";
510   -
511   - public static final String COL_USERDEF7 = "userDef7";
512   -
513   - public static final String COL_USERDEF8 = "userDef8";
514   -
515 469 public static final String COL_PROCESSSTAMP = "processStamp";
516 470  
517 471 public static final String COL_DELETED = "deleted";
... ...
src/main/java/com/huaheng/pc/system/user/controller/IndexController.java
... ... @@ -73,7 +73,7 @@ public class IndexController extends BaseController
73 73 pie.itemStyle().emphasis().setShadowBlur(10);
74 74 pie.itemStyle().emphasis().setShadowOffsetX(0);
75 75 pie.itemStyle().emphasis().setShadowColor("rgba(0, 0, 0, 0.4)");
76   - String sql = "SELECT d.dictLabel '状态', i.qty '库存' FROM (SELECT status ,SUM(qty) qty FROM inventory WHERE warehouseCode = " + ShiroUtils.getWarehouseCode() + " GROUP BY status) i INNER JOIN sys_dict_data d ON i.status= d.dictValue AND d.warehouseCode = ' " + ShiroUtils.getWarehouseCode()+"' ;";
  76 + String sql = "SELECT d.dictLabel '状态', i.qty '库存' FROM (SELECT status ,SUM(qty) qty FROM inventoryHeader WHERE warehouseCode = " + ShiroUtils.getWarehouseCode() + " GROUP BY status) i INNER JOIN sys_dict_data d ON i.status= d.dictValue AND d.warehouseCode = ' " + ShiroUtils.getWarehouseCode()+"' ;";
77 77 List<LinkedHashMap<String, Object>> results = mapper.selectCommon(sql);
78 78 for(LinkedHashMap<String, Object> item : results){
79 79 ChartData chartData = new ChartData();
... ... @@ -211,7 +211,7 @@ public class IndexController extends BaseController
211 211 @GetMapping("index/getInventoryProp")
212 212 @ResponseBody
213 213 public String getInventoryProp(){
214   - String sql = "SELECT m.`name`,sum(i.qty) as total from inventory i join material m on i.materialCode = m.`code` and i.warehouseId = m.warehouseId AND i.warehouseCode = "+ShiroUtils.getWarehouseCode()+" \n" +
  214 + String sql = "SELECT m.`name`,sum(i.qty) as total from inventoryHeader i join material m on i.materialCode = m.`code` and i.warehouseId = m.warehouseId AND i.warehouseCode = "+ShiroUtils.getWarehouseCode()+" \n" +
215 215 "GROUP BY m.`name` ORDER BY total desc;";
216 216 List<LinkedHashMap<String, Object>> results = mapper.selectCommon(sql);
217 217  
... ...
src/main/resources/mybatis/config/ExcelTemplateMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.huaheng.pc.config.excelTemplate.mapper.ExcelTemplateMapper">
  4 + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.excelTemplate.domain.ExcelTemplate">
  5 + <!--@mbg.generated-->
  6 + <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
  8 + <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
  9 + <result column="name" jdbcType="VARCHAR" property="name" />
  10 + <result column="url" jdbcType="VARCHAR" property="url" />
  11 + <result column="created" jdbcType="TIMESTAMP" property="created" />
  12 + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
  13 + <result column="lastUpdateBy" jdbcType="TIMESTAMP" property="lastUpdateBy" />
  14 + <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
  15 + <result column="version" jdbcType="VARCHAR" property="version" />
  16 + <result column="enable" jdbcType="BIT" property="enable" />
  17 + </resultMap>
  18 + <sql id="Base_Column_List">
  19 + <!--@mbg.generated-->
  20 + id, warehouseCode, companyCode, `name`, url, created, createdBy, lastUpdateBy, lastUpdatedBy,
  21 + version, `enable`
  22 + </sql>
  23 +</mapper>
0 24 \ No newline at end of file
... ...
src/main/resources/mybatis/inventory/InventoryDetailMapper.xml
... ... @@ -4,6 +4,7 @@
4 4 <resultMap id="BaseResultMap" type="com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail">
5 5 <!--@mbg.generated-->
6 6 <id column="id" jdbcType="INTEGER" property="id" />
  7 + <result column="inventoryHeaderId" jdbcType="INTEGER" property="inventoryHeaderId" />
7 8 <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
8 9 <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
9 10 <result column="locationCode" jdbcType="VARCHAR" property="locationCode" />
... ... @@ -42,16 +43,11 @@
42 43 <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
43 44 <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
44 45 <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
45   - <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
46   - <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
47   - <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
48   - <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
49   - <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
50 46 <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
51 47 </resultMap>
52 48 <sql id="Base_Column_List">
53 49 <!--@mbg.generated-->
54   - id, warehouseCode, companyCode, locationCode, containerCode, materialCode, materialName,
  50 + id,inventoryHeaderId , warehouseCode, companyCode, locationCode, containerCode, materialCode, materialName,
55 51 materialSpec, materialUnit, qty, taskQty, lockedQty, inventorySts, referCode, referId,
56 52 referDetailId, batch, lot, projectNo, qcCheck, weight, manufactureDate, expirationDate,
57 53 agingDate, attributeId, attribute1, attribute2, attribute3, attribute4, lockCode,
... ...
src/main/resources/mybatis/inventory/InventoryHeaderMapper.xml
... ... @@ -26,17 +26,12 @@
26 26 <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
27 27 <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
28 28 <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
29   - <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
30   - <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
31   - <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
32   - <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
33   - <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
34 29 </resultMap>
35 30 <sql id="Base_Column_List">
36 31 <!--@mbg.generated-->
37 32 id, warehouseCode, locationCode, containerCode, containerStatus, companyCode, weight,
38 33 materialSkuQty, totalQty, totalLines, projectNos, batchs, lots, lastCycleCountDate,
39 34 `enable`, created, createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2,
40   - userDef3, userDef4, userDef5, userDef6, userDef7, userDef8
  35 + userDef3,
41 36 </sql>
42 37 </mapper>
43 38 \ No newline at end of file
... ...
src/main/resources/templates/admin/inventory/inventory.html
... ... @@ -67,7 +67,7 @@
67 67 </li>
68 68 <li>
69 69 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
70   - <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventory:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  70 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
71 71 </li>
72 72 </ul>
73 73 </div>
... ...
src/main/resources/templates/admin/inventoryTransaction/inventoryTransaction.html
... ... @@ -56,7 +56,7 @@
56 56 </li>
57 57 <li>
58 58 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
59   - <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventory:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  59 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
60 60 </li>
61 61 </ul>
62 62 </div>
... ... @@ -64,10 +64,10 @@
64 64 </div>
65 65 <!--
66 66 <div class="btn-group hidden-xs" id="toolbar" role="group">
67   - <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="inventory:inventoryTransaction:add">
  67 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="inventoryHeader:inventoryTransaction:add">
68 68 <i class="fa fa-plus"></i> 新增
69 69 </a>
70   - <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="inventory:inventoryTransaction:remove">
  70 + <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="inventoryHeader:inventoryTransaction:remove">
71 71 <i class="fa fa-trash-o"></i> 删除
72 72 </a>
73 73 </div>
... ... @@ -84,7 +84,7 @@
84 84 </div>
85 85 <div th:include="include :: footer"></div>
86 86 <script th:inline="javascript">
87   - var editFlag = [[${@permission.hasPermi('inventory:inventoryTransaction:edit')}]];
  87 + var editFlag = [[${@permission.hasPermi('inventoryHeader:inventoryTransaction:edit')}]];
88 88 var prefix = ctx + "admin/inventoryTransaction";
89 89 var inventoryStatus=[[${@dict.getType('inventoryStatus')}]];
90 90 var inventoryTransactionType = [[${@dict.getType('inventoryTransactionType')}]];
... ...
src/main/resources/templates/config/excelTemplate/add.html 0 → 100644
  1 +<!DOCTYPE HTML>
  2 +<html lang="zh" xmlns:th="http://www.thymeleaf.org">
  3 +<meta charset="utf-8">
  4 +<head th:include="include :: header"></head>
  5 +<body class="white-bg">
  6 +<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  7 + <form class="form-horizontal m" id="form-excelTemplate-add">
  8 + <input name="id" type="hidden">
  9 + <div class="form-group">
  10 + <label class="col-sm-3 control-label">导入表名称:</label>
  11 + <div class="col-sm-8">
  12 + <input id="name" name="name" class="form-control" type="text">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="col-sm-3 control-label">请求地址:</label>
  17 + <div class="col-sm-8">
  18 + <input id="url" name="url" class="form-control" type="text">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="col-sm-3 control-label">货主编码:</label>
  23 + <div class="col-sm-8">
  24 + <select id="companyCode" name="companyCode" class="form-control" th:with="companyList=${@companyService.selectCompanyByCurrentUserId()}">
  25 + <option th:each="company : ${companyList}" th:text="${company['name']}" th:value="${company['code']}"></option>
  26 + </select>
  27 + </div>
  28 + </div>
  29 + <div class="form-group">
  30 + <label class="col-sm-3 control-label">是否有效:</label>
  31 + <div class="col-sm-8">
  32 + <div class="onoffswitch">
  33 + <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable" name="enable">
  34 + <label class="onoffswitch-label" for="enable">
  35 + <span class="onoffswitch-inner"></span>
  36 + <span class="onoffswitch-switch"></span>
  37 + </label>
  38 + </div>
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <div class="form-control-static col-sm-offset-9">
  43 + <button type="submit" class="btn btn-primary">提交</button>
  44 + <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
  45 + </div>
  46 + </div>
  47 + </form>
  48 +</div>
  49 +<div th:include="include::footer"></div>
  50 +<script type="text/javascript">
  51 + var prefix = ctx + "config/excelTemplate";
  52 + $("#form-excelTemplate-add").validate({
  53 + rules:{
  54 + code:{
  55 + required:true,
  56 + },
  57 + referType:{
  58 + required:true,
  59 + },
  60 + receiptFlow:{
  61 + required:true,
  62 + },
  63 + },
  64 + submitHandler: function(form) {
  65 + // $.operate.save(prefix + "/add", $('#form-locationType-add').serialize());
  66 + var tableValue = $.common.getTableValue("#form-excelTemplate-add");
  67 + tableValue = formValueReplace(tableValue, "companyCode", $("#companyCode option:selected").val());
  68 + tableValue = formValueReplace(tableValue, "enable", $("input[name='enable']").is(':checked'));
  69 + $.operate.save(prefix + "/add", tableValue);
  70 + }
  71 + });
  72 +</script>
  73 +</body>
  74 +</html>
... ...
src/main/resources/templates/config/excelTemplate/edit.html 0 → 100644
  1 +<!DOCTYPE HTML>
  2 +<html lang="zh" xmlns:th="http://www.thymeleaf.org">
  3 +<meta charset="utf-8">
  4 +<head th:include="include :: header"></head>
  5 +<body class="white-bg">
  6 +<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  7 + <form class="form-horizontal m" id="form-excelTemplate-edit">
  8 + <input name="id" type="hidden" th:field="*{id}">
  9 + <div class="form-group">
  10 + <label class="col-sm-3 control-label">导入表名称:</label>
  11 + <div class="col-sm-8">
  12 + <input id="name" name="name" class="form-control" type="text" th:field="*{name}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="col-sm-3 control-label">请求地址:</label>
  17 + <div class="col-sm-8">
  18 + <input id="url" name="url" class="form-control" type="text" th:field="*{url}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="col-sm-3 control-label">货主编码:</label>
  23 + <div class="col-sm-8">
  24 + <select id="companyCode" name="companyCode" class="form-control" th:with="companyList=${@companyService.selectCompanyByCurrentUserId()}"
  25 + th:field="*{companyCode}">
  26 + <option th:each="company : ${companyList}" th:text="${company['name']}" th:value="${company['code']}"></option>
  27 + </select>
  28 + </div>
  29 + </div>
  30 + <div class="form-group">
  31 + <label class="col-sm-3 control-label">是否有效:</label>
  32 + <div class="col-sm-8">
  33 + <div class="onoffswitch">
  34 + <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable" name="enable" th:field="*{enable}">
  35 + <label class="onoffswitch-label" for="enable">
  36 + <span class="onoffswitch-inner"></span>
  37 + <span class="onoffswitch-switch"></span>
  38 + </label>
  39 + </div>
  40 + </div>
  41 + </div>
  42 + <div class="form-group">
  43 + <div class="form-control-static col-sm-offset-9">
  44 + <button type="submit" class="btn btn-primary">提交</button>
  45 + <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
  46 + </div>
  47 + </div>
  48 + </form>
  49 +</div>
  50 +<div th:include="include::footer"></div>
  51 +<script type="text/javascript">
  52 + var prefix = ctx + "config/excelTemplate";
  53 + $("#form-excelTemplate-edit").validate({
  54 + rules:{
  55 + code:{
  56 + required:true,
  57 + },
  58 + referType:{
  59 + required:true,
  60 + },
  61 + receiptFlow:{
  62 + required:true,
  63 + },
  64 + },
  65 + submitHandler: function(form) {
  66 + // $.operate.save(prefix + "/add", $('#form-locationType-add').serialize());
  67 + var tableValue = $.common.getTableValue("#form-excelTemplate-edit");
  68 + tableValue = formValueReplace(tableValue, "companyCode", $("#companyCode option:selected").val());
  69 + tableValue = formValueReplace(tableValue, "enable", $("input[name='enable']").is(':checked'));
  70 + $.operate.save(prefix + "/edit", tableValue);
  71 + }
  72 + });
  73 +</script>
  74 +</body>
  75 +</html>
... ...
src/main/resources/templates/config/excelTemplate/excelTemplate.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="locationType-form">
  10 + <div class="select-list">
  11 + <ul>
  12 + <li>
  13 + 名称:<input type="text" name="name"/>
  14 + </li>
  15 + <li class="time">
  16 + <label>创建时间: </label>
  17 + <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="createdBegin"/>
  18 + <span>-</span>
  19 + <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="createdEnd"/>
  20 + </li>
  21 + <li>
  22 + <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  23 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="system:role:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  24 + </li>
  25 + </ul>
  26 + </div>
  27 + </form>
  28 + </div>
  29 + <div class="btn-group hidden-xs" id="toolbar" role="group">
  30 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="config:excelTemplate:add">
  31 + <i class="fa fa-plus"></i> 新增
  32 + </a>
  33 + <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="config:excelTemplate:remove">
  34 + <i class="fa fa-trash-o"></i> 删除
  35 + </a>
  36 + </div>
  37 +
  38 + <div class="col-sm-12 select-info">
  39 + <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
  40 + </div>
  41 + <div>
  42 + </div>
  43 + <div th:include="include :: footer"></div>
  44 + <script th:inline="javascript">
  45 + var editFlag = [[${@permission.hasPermi('config:excelTemplate:edit')}]];
  46 + var removeFlag = [[${@permission.hasPermi('config:excelTemplate:remove')}]];
  47 + var prefix = ctx + "config/excelTemplate";
  48 + var datas = [[${@dict.getType('sys_normal_disable')}]];
  49 + $(function() {
  50 + var options = {
  51 + url: prefix + "/list",
  52 + createUrl: prefix + "/add",
  53 + updateUrl: prefix + "/edit/{id}",
  54 + removeUrl: prefix + "/remove",
  55 + modalName: "入库单类型",
  56 + search: false,
  57 + columns: [{
  58 + checkbox: true
  59 + },
  60 + {
  61 + field : 'id',
  62 + title : 'Id'
  63 + },
  64 + {
  65 + field : 'companyCode',
  66 + title : '货主编码'
  67 + },
  68 + {
  69 + field : 'warehouseCode',
  70 + title : '仓库编码'
  71 + },
  72 + {
  73 + field : 'name',
  74 + title : '导入表名称'
  75 + },
  76 + {
  77 + field : 'url',
  78 + title : '请求地址'
  79 + },
  80 + {
  81 + field : 'created',
  82 + title : '创建时间'
  83 + },
  84 + {
  85 + field : 'createdBy',
  86 + title : '创建用户'
  87 + },
  88 + {
  89 + field : 'lastUpdated',
  90 + title : '更新时间'
  91 + },
  92 + {
  93 + field : 'lastUpdatedBy',
  94 + title : '更新用户'
  95 + },
  96 + {
  97 + field : 'enable',
  98 + title : '是否有效',
  99 + formatter: function(value, row, index) {
  100 + return $.table.selectDictLabel(datas, value);
  101 + },
  102 + align: 'center',
  103 + },
  104 + {
  105 + field : 'version',
  106 + title : '数据版本',
  107 + visible : false
  108 + },
  109 + {
  110 + title: '操作',
  111 + align: 'center',
  112 + formatter: function(value, row, index) {
  113 + var actions = [];
  114 + actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')" ><i class="fa fa-edit"></i>编辑</a> ');
  115 + actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')" ><i class="fa fa-trash-o"></i>删除</a>');
  116 + return actions.join('');
  117 + }
  118 + }]
  119 + };
  120 + $.table.init(options);
  121 + });
  122 + </script>
  123 +</body>
  124 +</html>
0 125 \ No newline at end of file
... ...
src/main/resources/templates/config/receiptType/edit.html
... ... @@ -128,7 +128,7 @@
128 128 <label class="col-sm-3 control-label">是否启用:</label>
129 129 <div class="col-sm-8">
130 130 <div class="onoffswitch">
131   - <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable" name="enable" th:field="${enable}">
  131 + <input type="checkbox" th:checked="*{enable}" class="onoffswitch-checkbox" id="enable" name="enable">
132 132 <label class="onoffswitch-label" for="enable">
133 133 <span class="onoffswitch-inner"></span>
134 134 <span class="onoffswitch-switch"></span>
... ... @@ -147,7 +147,7 @@
147 147 <div th:include="include::footer"></div>
148 148 <script type="text/javascript">
149 149 var prefix = ctx + "config/receiptType";
150   - $("#form-locationType-add").validate({
  150 + $("#form-receiptType-edit").validate({
151 151 rules:{
152 152 code:{
153 153 required:true,
... ... @@ -161,9 +161,9 @@
161 161 },
162 162 submitHandler: function(form) {
163 163 // $.operate.save(prefix + "/add", $('#form-locationType-add').serialize());
164   - var tableValue = $.common.getTableValue("#form-locationType-add");
  164 + var tableValue = $.common.getTableValue("#form-receiptType-edit");
165 165 tableValue = formValueReplace(tableValue, "companyCode", $("#companyCode option:selected").val());
166   - $.operate.save(prefix + "/add", tableValue);
  166 + $.operate.save(prefix + "/edit", tableValue);
167 167 }
168 168 });
169 169 </script>
... ...
src/main/resources/templates/config/receiptType/receiptType.html
... ... @@ -107,7 +107,8 @@
107 107 },
108 108 {
109 109 field : 'version',
110   - title : '数据版本'
  110 + title : '数据版本',
  111 + visible : false
111 112 },
112 113 {
113 114 field : 'processStamp',
... ...
src/main/resources/templates/inventory/cyclecountAdjust/cyclecountAdjust.html
... ... @@ -64,7 +64,7 @@
64 64 </form>
65 65 </div>
66 66 <!--<div class="btn-group hidden-xs" id="toolbar" role="group">
67   - <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="inventory:cycleCount:insert">
  67 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="inventoryHeader:cycleCount:insert">
68 68 <i class="fa fa-plus"></i> 新增
69 69 </a>
70 70 </div>-->
... ... @@ -79,8 +79,8 @@
79 79 <div th:include="include :: footer"></div>
80 80 <script th:inline="javascript">
81 81 var prefix = ctx + "inventory/cyclecountAdjust";
82   - var upload = [[${@permission.hasPermi('inventory:cyclecountAdjust:upload')}]];
83   - var report =[[${@permission.hasPermi('inventory:cyclecountAdjust:report')}]];
  82 + var upload = [[${@permission.hasPermi('inventoryHeader:cyclecountAdjust:upload')}]];
  83 + var report =[[${@permission.hasPermi('inventoryHeader:cyclecountAdjust:report')}]];
84 84 var datas = [[${@dict.getType('sys_normal_disable')}]];
85 85 var status2 = [[${@dict.getType('adjustType')}]];
86 86  
... ...
src/main/resources/templates/inventory/cyclecountAdjustDetail/cyclecountAdjustDetail.html
... ... @@ -57,11 +57,11 @@
57 57 <i class="fa fa-vcard"></i>差异调整
58 58 </a>
59 59 <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="createCyclecountWithGapQty()"
60   - shiro:hasPermission="inventory:cyclecountDetail:cyclecountRepeat">
  60 + shiro:hasPermission="inventoryHeader:cyclecountDetail:cyclecountRepeat">
61 61 <i class="fa fa-vcard"></i> 差异复盘
62 62 </a>-->
63 63 <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="adjust()"
64   - shiro:hasPermission="inventory:cyclecountDetail:adjust">
  64 + shiro:hasPermission="inventoryHeader:cyclecountDetail:adjust">
65 65 <i class="fa fa-vcard"></i> 差异库存调整
66 66 </a>-->
67 67 <a class="btn btn-outline btn-success btn-rounded" onclick="update()">
... ...
src/main/resources/templates/inventory/cyclecountDetail/add.html
... ... @@ -58,7 +58,7 @@
58 58 </li>
59 59 <li>
60 60 <a id="search" class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
61   - <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventory:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  61 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
62 62 </li>
63 63 </ul>
64 64 </div>
... ... @@ -75,8 +75,8 @@
75 75 <div th:include="include::footer"></div>
76 76  
77 77 <script th:inline="javascript">
78   - var addFlag = [[${@permission.hasPermi('inventory:cyclecountDetail:add')}]];
79   - // var removeFlag = [[${@permission.hasPermi('inventory:inventory:remove')}]];
  78 + var addFlag = [[${@permission.hasPermi('inventoryHeader:cyclecountDetail:add')}]];
  79 + // var removeFlag = [[${@permission.hasPermi('inventoryHeader:inventoryHeader:remove')}]];
80 80 var prefix = ctx + "inventory/inventory";
81 81 var prefix_cycleDetails = ctx + "inventory/cyclecountDetail";
82 82 var inventoryStatus=[[${@dict.getType('inventoryStatus')}]];
... ...
src/main/resources/templates/inventory/cyclecountDetail/cyclecountDetail.html
... ... @@ -57,11 +57,11 @@
57 57 <i class="fa fa-plus"></i> 新增
58 58 </a>
59 59 <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="comfirmAllWithNoGapQty()"
60   - shiro:hasPermission="inventory:cyclecountDetail:confirmAll">
  60 + shiro:hasPermission="inventoryHeader:cyclecountDetail:confirmAll">
61 61 <i class="fa fa-vcard"></i> 全部无差异确认
62 62 </a>
63 63 <a class="btn btn-outline btn-danger btn-rounded" onclick="comfirmRemainWithNoGapQty()"
64   - shiro:hasPermission="inventory:cyclecountDetail:confirmRemain">
  64 + shiro:hasPermission="inventoryHeader:cyclecountDetail:confirmRemain">
65 65 <i class="fa fa-vcard"></i> 剩余无差异确认
66 66 </a>-->
67 67 <a class="btn btn-outline btn-danger btn-rounded" onclick="createCyclecountWithGapQty()"
... ... @@ -85,10 +85,10 @@
85 85 </div>
86 86 <div th:include="include :: footer"></div>
87 87 <script th:inline="javascript">
88   - var editFlag = [[${@permission.hasPermi('inventory:cyclecountDetail:edit')}]];
89   - var removeFlag = [[${@permission.hasPermi('inventory:cyclecountDetail:remove')}]];
90   - var confirmFlag=[[${@permission.hasPermi('inventory:cyclecountDetail:confirm')}]];
91   - var createTaskFalg=[[${@permission.hasPermi('inventory:cyclecountDetail:createTask')}]];
  88 + var editFlag = [[${@permission.hasPermi('inventoryHeader:cyclecountDetail:edit')}]];
  89 + var removeFlag = [[${@permission.hasPermi('inventoryHeader:cyclecountDetail:remove')}]];
  90 + var confirmFlag=[[${@permission.hasPermi('inventoryHeader:cyclecountDetail:confirm')}]];
  91 + var createTaskFalg=[[${@permission.hasPermi('inventoryHeader:cyclecountDetail:createTask')}]];
92 92 var prefix = ctx + "inventory/cyclecountDetail";
93 93 var prefix_head = ctx + "inventory/cyclecountHeader";
94 94 var remove_url= prefix + "/remove";
... ...
src/main/resources/templates/inventory/cyclecountHeader/cyclecountHeader.html
... ... @@ -82,10 +82,10 @@
82 82 </div>
83 83 <div th:include="include :: footer"></div>
84 84 <script th:inline="javascript">
85   - var reportFlag = [[${@permission.hasPermi('inventory:cycleCount:report')}]];
86   - var editFlag = [[${@permission.hasPermi('inventory:cycleCount:edit')}]];
87   - var addAdjust = [[${@permission.hasPermi('inventory:cyclecountHead:addAdjust')}]];
88   - var removeFlag = [[${@permission.hasPermi('inventory:cycleCount:remove')}]];
  85 + var reportFlag = [[${@permission.hasPermi('inventoryHeader:cycleCount:report')}]];
  86 + var editFlag = [[${@permission.hasPermi('inventoryHeader:cycleCount:edit')}]];
  87 + var addAdjust = [[${@permission.hasPermi('inventoryHeader:cyclecountHead:addAdjust')}]];
  88 + var removeFlag = [[${@permission.hasPermi('inventoryHeader:cycleCount:remove')}]];
89 89 var prefix = ctx + "inventory/cyclecountHeader";
90 90 var datas = [[${@dict.getType('sys_normal_disable')}]];
91 91 var types = [[${@dict.getType('cyclecountType')}]];
... ...
src/main/resources/templates/inventory/inventory/add.html deleted
1   -<!DOCTYPE HTML>
2   -<html lang="zh" xmlns:th="http://www.thymeleaf.org">
3   -<meta charset="utf-8">
4   -<head th:include="include :: header"></head>
5   -<body class="white-bg">
6   - <div class="wrapper wrapper-content animated fadeInRight ibox-content">
7   - <form class="form-horizontal m" id="form-inventory-add">
8   - <div class="form-group">
9   - <label class="col-sm-3 control-label">仓库Id:</label>
10   - <div class="col-sm-8">
11   - <input id="warehouseId" name="warehouseId" class="form-control" type="text">
12   - </div>
13   - </div>
14   - <div class="form-group">
15   - <label class="col-sm-3 control-label">仓库:</label>
16   - <div class="col-sm-8">
17   - <input id="warehouseCode" name="warehouseCode" class="form-control" type="text">
18   - </div>
19   - </div>
20   - <div class="form-group">
21   - <label class="col-sm-3 control-label">库位id:</label>
22   - <div class="col-sm-8">
23   - <input id="locationId" name="locationId" class="form-control" type="text">
24   - </div>
25   - </div>
26   - <div class="form-group">
27   - <label class="col-sm-3 control-label">库位编号:</label>
28   - <div class="col-sm-8">
29   - <input id="locationCode" name="locationCode" class="form-control" type="text">
30   - </div>
31   - </div>
32   - <div class="form-group">
33   - <label class="col-sm-3 control-label">上游系统单号:</label>
34   - <div class="col-sm-8">
35   - <input id="sourceCode" name="sourceCode" class="form-control" type="text">
36   - </div>
37   - </div>
38   - <div class="form-group">
39   - <label class="col-sm-3 control-label">上游系统行号:</label>
40   - <div class="col-sm-8">
41   - <input id="sourceLine" name="sourceLine" class="form-control" type="text">
42   - </div>
43   - </div>
44   - <div class="form-group">
45   - <label class="col-sm-3 control-label">公司id:</label>
46   - <div class="col-sm-8">
47   - <input id="companyId" name="companyId" class="form-control" type="text">
48   - </div>
49   - </div>
50   - <div class="form-group">
51   - <label class="col-sm-3 control-label">公司编码:</label>
52   - <div class="col-sm-8">
53   - <input id="companyCode" name="companyCode" class="form-control" type="text">
54   - </div>
55   - </div>
56   - <div class="form-group">
57   - <label class="col-sm-3 control-label">物料Id:</label>
58   - <div class="col-sm-8">
59   - <input id="materialId" name="materialId" class="form-control" type="text">
60   - </div>
61   - </div>
62   - <div class="form-group">
63   - <label class="col-sm-3 control-label">存货编码:</label>
64   - <div class="col-sm-8">
65   - <input id="materialCode" name="materialCode" class="form-control" type="text">
66   - </div>
67   - </div>
68   - <div class="form-group">
69   - <label class="col-sm-3 control-label">:</label>
70   - <div class="col-sm-8">
71   - <input id="materialName" name="materialName" class="form-control" type="text">
72   - </div>
73   - </div>
74   - <div class="form-group">
75   - <label class="col-sm-3 control-label">入库单id:</label>
76   - <div class="col-sm-8">
77   - <input id="receiptId" name="receiptId" class="form-control" type="text">
78   - </div>
79   - </div>
80   - <div class="form-group">
81   - <label class="col-sm-3 control-label">入库单编码:</label>
82   - <div class="col-sm-8">
83   - <input id="receiptCode" name="receiptCode" class="form-control" type="text">
84   - </div>
85   - </div>
86   - <div class="form-group">
87   - <label class="col-sm-3 control-label">入库单明细id:</label>
88   - <div class="col-sm-8">
89   - <input id="receiptDetailId" name="receiptDetailId" class="form-control" type="text">
90   - </div>
91   - </div>
92   - <div class="form-group">
93   - <label class="col-sm-3 control-label">批次:</label>
94   - <div class="col-sm-8">
95   - <input id="batch" name="batch" class="form-control" type="text">
96   - </div>
97   - </div>
98   - <div class="form-group">
99   - <label class="col-sm-3 control-label">批号:</label>
100   - <div class="col-sm-8">
101   - <input id="lot" name="lot" class="form-control" type="text">
102   - </div>
103   - </div>
104   - <div class="form-group">
105   - <label class="col-sm-3 control-label">项目号:</label>
106   - <div class="col-sm-8">
107   - <input id="project" name="project" class="form-control" type="text">
108   - </div>
109   - </div>
110   - <div class="form-group">
111   - <label class="col-sm-3 control-label">生产日期:</label>
112   - <div class="col-sm-8">
113   - <input id="manufactureDate" name="manufactureDate" class="form-control" type="text">
114   - </div>
115   - </div>
116   - <div class="form-group">
117   - <label class="col-sm-3 control-label">失效日期:</label>
118   - <div class="col-sm-8">
119   - <input id="expirationDate" name="expirationDate" class="form-control" type="text">
120   - </div>
121   - </div>
122   - <div class="form-group">
123   - <label class="col-sm-3 control-label">库存状态:</label>
124   - <div class="col-sm-8">
125   - <input id="status" name="status" class="form-control" type="text">
126   - </div>
127   - </div>
128   - <div class="form-group">
129   - <label class="col-sm-3 control-label">数量:</label>
130   - <div class="col-sm-8">
131   - <input id="qty" name="qty" class="form-control" type="text">
132   - </div>
133   - </div>
134   - <div class="form-group">
135   - <label class="col-sm-3 control-label">执行预定数量:</label>
136   - <div class="col-sm-8">
137   - <input id="taskQty" name="taskQty" class="form-control" type="text">
138   - </div>
139   - </div>
140   - <div class="form-group">
141   - <label class="col-sm-3 control-label">成本:</label>
142   - <div class="col-sm-8">
143   - <input id="costPrice" name="costPrice" class="form-control" type="text">
144   - </div>
145   - </div>
146   - <div class="form-group">
147   - <label class="col-sm-3 control-label">标价:</label>
148   - <div class="col-sm-8">
149   - <input id="listPrice" name="listPrice" class="form-control" type="text">
150   - </div>
151   - </div>
152   - <div class="form-group">
153   - <label class="col-sm-3 control-label">净价:</label>
154   - <div class="col-sm-8">
155   - <input id="netPrice" name="netPrice" class="form-control" type="text">
156   - </div>
157   - </div>
158   - <div class="form-group">
159   - <label class="col-sm-3 control-label">创建时间(入库时间):</label>
160   - <div class="col-sm-8">
161   - <input id="created" name="created" class="form-control" type="text">
162   - </div>
163   - </div>
164   - <div class="form-group">
165   - <label class="col-sm-3 control-label">创建用户:</label>
166   - <div class="col-sm-8">
167   - <input id="createdBy" name="createdBy" class="form-control" type="text">
168   - </div>
169   - </div>
170   - <div class="form-group">
171   - <label class="col-sm-3 control-label">最后修改时间:</label>
172   - <div class="col-sm-8">
173   - <input id="lastUpdated" name="lastUpdated" class="form-control" type="text">
174   - </div>
175   - </div>
176   - <div class="form-group">
177   - <label class="col-sm-3 control-label">更新用户:</label>
178   - <div class="col-sm-8">
179   - <input id="lastUpdatedBy" name="lastUpdatedBy" class="form-control" type="text">
180   - </div>
181   - </div>
182   - <div class="form-group">
183   - <label class="col-sm-3 control-label">自定义字段1:</label>
184   - <div class="col-sm-8">
185   - <input id="userDef1" name="userDef1" class="form-control" type="text">
186   - </div>
187   - </div>
188   - <div class="form-group">
189   - <label class="col-sm-3 control-label">自定义字段2:</label>
190   - <div class="col-sm-8">
191   - <input id="userDef2" name="userDef2" class="form-control" type="text">
192   - </div>
193   - </div>
194   - <div class="form-group">
195   - <label class="col-sm-3 control-label">自定义字段3:</label>
196   - <div class="col-sm-8">
197   - <input id="userDef3" name="userDef3" class="form-control" type="text">
198   - </div>
199   - </div>
200   - <div class="form-group">
201   - <div class="form-control-static col-sm-offset-9">
202   - <button type="submit" class="btn btn-primary">提交</button>
203   - <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
204   - </div>
205   - </div>
206   - </form>
207   - </div>
208   - <div th:include="include::footer"></div>
209   - <script type="text/javascript">
210   - var prefix = ctx + "inventory/inventory"
211   - $("#form-inventory-add").validate({
212   - rules:{
213   - xxxx:{
214   - required:true,
215   - },
216   - },
217   - submitHandler: function(form) {
218   - $.operate.save(prefix + "/add", $('#form-inventory-add').serialize());
219   - }
220   - });
221   - </script>
222   -</body>
223   -</html>
src/main/resources/templates/inventory/inventory/edit.html deleted
1   -<!DOCTYPE HTML>
2   -<html lang="zh" xmlns:th="http://www.thymeleaf.org">
3   -<meta charset="utf-8">
4   -<head th:include="include :: header"></head>
5   -<body class="white-bg">
6   - <div class="wrapper wrapper-content animated fadeInRight ibox-content">
7   - <form class="form-horizontal m" id="form-inventory-edit" th:object="${inventory}">
8   - <input id="id" name="id" th:field="*{id}" type="hidden">
9   - <div class="form-group">
10   - <label class="col-sm-3 control-label">仓库Id:</label>
11   - <div class="col-sm-8">
12   - <input id="warehouseId" name="warehouseId" th:field="*{warehouseId}" class="form-control" type="text">
13   - </div>
14   - </div>
15   - <div class="form-group">
16   - <label class="col-sm-3 control-label">仓库:</label>
17   - <div class="col-sm-8">
18   - <input id="warehouseCode" name="warehouseCode" th:field="*{warehouseCode}" class="form-control" type="text">
19   - </div>
20   - </div>
21   - <div class="form-group">
22   - <label class="col-sm-3 control-label">库位id:</label>
23   - <div class="col-sm-8">
24   - <input id="locationId" name="locationId" th:field="*{locationId}" class="form-control" type="text">
25   - </div>
26   - </div>
27   - <div class="form-group">
28   - <label class="col-sm-3 control-label">库位编号:</label>
29   - <div class="col-sm-8">
30   - <input id="locationCode" name="locationCode" th:field="*{locationCode}" class="form-control" type="text">
31   - </div>
32   - </div>
33   - <div class="form-group">
34   - <label class="col-sm-3 control-label">上游系统单号:</label>
35   - <div class="col-sm-8">
36   - <input id="sourceCode" name="sourceCode" th:field="*{sourceCode}" class="form-control" type="text">
37   - </div>
38   - </div>
39   - <div class="form-group">
40   - <label class="col-sm-3 control-label">上游系统行号:</label>
41   - <div class="col-sm-8">
42   - <input id="sourceLine" name="sourceLine" th:field="*{sourceLine}" class="form-control" type="text">
43   - </div>
44   - </div>
45   - <div class="form-group">
46   - <label class="col-sm-3 control-label">公司id:</label>
47   - <div class="col-sm-8">
48   - <input id="companyId" name="companyId" th:field="*{companyId}" class="form-control" type="text">
49   - </div>
50   - </div>
51   - <div class="form-group">
52   - <label class="col-sm-3 control-label">公司编码:</label>
53   - <div class="col-sm-8">
54   - <input id="companyCode" name="companyCode" th:field="*{companyCode}" class="form-control" type="text">
55   - </div>
56   - </div>
57   - <div class="form-group">
58   - <label class="col-sm-3 control-label">物料Id:</label>
59   - <div class="col-sm-8">
60   - <input id="materialId" name="materialId" th:field="*{materialId}" class="form-control" type="text">
61   - </div>
62   - </div>
63   - <div class="form-group">
64   - <label class="col-sm-3 control-label">存货编码:</label>
65   - <div class="col-sm-8">
66   - <input id="materialCode" name="materialCode" th:field="*{materialCode}" class="form-control" type="text">
67   - </div>
68   - </div>
69   - <div class="form-group">
70   - <label class="col-sm-3 control-label">:</label>
71   - <div class="col-sm-8">
72   - <input id="materialName" name="materialName" th:field="*{materialName}" class="form-control" type="text">
73   - </div>
74   - </div>
75   - <div class="form-group">
76   - <label class="col-sm-3 control-label">入库单id:</label>
77   - <div class="col-sm-8">
78   - <input id="receiptId" name="receiptId" th:field="*{receiptId}" class="form-control" type="text">
79   - </div>
80   - </div>
81   - <div class="form-group">
82   - <label class="col-sm-3 control-label">入库单编码:</label>
83   - <div class="col-sm-8">
84   - <input id="receiptCode" name="receiptCode" th:field="*{receiptCode}" class="form-control" type="text">
85   - </div>
86   - </div>
87   - <div class="form-group">
88   - <label class="col-sm-3 control-label">入库单明细id:</label>
89   - <div class="col-sm-8">
90   - <input id="receiptDetailId" name="receiptDetailId" th:field="*{receiptDetailId}" class="form-control" type="text">
91   - </div>
92   - </div>
93   - <div class="form-group">
94   - <label class="col-sm-3 control-label">批次:</label>
95   - <div class="col-sm-8">
96   - <input id="batch" name="batch" th:field="*{batch}" class="form-control" type="text">
97   - </div>
98   - </div>
99   - <div class="form-group">
100   - <label class="col-sm-3 control-label">批号:</label>
101   - <div class="col-sm-8">
102   - <input id="lot" name="lot" th:field="*{lot}" class="form-control" type="text">
103   - </div>
104   - </div>
105   - <div class="form-group">
106   - <label class="col-sm-3 control-label">项目号:</label>
107   - <div class="col-sm-8">
108   - <input id="project" name="project" th:field="*{project}" class="form-control" type="text">
109   - </div>
110   - </div>
111   - <div class="form-group">
112   - <label class="col-sm-3 control-label">生产日期:</label>
113   - <div class="col-sm-8">
114   - <input id="manufactureDate" name="manufactureDate" th:field="*{manufactureDate}" class="form-control" type="text">
115   - </div>
116   - </div>
117   - <div class="form-group">
118   - <label class="col-sm-3 control-label">失效日期:</label>
119   - <div class="col-sm-8">
120   - <input id="expirationDate" name="expirationDate" th:field="*{expirationDate}" class="form-control" type="text">
121   - </div>
122   - </div>
123   - <div class="form-group">
124   - <label class="col-sm-3 control-label">库存状态:</label>
125   - <div class="col-sm-8">
126   - <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
127   - </div>
128   - </div>
129   - <div class="form-group">
130   - <label class="col-sm-3 control-label">数量:</label>
131   - <div class="col-sm-8">
132   - <input id="qty" name="qty" th:field="*{qty}" class="form-control" type="text">
133   - </div>
134   - </div>
135   - <div class="form-group">
136   - <label class="col-sm-3 control-label">执行预定数量:</label>
137   - <div class="col-sm-8">
138   - <input id="taskQty" name="taskQty" th:field="*{taskQty}" class="form-control" type="text">
139   - </div>
140   - </div>
141   - <div class="form-group">
142   - <label class="col-sm-3 control-label">成本:</label>
143   - <div class="col-sm-8">
144   - <input id="costPrice" name="costPrice" th:field="*{costPrice}" class="form-control" type="text">
145   - </div>
146   - </div>
147   - <div class="form-group">
148   - <label class="col-sm-3 control-label">标价:</label>
149   - <div class="col-sm-8">
150   - <input id="listPrice" name="listPrice" th:field="*{listPrice}" class="form-control" type="text">
151   - </div>
152   - </div>
153   - <div class="form-group">
154   - <label class="col-sm-3 control-label">净价:</label>
155   - <div class="col-sm-8">
156   - <input id="netPrice" name="netPrice" th:field="*{netPrice}" class="form-control" type="text">
157   - </div>
158   - </div>
159   - <div class="form-group">
160   - <label class="col-sm-3 control-label">创建时间(入库时间):</label>
161   - <div class="col-sm-8">
162   - <input id="created" name="created" th:field="*{created}" class="form-control" type="text">
163   - </div>
164   - </div>
165   - <div class="form-group">
166   - <label class="col-sm-3 control-label">创建用户:</label>
167   - <div class="col-sm-8">
168   - <input id="createdBy" name="createdBy" th:field="*{createdBy}" class="form-control" type="text">
169   - </div>
170   - </div>
171   - <div class="form-group">
172   - <label class="col-sm-3 control-label">最后修改时间:</label>
173   - <div class="col-sm-8">
174   - <input id="lastUpdated" name="lastUpdated" th:field="*{lastUpdated}" class="form-control" type="text">
175   - </div>
176   - </div>
177   - <div class="form-group">
178   - <label class="col-sm-3 control-label">更新用户:</label>
179   - <div class="col-sm-8">
180   - <input id="lastUpdatedBy" name="lastUpdatedBy" th:field="*{lastUpdatedBy}" class="form-control" type="text">
181   - </div>
182   - </div>
183   - <div class="form-group">
184   - <label class="col-sm-3 control-label">自定义字段1:</label>
185   - <div class="col-sm-8">
186   - <input id="userDef1" name="userDef1" th:field="*{userDef1}" class="form-control" type="text">
187   - </div>
188   - </div>
189   - <div class="form-group">
190   - <label class="col-sm-3 control-label">自定义字段2:</label>
191   - <div class="col-sm-8">
192   - <input id="userDef2" name="userDef2" th:field="*{userDef2}" class="form-control" type="text">
193   - </div>
194   - </div>
195   - <div class="form-group">
196   - <label class="col-sm-3 control-label">自定义字段3:</label>
197   - <div class="col-sm-8">
198   - <input id="userDef3" name="userDef3" th:field="*{userDef3}" class="form-control" type="text">
199   - </div>
200   - </div>
201   - <div class="form-group">
202   - <div class="form-control-static col-sm-offset-9">
203   - <button type="submit" class="btn btn-primary">提交</button>
204   - <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
205   - </div>
206   - </div>
207   - </form>
208   - </div>
209   - <div th:include="include::footer"></div>
210   - <script type="text/javascript">
211   - var prefix = ctx + "inventory/inventory"
212   - $("#form-inventory-edit").validate({
213   - rules:{
214   - xxxx:{
215   - required:true,
216   - },
217   - },
218   - submitHandler: function(form) {
219   - $.operate.save(prefix + "/edit", $('#form-inventory-edit').serialize());
220   - }
221   - });
222   - </script>
223   -</body>
224   -</html>
src/main/resources/templates/inventory/inventory/inventory.html deleted
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="inventory-form">
10   - <div class="select-list">
11   - <ul>
12   - <li>
13   - 库位编号:<input type="text" name="locationCode"/>
14   - </li>
15   - <li>
16   - 容器编号:<input type="text" name="containerCode"/>
17   - </li>
18   - <li>
19   - U8仓库:<select name="uWarehouseCode" th:with="warehouse=${@warehouse.selectList()}">
20   - <option value="">所有</option>
21   - <option th:each="e : ${warehouse}" th:text="${e['uWarehouseName']}" th:value="${e['uWarehouseCode']}"></option></select>
22   - </li>
23   - <li>
24   - 储货库区:<input type="text" name="zoneCode"/>
25   - </li>
26   - <li>
27   - 存货编码:<input type="text" name="materialCode"/>
28   - </li>
29   - <li>
30   - 存货代码:<input type="text" name="materialOldCode"/>
31   - </li>
32   - <li>
33   - 物料名称:<input type="text" name="materialName"/>
34   - </li>
35   - <li>
36   - 库存状态:
37   - <select name="status" th:with="inventoryStatus=${@dict.getType('inventoryStatus')}">
38   - <option value="">所有</option>
39   - <option th:each="e : ${inventoryStatus}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option>
40   - </select>
41   - </li>
42   - <li>
43   - 供应商编码:<input type="text" name="supplierCode"/>
44   - </li>
45   -
46   - <li>
47   - 项 目 号:<input type="text" name="project"/>
48   - </li>
49   - <li>
50   - 物料规格:<input type="text" name="materialSpec"/>
51   - </li>
52   - <li class="time" style="height:30px">
53   - <label>创建时间: </label>
54   - <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[createdBegin]"/>
55   - <span>-</span>
56   - <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[createdEnd]"/>
57   - </li>
58   - <!--<li>
59   - 物料规格:<input type="text" name="materialSpec"/>
60   - </li>-->
61   - <!--<li>
62   - 物料类型:
63   - <select name="materialType" th:with="type=${@dict.getType('materialType')}">
64   - <option value="">所有</option>
65   - <option th:each="e : ${type}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option>
66   - </select>
67   - </li>-->
68   - <li>
69   - <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
70   - <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventory:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
71   - </li>
72   - </ul>
73   - </div>
74   - </form>
75   - </div>
76   - <div class="btn-group hidden-xs" id="toolbar" role="group">
77   - <!--<a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="inventory:inventory:add">-->
78   - <!--<i class="fa fa-plus"></i> 新增-->
79   - <!--</a>-->
80   - <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="inventory:inventory:remove">-->
81   - <!--<i class="fa fa-trash-o"></i> 删除-->
82   - <!--</a>-->
83   - <a class="btn btn-outline btn-danger btn-rounded" onclick="transfer()" shiro:hasPermission="inventory:inventory:transfer">
84   - <i class="fa fa-exchange"></i> 立库移库
85   - </a>
86   - <a class="btn btn-outline btn-primary btn-rounded" onclick="checkOut()" shiro:hasPermission="inventory:inventory:seeOut">
87   - <i class="fa fa-eye"></i> 出库查看
88   - </a>
89   - </div>
90   -
91   - <div class="col-sm-12 select-info">
92   - <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
93   - </div>
94   - </div>
95   - </div>
96   - <div th:include="include :: footer"></div>
97   - <script th:inline="javascript">
98   - var editFlag = [[${@permission.hasPermi('inventory:inventory:edit')}]];
99   - var removeFlag = [[${@permission.hasPermi('inventory:inventory:remove')}]];
100   - var prefix = ctx + "inventory/inventory"
101   - var inventoryStatus=[[${@dict.getType('inventoryStatus')}]];
102   - $(function() {
103   - var options = {
104   - url: prefix + "/list",
105   - createUrl: prefix + "/add",
106   - updateUrl: prefix + "/edit/{id}",
107   - removeUrl: prefix + "/remove",
108   - modalName: "库存",
109   - sortable: true, // 是否启用排序
110   - sortStable: true, // 设置为 true 将获得稳定的排序
111   - sortName: "id",
112   - sortOrder: "desc",
113   - search: false,
114   - columns: [{
115   - checkbox: true
116   - },
117   - {
118   - field : 'id',
119   - title : '库存ID',
120   - sortable:true
121   - },
122   - /*{
123   - field : 'locationId',
124   - title : '库位Id' ,
125   - visible:false
126   - },*/
127   - {
128   - field : 'locationCode',
129   - title : '库位编号'
130   - },
131   - {
132   - field : 'containerCode',
133   - title : '容器编号'
134   - },
135   - {
136   - field : 'zoneCode',
137   - title : '储货库区' ,
138   - },
139   - {
140   - field : 'materialCode',
141   - title : '存货编码'
142   - },
143   - {
144   - field : 'materialOldCode',
145   - title : '存货代码'
146   - },
147   - {
148   - field : 'materialName',
149   - title : '物料名称'
150   - },
151   - {
152   - field : 'materialSpec',
153   - title : '物料规格'
154   - },
155   - {
156   - field : 'qty',
157   - title : '数量'
158   - },
159   - {
160   - field : 'taskQty',
161   - title : '预定执行数量'
162   - },
163   - // {
164   - // field : 'zoneCode',
165   - // title : '物料库区',
166   - // visible:true
167   - // },
168   - {
169   - field : 'sourceCode',
170   - title : '上游系统单号',
171   - visible:true
172   - },
173   - {
174   - field : 'uWarehouseCode',
175   - title : 'u8仓库',
176   - visible:true
177   - },
178   - {
179   - field : 'sourceLine',
180   - title : '上游系统行号',
181   - visible:true
182   - },
183   - /*{
184   - field : 'companyId',
185   - title : '货主Id',
186   - visible:false
187   - },*/
188   - {
189   - field : 'companyCode',
190   - title : '货主编码'
191   - },
192   -
193   - {
194   - field : 'receiptId',
195   - title : '入库单标识' ,
196   - visible:false
197   - },
198   - {
199   - field : 'receiptCode',
200   - title : '入库单编码'
201   - },
202   - {
203   - field : 'receiptDetailId',
204   - title : '入库单明细标识' ,
205   - visible:false
206   - },
207   - {
208   - field : 'batch',
209   - title : '批次' ,
210   - sortable:false,
211   - visible:false
212   - },
213   - {
214   - field : 'lot',
215   - title : '批号' ,
216   - sortable:false,
217   - visible:false
218   - },
219   - {
220   - field : 'project',
221   - title : '项目号' ,
222   - sortable:true
223   - },
224   - {
225   - field : 'supplierCode',
226   - title : '供应商编码',
227   - visible:true
228   - },
229   - {
230   - field : 'manufactureDate',
231   - title : '生产日期' ,
232   - sortable:true ,
233   - visible:false
234   - },
235   - {
236   - field : 'expirationDate',
237   - title : '失效日期' ,
238   - sortable:true ,
239   - visible:false
240   - },
241   - {
242   - field : 'status',
243   - title : '库存状态' ,
244   - align: 'center',
245   - formatter: function(value, row, index) {
246   - return $.table.selectDictLabel(inventoryStatus, value);
247   - }
248   - },
249   -
250   - {
251   - field : 'costPrice',
252   - title : '成本' ,
253   - visible:false
254   - },
255   - {
256   - field : 'listPrice',
257   - title : '标价' ,
258   - visible:false
259   - },
260   - {
261   - field : 'netPrice',
262   - title : '净价' ,
263   - visible:false
264   - },
265   - {
266   - field : 'created',
267   - title : '入库时间',
268   - sortable:true
269   - },
270   - {
271   - field : 'createdBy',
272   - title : '创建用户' ,
273   - visible:false
274   - },
275   - {
276   - field : 'lastUpdated',
277   - title : '最后修改时间',
278   - sortable:true
279   - },
280   - {
281   - field : 'lastUpdatedBy',
282   - title : '更新用户'
283   - },
284   - {
285   - field : 'userDef1',
286   - title : '自定义字段1' ,
287   - visible:false
288   - },
289   - {
290   - field : 'userDef2',
291   - title : '自定义字段2' ,
292   - visible:false
293   - },
294   - {
295   - field : 'userDef3',
296   - title : '自定义字段3' ,
297   - visible:false
298   - }
299   - // ,
300   - // {
301   - // title: '操作',
302   - // align: 'center',
303   - // formatter: function(value, row, index) {
304   - // var actions = [];
305   - // actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
306   - // actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
307   - // return actions.join('');
308   - // }
309   - // }
310   - ]
311   - };
312   - $.table.init(options);
313   - });
314   -
315   - function transfer() {
316   - var url = prefix+"/transfer";
317   - $.modal.open("立库移库",url);
318   - }
319   -
320   - function checkOut() {
321   - var rows=$("#bootstrap-table").bootstrapTable('getSelections');
322   - if (rows.length == 0) {
323   - $.modal.alertWarning("请至少选择一条记录");
324   - return;
325   - }
326   - var url = prefix + "/createCheckOutTask";
327   - var data = { "ids": rows.map(function(v){return v.id;}).join(',') };
328   - localSubmit(url, "post", "json", data);
329   - }
330   - function localSubmit (url, type, dataType, data) {
331   - $.modal.loading("正在处理中,请稍后...");
332   - var config = {
333   - url: url, type: type, dataType: dataType, data: data, success: function (result) {
334   - if (result.code == web_status.SUCCESS) {
335   - $.modal.msgSuccess(result.msg);
336   - } else {
337   - $.modal.alertError(result.msg)
338   - }
339   - $.modal.closeLoading()
340   - }
341   - };
342   - $.ajax(config)
343   - }
344   -
345   - </script>
346   -</body>
347   -</html>
348 0 \ No newline at end of file
src/main/resources/templates/inventory/inventoryHeader/inventoryHeader.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 +<style>
  6 + .btn-default {
  7 + color: #333;
  8 + background-color: #fff;
  9 + border-color: #ccc
  10 + }
  11 +</style>
  12 +<body class="gray-bg">
  13 +<div class="container-div">
  14 + <div class="row">
  15 + <div class="col-sm-12 select-info">
  16 + <ul id="myTab" class="nav nav-tabs">
  17 + <li class="active"><a href="#tabHeader" data-toggle="tab">主表</a></li>
  18 + <li><a href="#tabDetail" data-toggle="tab">明细</a></li>
  19 + </ul>
  20 + <div id="myTabContent" class="tab-content">
  21 + <div class="tab-pane fade in active" id="tabHeader">
  22 + <div class="col-sm-12 select-info">
  23 + <form id="receiptHeader-form">
  24 + <div class="select-list">
  25 + <ul>
  26 + <li>
  27 + 出库单号:<input type="text" name="code"/>
  28 + </li>
  29 + <li>
  30 + <!--入库类型:<input type="text" name="sourceCode"/>-->
  31 + 出库类型:<select name="shipmentType" th:with="shipmentType=${@dict.getType('shipmentType')}">
  32 + <option value="">所有</option>
  33 + <option th:each="e : ${shipmentType}" th:text="${e['dictLabel']}"
  34 + th:value="${e['dictValue']}"></option>
  35 + </select>
  36 + </li>
  37 + <li>
  38 + erp单号:<input type="text" name="referCode"/>
  39 + </li>
  40 + <li>
  41 + erp订单类型:<input type="text" name="referCodeType"/>
  42 + </li>
  43 + <li>
  44 + 客户编码:<input type="text" name="sourceCode"/>
  45 + </li>
  46 + <li>
  47 + <!--头 状 态:<input type="text" name="firstStatus"/>-->
  48 + 头 状 态:<select name="firstStatus"
  49 + th:with="firstStatus=${@dict.getType('shipmentHeaderStatus')}">
  50 + <option value="">所有</option>
  51 + <option th:each="e : ${firstStatus}" th:text="${e['dictLabel']}"
  52 + th:value="${e['dictValue']}"></option>
  53 + </select>
  54 + </li>
  55 + <li>
  56 + <!--尾 状 态:<input type="text" name="lastStatus"/>-->
  57 + 尾 状 态:<select name="lastStatus"
  58 + th:with="lastStatus=${@dict.getType('shipmentHeaderStatus')}">
  59 + <option value="">所有</option>
  60 + <option th:each="e : ${lastStatus}" th:text="${e['dictLabel']}"
  61 + th:value="${e['dictValue']}"></option>
  62 + </select>
  63 + </li>
  64 + <li class="time">
  65 + <label>创建时间: </label>
  66 + <input type="text" class="time-input" id="startTime" placeholder="开始时间"
  67 + name="createdBegin"/>
  68 + <span>-</span>
  69 + <input type="text" class="time-input" id="endTime" placeholder="结束时间"
  70 + name="createdEnd"/>
  71 + </li>
  72 + <li>
  73 + <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
  74 + class="fa fa-search"></i>&nbsp;搜索</a>
  75 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="receipt:receiptHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  76 + </li>
  77 + </ul>
  78 + </div>
  79 + </form>
  80 + </div>
  81 + <div class="btn-group hidden-xs" id="toolbar" role="group">
  82 + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()"
  83 + shiro:hasPermission="shipment:bill:add">
  84 + <i class="fa fa-plus"></i> 新增
  85 + </a>
  86 + <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()"
  87 + shiro:hasPermission="shipment:bill:remove">
  88 + <i class="fa fa-trash-o"></i> 删除
  89 + </a>
  90 + </div>
  91 + <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
  92 + </div>
  93 + <div class="tab-pane fade" id="tabDetail">
  94 + <div class="col-sm-12 select-info">
  95 + <form id = "shipmentHeadForm" >
  96 + <ul id="tabHead" class="nav nav-tabs">
  97 + <li class="active"><a href="#tabBase" data-toggle="tab">基础数据</a></li>
  98 + <li role="presentation" ><a href="#tabCustomer" data-toggle="tab">客户信息</a></li>
  99 + <li><a href="#tabExcute" data-toggle="tab">执行信息</a></li>
  100 + <li><a href="#tabOther" data-toggle="tab">其他信息</a></li>
  101 + <li><a href="#tabSystem" data-toggle="tab">系统信息</a></li>
  102 + </ul>
  103 + <div class="tab-content">
  104 + <div class="tab-pane fade in active" id="tabBase">
  105 + <div class="select-list">
  106 + <ul>
  107 + <li>出库单id:<input type="text" name="shipmentId" id="shipmentId"><li>
  108 + <li>出库单号:<input type="text" name="shipmentCode" id="shipmentCode"></li>
  109 + <input type="hidden" name="shipmentWarehouseId" id = "shipmentWarehouseId">
  110 + <li>仓库编码:<input type="text" name="shipmentWarehouseCode" id="shipmentWarehouseCode"></li>
  111 + <input type="hidden" name="shipmentCompanyId" id="shipmentCompanyId">
  112 + <li>货主:<input type="text" name="shipmentCompanyCode" id="shipmentCompanyCode"></li>
  113 + <li>上游系统单号:<input type="text" name="shipmentSourceCode" id="shipmentSourceCode"></li>
  114 + <li>上游平台:<input type="text" name="shipmentSourcePlatform" id="shipmentSourcePlatform"></li>
  115 + <li>出库单类型:<input type="text" name="shipmentType" id = "shipmentType"></li>
  116 + <li>总数量:<input type="text" name="shipmentTotalQty" id="shipmentTotalQty"></li>
  117 + <li>总行数:<input type="text" name="shipmentTotalLines" id="shipmentTotalLines"></li>
  118 + <li>单据头状态:<input type="text" name="shipmentFirstStatus" id="shipmentFirstStatus"></li>
  119 + <li>单据尾状态:<input type="text" name="shipmentLastStatus" id="shipmentLastStatus"></li>
  120 + </ul>
  121 + </div>
  122 + </div>
  123 + <div class="tab-pane fade" id="tabCustomer">
  124 + <div class="select-list">
  125 + <ul>
  126 + <li>客户编码:<input type="text" name="shipmentShipTo" id="shipmentShipTo"></li>
  127 + <li>发货预约时间:<input type="text" name="shipmentAppointmentTime" id="shipmentAppointmentTime"></li>
  128 + </ul>
  129 + </div>
  130 + </div>
  131 + <div class="tab-pane fade" id="tabExcute">
  132 + <div class="select-list">
  133 + <ul>
  134 + <li>优先级:<input type="text" name="shipmentPriority" id="shipmentPriority"></li>
  135 + <li>发货站台:<input type="text" name="shipmentStation" id="shipmentStation"></li>
  136 + <li></li>
  137 + </ul>
  138 + </div>
  139 + </div>
  140 + <div class="tab-pane fade" id="tabOther">
  141 + <div class="select-list">
  142 + <ul>
  143 + <li>备注:<input type="text" name="shipmentRemark" id="shipmentRemark"></li>
  144 + <li>扩展属性1:<input type="text" name="shipmentUserDef1" id="shipmentUserDef1"></li>
  145 + <li>扩展属性2:<input type="text" name="shipmentUserDef2" id="shipmentUserDef2"></li>
  146 + <li>扩展属性3:<input type="text" name="shipmentUserDef3" id="shipmentUserDef3"></li>
  147 +
  148 + </ul>
  149 + </div>
  150 + </div>
  151 + <div class="tab-pane fade" id="tabSystem">
  152 + <div class="select-list">
  153 + <ul>
  154 + <li>上传备注:<input type="text" name="shipmentUploadremark" id="shipmentUploadremark"></li>
  155 + <li>上传时间:<input type="text" name="shipmentUploadTime" id="shipmentUploadTime"></li>
  156 + <li>上传状态:<input type="text" name="shipmentUploadStatus" id="shipmentUploadStatus"></li>
  157 + <li>创建时间:<input type="text" name="shipmentCreated" id="shipmentCreated"></li>
  158 + <li>创建用户:<input type="text" name="shipmentCreatedBy" id="shipmentCreatedBy"></li>
  159 + <li>最后修改时间:<input type="text" name="shipmentLastUpdated" id="shipmentLastUpdated"></li>
  160 + <li>更新用户:<input type="text" name=" shipmentLastUpdatedBy" id="shipmentLastUpdatedBy"></li>
  161 + <li>是否有效:<input type="text" name="shipmentEnable" id="shipmentEnable"></li>
  162 + <li>是否删除:<input type="text" name="shipmentDeleted" id="shipmentDeleted"></li>
  163 + </ul>
  164 + </div>
  165 + </div>
  166 + </div>
  167 + </form>
  168 + </div>
  169 + <div class="btn-group hidden-xs" id="toolbar-detail" role="group" style="padding:20px 0;">
  170 +
  171 + <a class="btn btn-outline btn-success btn-rounded" onclick="add()" shiro:hasPermission="shipment:bill:add">
  172 + <i class="fa fa-plus"></i> 新增
  173 + </a>
  174 + <a class="btn btn-outline btn-danger btn-rounded" onclick="batRemove()" shiro:hasPermission="shipment:bill:remove">
  175 + <i class="fa fa-trash-o"></i> 删除
  176 + </a>
  177 + <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.edit(shipmentId)" shiro:hasPermission="shipment:bill:edit">
  178 + <i class="fa fa-edit"></i> 编辑主单据
  179 + </a>
  180 + <a class="btn btn-outline btn-default btn-rounded" onclick="loadDetail()">
  181 + <i class="fa fa-refresh"></i> 刷新
  182 + </a>
  183 + <!--<a class="btn btn-outline btn-success btn-rounded" onclick="autoZone()" shiro:hasPermission="shipment:bill:add">-->
  184 + <!--<i class="fa fa-plus"></i> 自动分配库区-->
  185 + <!--</a>-->
  186 + <!--<a class="btn btn-outline btn-success btn-rounded" onclick="addzone()" shiro:hasPermission="shipment:bill:add">-->
  187 + <!--<i class="fa fa-plus"></i> 分配库区-->
  188 + <!--</a>-->
  189 + <a class="btn btn-outline btn-primary btn-rounded to-receive" onclick="Toshipping(false)" shiro:hasPermission="shipment:shippingCombination:combination">
  190 + <i class="fa fa-hand-lizard-o"></i> 手动组盘
  191 + </a>
  192 + <a class="btn btn-outline btn-primary btn-rounded auto-shipment" onclick="Toshipping(true)" shiro:hasPermission="shipment:shippingCombination:combination">
  193 + <i class="fa fa-code-fork"></i> 自动组盘
  194 + </a>
  195 + </div>
  196 + <table id="bootstrap-table-detail" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
  197 + </div>
  198 + </div>
  199 + </div>
  200 + </div>
  201 +</div>
  202 +<div th:include="include :: footer"></div>
  203 +<script th:inline="javascript">
  204 + var printFlag = [[${@permission.hasPermi('shipment:bill:report')}]]; //打印
  205 + var editFlag = [[${@permission.hasPermi('shipment:bill:edit')}]];
  206 + var removeFlag = [[${@permission.hasPermi('shipment:bill:remove')}]];
  207 + var prefix = ctx + "shipment/shipmentHeader";
  208 + var prefix_detail = ctx + "shipment/shipmentDetail";
  209 + var datas = [[${@dict.getType('sys_normal_disable')}]];
  210 + var shipmentTypes=[[${@dict.getType('shipmentType')}]];
  211 + var shipmentHeaderStatus=[[${@dict.getType('shipmentHeaderStatus')}]];
  212 + var stations = [[${@dict.getType('station')}]];
  213 + var uploadStatus=[[${@dict.getType('uploadStatus')}]];
  214 + var detailCreateUrl=prefix_detail+"/add";
  215 + var detailRemoveUrl=prefix_detail+"/remove";
  216 + var inventoryStatus=[[${@dict.getType('inventoryStatus')}]];
  217 + var rossDoccking = [[${@permission.hasPermi('shipment:bill:rossDoccking')}]];
  218 + var rossDocckingUrl =prefix_detail+"/rossDoccking";
  219 + var shipmentId = "";
  220 + var shipmentCode="";
  221 +
  222 + $(function () {
  223 + var options = {
  224 + url: prefix + "/list",
  225 + createUrl: prefix + "/add",
  226 + updateUrl: prefix + "/edit/{id}",
  227 + removeUrl: prefix + "/remove",
  228 + modalName: "出库单",
  229 + sortName: "created",
  230 + sortOrder: "desc",
  231 + search: false,
  232 + columns: [
  233 + {
  234 + checkbox: true
  235 + },
  236 + {
  237 + field: 'id',
  238 + title: '出库单id'
  239 + },
  240 + {
  241 + field: 'code',
  242 + title: '出库单号',
  243 + sortable:true
  244 + },
  245 + {
  246 + field: 'companyCode',
  247 + title: '货主',
  248 + sortable:true
  249 + },
  250 + {
  251 + field: 'referCode',
  252 + title: 'erp订单号',
  253 + sortable:true
  254 + },
  255 + {
  256 + field: 'referCodeType',
  257 + title: 'erp订单内部号',
  258 + sortable:true,
  259 + visible:false
  260 + },
  261 + {
  262 + field: 'shipmentType',
  263 + title: '类型',
  264 + align: 'center',
  265 + formatter: function(value, row, index) {
  266 + return $.table.selectDictLabel(shipmentTypes, value);
  267 + },
  268 + sortable:true
  269 +
  270 + },
  271 + {
  272 + field: 'customerCode',
  273 + title: '客户编码',
  274 + sortable:true
  275 + },
  276 + {
  277 + field: 'priority',
  278 + title: '优先级'
  279 + },
  280 + {
  281 + field: 'route',
  282 + title: '路线',
  283 + sortable:true
  284 + },
  285 + {
  286 + field: 'totalQty',
  287 + title: '总数量'
  288 + },
  289 + {
  290 + field: 'totalLines',
  291 + title: '总行数'
  292 + },
  293 + {
  294 + field: 'firstStatus',
  295 + title: '头状态',
  296 + formatter: function(value, row, index) {
  297 + return $.table.selectDictLabel(shipmentHeaderStatus, value);
  298 + },
  299 + sortable:true
  300 + },
  301 + {
  302 + field: 'lastStatus',
  303 + title: '尾状态',
  304 + formatter: function(value, row, index) {
  305 + return $.table.selectDictLabel(shipmentHeaderStatus, value);
  306 + },
  307 + sortable:true
  308 + },
  309 + {
  310 + field: 'created',
  311 + title: '创建时间',
  312 + sortable: true
  313 + },
  314 + {
  315 + field: 'createdBy',
  316 + title: '创建用户'
  317 + },
  318 + {
  319 + field: 'lastUpdated',
  320 + title: '最后修改时间',
  321 + visible:false
  322 + },
  323 + {
  324 + field: 'lastUpdatedBy',
  325 + title: '更新用户',
  326 + visible:false
  327 + },
  328 + {
  329 + title: '操作',
  330 + align: 'center',
  331 + formatter: function (value, row, index) {
  332 + var actions = [];
  333 + actions.push('<a id="table_edit" class="btn btn-success btn-xs ' + printFlag + '" href="#" onclick="receiptPrint(\'' + row.id + '\')"><i class="fa fa-print"></i>打印</a> ');
  334 + // actions.push('<a class="btn btn-info btn-xs " href="#" onclick="detail(\'' + row.id + '\',\'' + row.code + '\')"><i class="fa fa-list-ul"></i>列表</a> ');
  335 + if (row.firstStatus < 100){
  336 + actions.push('<a class="btn btn-info btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  337 + }
  338 + if (row.firstStatus < 120){
  339 + actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-trash-o"></i>删除</a>');
  340 + }
  341 + return actions.join('');
  342 + }
  343 + }]
  344 + };
  345 + $.table.init(options);
  346 + });
  347 +
  348 + $("#bootstrap-table-detail").bootstrapTable(
  349 + {
  350 + /*url: prefix_detail + "/list",*/
  351 + createUrl: prefix_detail + "/add",
  352 + updateUrl: prefix_detail + "/edit/{id}",
  353 + removeUrl: prefix_detail + "/remove",
  354 + // queryParams: queryParams,
  355 + sortable: true, //排序
  356 + // showRefresh: true, //刷新
  357 + modalName: "出库明细",
  358 + search: false,
  359 + clickToSelect: true,
  360 + sortName: "lastUpdated",
  361 + sortOrder: "desc",
  362 + pagination: true, // 是否显示分页(*)
  363 + pageNumber: 1, // 初始化加载第一页,默认第一页
  364 + pageSize: 10, // 每页的记录行数(*)
  365 + pageList: [10, 25, 50], // 可供选择的每页的行数(*)
  366 + columns: [{
  367 + checkbox: true
  368 + },
  369 + {
  370 + field: 'id',
  371 + title: '明细id'
  372 + },
  373 + {
  374 + field: 'zoneCode',
  375 + title: '库区'
  376 + },
  377 +
  378 + /* {
  379 + field: 'shipmentId',
  380 + title: '出库单Id'
  381 + },*/
  382 + {
  383 + field: 'materialCode',
  384 + title: '存货编码'
  385 + },
  386 + {
  387 + field: 'materialName',
  388 + title: '物料名称'
  389 + },
  390 + {
  391 + field: 'specification',
  392 + title: '物料规格'
  393 + },
  394 + {
  395 + field: 'batch',
  396 + title: '批次',
  397 + visible:false
  398 + },
  399 + {
  400 + field: 'lot',
  401 + title: '批号',
  402 + visible:false
  403 + },
  404 + {
  405 + field: 'project',
  406 + title: '项目号'
  407 + },
  408 + /*{
  409 + field: 'status',
  410 + title: '明细状态',
  411 + formatter: function(value, row, index) {
  412 + return $.table.selectDictLabel(shipmentHeaderStatus, value);
  413 + },
  414 + visible:true
  415 + },*/
  416 + {
  417 + field: 'manufactureDate',
  418 + title: '生产日期',
  419 + visible:false
  420 + },
  421 + {
  422 + field: 'expirationDate',
  423 + title: '失效日期',
  424 + visible:false
  425 + },
  426 + {
  427 + field: 'agingDate',
  428 + title: '入库日期',
  429 + visible:false
  430 + },
  431 + {
  432 + field: 'inventoryStatus',
  433 + title: '库存状态',
  434 + formatter: function(value, row, index) {
  435 + return $.table.selectDictLabel(inventoryStatus, value);
  436 + },
  437 + },
  438 + {
  439 + field: 'qty',
  440 + title: '发货数量'
  441 + },
  442 + {
  443 + field: 'qtyCompleted',
  444 + title: '已出数量'
  445 + },
  446 + {
  447 + field : 'inventoryQty',
  448 + title : '库存数量'
  449 + },
  450 + {
  451 + field : 'status',
  452 + title : '明细状态',
  453 + align: 'center',
  454 + formatter: function(value, row, index) {
  455 + return $.table.selectDictLabel(shipmentHeaderStatus, value);
  456 + }
  457 + },
  458 + {
  459 + field: 'price',
  460 + title: '物料单价',
  461 + visible:false
  462 + },
  463 + {
  464 + field: 'created',
  465 + title: '创建时间',
  466 + },
  467 + {
  468 + field: 'createdBy',
  469 + title: '创建用户'
  470 + },
  471 + {
  472 + field: 'lastUpdated',
  473 + title: '最后修改时间'
  474 + },
  475 + {
  476 + field: 'lastUpdatedBy',
  477 + title: '更新用户'
  478 + },
  479 + {
  480 + title: '操作',
  481 + align: 'center',
  482 + formatter: function (value, row, index) {
  483 + var actions = [];
  484 + actions.push('<a style="background-color: #f59e00;border: #f59e00" class="btn btn-default btn-xs ' + rossDoccking + '" href="#" onclick="Doccking(\''+ row.id + '\')"><i class="fa fa-send"></i>越库</a> ');
  485 + actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  486 + actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.id + '\')"><i class="fa fa-trash-o"></i>删除</a>');
  487 + return actions.join('');
  488 + }
  489 + }]
  490 + }
  491 + );
  492 +
  493 +
  494 + /* 越库 */
  495 + function Doccking(id) {
  496 + // var url = rossDocckingUrl.replace("{id}", id);
  497 + let url=rossDocckingUrl;
  498 + var data = { "id": id };
  499 + submit(url, "post", "json", data);
  500 + }
  501 +
  502 + function submit(url, type, dataType, data,content) {
  503 + $.modal.loading("正在处理中,请稍后...");
  504 + var config = {
  505 + url: url,
  506 + type: type,
  507 + dataType: dataType,
  508 + data: data,
  509 + contentType: content,
  510 + success: function(result) {
  511 + if (result.code == web_status.SUCCESS) {
  512 + if (result.data !== null) {
  513 + layer.open({
  514 + title: ''
  515 + ,content: result.data,
  516 + closeBtn:false
  517 + });
  518 + $("body").focus();
  519 + }
  520 + else {
  521 + $.modal.msg(result.msg);
  522 + }
  523 +
  524 + }
  525 + else {
  526 + $.modal.alertError(result.msg);
  527 + }
  528 + $("#list-btn").click();
  529 + $.modal.closeLoading();
  530 + }
  531 + };
  532 + $.ajax(config)
  533 + }
  534 +
  535 +
  536 +
  537 +
  538 + /*入库单列表-详细*/
  539 + function detail(id, code) {
  540 + shipmentId = id;
  541 + shipmentCode=code;
  542 + $("#myTab li").removeClass("active");
  543 + $("#tabHeader").removeClass("in active");
  544 + $("#myTab li:eq(1)").addClass("active");
  545 + $("#tabDetail").addClass("in active");
  546 +
  547 + loadDetail();
  548 + }
  549 +
  550 + /** 载入明细 */
  551 + function loadDetail() {
  552 + $.ajax({
  553 + url:ctx + 'shipment/shipmentDetail/list',
  554 + type: 'post',
  555 + data:{
  556 + shipmentId:shipmentId
  557 + },
  558 + success : function (value) {
  559 + $("#bootstrap-table-detail").bootstrapTable('load',value.data);
  560 + }
  561 + })
  562 + $.ajax({
  563 + url:"shipmentHeader/getShipmentHeader",
  564 + type:"post",
  565 + data:{
  566 + id:shipmentId
  567 + },
  568 + success:function (value) {
  569 + $('#shipmentId').val(value.data.id);
  570 + $('#shipmentCode').val(value.data.code);
  571 + $('#shipmentWarehouseId').val(value.data.warehouseId);
  572 + $('#shipmentWarehouseCode').val(value.data.warehouseCode);
  573 + $('#shipmentCompanyId').val(value.data.companyId);
  574 + $('#shipmentCompanyCode').val(value.data.companyCode);
  575 + $('#shipmentSourceCode').val(value.data.sourceCode);
  576 + $('#shipmentSourcePlatform').val(value.data.sourcePlatform);
  577 + $('#shipmentType').val(shipmentTypes.filter(function(a){return a.dictValue==value.data.type})[0].dictLabel);
  578 + $('#shipmentShipTo').val(value.data.shipTo);
  579 + $('#shipmentPriority').val(value.data.priority);
  580 + $('#shipmentStation').val(value.data.station);
  581 + $('#shipmentTotalQty').val(value.data.totalQty);
  582 + $('#shipmentTotalLines').val(value.data.totalLines);
  583 + $('#shipmentRemark').val(value.data.remark);
  584 + $('#shipmentUploadremark').val(value.data.uploadremark);
  585 + $('#shipmentUploadTime').val(value.data.uploadTime);
  586 + $('#shipmentAppointmentTime').val(value.data.appointmentTime);
  587 + $('#shipmentFirstStatus').val(shipmentHeaderStatus.filter(function(a){return a.dictValue==value.data.firstStatus})[0].dictLabel);
  588 + $('#shipmentLastStatus').val(shipmentHeaderStatus.filter(function(a){return a.dictValue==value.data.lastStatus})[0].dictLabel);
  589 + $('#shipmentUploadStatus').val(uploadStatus.filter(function (a) {return a.dictValue==value.data.uploadStatus})[0].dictLabel);
  590 + $('#shipmentCreated').val(value.data.created);
  591 + $('#shipmentCreatedBy').val(value.data.createdBy);
  592 + $('#shipmentLastUpdated').val(value.data.lastUpdated);
  593 + $('#shipmentLastUpdatedBy').val(value.data.lastUpdatedBy);
  594 + //$('#shipmentEnable').val(value.data.enable);
  595 + if(value.data.enable==true){
  596 + $('#shipmentEnable').val('是')
  597 + }else{
  598 + $('#shipmentEnable').val('否')
  599 + };
  600 + //$('#shipmentDeleted').val(value.data.deleted);
  601 + if(value.data.deleted==false){
  602 + $('#shipmentDeleted').val('否')
  603 + }else{
  604 + $('#shipmentDeleted').val('是')
  605 + };
  606 + $('#shipmentUserDef1').val(value.data.userDef1);
  607 + $('#shipmentUserDef2').val(value.data.userDef2);
  608 + $('#shipmentUserDef3').val(value.data.userDef3);
  609 +
  610 +
  611 + }
  612 + })
  613 + }
  614 +
  615 + /* 添加主单据 */
  616 + function add() {
  617 + if (shipmentId == '') {
  618 + $.modal.open("未选择出库单" , "404.html");
  619 + }
  620 + else {
  621 + var url = detailCreateUrl + "?shipmentId=" + $('#shipmentId').val()
  622 + + "&shipmentCode=" + $('#shipmentCode').val()
  623 + + "&companyId=" + $('#shipmentCompanyId').val()
  624 + + "&companyCode=" + $('#shipmentCompanyCode').val();
  625 + + "&sourceCode=" + $('#shipmentSourceCode').val();
  626 + $.modal.open("添加" , url);
  627 + }
  628 + }
  629 +
  630 + /* 打印 */
  631 + function receiptPrint(id) {
  632 + var url = prefix + "/report/" + id;
  633 + $.modal.open("出库单打印" , url);
  634 + }
  635 +
  636 + /* 编辑明细单据 */
  637 + function edit(id) {
  638 + if (shipmentId == '') {
  639 + $.modal.open("未选择出库单" , "404.html");
  640 + }
  641 + else {
  642 + var url = prefix_detail + "/edit/" + id ;
  643 + $.modal.open("编辑明细" , url);
  644 + }
  645 + }
  646 +
  647 + /* 单个删除 */
  648 + function remove(id) {
  649 + $.modal.confirm("确定删除该条出库单明细信息吗?", function() {
  650 + var url = $.common.isEmpty(id) ? detailRemoveUrl : detailRemoveUrl.replace("{id}", id);
  651 + var data = { "ids": id };
  652 + localSubmit(url, "post", "json", data);
  653 + });
  654 + }
  655 +
  656 + /* 批量删除 */
  657 + function batRemove() {
  658 + var rows=$("#bootstrap-table-detail").bootstrapTable('getSelections');
  659 + // console.log(rows);
  660 + // var rows = $.common.isEmpty($.table._option.id) ? $.table.selectFirstColumns() : $.table.selectColumns($.table._option.id);
  661 + if (rows.length == 0) {
  662 + $.modal.alertWarning("请至少选择一条记录");
  663 + return;
  664 + }
  665 + $.modal.confirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
  666 + var url = detailRemoveUrl;
  667 + var data = { "ids": rows.map(function(v){return v.id;}).join(',') };
  668 + localSubmit(url, "post", "json", data);
  669 + });
  670 + }
  671 +
  672 + function localSubmit (url, type, dataType, data) {
  673 + $.modal.loading("正在处理中,请稍后...");
  674 + var config = {
  675 + url: url, type: type, dataType: dataType, data: data, success: function (result) {
  676 + if (result.code == web_status.SUCCESS) {
  677 + $.modal.msgSuccess(result.msg);
  678 + loadDetail(shipmentId, shipmentCode)
  679 + } else {
  680 + $.modal.alertError(result.msg)
  681 + }
  682 + $.modal.closeLoading()
  683 + }
  684 + };
  685 + $.ajax(config)
  686 + }
  687 +
  688 + /* 出库组盘 */
  689 + function Toshipping(auto) {
  690 + let storage=window.localStorage;
  691 + if (auto) {
  692 + $(".auto-shipment").attr("disabled",true).css("pointer-events","none");
  693 + storage.auto = auto;
  694 + let url = ctx + "shipment/shippingCombination";
  695 + createMenuItem(url, "出库自动组盘");
  696 + storage.shipmentCode=shipmentCode;
  697 + parent.$('.tabReload').click();
  698 + $(".auto-shipment").attr("disabled",false).css("pointer-events","auto");
  699 + }
  700 + else {
  701 + var rows=$("#bootstrap-table-detail").bootstrapTable('getSelections');
  702 + if (rows.length == 0) {
  703 + $.modal.alertWarning("请至少选择一条记录");
  704 + return;
  705 + }
  706 + let data = { "ids": rows.map(function(v){return v.id;}).join(',') };
  707 + $(".to-receive").attr("disabled",true).css("pointer-events","none");
  708 + let url = ctx + "shipment/shippingCombination";
  709 + createMenuItem(url, "出库组盘");
  710 + storage.shipids=data.ids;
  711 + storage.shipmentCode=shipmentCode;
  712 + parent.$('.tabReload').click();
  713 + $(".to-receive").attr("disabled",false).css("pointer-events","auto");
  714 + }
  715 +
  716 + }
  717 +
  718 + /* 点击明细面板 */
  719 + $("#myTab li:eq(1)").click(function () {
  720 + if (shipmentId == '') {
  721 + shipmentId = $("#bootstrap-table tr:eq(1) td:eq(1)").text();
  722 + }
  723 + detail(shipmentId, "");
  724 + });
  725 +
  726 + /* 点击主表面板 */
  727 + $("#myTab li:eq(0)").click(function () {
  728 + $.ajax({
  729 + url: prefix + "/list",
  730 + type:"post",
  731 + success:function (value) {
  732 + $("#bootstrap-table").bootstrapTable('refresh', value.data);
  733 + }
  734 + })
  735 + });
  736 +
  737 + // function addzone() {
  738 + // let url=prefix_detail+'/addZoneCode?ids=';
  739 + // let rows=$("#bootstrap-table-detail").bootstrapTable('getSelections');
  740 + // if (rows.length === 0) {
  741 + // $.modal.msgWarning("请至少选择一条记录");
  742 + // }
  743 + // else {
  744 + // let ids = "";
  745 + // for(let i=0; i<rows.length; i++) {
  746 + // ids = ids + rows[i].id + ","
  747 + // }
  748 + // ids = ids.substring(0, ids.length-1);
  749 + // url=url+ids;
  750 + // $.modal.open("分配库区",url,800,250)
  751 + // }
  752 + // }
  753 + //
  754 + // //自动分配库区
  755 + // function autoZone() {
  756 + // let code=$("#shipmentCode").val();
  757 + // $.ajax({
  758 + // url:prefix_detail+'/addZones',
  759 + // type:'post',
  760 + // data:{
  761 + // code:code
  762 + // },
  763 + // success:function (res) {
  764 + // if (res.code === 200) {
  765 + // $.modal.msgSuccess(res.msg);
  766 + // loadDetail();
  767 + // }
  768 + // else{
  769 + // $.modal.msgError(res.msg);
  770 + // }
  771 + // }
  772 + // })
  773 + // }
  774 +
  775 +</script>
  776 +</body>
  777 +</html>
0 778 \ No newline at end of file
... ...
src/main/resources/templates/inventory/inventory/transfer.html renamed to src/main/resources/templates/inventory/inventoryHeader/transfer.html
... ... @@ -10,13 +10,6 @@
10 10 <!--</ul>-->
11 11 <!--<div id="myTabContent" class="tab-content">-->
12 12 <!--<div class="tab-pane fade in active" id="tab1">-->
13   -
14   - <!--</div>-->
15   - <!--<div class="tab-pane fade" id="tabDetail">-->
16   - <!--此版本-->
17   - <!--</div>-->
18   - <!--</div>-->
19   -
20 13 <!--</div>-->
21 14 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
22 15 <form class="form-horizontal m" id="form-inventory-transfer">
... ...
src/main/resources/templates/inventory/inventoryTransaction/add.html deleted
1   -<!DOCTYPE HTML>
2   -<html lang="zh" xmlns:th="http://www.thymeleaf.org">
3   -<meta charset="utf-8">
4   -<head th:include="include :: header"></head>
5   -<body class="white-bg">
6   - <div class="wrapper wrapper-content animated fadeInRight ibox-content">
7   - <form class="form-horizontal m" id="form-inventoryTransaction-add">
8   - <div class="form-group">
9   - <label class="col-sm-3 control-label">仓库Id:</label>
10   - <div class="col-sm-8">
11   - <input id="warehouseId" name="warehouseId" class="form-control" type="text">
12   - </div>
13   - </div>
14   - <div class="form-group">
15   - <label class="col-sm-3 control-label">仓库:</label>
16   - <div class="col-sm-8">
17   - <input id="warehouseCode" name="warehouseCode" class="form-control" type="text">
18   - </div>
19   - </div>
20   - <div class="form-group">
21   - <label class="col-sm-3 control-label">库位id:</label>
22   - <div class="col-sm-8">
23   - <input id="locationId" name="locationId" class="form-control" type="text">
24   - </div>
25   - </div>
26   - <div class="form-group">
27   - <label class="col-sm-3 control-label">库位编号:</label>
28   - <div class="col-sm-8">
29   - <input id="locationCode" name="locationCode" class="form-control" type="text">
30   - </div>
31   - </div>
32   - <div class="form-group">
33   - <label class="col-sm-3 control-label">上游系统单号:</label>
34   - <div class="col-sm-8">
35   - <input id="sourceCode" name="sourceCode" class="form-control" type="text">
36   - </div>
37   - </div>
38   - <div class="form-group">
39   - <label class="col-sm-3 control-label">上游系统行号:</label>
40   - <div class="col-sm-8">
41   - <input id="sourceLine" name="sourceLine" class="form-control" type="text">
42   - </div>
43   - </div>
44   - <div class="form-group">
45   - <label class="col-sm-3 control-label">交易类型:</label>
46   - <div class="col-sm-8">
47   - <input id="type" name="type" class="form-control" type="text">
48   - </div>
49   - </div>
50   - <div class="form-group">
51   - <label class="col-sm-3 control-label">公司id:</label>
52   - <div class="col-sm-8">
53   - <input id="companyId" name="companyId" class="form-control" type="text">
54   - </div>
55   - </div>
56   - <div class="form-group">
57   - <label class="col-sm-3 control-label">物料Id:</label>
58   - <div class="col-sm-8">
59   - <input id="materialId" name="materialId" class="form-control" type="text">
60   - </div>
61   - </div>
62   - <div class="form-group">
63   - <label class="col-sm-3 control-label">存货编码:</label>
64   - <div class="col-sm-8">
65   - <input id="materialCode" name="materialCode" class="form-control" type="text">
66   - </div>
67   - </div>
68   - <div class="form-group">
69   - <label class="col-sm-3 control-label">单头:</label>
70   - <div class="col-sm-8">
71   - <input id="billId" name="billId" class="form-control" type="text">
72   - </div>
73   - </div>
74   - <div class="form-group">
75   - <label class="col-sm-3 control-label">单编码:</label>
76   - <div class="col-sm-8">
77   - <input id="billCode" name="billCode" class="form-control" type="text">
78   - </div>
79   - </div>
80   - <div class="form-group">
81   - <label class="col-sm-3 control-label">单明细id:</label>
82   - <div class="col-sm-8">
83   - <input id="billDetailId" name="billDetailId" class="form-control" type="text">
84   - </div>
85   - </div>
86   - <div class="form-group">
87   - <label class="col-sm-3 control-label">批次:</label>
88   - <div class="col-sm-8">
89   - <input id="batch" name="batch" class="form-control" type="text">
90   - </div>
91   - </div>
92   - <div class="form-group">
93   - <label class="col-sm-3 control-label">批号:</label>
94   - <div class="col-sm-8">
95   - <input id="lot" name="lot" class="form-control" type="text">
96   - </div>
97   - </div>
98   - <div class="form-group">
99   - <label class="col-sm-3 control-label">项目号:</label>
100   - <div class="col-sm-8">
101   - <input id="project" name="project" class="form-control" type="text">
102   - </div>
103   - </div>
104   - <div class="form-group">
105   - <label class="col-sm-3 control-label">生产日期:</label>
106   - <div class="col-sm-8">
107   - <input id="manufactureDate" name="manufactureDate" class="form-control" type="text">
108   - </div>
109   - </div>
110   - <div class="form-group">
111   - <label class="col-sm-3 control-label">失效日期:</label>
112   - <div class="col-sm-8">
113   - <input id="expirationDate" name="expirationDate" class="form-control" type="text">
114   - </div>
115   - </div>
116   - <div class="form-group">
117   - <label class="col-sm-3 control-label">库存状态:</label>
118   - <div class="col-sm-8">
119   - <input id="status" name="status" class="form-control" type="text">
120   - </div>
121   - </div>
122   - <div class="form-group">
123   - <label class="col-sm-3 control-label">数量:</label>
124   - <div class="col-sm-8">
125   - <input id="qty" name="qty" class="form-control" type="text">
126   - </div>
127   - </div>
128   - <div class="form-group">
129   - <label class="col-sm-3 control-label">执行预定数量:</label>
130   - <div class="col-sm-8">
131   - <input id="taskQty" name="taskQty" class="form-control" type="text">
132   - </div>
133   - </div>
134   - <div class="form-group">
135   - <label class="col-sm-3 control-label">成本:</label>
136   - <div class="col-sm-8">
137   - <input id="costPrice" name="costPrice" class="form-control" type="text">
138   - </div>
139   - </div>
140   - <div class="form-group">
141   - <label class="col-sm-3 control-label">标价:</label>
142   - <div class="col-sm-8">
143   - <input id="listPrice" name="listPrice" class="form-control" type="text">
144   - </div>
145   - </div>
146   - <div class="form-group">
147   - <label class="col-sm-3 control-label">净价:</label>
148   - <div class="col-sm-8">
149   - <input id="netPrice" name="netPrice" class="form-control" type="text">
150   - </div>
151   - </div>
152   - <div class="form-group">
153   - <label class="col-sm-3 control-label">创建时间(入库时间):</label>
154   - <div class="col-sm-8">
155   - <input id="created" name="created" class="form-control" type="text">
156   - </div>
157   - </div>
158   - <div class="form-group">
159   - <label class="col-sm-3 control-label">创建用户:</label>
160   - <div class="col-sm-8">
161   - <input id="createdBy" name="createdBy" class="form-control" type="text">
162   - </div>
163   - </div>
164   - <div class="form-group">
165   - <label class="col-sm-3 control-label">最后修改时间:</label>
166   - <div class="col-sm-8">
167   - <input id="lastUpdated" name="lastUpdated" class="form-control" type="text">
168   - </div>
169   - </div>
170   - <div class="form-group">
171   - <label class="col-sm-3 control-label">更新用户:</label>
172   - <div class="col-sm-8">
173   - <input id="lastUpdatedBy" name="lastUpdatedBy" class="form-control" type="text">
174   - </div>
175   - </div>
176   - <div class="form-group">
177   - <label class="col-sm-3 control-label">自定义字段1:</label>
178   - <div class="col-sm-8">
179   - <input id="userDef1" name="userDef1" class="form-control" type="text">
180   - </div>
181   - </div>
182   - <div class="form-group">
183   - <label class="col-sm-3 control-label">自定义字段2:</label>
184   - <div class="col-sm-8">
185   - <input id="userDef2" name="userDef2" class="form-control" type="text">
186   - </div>
187   - </div>
188   - <div class="form-group">
189   - <label class="col-sm-3 control-label">自定义字段3:</label>
190   - <div class="col-sm-8">
191   - <input id="userDef3" name="userDef3" class="form-control" type="text">
192   - </div>
193   - </div>
194   - <div class="form-group">
195   - <div class="form-control-static col-sm-offset-9">
196   - <button type="submit" class="btn btn-primary">提交</button>
197   - <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
198   - </div>
199   - </div>
200   - </form>
201   - </div>
202   - <div th:include="include::footer"></div>
203   - <script type="text/javascript">
204   - var prefix = ctx + "inventory/inventoryTransaction"
205   - $("#form-inventoryTransaction-add").validate({
206   - rules:{
207   - xxxx:{
208   - required:true,
209   - },
210   - },
211   - submitHandler: function(form) {
212   - $.operate.save(prefix + "/add", $('#form-inventoryTransaction-add').serialize());
213   - }
214   - });
215   - </script>
216   -</body>
217   -</html>
src/main/resources/templates/inventory/inventoryTransaction/edit.html deleted
1   -<!DOCTYPE HTML>
2   -<html lang="zh" xmlns:th="http://www.thymeleaf.org">
3   -<meta charset="utf-8">
4   -<head th:include="include :: header"></head>
5   -<body class="white-bg">
6   - <div class="wrapper wrapper-content animated fadeInRight ibox-content">
7   - <form class="form-horizontal m" id="form-inventoryTransaction-edit" th:object="${inventoryTransaction}">
8   - <input id="id" name="id" th:field="*{id}" type="hidden">
9   - <div class="form-group">
10   - <label class="col-sm-3 control-label">仓库Id:</label>
11   - <div class="col-sm-8">
12   - <input id="warehouseId" name="warehouseId" th:field="*{warehouseId}" class="form-control" type="text">
13   - </div>
14   - </div>
15   - <div class="form-group">
16   - <label class="col-sm-3 control-label">仓库:</label>
17   - <div class="col-sm-8">
18   - <input id="warehouseCode" name="warehouseCode" th:field="*{warehouseCode}" class="form-control" type="text">
19   - </div>
20   - </div>
21   - <div class="form-group">
22   - <label class="col-sm-3 control-label">库位id:</label>
23   - <div class="col-sm-8">
24   - <input id="locationId" name="locationId" th:field="*{locationId}" class="form-control" type="text">
25   - </div>
26   - </div>
27   - <div class="form-group">
28   - <label class="col-sm-3 control-label">库位编号:</label>
29   - <div class="col-sm-8">
30   - <input id="locationCode" name="locationCode" th:field="*{locationCode}" class="form-control" type="text">
31   - </div>
32   - </div>
33   - <div class="form-group">
34   - <label class="col-sm-3 control-label">上游系统单号:</label>
35   - <div class="col-sm-8">
36   - <input id="sourceCode" name="sourceCode" th:field="*{sourceCode}" class="form-control" type="text">
37   - </div>
38   - </div>
39   - <div class="form-group">
40   - <label class="col-sm-3 control-label">上游系统行号:</label>
41   - <div class="col-sm-8">
42   - <input id="sourceLine" name="sourceLine" th:field="*{sourceLine}" class="form-control" type="text">
43   - </div>
44   - </div>
45   - <div class="form-group">
46   - <label class="col-sm-3 control-label">交易类型:</label>
47   - <div class="col-sm-8">
48   - <input id="type" name="type" th:field="*{type}" class="form-control" type="text">
49   - </div>
50   - </div>
51   - <div class="form-group">
52   - <label class="col-sm-3 control-label">公司id:</label>
53   - <div class="col-sm-8">
54   - <input id="companyId" name="companyId" th:field="*{companyId}" class="form-control" type="text">
55   - </div>
56   - </div>
57   - <div class="form-group">
58   - <label class="col-sm-3 control-label">物料Id:</label>
59   - <div class="col-sm-8">
60   - <input id="materialId" name="materialId" th:field="*{materialId}" class="form-control" type="text">
61   - </div>
62   - </div>
63   - <div class="form-group">
64   - <label class="col-sm-3 control-label">存货编码:</label>
65   - <div class="col-sm-8">
66   - <input id="materialCode" name="materialCode" th:field="*{materialCode}" class="form-control" type="text">
67   - </div>
68   - </div>
69   - <div class="form-group">
70   - <label class="col-sm-3 control-label">单头:</label>
71   - <div class="col-sm-8">
72   - <input id="billId" name="billId" th:field="*{billId}" class="form-control" type="text">
73   - </div>
74   - </div>
75   - <div class="form-group">
76   - <label class="col-sm-3 control-label">单编码:</label>
77   - <div class="col-sm-8">
78   - <input id="billCode" name="billCode" th:field="*{billCode}" class="form-control" type="text">
79   - </div>
80   - </div>
81   - <div class="form-group">
82   - <label class="col-sm-3 control-label">单明细id:</label>
83   - <div class="col-sm-8">
84   - <input id="billDetailId" name="billDetailId" th:field="*{billDetailId}" class="form-control" type="text">
85   - </div>
86   - </div>
87   - <div class="form-group">
88   - <label class="col-sm-3 control-label">批次:</label>
89   - <div class="col-sm-8">
90   - <input id="batch" name="batch" th:field="*{batch}" class="form-control" type="text">
91   - </div>
92   - </div>
93   - <div class="form-group">
94   - <label class="col-sm-3 control-label">批号:</label>
95   - <div class="col-sm-8">
96   - <input id="lot" name="lot" th:field="*{lot}" class="form-control" type="text">
97   - </div>
98   - </div>
99   - <div class="form-group">
100   - <label class="col-sm-3 control-label">项目号:</label>
101   - <div class="col-sm-8">
102   - <input id="project" name="project" th:field="*{project}" class="form-control" type="text">
103   - </div>
104   - </div>
105   - <div class="form-group">
106   - <label class="col-sm-3 control-label">生产日期:</label>
107   - <div class="col-sm-8">
108   - <input id="manufactureDate" name="manufactureDate" th:field="*{manufactureDate}" class="form-control" type="text">
109   - </div>
110   - </div>
111   - <div class="form-group">
112   - <label class="col-sm-3 control-label">失效日期:</label>
113   - <div class="col-sm-8">
114   - <input id="expirationDate" name="expirationDate" th:field="*{expirationDate}" class="form-control" type="text">
115   - </div>
116   - </div>
117   - <div class="form-group">
118   - <label class="col-sm-3 control-label">库存状态:</label>
119   - <div class="col-sm-8">
120   - <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
121   - </div>
122   - </div>
123   - <div class="form-group">
124   - <label class="col-sm-3 control-label">数量:</label>
125   - <div class="col-sm-8">
126   - <input id="qty" name="qty" th:field="*{qty}" class="form-control" type="text">
127   - </div>
128   - </div>
129   - <div class="form-group">
130   - <label class="col-sm-3 control-label">执行预定数量:</label>
131   - <div class="col-sm-8">
132   - <input id="taskQty" name="taskQty" th:field="*{taskQty}" class="form-control" type="text">
133   - </div>
134   - </div>
135   - <div class="form-group">
136   - <label class="col-sm-3 control-label">成本:</label>
137   - <div class="col-sm-8">
138   - <input id="costPrice" name="costPrice" th:field="*{costPrice}" class="form-control" type="text">
139   - </div>
140   - </div>
141   - <div class="form-group">
142   - <label class="col-sm-3 control-label">标价:</label>
143   - <div class="col-sm-8">
144   - <input id="listPrice" name="listPrice" th:field="*{listPrice}" class="form-control" type="text">
145   - </div>
146   - </div>
147   - <div class="form-group">
148   - <label class="col-sm-3 control-label">净价:</label>
149   - <div class="col-sm-8">
150   - <input id="netPrice" name="netPrice" th:field="*{netPrice}" class="form-control" type="text">
151   - </div>
152   - </div>
153   - <div class="form-group">
154   - <label class="col-sm-3 control-label">创建时间(入库时间):</label>
155   - <div class="col-sm-8">
156   - <input id="created" name="created" th:field="*{created}" class="form-control" type="text">
157   - </div>
158   - </div>
159   - <div class="form-group">
160   - <label class="col-sm-3 control-label">创建用户:</label>
161   - <div class="col-sm-8">
162   - <input id="createdBy" name="createdBy" th:field="*{createdBy}" class="form-control" type="text">
163   - </div>
164   - </div>
165   - <div class="form-group">
166   - <label class="col-sm-3 control-label">最后修改时间:</label>
167   - <div class="col-sm-8">
168   - <input id="lastUpdated" name="lastUpdated" th:field="*{lastUpdated}" class="form-control" type="text">
169   - </div>
170   - </div>
171   - <div class="form-group">
172   - <label class="col-sm-3 control-label">更新用户:</label>
173   - <div class="col-sm-8">
174   - <input id="lastUpdatedBy" name="lastUpdatedBy" th:field="*{lastUpdatedBy}" class="form-control" type="text">
175   - </div>
176   - </div>
177   - <div class="form-group">
178   - <label class="col-sm-3 control-label">自定义字段1:</label>
179   - <div class="col-sm-8">
180   - <input id="userDef1" name="userDef1" th:field="*{userDef1}" class="form-control" type="text">
181   - </div>
182   - </div>
183   - <div class="form-group">
184   - <label class="col-sm-3 control-label">自定义字段2:</label>
185   - <div class="col-sm-8">
186   - <input id="userDef2" name="userDef2" th:field="*{userDef2}" class="form-control" type="text">
187   - </div>
188   - </div>
189   - <div class="form-group">
190   - <label class="col-sm-3 control-label">自定义字段3:</label>
191   - <div class="col-sm-8">
192   - <input id="userDef3" name="userDef3" th:field="*{userDef3}" class="form-control" type="text">
193   - </div>
194   - </div>
195   - <div class="form-group">
196   - <div class="form-control-static col-sm-offset-9">
197   - <button type="submit" class="btn btn-primary">提交</button>
198   - <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
199   - </div>
200   - </div>
201   - </form>
202   - </div>
203   - <div th:include="include::footer"></div>
204   - <script type="text/javascript">
205   - var prefix = ctx + "inventory/inventoryTransaction"
206   - $("#form-inventoryTransaction-edit").validate({
207   - rules:{
208   - xxxx:{
209   - required:true,
210   - },
211   - },
212   - submitHandler: function(form) {
213   - $.operate.save(prefix + "/edit", $('#form-inventoryTransaction-edit').serialize());
214   - }
215   - });
216   - </script>
217   -</body>
218   -</html>
src/main/resources/templates/inventory/inventoryTransaction/inventoryTransaction.html
... ... @@ -53,22 +53,12 @@
53 53 </li>
54 54 <li>
55 55 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
56   - <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventory:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  56 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
57 57 </li>
58 58 </ul>
59 59 </div>
60 60 </form>
61 61 </div>
62   - <!--
63   - <div class="btn-group hidden-xs" id="toolbar" role="group">
64   - <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="inventory:inventoryTransaction:add">
65   - <i class="fa fa-plus"></i> 新增
66   - </a>
67   - <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="inventory:inventoryTransaction:remove">
68   - <i class="fa fa-trash-o"></i> 删除
69   - </a>
70   - </div>
71   - -->
72 62 <div class="col-sm-12 select-info">
73 63 <div class="btn-group hidden-xs" id="toolbar" role="group">
74 64 <a class="btn btn-outline btn-success btn-rounded" onclick="report()">
... ... @@ -81,7 +71,7 @@
81 71 </div>
82 72 <div th:include="include :: footer"></div>
83 73 <script th:inline="javascript">
84   - var editFlag = [[${@permission.hasPermi('inventory:inventoryTransaction:edit')}]];
  74 + var editFlag = [[${@permission.hasPermi('inventoryHeader:inventoryTransaction:edit')}]];
85 75 var prefix = ctx + "inventory/inventoryTransaction";
86 76 var inventoryStatus=[[${@dict.getType('inventoryStatus')}]];
87 77 var inventoryTransactionType = [[${@dict.getType('inventoryTransactionType')}]];
... ...
src/main/resources/templates/shipment/shippingCombination/combination.html
... ... @@ -47,7 +47,7 @@
47 47 </li>
48 48 <li>
49 49 <a id="search" class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
50   - <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventory:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
  50 + <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
51 51 </li>
52 52  
53 53 <!--<li>-->
... ...
src/main/resources/templates/tool/import/import.html
... ... @@ -11,8 +11,8 @@
11 11 <ul>
12 12 <li>
13 13 导入表:
14   - <select name="table" id="table">
15   - <option value="general/material">物料</option>
  14 + <select name="table" id="table" th:with="list=${@excelService.getList()}">
  15 + <option th:each="ex : ${list}" th:text="${ex['name']}" th:value="${ex['url']}"></option>
16 16 </select>
17 17 </li>
18 18 </ul>
... ...
src/test/java/com.huaheng.test/CreateCode.java
... ... @@ -1155,12 +1155,12 @@ public class CreateCode {
1155 1155 packages.put("container","com.huaheng.pc.general.container.Container");
1156 1156 packages.put("container_type","com.huaheng.pc.config.containerType.ContainerType");
1157 1157 packages.put("customer","com.huaheng.pc.general.customer.Customer");
1158   - packages.put("cyclecount_adjust","com.huaheng.pc.inventory.cyclecountAdjust.CyclecountAdjust");
1159   - packages.put("cyclecount_adjustdetail","com.huaheng.pc.inventory.cyclecountAdjustDetail.CyclecountAdjustDetail");
1160   - packages.put("cyclecount_detail","com.huaheng.pc.inventory.cyclecountDetail.CyclecountDetail");
1161   - packages.put("cyclecount_header","com.huaheng.pc.inventory.cyclecountHeader.CyclecountHeader");
1162   - packages.put("inventory","com.huaheng.pc.inventory.inventory.Inventory");
1163   - packages.put("inventory_transaction","com.huaheng.pc.inventory.inventoryTransaction.InventoryTransaction");
  1158 + packages.put("cyclecount_adjust","com.huaheng.pc.inventoryHeader.cyclecountAdjust.CyclecountAdjust");
  1159 + packages.put("cyclecount_adjustdetail","com.huaheng.pc.inventoryHeader.cyclecountAdjustDetail.CyclecountAdjustDetail");
  1160 + packages.put("cyclecount_detail","com.huaheng.pc.inventoryHeader.cyclecountDetail.CyclecountDetail");
  1161 + packages.put("cyclecount_header","com.huaheng.pc.inventoryHeader.cyclecountHeader.CyclecountHeader");
  1162 + packages.put("inventory","com.huaheng.pc.inventoryHeader.inventoryHeader.Inventory");
  1163 + packages.put("inventory_transaction","com.huaheng.pc.inventoryHeader.inventoryTransaction.InventoryTransaction");
1164 1164 packages.put("location","com.huaheng.pc.general.location.Location");
1165 1165 packages.put("location_type","com.huaheng.pc.config.locationType.LocationType");
1166 1166 packages.put("material","com.huaheng.pc.general.material.Material");
... ...