Commit 43dd2b543a8c5afbfa0770be04e2885f74b77fb4
1 parent
8aa808aa
组盘调整
Showing
4 changed files
with
24 additions
and
3 deletions
src/main/java/com/huaheng/pc/receipt/receiptContainerHeader/service/ReceiptContainerHeaderServiceImpl.java
... | ... | @@ -133,7 +133,9 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai |
133 | 133 | String batteryPackType,String batteryTypes, |
134 | 134 | String completeness*/) { |
135 | 135 | ReceiptDetail detail = receiptDetailService.getById(receiptDetailId); |
136 | - | |
136 | + detail.setType(receiptdetail.getType()); | |
137 | + detail.setStorageType(receiptdetail.getStorageType()); | |
138 | + receiptDetailService.updateById(detail); | |
137 | 139 | |
138 | 140 | //超收检查 |
139 | 141 | if(StringUtils.isEmpty(barCodeHeaderCode)){ |
... | ... |
src/main/java/com/huaheng/pc/receipt/receiving/controller/ReceivingController.java
... | ... | @@ -264,6 +264,7 @@ public class ReceivingController extends BaseController { |
264 | 264 | Map map=new ModelMap(); |
265 | 265 | map.put("inventoryList",inventoryList); |
266 | 266 | map.put("containerList",emptyContainerList); |
267 | + map.put("curBill",receiptDetail); | |
267 | 268 | return AjaxResult.success(map); |
268 | 269 | } |
269 | 270 | //跳到选择主条码页面 |
... | ... |
src/main/resources/mybatis/receipt/ReceiptDetailMapper.xml
... | ... | @@ -91,6 +91,8 @@ |
91 | 91 | <result column="barcodeDetailsId" jdbcType="INTEGER" property="barcodeDetailsId" /> |
92 | 92 | <result column="barcodeDetailsCode" jdbcType="VARCHAR" property="barcodeDetailsCode" /> |
93 | 93 | <result column="materialIsBattery" jdbcType="INTEGER" property="materialIsBattery" /> |
94 | + <result column="type" jdbcType="INTEGER" property="type" /> | |
95 | + <result column="storageType" jdbcType="INTEGER" property="storageType" /> | |
94 | 96 | |
95 | 97 | </resultMap> |
96 | 98 | <sql id="Base_Column_List"> |
... | ... | @@ -105,7 +107,7 @@ |
105 | 107 | itemNetPrice, isVirtualBom, created, createdBy, lastUpdated, lastUpdatedBy,totalWeight,openWeight, |
106 | 108 | version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8,electricQuantity, |
107 | 109 | batteryPackTwoCode,recoveryDate,recycler,manufactureData,manufacturerOneCode,manufacturerTwoCode,batteryPackType,completeness,storageShelf, |
108 | - processStamp, deleted,statusFlowCode,grossWeight,tareWeight,materialBatch,receiptWarehouse,materialNetWeight,materialTareWeight,materialGrossWeight | |
110 | + processStamp, deleted,statusFlowCode,grossWeight,tareWeight,materialBatch,receiptWarehouse,materialNetWeight,materialTareWeight,materialGrossWeight,storageType,`type` | |
109 | 111 | </sql> |
110 | 112 | |
111 | 113 | <select id="getReceiptQtyLast7Days" resultType="com.huaheng.pc.task.taskDetail.domain.TaskDetail"> |
... | ... |
src/main/resources/templates/receipt/receiving/receiving.html
... | ... | @@ -106,6 +106,7 @@ |
106 | 106 | <li> |
107 | 107 | <select id="batteryTypes" name="batteryTypes" class="form-control" placeholder="电池类必填"> |
108 | 108 | <option value="">电池类型</option> |
109 | + <option value="1">电池包</option> | |
109 | 110 | <option value="2">电池模块</option> |
110 | 111 | <option value="3">电池单体</option> |
111 | 112 | </select> |
... | ... | @@ -136,7 +137,9 @@ |
136 | 137 | <li>皮重:<input type="text" style="width: 60px" id="materialTareWeight"/><button class="btn btn-sm btn-success" onclick="getWeight()">取重</button></li> |
137 | 138 | <li>毛重:<input type="text" style="width: 60px" id="materialGrossWeight"/><button class="btn btn-sm btn-success" onclick="getWeight()">取重</button></li> |
138 | 139 | <li>净重:<input type="text" style="width: 60px" id="materialNetWeight"/></li> |
139 | - <li>回收人:<input type="text" style="width: 80px" id="recycler"/></li> | |
140 | + <li>回收人:<select type="text" style="width: 80px" id="recycler" th:with="completeness=${@dict.getType('completeness')}"> | |
141 | + <option th:each="dict : ${completeness}" th:text="${dict['dictLabel']}" th:value="${dict['dictValue']}"></option> | |
142 | + </select></li> | |
140 | 143 | <li>国家编码:<input type="text" id="countryCode" placeholder="国家编码"/></li> |
141 | 144 | <!--<div class="form-group" style="width:300px;white-space: nowrap"> |
142 | 145 | <img id="camera" name="camera" src="" width="300px" height="200px"/> |
... | ... | @@ -404,6 +407,15 @@ |
404 | 407 | success:res=>{ |
405 | 408 | // $("#bootstrap-table1").bootstrapTable('load',res.data.list); |
406 | 409 | $("#bootstrap-table2").bootstrapTable('load',res.data.inventoryList); |
410 | + $("#storageType").val(res.data.curBill.storageType) | |
411 | + $("#type").val(res.data.curBill.type) | |
412 | + $("#batteryTypes").val(res.data.curBill.batteryTypes) | |
413 | + $("#completeness").val(res.data.curBill.completeness) | |
414 | + $("#materialNetWeight").val(res.data.curBill.materialNetWeight) | |
415 | + $("#materialTareWeight").val(res.data.curBill.materialTareWeight) | |
416 | + $("#materialGrossWeight").val(res.data.curBill.materialGrossWeight) | |
417 | + $("#electricQuantity").val(res.data.curBill.electricQuantity) | |
418 | + $("#electricQuantity").val(res.data.curBill.electricQuantity) | |
407 | 419 | // $("#bootstrap-table3").bootstrapTable('load',res.data.containerList); |
408 | 420 | } |
409 | 421 | }) |
... | ... | @@ -868,6 +880,8 @@ |
868 | 880 | let batteryTypes = $("#batteryTypes").val(); |
869 | 881 | let completeness = $("#completeness").val(); |
870 | 882 | let electricQuantity = $("#electricQuantity").val(); |
883 | + let storageType = $("#storageType").val(); | |
884 | + let type = $("#type").val(); | |
871 | 885 | let area = $("#area").val(); |
872 | 886 | |
873 | 887 | let materialTareWeight = $("#materialTareWeight").val(); |
... | ... | @@ -901,6 +915,8 @@ |
901 | 915 | materialGrossWeight:materialGrossWeight, |
902 | 916 | materialNetWeight:materialNetWeight, |
903 | 917 | recycler:recycler, |
918 | + storageType:storageType, | |
919 | + type:type, | |
904 | 920 | area:area |
905 | 921 | }, |
906 | 922 | success:function (data) { |
... | ... |