diff --git a/src/main/resources/templates/receipt/receiving/receiving.html b/src/main/resources/templates/receipt/receiving/receiving.html index e4eec07..c289196 100644 --- a/src/main/resources/templates/receipt/receiving/receiving.html +++ b/src/main/resources/templates/receipt/receiving/receiving.html @@ -79,6 +79,7 @@ <li> <select id="batteryTypes" name="batteryTypes" class="form-control" type="text" placeholder="电池类必填"> <option value="">请选择电池类型</option> + <option value="1">电池包</option> <option value="2">电池模块</option> <option value="3">电池单体</option> </select> @@ -298,6 +299,10 @@ contentType: "application/x-www-form-urlencoded", clickToSelect: true, modalName: "收货", + pagination: true, // 是否显示分页(*) + pageNumber: 1, // 初始化加载第一页,默认第一页 + pageSize: 10, // 每页的记录行数(*) + pageList: [10, 25, 50, 100], onRefresh: function(){ }, @@ -315,7 +320,14 @@ }, success:res=>{ // $("#bootstrap-table1").bootstrapTable('load',res.data.list); - $("#bootstrap-table2").bootstrapTable('load',res.data.inventoryList); + $("#bootstrap-table2").bootstrapTable('load',res.data.inventoryList); + // console.log(res.data.inventoryList) + $("#batteryPackType").val("P1") + $("#completeness").val(res.data.currBill.completeness) + $("#batteryTypes").val(res.data.currBill.batteryTypes) + $("#electricQuantity").val(res.data.currBill.electricQuantity) + // + //请选择电池类型 // $("#bootstrap-table3").bootstrapTable('load',res.data.containerList); } })