|
@@ -0,0 +1,353 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="format-detection" content="telephone=no">
|
|
|
+ <th:block th:include="include :: header('门店进销存月报表')" />
|
|
|
+ <th:block th:include="include :: layout-latest-css" />
|
|
|
+ <th:block th:include="include :: ztree-css" />
|
|
|
+</head>
|
|
|
+<style>
|
|
|
+ /* 设置 ul 的基本样式 */
|
|
|
+ ul {
|
|
|
+ list-style-type: none; /* 去掉项目符号 */
|
|
|
+ padding: 0; /* 去掉默认的内边距 */
|
|
|
+ display: grid; /* 使用网格布局 */
|
|
|
+ grid-template-columns: repeat(5, 1fr); /* 设置三列 */
|
|
|
+ }
|
|
|
+ ul-list ul{
|
|
|
+ list-style-type: none; /* 去掉项目符号 */
|
|
|
+ padding: 0; /* 去掉默认的内边距 */
|
|
|
+ display: grid; /* 使用网格布局 */
|
|
|
+ grid-template-columns: repeat(4, 1fr); /* 设置三列 */
|
|
|
+ }
|
|
|
+ ul-list ul li{
|
|
|
+ /*padding: 10px;*/ /* 内边距 */
|
|
|
+ text-align: left; /* 文本居中 */
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 设置 li 的基本样式 */
|
|
|
+ li {
|
|
|
+ /*background-color: lightblue; *//* 背景颜色 */
|
|
|
+ /*padding: 1px; !* 内边距 *!*/
|
|
|
+ text-align: right; /* 文本居中 */
|
|
|
+ }
|
|
|
+</style>
|
|
|
+
|
|
|
+<body class="gray-bg">
|
|
|
+<div class="ui-layout-center">
|
|
|
+ <div class="container-div">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-12 search-collapse" >
|
|
|
+ <form id="SKcBbInventoryvariation-form">
|
|
|
+ <input type="hidden" id="deptId" name="deptId">
|
|
|
+ <input type="hidden" id="parentId" name="parentId">
|
|
|
+ <div class="select-list" >
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ 序号:<input type="text" class="styled-input" name="sequenceNumber" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期间:<input type="text" class="styled-input" name="period" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 商品编码:<input type="text" class="styled-input" name="productCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 商品名称:<input type="text" class="styled-input" name="productName" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 规格:<input type="text" class="styled-input" name="specification" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 单位:<input type="text" class="styled-input" name="unit" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 生产企业:<input type="text" class="styled-input" name="manufacturer" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 剂型:<input type="text" class="styled-input" name="dosageForm" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 批号:<input type="text" class="styled-input" name="batchNumber" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 批次:<input type="text" class="styled-input" name="batch" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期初库存数量:<input type="text" class="styled-input" name="initialStockQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期初库存成本金额/元:<input type="text" class="styled-input" name="initialStockCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 大仓配送数量:<input type="text" class="styled-input" name="warehouseDeliveryQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 大仓配送成本金额/元:<input type="text" class="styled-input" name="warehouseDeliveryCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 调拨调入配送数量:<input type="text" class="styled-input" name="transferInQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 调拨调入配送成本金额/元:<input type="text" class="styled-input" name="transferInCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 店采收货数量:<input type="text" class="styled-input" name="storeReceiptQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 店采收货成本金额:<input type="text" class="styled-input" name="storeReceiptCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 店采退货数量:<input type="text" class="styled-input" name="storeReturnQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 店采退货金额/元:<input type="text" class="styled-input" name="storeReturnAmount" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 调拨调出数量:<input type="text" class="styled-input" name="transferOutQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 调拨调出成本金额/元:<input type="text" class="styled-input" name="transferOutCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店退仓数量:<input type="text" class="styled-input" name="storeReturnWarehouseQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店退仓成本金额/元:<input type="text" class="styled-input" name="storeReturnWarehouseCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线下销售数量:<input type="text" class="styled-input" name="offlineSalesQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线下销售成本金额/元:<input type="text" class="styled-input" name="offlineSalesCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线下销售退货数量:<input type="text" class="styled-input" name="offlineSalesReturnQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线下销售退货金额/元:<input type="text" class="styled-input" name="offlineSalesReturnAmount" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线上销售数量:<input type="text" class="styled-input" name="onlineSalesQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线上销售成本金额/元:<input type="text" class="styled-input" name="onlineSalesCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线上销售退货数量:<input type="text" class="styled-input" name="onlineSalesReturnQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 线上销售退货金额/元:<input type="text" class="styled-input" name="onlineSalesReturnAmount" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 报损数量:<input type="text" class="styled-input" name="lossQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 报损成本金额:<input type="text" class="styled-input" name="lossCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 报溢数量:<input type="text" class="styled-input" name="gainQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 报溢成本金额/元:<input type="text" class="styled-input" name="gainCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期末库存数量:<input type="text" class="styled-input" name="finalStockQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期末库存成本金额/元:<input type="text" class="styled-input" name="finalStockCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期初导入库存数量:<input type="text" class="styled-input" name="initialImportQuantity" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 期初导入库存成本金额/元:<input type="text" class="styled-input" name="initialImportCost" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li style="text-align: center">
|
|
|
+ <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
+ <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="btn-group-sm" id="toolbar" role="group">
|
|
|
+ <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:user:add">
|
|
|
+ <i class="fa fa-plus"></i> 新增
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:user:edit">
|
|
|
+ <i class="fa fa-edit"></i> 修改
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">
|
|
|
+ <i class="fa fa-remove"></i> 删除
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">
|
|
|
+ <i class="fa fa-upload"></i> 导入
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export">
|
|
|
+ <i class="fa fa-download"></i> 导出
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-sm-12 select-table table-striped">
|
|
|
+ <table id="bootstrap-table"></table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<th:block th:include="include :: footer" />
|
|
|
+<th:block th:include="include :: layout-latest-js" />
|
|
|
+<th:block th:include="include :: ztree-js" />
|
|
|
+<script th:inline="javascript">
|
|
|
+ var editFlag = [[${@permission.hasPermi('dtp:pmService:edit')}]];
|
|
|
+ var removeFlag = [[${@permission.hasPermi('dtp:pmService:remove')}]];
|
|
|
+ var prefix = ctx + "kc/skcbbinventoryvariation";
|
|
|
+ $(function() {
|
|
|
+ var panehHidden = false;
|
|
|
+ if ($(this).width() < 1590) {
|
|
|
+ panehHidden = true;
|
|
|
+ }
|
|
|
+ $('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
|
|
|
+ // 回到顶部绑定
|
|
|
+ if ($.fn.toTop !== undefined) {
|
|
|
+ var opt = {
|
|
|
+ win:$('.ui-layout-center'),
|
|
|
+ doc:$('.ui-layout-center')
|
|
|
+ };
|
|
|
+ $('#scroll-up').toTop(opt);
|
|
|
+ }
|
|
|
+ queryArchivesList();
|
|
|
+ });
|
|
|
+
|
|
|
+ function queryArchivesList() {
|
|
|
+ var options = {
|
|
|
+ url: prefix + "/sKcBbInventoryvariationList",
|
|
|
+ viewUrl: prefix + "/sKcBbInventoryvariationView/{id}",
|
|
|
+ createUrl: prefix + "/sKcBbInventoryvariationAdd",
|
|
|
+ updateUrl: prefix + "/sKcBbInventoryvariationEdit/{id}",
|
|
|
+ removeUrl: prefix + "/sKcBbInventoryvariationRemove",
|
|
|
+ /*exportUrl: prefix + "/export",
|
|
|
+ importUrl: prefix + "/importData",
|
|
|
+ importTemplateUrl: prefix + "/importTemplate",*/
|
|
|
+ sortName: "id",
|
|
|
+ sortOrder: "asc",
|
|
|
+ modalName: "门店进销存月报表",
|
|
|
+ fitColumns: true,
|
|
|
+ striped: true,
|
|
|
+ autoRowHeight: true,
|
|
|
+ rowNumbers: true,
|
|
|
+ showFooter:true, //是否显示表格底部区域。
|
|
|
+ clickToSelect: true, //是否启用点击行时选中整行的功能。
|
|
|
+ singleSelect: true, //是否仅允许选择一行
|
|
|
+ columns: [{
|
|
|
+ checkbox: true
|
|
|
+ },
|
|
|
+ { field: 'id', title: '主键', align: 'center' ,visible:false},
|
|
|
+ { field: 'sequenceNumber', title: '序号', align: 'center' },
|
|
|
+ { field: 'period', title: '期间', align: 'center' },
|
|
|
+ { field: 'productCode', title: '商品编码', align: 'center' },
|
|
|
+ { field: 'productName', title: '商品名称', align: 'center' },
|
|
|
+ { field: 'specification', title: '规格', align: 'center' },
|
|
|
+ { field: 'unit', title: '单位', align: 'center' },
|
|
|
+ { field: 'manufacturer', title: '生产企业', align: 'center' },
|
|
|
+ { field: 'dosageForm', title: '剂型', align: 'center' },
|
|
|
+ { field: 'batchNumber', title: '批号', align: 'center' },
|
|
|
+ { field: 'batch', title: '批次', align: 'center' },
|
|
|
+ { field: 'initialStockQuantity', title: '期初库存数量', align: 'center' },
|
|
|
+ { field: 'initialStockCost', title: '期初库存成本金额/元', align: 'center' },
|
|
|
+ { field: 'warehouseDeliveryQuantity', title: '大仓配送数量', align: 'center' },
|
|
|
+ { field: 'warehouseDeliveryCost', title: '大仓配送成本金额/元', align: 'center' },
|
|
|
+ { field: 'transferInQuantity', title: '调拨调入配送数量', align: 'center' },
|
|
|
+ { field: 'transferInCost', title: '调拨调入配送成本金额/元', align: 'center' },
|
|
|
+ { field: 'storeReceiptQuantity', title: '店采收货数量', align: 'center' },
|
|
|
+ { field: 'storeReceiptCost', title: '店采收货成本金额', align: 'center' },
|
|
|
+ { field: 'storeReturnQuantity', title: '店采退货数量', align: 'center' },
|
|
|
+ { field: 'storeReturnAmount', title: '店采退货金额/元', align: 'center' },
|
|
|
+ { field: 'transferOutQuantity', title: '调拨调出数量', align: 'center' },
|
|
|
+ { field: 'transferOutCost', title: '调拨调出成本金额/元', align: 'center' },
|
|
|
+ { field: 'storeReturnWarehouseQuantity', title: '门店退仓数量', align: 'center' },
|
|
|
+ { field: 'storeReturnWarehouseCost', title: '门店退仓成本金额/元', align: 'center' },
|
|
|
+ { field: 'offlineSalesQuantity', title: '线下销售数量', align: 'center' },
|
|
|
+ { field: 'offlineSalesCost', title: '线下销售成本金额/元', align: 'center' },
|
|
|
+ { field: 'offlineSalesReturnQuantity', title: '线下销售退货数量', align: 'center' },
|
|
|
+ { field: 'offlineSalesReturnAmount', title: '线下销售退货金额/元', align: 'center' },
|
|
|
+ { field: 'onlineSalesQuantity', title: '线上销售数量', align: 'center' },
|
|
|
+ { field: 'onlineSalesCost', title: '线上销售成本金额/元', align: 'center' },
|
|
|
+ { field: 'onlineSalesReturnQuantity', title: '线上销售退货数量', align: 'center' },
|
|
|
+ { field: 'onlineSalesReturnAmount', title: '线上销售退货金额/元', align: 'center' },
|
|
|
+ { field: 'lossQuantity', title: '报损数量', align: 'center' },
|
|
|
+ { field: 'lossCost', title: '报损成本金额', align: 'center' },
|
|
|
+ { field: 'gainQuantity', title: '报溢数量', align: 'center' },
|
|
|
+ { field: 'gainCost', title: '报溢成本金额/元', align: 'center' },
|
|
|
+ { field: 'finalStockQuantity', title: '期末库存数量', align: 'center' },
|
|
|
+ { field: 'finalStockCost', title: '期末库存成本金额/元', align: 'center' },
|
|
|
+ { field: 'initialImportQuantity', title: '期初导入库存数量', align: 'center' },
|
|
|
+ { field: 'initialImportCost', title: '期初导入库存成本金额/元', align: 'center' },
|
|
|
+
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ align: 'center',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ if (row.serviceId != 1) {
|
|
|
+ var actions = [];
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="edit_page(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
+ actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
|
|
|
+ var more = [];
|
|
|
+ /*more.push("<a class='btn btn-default btn-xs " + resetPwdFlag + "' href='javascript:void(0)' onclick='resetPwd(" + row.userId + ")'><i class='fa fa-key'></i>重置密码</a> ");
|
|
|
+ more.push("<a class='btn btn-default btn-xs " + editFlag + "' href='javascript:void(0)' onclick='authRole(" + row.userId + ")'><i class='fa fa-check-square-o'></i>分配角色</a>");
|
|
|
+ actions.push('<a tabindex="0" class="btn btn-info btn-xs" role="button" data-container="body" data-placement="left" data-toggle="popover" data-html="true" data-trigger="hover" data-content="' + more.join('') + '"><i class="fa fa-chevron-circle-right"></i>更多操作</a>');*/
|
|
|
+ return actions.join('');
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ $.table.init(options);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
|
+ function resetPre() {
|
|
|
+ resetDate();
|
|
|
+ $("#SKcBbInventoryvariation-form")[0].reset();
|
|
|
+ $("#deptId").val("");
|
|
|
+ $("#parentId").val("");
|
|
|
+ $(".curSelectedNode").removeClass("curSelectedNode");
|
|
|
+ $.table.search();
|
|
|
+ var resetButton = document.getElementById('SKcBbInventoryvariation-form');
|
|
|
+ resetButton.addEventListener('click', function() {
|
|
|
+ _refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function edit_page(id){
|
|
|
+ table.set();
|
|
|
+ var url = "/404.html";
|
|
|
+ if ($.common.isNotEmpty(id)) {
|
|
|
+ url = table.options.updateUrl.replace("{id}", id);
|
|
|
+ } else {
|
|
|
+ var id = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
|
|
|
+ if (id.length == 0) {
|
|
|
+ $.modal.alertWarning("请至少选择一条记录");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ url = table.options.updateUrl.replace("{id}", id);
|
|
|
+ }
|
|
|
+ $.modal.openTab("修改" + table.options.modalName, url + "?status=1" );
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 用户状态显示 */
|
|
|
+ function statusTools(row) {
|
|
|
+ if (row.status == 1) {
|
|
|
+ return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.userId + '\')"></i> ';
|
|
|
+ } else {
|
|
|
+ return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.userId + '\')"></i> ';
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|