init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,124 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!--[1.0.92]-->
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>商品</title>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/goodsList.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css"/>
|
||||
<style>
|
||||
body,html{
|
||||
width:100%;
|
||||
height: 100%;
|
||||
}
|
||||
.mytable span{
|
||||
color:red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="goodsBox">
|
||||
<div class="goods_title">
|
||||
<div class="goods_title_inner">
|
||||
商品日销售明细
|
||||
</div>
|
||||
</div>
|
||||
<div class="goods_edit">
|
||||
|
||||
</div>
|
||||
<div class="goods_table">
|
||||
<table class="layui-hide" id="test" lay-filter="demo"></table>
|
||||
<table class="layui-table mytable">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<if condition="$global_store_jurisdiction && ($global_store_jurisdiction['showpurch_price'] eq '2')">
|
||||
<else />
|
||||
<col width="10%">
|
||||
</if>
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<if condition="$global_store_jurisdiction && ($global_store_jurisdiction['showpurch_price'] eq '2')">
|
||||
<else />
|
||||
<col width="10%">
|
||||
</if>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="8">统计:</th>
|
||||
<if condition="$global_store_jurisdiction && ($global_store_jurisdiction['showpurch_price'] eq '2')">
|
||||
<else />
|
||||
<th>进价统计:<span id="allpurch"></span></th>
|
||||
</if>
|
||||
<th>商品售价统计:<span id="allprice"></span></th>
|
||||
<th>门店配送费统计:<span id="distribution_fee"></span></th>
|
||||
<th>达达配送费统计:<span id="distribution_fee_da"></span></th>
|
||||
<th>优惠统计:<span id="allcouponmoney"></span></th>
|
||||
<th>抹零统计:<span id="small_changes_money"></span></th>
|
||||
<th>商品退款统计:<span id="allrefund"></span></th>
|
||||
<if condition="$global_store_jurisdiction && ($global_store_jurisdiction['showpurch_price'] eq '2')">
|
||||
<else />
|
||||
<th>毛利统计:<span id="profit"></span></th>
|
||||
</if>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="__PUBLIC__/jquery/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/layui-v2.4.3/layui/layui.js"></script>
|
||||
<script type="text/javascript">
|
||||
layui.use(['table', 'form', 'upload'], function () {
|
||||
var table = layui.table;
|
||||
var form = layui.form;
|
||||
//展示已知数据
|
||||
table.render({
|
||||
elem: '#test',
|
||||
url: "{:U('salechatimedetaillist')}",
|
||||
loading: true,
|
||||
where:{
|
||||
chatime:'{$chatime}'
|
||||
},
|
||||
height: 'full-200',
|
||||
cols: [
|
||||
[ //标题栏
|
||||
{field: 'good_number', title: '货号',}
|
||||
, {field: 'goods_name', title: '品名',}
|
||||
, {field: 'goods_code', title: '商品条码',}
|
||||
, {field: 'purch_price', title: '进价(元)',hide:"{$global_store_jurisdiction['showpurch_price']}" ==2?true:false}
|
||||
, {field: 'price', title: '销售价格',}
|
||||
, {field: 'num', title: '销售数量',}
|
||||
, {field: 'refundname',title: '退款状态',}
|
||||
, {field: 'refund_num',title: '退款数量',}
|
||||
, {field: 'allpurch', title: '小计进价(元)',hide:"{$global_store_jurisdiction['showpurch_price']}" ==2?true:false}
|
||||
, {field: 'allprice', title: '小计售价(元)',}
|
||||
, {field: 'allrefund', title: '小计退款(元)',}
|
||||
, {field: 'profit',title: '小计毛利(元)',hide:"{$global_store_jurisdiction['showpurch_price']}" ==2?true:false}
|
||||
]
|
||||
],
|
||||
done:function (res) {
|
||||
$('#profit').text(res.moneycount.profit);
|
||||
$('#allpurch').text(res.moneycount.allpurch);
|
||||
$('#allprice').text(res.moneycount.allprice);
|
||||
$('#allrefund').text(res.moneycount.allrefund);
|
||||
$('#allcouponmoney').text(res.moneycount.allcouponmoney);
|
||||
$('#small_changes_money').text(res.moneycount.small_changes_money);
|
||||
$('#distribution_fee').text(res.moneycount.distribution_fee);
|
||||
$('#distribution_fee_da').text(res.moneycount.distribution_fee_da);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户