|
@ -59,15 +59,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group"> |
|
|
<div class="btn-group-sm" id="toolbar" role="group"> |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="purchase:purchaseStorage:add"> |
|
|
|
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
|
|
|
</a> |
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="purchase:purchaseStorage:edit"> |
|
|
|
|
|
<i class="fa fa-edit"></i> 修改 |
|
|
|
|
|
</a> |
|
|
|
|
|
<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"> |
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="purchase:purchaseStorage:export"> |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
</a> |
|
|
</a> |
|
@ -89,7 +80,6 @@ |
|
|
var purchaseOrderTypeDatas = [[${@dict.getType('sys_order_type')}]]; |
|
|
var purchaseOrderTypeDatas = [[${@dict.getType('sys_order_type')}]]; |
|
|
var purchaseDeptTypeDatas = [[${@dict.getType('warehouseDept')}]]; |
|
|
var purchaseDeptTypeDatas = [[${@dict.getType('warehouseDept')}]]; |
|
|
var prefix = ctx + "purchase/purchaseStorage"; |
|
|
var prefix = ctx + "purchase/purchaseStorage"; |
|
|
|
|
|
|
|
|
$(function() { |
|
|
$(function() { |
|
|
var options = { |
|
|
var options = { |
|
|
url: prefix + "/list", |
|
|
url: prefix + "/list", |
|
@ -100,144 +90,52 @@ |
|
|
restoreUrl: prefix + "/restore/{id}", |
|
|
restoreUrl: prefix + "/restore/{id}", |
|
|
exportUrl: prefix + "/export", |
|
|
exportUrl: prefix + "/export", |
|
|
modalName: "采购入库通知单", |
|
|
modalName: "采购入库通知单", |
|
|
columns: [{ |
|
|
columns: [ |
|
|
checkbox: true |
|
|
{checkbox: true}, |
|
|
}, |
|
|
{title: '采购入库单id',field: 'purchaseStorageId',visible: false}, |
|
|
{ |
|
|
{title: '入库单号',field: 'purchaseStorageCode',}, |
|
|
title: '采购入库单id', |
|
|
{title: '关联订单号',field: 'purchaseOrderCode',}, |
|
|
field: 'purchaseStorageId', |
|
|
{title: '入库状态',field: 'storageStatus', |
|
|
visible: false |
|
|
formatter: function(value, row, index) {return $.table.selectDictLabel(storageStatusDatas, value);} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{title: '品质状态',field: 'qualityStatus', |
|
|
title: '入库单号', |
|
|
formatter: function(value, row, index) {return $.table.selectDictLabel(qualityStatusDatas, value);} |
|
|
field: 'purchaseStorageCode', |
|
|
}, |
|
|
}, |
|
|
{title: '入库类型',field: 'purchaseStorageType', |
|
|
{ |
|
|
formatter: function(value, row, index) {return $.table.selectDictLabel(purchaseStorageTypeDatas, value);} |
|
|
title: '关联订单号', |
|
|
}, |
|
|
field: 'purchaseOrderCode', |
|
|
{title: '订单类型',field: 'purchaseOrderType', |
|
|
}, |
|
|
formatter: function(value, row, index) {return $.table.selectDictLabel(purchaseOrderTypeDatas, value);} |
|
|
{ |
|
|
}, |
|
|
title: '入库状态', |
|
|
{title: '入库部门',field: 'purchaseDeptType', |
|
|
field: 'storageStatus', |
|
|
formatter: function(value, row, index) {return $.table.selectDictLabel(purchaseDeptTypeDatas, value);} |
|
|
formatter: function(value, row, index) { |
|
|
}, |
|
|
return $.table.selectDictLabel(storageStatusDatas, value); |
|
|
{title: '通知已到货数量',field: 'notifyArrivedNum',}, |
|
|
} |
|
|
{title: '实际已到货数量',field: 'actualArrivedNum',}, |
|
|
}, |
|
|
{title: '暂收合格数量',field: 'temporaryQualifiedNum',}, |
|
|
{ |
|
|
{title: '暂收不合格数量',field: 'temporaryUnqualifiedNum',}, |
|
|
title: '品质状态', |
|
|
{title: '品质合格数量',field: 'qualityQualifiedNum',}, |
|
|
field: 'qualityStatus', |
|
|
{title: '入库数量',field: 'storageNum',}, |
|
|
formatter: function(value, row, index) { |
|
|
{title: '到货时间',field: 'arrivedTime',}, |
|
|
return $.table.selectDictLabel(qualityStatusDatas, value); |
|
|
{title: '暂收时间',field: 'temporaryTime',}, |
|
|
} |
|
|
{title: '交付质检时间',field: 'deliveryInspectionTime',}, |
|
|
}, |
|
|
{title: '品质时间',field: 'qualityTime',}, |
|
|
{ |
|
|
{title: '入库时间',field: 'storageTime',}, |
|
|
title: '入库类型', |
|
|
{title: '仓库员', field: 'storageEmployee',}, |
|
|
field: 'purchaseStorageType', |
|
|
{title: '仓库ID',field: 'stockId',}, |
|
|
formatter: function(value, row, index) { |
|
|
{title: '仓库名称',field: 'stockName',}, |
|
|
return $.table.selectDictLabel(purchaseStorageTypeDatas, value); |
|
|
{title: '录入时间',field: 'createTime',}, |
|
|
} |
|
|
{title: '录入人',field: 'createBy',}, |
|
|
}, |
|
|
{title: '更新人',field: 'updateBy', }, |
|
|
{ |
|
|
{title: '上次更新时间',field: 'updateTime', }, |
|
|
title: '订单类型', |
|
|
{title: '操作',align: 'center', |
|
|
field: 'purchaseOrderType', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(purchaseOrderTypeDatas, value); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '入库部门', |
|
|
|
|
|
field: 'purchaseDeptType', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(purchaseDeptTypeDatas, value); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '通知已到货数量', |
|
|
|
|
|
field: 'notifyArrivedNum', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
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: 'storageEmployee', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '仓库ID', |
|
|
|
|
|
field: 'stockId', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '仓库名称', |
|
|
|
|
|
field: 'stockName', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '录入时间', |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '录入人', |
|
|
|
|
|
field: 'createBy', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '更新人', |
|
|
|
|
|
field: 'updateBy', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '上次更新时间', |
|
|
|
|
|
field: 'updateTime', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '操作', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
formatter: function(value, row, index) { |
|
|
var actions = []; |
|
|
var actions = []; |
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseStorageId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.purchaseStorageId + '\')"><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.purchaseStorageId + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|
|
|
|
|
if(row.delFlag == '0'){ |
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> '); |
|
|
|
|
|
}else{ |
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> '); |
|
|
|
|
|
} |
|
|
|
|
|
return actions.join(''); |
|
|
return actions.join(''); |
|
|
} |
|
|
} |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
}; |
|
|
}; |
|
|
$.table.init(options); |
|
|
$.table.init(options); |
|
|
}); |
|
|
}); |
|
|