Commit af1234a6 by 胡懿

货品,二维码,入库,台账jsp调整

parent f9ac3214
...@@ -91,16 +91,16 @@ ...@@ -91,16 +91,16 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">备注信息</label> <label class="col-sm-2 control-label"><font color="red">*</font>操作人</label>
<div class="col-sm-10"> <div class="col-sm-10">
<form:textarea path="remarks" htmlEscape="false" rows="4" class="form-control "/> <sys:userselect id="operator" name="operator.id" value="${goods.operator.id}" labelName="operator.name" labelValue="${goods.operator.name}"
cssClass="form-control required"/>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label"><font color="red">*</font>操作人</label> <label class="col-sm-2 control-label">备注信息</label>
<div class="col-sm-10"> <div class="col-sm-10">
<sys:userselect id="operator" name="operator.id" value="${goods.operator.id}" labelName="operator.name" labelValue="${goods.operator.name}" <form:textarea path="remarks" htmlEscape="false" rows="4" class="form-control "/>
cssClass="form-control required"/>
</div> </div>
</div> </div>
<div class="tabs-container"> <div class="tabs-container">
...@@ -120,7 +120,6 @@ ...@@ -120,7 +120,6 @@
<th>型号</th> <th>型号</th>
<th>数量</th> <th>数量</th>
<th>备注信息</th> <th>备注信息</th>
<th>入库状态</th>
<th width="10">&nbsp;</th> <th width="10">&nbsp;</th>
</tr> </tr>
</thead> </thead>
...@@ -159,16 +158,6 @@ ...@@ -159,16 +158,6 @@
<textarea id="goodsInfoList{{idx}}_remarks" name="goodsInfoList[{{idx}}].remarks" rows="4" class="form-control ">{{row.remarks}}</textarea> <textarea id="goodsInfoList{{idx}}_remarks" name="goodsInfoList[{{idx}}].remarks" rows="4" class="form-control ">{{row.remarks}}</textarea>
</td> </td>
<td>
<select id="goodsInfoList{{idx}}_state" name="goodsInfoList[{{idx}}].state" data-value="{{row.state}}" class="form-control m-b ">
<option value=""></option>
<c:forEach items="${fns:getDictList('wh_stockroom_state')}" var="dict">
<option value="${dict.value}">${dict.label}</option>
</c:forEach>
</select>
</td>
<td class="text-center" width="10"> <td class="text-center" width="10">
{{#delBtn}}<span class="close" onclick="delRow(this, '#goodsInfoList{{idx}}')" title="删除">&times;</span>{{/delBtn}} {{#delBtn}}<span class="close" onclick="delRow(this, '#goodsInfoList{{idx}}')" title="删除">&times;</span>{{/delBtn}}
</td> </td>
......
...@@ -289,6 +289,18 @@ $(document).ready(function() { ...@@ -289,6 +289,18 @@ $(document).ready(function() {
})); }));
} }
function printQr(id) {
jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (r) {
console.log(r)
})
}
function cleanQr(id) {
jp.get("${ctx}/warehouse/goods/goods/cleanQr?goodsInfoId="+id, function (r) {
console.log(r)
})
}
</script> </script>
<script type="text/template" id="goodsChildrenTpl">//<!-- <script type="text/template" id="goodsChildrenTpl">//<!--
<div class="tabs-container"> <div class="tabs-container">
...@@ -302,11 +314,11 @@ $(document).ready(function() { ...@@ -302,11 +314,11 @@ $(document).ready(function() {
<tr> <tr>
<th>名称</th> <th>名称</th>
<th>类型</th> <th>类型</th>
<th>类型编码</th>
<th>型号</th> <th>型号</th>
<th>数量</th> <th>数量</th>
<th>备注信息</th> <th>备注信息</th>
<th>入库状态</th> <th>操作</th>
<th>主表ID</th>
</tr> </tr>
</thead> </thead>
<tbody id="goodsChild-{{idx}}-1-List"> <tbody id="goodsChild-{{idx}}-1-List">
...@@ -321,6 +333,9 @@ $(document).ready(function() { ...@@ -321,6 +333,9 @@ $(document).ready(function() {
{{row.name}} {{row.name}}
</td> </td>
<td> <td>
{{row.type.name}}
</td>
<td>
{{row.type.code}} {{row.type.code}}
</td> </td>
<td> <td>
...@@ -333,10 +348,12 @@ $(document).ready(function() { ...@@ -333,10 +348,12 @@ $(document).ready(function() {
{{row.remarks}} {{row.remarks}}
</td> </td>
<td> <td>
{{row.dict.state}} <button onclick="printQr('{{row.id}}')">
</td> 打印二维码
<td> </button>
{{row.goods.id}} <button onclick="cleanQr('{{row.id}}')">
清除二维码
</button>
</td> </td>
</tr>//--> </tr>//-->
</script> </script>
...@@ -310,8 +310,8 @@ $(document).ready(function() { ...@@ -310,8 +310,8 @@ $(document).ready(function() {
<th>名称</th> <th>名称</th>
<th>类型</th> <th>类型</th>
<th>型号</th> <th>型号</th>
<th>货品明细id</th> <th>数量</th>
<th>货架id</th> <th>货架</th>
<th>备注信息</th> <th>备注信息</th>
</tr> </tr>
</thead> </thead>
...@@ -336,10 +336,10 @@ $(document).ready(function() { ...@@ -336,10 +336,10 @@ $(document).ready(function() {
{{row.model}} {{row.model}}
</td> </td>
<td> <td>
{{row.goodsInfo.id}}
</td> </td>
<td> <td>
{{row.shelves.name}} {{row.names}}
</td> </td>
<td> <td>
{{row.remarks}} {{row.remarks}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment