王晓迪
4 days ago
33 changed files with 1296 additions and 584 deletions
@ -1,196 +1,282 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
||||
<head> |
<head> |
||||
<th:block th:include="include :: header('采购入库通知单列表')" /> |
<th:block th:include="include :: header('采购入库单列表')" /> |
||||
</head> |
</head> |
||||
<body class="gray-bg"> |
<body class="gray-bg"> |
||||
<div class="container-div"> |
<div class="container-div"> |
||||
<div class="row"> |
<div class="row"> |
||||
<div class="col-sm-12 search-collapse"> |
<div class="col-sm-12 search-collapse"> |
||||
<form id="formId"> |
<form id="formId"> |
||||
<div class="select-list"> |
<div class="select-list"> |
||||
<ul> |
<ul> |
||||
<li> |
<li> |
||||
<label>入库单号:</label> |
<label>入库单号:</label> |
||||
<input type="text" name="warehouseStorageCode"/> |
<input type="text" name="warehouseStorageCode"/> |
||||
</li> |
</li> |
||||
<li> |
<li> |
||||
<label>入库状态:</label> |
<label>关联订单号:</label> |
||||
<select name="warehouseStorageStatus" th:with="type=${@dict.getType('warehouse_storage_status')}"> |
<input type="text" name="relatedOrderCode"/> |
||||
<option value="">所有</option> |
</li> |
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
<li> |
||||
</select> |
<label>入库状态:</label> |
||||
</li> |
<select name="warehouseStorageStatus" th:with="type=${@dict.getType('warehouse_storage_status')}"> |
||||
<li> |
<option value="">所有</option> |
||||
<label>品质状态:</label> |
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
<select name="warehouseQualityStatus" th:with="type=${@dict.getType('warehouse_quality_status')}"> |
</select> |
||||
<option value="">所有</option> |
</li> |
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
<li> |
||||
</select> |
<label>品质状态:</label> |
||||
</li> |
<select name="warehouseQualityStatus" th:with="type=${@dict.getType('warehouse_quality_status')}"> |
||||
<li> |
<option value="">所有</option> |
||||
<label>关联订单号:</label> |
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
<input type="text" name="relatedOrderCode"/> |
</select> |
||||
</li> |
</li> |
||||
|
<li> |
||||
<li> |
<label>入库类型:</label> |
||||
<label>仓库员:</label> |
<select name="warehouseStorageType" th:with="type=${@dict.getType('warehouse_storage_type')}"> |
||||
<input type="text" name="warehouseEmployee"/> |
<option value="">所有</option> |
||||
</li> |
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
<li> |
</select> |
||||
<label>入库部门:</label> |
</li> |
||||
<select name="warehouseDeptType" th:with="type=${@dict.getType('warehouse_dept_type')}"> |
<li> |
||||
<option value="">所有</option> |
<label>订单类型:</label> |
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
<select name="warehouseOrderType" th:with="type=${@dict.getType('storage_order_type')}"> |
||||
</select> |
<option value="">所有</option> |
||||
</li> |
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
<li class="select-time"> |
</select> |
||||
<label>录入时间:</label> |
</li> |
||||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
<li> |
||||
<span>-</span> |
<label>入库部门类型:</label> |
||||
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateTime]"/> |
<select name="warehouseDeptType" th:with="type=${@dict.getType('warehouse_dept_type')}"> |
||||
</li> |
<option value="">所有</option> |
||||
<li> |
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
</select> |
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
</li> |
||||
</li> |
<li> |
||||
</ul> |
<label>供应商ID:</label> |
||||
</div> |
<input type="text" name="supplierCode"/> |
||||
</form> |
</li> |
||||
</div> |
<li> |
||||
|
<label>供应商名称:</label> |
||||
|
<input type="text" name="supplierName"/> |
||||
|
</li> |
||||
|
<li class="select-time"> |
||||
|
<label>录入时间:</label> |
||||
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
||||
|
<span>-</span> |
||||
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateTime]"/> |
||||
|
</li> |
||||
|
<li> |
||||
|
<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="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
|
||||
<div class="btn-group-sm" id="toolbar" role="group"> |
<div class="btn-group-sm" id="toolbar" role="group"> |
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="purchase:purchaseStorage:export"> |
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="purchase:purchaseStorage:add"> |
||||
<i class="fa fa-download"></i> 导出 |
<i class="fa fa-plus"></i> 添加 |
||||
</a> |
</a> |
||||
</div> |
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="purchase:purchaseStorage:edit"> |
||||
<div class="col-sm-12 select-table table-striped"> |
<i class="fa fa-edit"></i> 修改 |
||||
<table id="bootstrap-table"></table> |
</a> |
||||
</div> |
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="purchase:purchaseStorage:remove"> |
||||
|
<i class="fa fa-remove"></i> 删除 |
||||
|
</a> |
||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="purchase:purchaseStorage: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" /> |
</div> |
||||
<script th:inline="javascript"> |
<th:block th:include="include :: footer" /> |
||||
var editFlag = [[${@permission.hasPermi('purchase:purchaseStorage:edit')}]]; |
<script th:inline="javascript"> |
||||
var detailFlag = [[${@permission.hasPermi('purchase:purchaseStorage:detail')}]]; |
var editFlag = [[${@permission.hasPermi('purchase:purchaseStorage:edit')}]]; |
||||
|
var removeFlag = [[${@permission.hasPermi('purchase:purchaseStorage:remove')}]]; |
||||
|
var cancelFlag = [[${@permission.hasPermi('purchase:purchaseStorage:cancel')}]]; |
||||
|
var restoreFlag = [[${@permission.hasPermi('purchase:purchaseStorage:restore')}]]; |
||||
|
var warehouseStorageStatusDatas = [[${@dict.getType('warehouse_storage_status')}]]; |
||||
|
var warehouseQualityStatusDatas = [[${@dict.getType('warehouse_quality_status')}]]; |
||||
|
var warehouseStorageTypeDatas = [[${@dict.getType('warehouse_storage_type')}]]; |
||||
|
var warehouseOrderTypeDatas = [[${@dict.getType('storage_order_type')}]]; |
||||
|
var warehouseDeptTypeDatas = [[${@dict.getType('warehouse_dept_type')}]]; |
||||
|
var prefix = ctx + "purchase/purchaseStorage"; |
||||
|
|
||||
|
$(function() { |
||||
// var storageStatusDatas = [[${@dict.getType('eceiptStatus')}]]; |
var options = { |
||||
// var qualityStatusDatas = [[${@dict.getType('qualityStatus')}]]; |
url: prefix + "/list", |
||||
// var purchaseStorageTypeDatas = [[${@dict.getType('purchase_storage_type')}]]; |
createUrl: prefix + "/add", |
||||
// var purchaseOrderTypeDatas = [[${@dict.getType('sys_order_type')}]]; |
updateUrl: prefix + "/edit/{id}", |
||||
// var purchaseDeptTypeDatas = [[${@dict.getType('warehouseDept')}]]; |
removeUrl: prefix + "/remove", |
||||
var warehouseStorageStatusDatas = [[${@dict.getType('warehouse_storage_status')}]]; |
cancelUrl: prefix + "/cancel/{id}", |
||||
var warehouseQualityStatusDatas = [[${@dict.getType('warehouse_quality_status')}]]; |
restoreUrl: prefix + "/restore/{id}", |
||||
var warehouseStorageTypeDatas = [[${@dict.getType('warehouse_storage_type')}]]; |
exportUrl: prefix + "/export", |
||||
var warehouseOrderTypeDatas = [[${@dict.getType('storage_order_type')}]]; |
modalName: "采购入库单", |
||||
var warehouseDeptTypeDatas = [[${@dict.getType('warehouse_dept_type')}]]; |
fixedColumns: true, // 启用冻结列 |
||||
var prefix = ctx + "purchase/purchaseStorage"; |
fixedRightNumber: 1, // 冻结右列个数 |
||||
$(function() { |
sortable: true, // 是否启用排序 |
||||
var options = { |
sortStable: true, |
||||
url: prefix + "/list", |
columns: [{ |
||||
createUrl: prefix + "/add", |
checkbox: true |
||||
updateUrl: prefix + "/edit/{id}", |
}, |
||||
removeUrl: prefix + "/remove", |
{ |
||||
cancelUrl: prefix + "/cancel/{id}", |
title: '采购入库单id', |
||||
restoreUrl: prefix + "/restore/{id}", |
field: 'purchaseStorageId', |
||||
exportUrl: prefix + "/export", |
visible: false |
||||
modalName: "采购入库通知单", |
}, |
||||
fixedColumns: true, // 启用冻结列 |
{ |
||||
fixedRightNumber: 1, // 冻结右列个数 |
title: '入库单号', |
||||
columns: [ |
field: 'warehouseStorageCode', |
||||
{checkbox: true}, |
}, |
||||
{title: '入库单id',field: 'warehouseStorageId',visible: false}, |
{ |
||||
{title: '入库单号',field: 'warehouseStorageCode',}, |
title: '关联订单号', |
||||
{title: '关联订单号',field: 'relatedOrderCode',}, |
field: 'relatedOrderCode', |
||||
{ |
}, |
||||
title: '入库状态', |
{ |
||||
field: 'warehouseStorageStatus', |
title: '入库状态', |
||||
formatter: function(value, row, index) { |
field: 'warehouseStorageStatus', |
||||
return $.table.selectDictLabel(warehouseStorageStatusDatas, value); |
formatter: function(value, row, index) { |
||||
} |
return $.table.selectDictLabel(warehouseStorageStatusDatas, value); |
||||
}, |
|
||||
{ |
|
||||
title: '品质状态', |
|
||||
field: 'warehouseQualityStatus', |
|
||||
formatter: function(value, row, index) { |
|
||||
return $.table.selectDictLabel(warehouseQualityStatusDatas, value); |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
title: '入库类型', |
|
||||
field: 'warehouseStorageType', |
|
||||
formatter: function(value, row, index) { |
|
||||
return $.table.selectDictLabel(warehouseStorageTypeDatas, value); |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
title: '订单类型', |
|
||||
field: 'warehouseOrderType', |
|
||||
formatter: function(value, row, index) { |
|
||||
return $.table.selectDictLabel(warehouseOrderTypeDatas, value); |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
title: '入库部门', |
|
||||
field: 'warehouseDeptType', |
|
||||
formatter: function(value, row, index) { |
|
||||
return $.table.selectDictLabel(warehouseDeptTypeDatas, value); |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
title: '通知已到货数', |
|
||||
field: 'notifyHasArrivedNum', |
|
||||
}, |
|
||||
{ |
|
||||
title: '通知到货数', |
|
||||
field: 'notifyArriveNum', |
|
||||
}, |
|
||||
|
|
||||
{title: '实际已到货数量',field: 'actualArrivedNum',}, |
|
||||
{title: '暂收合格数量',field: 'temporaryQualifiedNum',}, |
|
||||
{title: '暂收不合格数量',field: 'temporaryUnqualifiedNum',}, |
|
||||
{title: '品质合格数量',field: 'qualityQualifiedNum',}, |
|
||||
{title: '入库数量',field: 'storageNum',}, |
|
||||
{title: '到货时间',field: 'arrivedTime',}, |
|
||||
{title: '暂收时间',field: 'temporaryTime',}, |
|
||||
{title: '交检时间',field: 'deliveryInspectionTime',}, |
|
||||
{title: '品质时间',field: 'qualityTime',}, |
|
||||
{title: '入库时间',field: 'storageTime',}, |
|
||||
{ |
|
||||
title: '仓库员', |
|
||||
field: 'warehouseEmployee', |
|
||||
}, |
|
||||
{ |
|
||||
title: '仓库ID', |
|
||||
field: 'warehouseCode', |
|
||||
}, |
|
||||
{ |
|
||||
title: '仓库名称', |
|
||||
field: 'warehouseName', |
|
||||
}, |
|
||||
{title: '录入时间',field: 'createTime',}, |
|
||||
{title: '录入人',field: 'createBy',}, |
|
||||
{title: '更新人',field: 'updateBy', }, |
|
||||
{title: '上次更新时间',field: 'updateTime', }, |
|
||||
{title: '操作',align: 'center', |
|
||||
formatter: function(value, row, index) { |
|
||||
var actions = []; |
|
||||
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.warehouseStorageId + '\')"><i class="fa fa-edit"></i>详情</a> '); |
|
||||
return actions.join(''); |
|
||||
} |
|
||||
} |
} |
||||
] |
}, |
||||
}; |
{ |
||||
$.table.init(options); |
title: '品质状态', |
||||
}); |
field: 'warehouseQualityStatus', |
||||
|
formatter: function(value, row, index) { |
||||
/*详情*/ |
return $.table.selectDictLabel(warehouseQualityStatusDatas, value); |
||||
function detail(warehouseStorageId){ |
} |
||||
var url = ctx + 'purchase/purchaseStorage/detail/' + warehouseStorageId; |
}, |
||||
$.modal.open("详情",url); |
{ |
||||
|
title: '入库类型', |
||||
|
field: 'warehouseStorageType', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(warehouseStorageTypeDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '订单类型', |
||||
|
field: 'warehouseOrderType', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(warehouseOrderTypeDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '入库部门类型', |
||||
|
field: 'warehouseDeptType', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(warehouseDeptTypeDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '供应商ID', |
||||
|
field: 'supplierCode', |
||||
|
}, |
||||
|
{ |
||||
|
title: '供应商名称', |
||||
|
field: 'supplierName', |
||||
|
}, |
||||
|
{ |
||||
|
title: '通知已到货数量', |
||||
|
field: 'notifyArrivedSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '实际已到货数量', |
||||
|
field: 'actualArrivedSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '暂收合格数量', |
||||
|
field: 'temporaryQualifiedSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '暂收不合格数量', |
||||
|
field: 'temporaryUnqualifiedSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '品质合格数量', |
||||
|
field: 'qualityQualifiedSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '退换货数', |
||||
|
field: 'refundsExchangesSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '入库数量', |
||||
|
field: 'storageSum', |
||||
|
}, |
||||
|
{ |
||||
|
title: '到货时间', |
||||
|
field: 'arrivedTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '暂收时间', |
||||
|
field: 'temporaryTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '交付质检时间', |
||||
|
field: 'deliveryInspectionTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '品质时间', |
||||
|
field: 'qualityTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '入库时间', |
||||
|
field: 'storageTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '仓库员工', |
||||
|
field: 'warehouseEmployee', |
||||
|
}, |
||||
|
{ |
||||
|
title: '仓库ID', |
||||
|
field: 'warehouseCode', |
||||
|
}, |
||||
|
{ |
||||
|
title: '仓库名称', |
||||
|
field: 'warehouseName', |
||||
|
}, |
||||
|
{ |
||||
|
title: '录入时间', |
||||
|
field: 'createTime', |
||||
|
sortable: true |
||||
|
}, |
||||
|
{ |
||||
|
title: '录入人', |
||||
|
field: 'createBy', |
||||
|
}, |
||||
|
{ |
||||
|
title: '更新人', |
||||
|
field: 'updateBy', |
||||
|
}, |
||||
|
{ |
||||
|
title: '上次更新时间', |
||||
|
field: 'updateTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '操作', |
||||
|
align: 'center', |
||||
|
formatter: function(value, row, index) { |
||||
|
var actions = []; |
||||
|
actions.push('<a href="javascript:void(0)" onclick="detail(\'' + row.purchaseStorageId + '\')"><i class="fa fa-edit"></i>详情</a> '); |
||||
|
var actionLinks = actions.join(''); |
||||
|
return $.table.dropdownToggle(actionLinks); |
||||
|
} |
||||
|
}] |
||||
}; |
}; |
||||
|
$.table.init(options); |
||||
|
}); |
||||
|
|
||||
</script> |
//详情 |
||||
|
function detail(purchaseStorageId) { |
||||
|
var url = prefix + "/detail/" + purchaseStorageId; |
||||
|
$.modal.open("详情", url); |
||||
|
} |
||||
|
</script> |
||||
</body> |
</body> |
||||
</html> |
</html> |
Loading…
Reference in new issue