Commit d78ed2b8 by anxiaohe

bug修改

parent b80db956
...@@ -376,10 +376,10 @@ function onDelivery (id) { ...@@ -376,10 +376,10 @@ function onDelivery (id) {
{{row.ledgerInfo.batchNum}} {{row.ledgerInfo.batchNum}}
</td> </td>
<td> <td>
{{row.shelvesNames}} {{row.ledgerInfo.shelvesNames}}
</td> </td>
<td> <td>
{{row.warehouseNames}} {{row.ledgerInfo.warehouseNames}}
</td> </td>
<td> <td>
<img src="{{row.receiver}}" width="80"/> <img src="{{row.receiver}}" width="80"/>
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
if(data.length){ if(data.length){
data = data.map(function(item){ data = data.map(function(item){
item.delFlag = 0; item.delFlag = 0;
item.shelvesNames = item.shelvesList.map(function (e) { return e.name }).join(',') + ',';
item.warehouseNames = item.warehouseList.map(function (e) { return e.name }).join(',') + ',';
item.remarks = jp.escapeHtml(item.remarks); item.remarks = jp.escapeHtml(item.remarks);
item.readonly = item.qrCode && item.qrCode.state === '2' item.readonly = item.qrCode && item.qrCode.state === '2'
return item; return item;
...@@ -549,7 +551,7 @@ ...@@ -549,7 +551,7 @@
<script id="warehouseTpl" type="text/html"> <script id="warehouseTpl" type="text/html">
<input id="profitWarehousingInfoList{{idx}}_warehouseName" type="text" value="{{row.warehouseNames}}" readonly class="form-control "/> <input id="profitWarehousingInfoList{{idx}}_warehouseName" type="text" value="{{row.warehouseNames}}" readonly class="form-control "/>
<input id="profitWarehousingInfoList{{idx}}_warehouseIds" name="profitWarehousingInfoList[{{idx}}].warehouseIds" type="hidden" value="{{row.warehouseIds}}" readonly class="form-control "/> <input id="profitWarehousingInfoList{{idx}}_warehouseIds" name="profitWarehousingInfoList[{{idx}}].warehouseIds" type="hidden" value="{{row.warehouseIds}}" readonly class="form-control "/>
<input type="hidden" id="profitWarehousingInfoList{{idx}}_shelvesIds" name="profitWarehousingInfoList[{{idx}}].shelvesIds" value="{{row.shelvesIds}}"> <%-- <input type="hidden" id="profitWarehousingInfoList{{idx}}_shelvesIds" name="profitWarehousingInfoList[{{idx}}].shelvesIds" value="{{row.shelvesIds}}">--%>
</script> </script>
<script id="shelvesTpl" type="text/html">//<!-- <script id="shelvesTpl" type="text/html">//<!--
{{#row.readonly}} {{#row.readonly}}
......
...@@ -284,6 +284,8 @@ function detailFormatter(index, row) { ...@@ -284,6 +284,8 @@ function detailFormatter(index, row) {
} }
function addRow(list, idx, tpl, row){ function addRow(list, idx, tpl, row){
row.shelvesNames = row.shelvesList ? row.shelvesList.map(function (e) { return e.name }).join(',') + ',' : '';
row.warehouseNames = row.warehouseList ? row.warehouseList.map(function (e) { return e.name }).join(',') + ',' : '';
$(list).append(Mustache.render(tpl, { $(list).append(Mustache.render(tpl, {
idx: idx, delBtn: true, row: row idx: idx, delBtn: true, row: row
})); }));
...@@ -436,10 +438,10 @@ function inLedgerInfo(id, rowIndex ){ ...@@ -436,10 +438,10 @@ function inLedgerInfo(id, rowIndex ){
{{row.type.unit}} {{row.type.unit}}
</td> </td>
<td> <td>
{{row.shelves.name}} {{row.shelvesNames}}
</td> </td>
<td> <td>
{{row.warehouse.name}} {{row.warehouseNames}}
</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