|
|
@@ -11,13 +11,14 @@
|
|
|
<div class="shadow-content" style="margin:1.5rem;">
|
|
|
<table id="salesManage" lay-filter="tableFilter"></table>
|
|
|
</div>
|
|
|
-<script type="text/html" id="switch">
|
|
|
- <div style="width:90px;height:70px">
|
|
|
- {{#
|
|
|
- if(!isEmpty(d.fmPic)&& d.fmPic != "null"){ }}
|
|
|
- <img src="{{ d.fmPic}}">
|
|
|
- {{# } }}
|
|
|
- </div>
|
|
|
+<script type="text/html" id="barDemo">
|
|
|
+ <p class="layui-btn layui-btn-danger layui-btn-xs">笔数+{{# countNo }}</p>
|
|
|
+ <p class="layui-btn layui-btn-danger layui-btn-xs">金额+{{# amount }}</p>
|
|
|
+</script>
|
|
|
+<script type="text/html" id="barDemo2">
|
|
|
+ <p class="layui-btn layui-btn-danger layui-btn-xs">实际金额+{{# amount }}</p>
|
|
|
+ <p class="layui-btn layui-btn-danger layui-btn-xs">商品成本+{{# proCost }}</p>
|
|
|
+ <p class="layui-btn layui-btn-danger layui-btn-xs">预估利润+{{# amount-proCost }}</p>
|
|
|
</script>
|
|
|
<script>
|
|
|
layui.use(['table','laydate','form'], function(){
|
|
|
@@ -26,12 +27,12 @@
|
|
|
action : '../../invCardManageAction/selectAllIncome',
|
|
|
data : { },
|
|
|
success : function(data) {
|
|
|
- var orderNum = data.orderNum;
|
|
|
- var countIncome = data.countIncome;
|
|
|
- var countDevice = data.countDevice;
|
|
|
-<!-- $("#orderNum").html(orderNum);-->
|
|
|
-<!-- $("#countIncome").html(countIncome);-->
|
|
|
-<!-- $("#countDevice").html(countDevice);-->
|
|
|
+ var allSale = data.allSale;
|
|
|
+ var allCost = data.allCost;
|
|
|
+ var allProfit = data.allProfit;
|
|
|
+<!-- $("#allSale").html(allSale);-->
|
|
|
+<!-- $("#allCost").html(allCost);-->
|
|
|
+<!-- $("#allProfit").html(allProfit);-->
|
|
|
form.render();
|
|
|
}
|
|
|
});
|
|
|
@@ -51,12 +52,12 @@
|
|
|
,page: true //开启分页
|
|
|
,cols: [[ //表头
|
|
|
{type:'numbers',title: '序号',width:'5%'}
|
|
|
- ,{field: 'fmPic', title: '商品照片', width:"8%",align:'center',templet:'#switch'}
|
|
|
- ,{field: 'logonname', title: '商品名称', width:'12%'}
|
|
|
- ,{field: 'name', title: '类别', width:'12%'}
|
|
|
- ,{field: 'rolename', title: '总销售', width:'15%'}
|
|
|
- ,{field: 'createdate', title: '出货数量',width:'15%'}
|
|
|
- ,{field: 'lastlogon', title: '利润分析',width:'15%'}
|
|
|
+ ,{field: 'mainUrl', title: '商品照片', width:"8%"}
|
|
|
+ ,{field: 'proName', title: '商品名称', width:'12%'}
|
|
|
+ ,{field: 'vciName', title: '类别', width:'12%'}
|
|
|
+ ,{field: 'countNo', title: '总销售', width:'15%', toolbar: '#barDemo'}
|
|
|
+ ,{field: 'proNums', title: '出货数量',width:'15%'}
|
|
|
+ ,{field: 'proCost', title: '利润分析',width:'15%', toolbar: '#barDemo2'}
|
|
|
]]
|
|
|
,done: function(res, curr, count){
|
|
|
//如果是异步请求数据方式,res即为你接口返回的信息。
|