@@ -15,6 +15,7 @@
|
||||
<script src="/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
|
||||
<script src="/js/common/common.js"></script>
|
||||
<script src="/js/pages/materials/bill_detail.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="bill" class="easyui-panel" style="padding:10px;height:500px;" title="单据明细" iconCls="icon-list"
|
||||
@@ -24,7 +25,7 @@
|
||||
closed="true" modal="true" cache="false" collapsible="false" closable="true">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:60px;height:50px;">会员卡号:</td>
|
||||
<td style="width:80px;height:50px;">会员卡号:</td>
|
||||
<td style="padding:5px;width:200px;">
|
||||
<span class="OrganIdShow"></span>
|
||||
</td>
|
||||
@@ -93,7 +94,7 @@
|
||||
closed="true" modal="true" cache="false" collapsible="false" closable="true">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:60px;height:50px;">会员卡号:</td>
|
||||
<td style="width:80px;height:50px;">会员卡号:</td>
|
||||
<td style="padding:5px;width:200px;">
|
||||
<span class="OrganIdShow"></span>
|
||||
</td>
|
||||
@@ -304,7 +305,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!--销售出库-->
|
||||
<div class="sale_out" style="width:1100px;padding:10px 20px;top:20px"
|
||||
<div class="sale_out" style="width:1100px;padding:10px 20px;top:20px" id="depotHeadDlgShow"
|
||||
closed="true" modal="true" cache="false" collapsible="false" closable="true">
|
||||
<table>
|
||||
<tr>
|
||||
@@ -379,6 +380,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!--销售退货-->
|
||||
<div class="sale_back" style="width:1100px;padding:10px 20px;top:20px"
|
||||
closed="true" modal="true" cache="false" collapsible="false" closable="true">
|
||||
@@ -823,5 +825,8 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dlg-buttons-show">
|
||||
<a href="javascript:void(0)" id="print_bill_detail" class="easyui-linkbutton" iconCls="icon-ok">打印</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-print" id="printBtn">打印</a>
|
||||
</td>
|
||||
<td><span class="tip">注:此处包含零售+批发销售</span></td>
|
||||
<td>当前销售总额:<span class="first-total">0</span> <span class="tip">注:此处包含零售+批发销售</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -110,14 +110,16 @@
|
||||
pageSize: 10,
|
||||
pageList: [10, 50, 100],
|
||||
columns: [[
|
||||
{title: '名称', field: 'MaterialName', width: 60},
|
||||
{title: '型号', field: 'MaterialModel', width: 80},
|
||||
{title: '扩展信息', field: 'MaterialOther', width: 150},
|
||||
{title: '单位', field: 'MaterialUnit', width: 80},
|
||||
{title: '销售数量', field: 'OutSum', width: 60},
|
||||
{title: '销售金额', field: 'OutSumPrice', width: 60},
|
||||
{title: '退货数量', field: 'InSum', width: 60},
|
||||
{title: '退货金额', field: 'InSumPrice', width: 60}
|
||||
{title: '名称', field: 'MaterialName', width: 60, align: "center"},
|
||||
{title: '型号', field: 'MaterialModel', width: 80, align: "center"},
|
||||
{title: '扩展信息', field: 'MaterialOther', width: 150, align: "center"},
|
||||
{title: '单位', field: 'MaterialUnit', width: 80, align: "center"},
|
||||
{title: '销售数量', field: 'OutSum', width: 60, align: "center"},
|
||||
{title: '销售金额', field: 'OutSumPrice', width: 60, align: "center"},
|
||||
{title: '退货数量', field: 'InSum', width: 60, align: "center"},
|
||||
{title: '退货金额', field: 'InSumPrice', width: 60, align: "center"},
|
||||
{title: '实际销售金额', field: 'OutInSumPrice', width: 80, align: "center"}
|
||||
|
||||
]],
|
||||
onLoadError: function () {
|
||||
$.messager.alert('页面加载提示', '页面加载异常,请稍后再试!', 'error');
|
||||
@@ -219,6 +221,13 @@
|
||||
if (res && res.code === 200 && res.data) {
|
||||
$("#tableData").datagrid('loadData', res.data.rows);
|
||||
}
|
||||
var total = 0;
|
||||
res.data.rows.forEach(function(value, index, array){
|
||||
//执行某些操作
|
||||
total += value.OutInSumPrice;
|
||||
})
|
||||
|
||||
$(".first-total").text(total); //当前总余额
|
||||
},
|
||||
//此处添加错误处理
|
||||
error: function () {
|
||||
@@ -260,4 +269,4 @@
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user