|
|
@ -84,6 +84,9 @@ |
|
|
|
var refundsExchangesOutWarehouseDetailFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:refundsExchangesOutWarehouseDetail')}]]; |
|
|
|
var developModifyOutWarehouseDetailFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:developModifyOutWarehouseDetail')}]]; |
|
|
|
|
|
|
|
var materialTypeDatas = [[${@category.getChildByCode('materialType')}]]; |
|
|
|
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
|
|
|
|
|
var warehouseOutStatusDatas = [[${@dict.getType('warehouse_out_status')}]]; |
|
|
|
var warehouseOrderTypeDatas = [[${@dict.getType('warehouse_order_type')}]]; |
|
|
|
var warehouseOutTypeDatas = [[${@dict.getType('warehouse_out_type')}]]; |
|
|
@ -99,6 +102,10 @@ |
|
|
|
restoreUrl: prefix + "/restore/{id}", |
|
|
|
exportUrl: prefix + "/export", |
|
|
|
modalName: "仓库出库单", |
|
|
|
detailView: true, |
|
|
|
onExpandRow : function(index, row, $detail) { |
|
|
|
initChildTable(index, row, $detail); |
|
|
|
}, |
|
|
|
columns: [{ |
|
|
|
checkbox: true |
|
|
|
}, |
|
|
@ -254,7 +261,87 @@ |
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|
}); |
|
|
|
|
|
|
|
initChildTable = function(index, row, $detail) { |
|
|
|
var childTable = $detail.html('<table style="table-layout:fixed"></table>').find('table'); |
|
|
|
$(childTable).bootstrapTable({ |
|
|
|
url: prefix + "/sublist?outOrderCode="+row.outOrderCode, |
|
|
|
method: 'get', |
|
|
|
sidePagination: "server", |
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
queryParams : { |
|
|
|
// userName: '测试8' |
|
|
|
}, |
|
|
|
columns: [ |
|
|
|
{ |
|
|
|
field : 'materialNo', |
|
|
|
title : '料号', |
|
|
|
align: 'center', |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialPhotourl', |
|
|
|
title : '图片', |
|
|
|
align: 'center', |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialName', |
|
|
|
title : '物料名称' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialType', |
|
|
|
title : '物料类型', |
|
|
|
formatter: function (value, row, index) { |
|
|
|
return $.table.selectCategoryLabel(materialTypeDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialDescribe', |
|
|
|
title : '描述' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialBrand', |
|
|
|
title : '品牌' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialProcessMethod', |
|
|
|
title : '加工方式', |
|
|
|
formatter: function (value, row, index) { |
|
|
|
return $.table.selectDictLabel(processMethodDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'materialUnit', |
|
|
|
title : '单位' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'warehouseOutType', |
|
|
|
title : '出库类型', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(warehouseOutTypeDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'makeNum', |
|
|
|
title : '订单数' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'applyOutOrderSum', |
|
|
|
title : '申请出库数', |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'outOrderSum', |
|
|
|
title : '出库数' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field : 'warehouseOutStatus', |
|
|
|
title : '出库状态', |
|
|
|
visible: false, |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(warehouseOutStatusDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
}); |
|
|
|
}; |
|
|
|
/*销售单-准备物料*/ |
|
|
|
function prepareMaterial(outOrderId){ |
|
|
|
var url = ctx + 'warehouse/warehouseOutOrder/prepareMaterial/' + outOrderId; |
|
|
|