|
@ -67,8 +67,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var qualityStatusDatas = [[${@dict.getType('qualityStatus')}]]; |
|
|
var qualityStatusDatas = [[${@dict.getType('qualityStatus')}]]; |
|
|
var qualityOrderTypeDatas = [[${@dict.getType('quality_order_type')}]]; |
|
|
var warehouseStorageTypeDatas = [[${@dict.getType('warehouse_storage_type')}]]; |
|
|
var qualityStorageStatusDatas = [[${@dict.getType('quality_storage_status')}]]; |
|
|
var warehouseOrderTypeDatas = [[${@dict.getType('storage_order_type')}]]; |
|
|
|
|
|
|
|
|
var prefix = ctx + "erp/inboundOrder"; |
|
|
var prefix = ctx + "erp/inboundOrder"; |
|
|
|
|
|
|
|
@ -87,115 +87,90 @@ |
|
|
columns: [ |
|
|
columns: [ |
|
|
{checkbox: true}, |
|
|
{checkbox: true}, |
|
|
{ |
|
|
{ |
|
|
title: '品质单Id', |
|
|
title: '入库单id', |
|
|
field: 'qualityOrderId', |
|
|
align: 'center', |
|
|
|
|
|
field: 'warehouseStorageId', |
|
|
visible: false |
|
|
visible: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '品质单号', |
|
|
title: '品质单号', |
|
|
|
|
|
align: 'center', |
|
|
field: 'qualityOrderCode', |
|
|
field: 'qualityOrderCode', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '品质状态', |
|
|
title: '品质状态', |
|
|
field: 'qualityStatus', |
|
|
align: 'center', |
|
|
|
|
|
field: 'warehouseQualityStatus', |
|
|
formatter: function(value, row, index) { |
|
|
formatter: function(value, row, index) { |
|
|
return $.table.selectDictLabel(qualityStatusDatas, value); |
|
|
return $.table.selectDictLabel(qualityStatusDatas, value); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '入库单号', |
|
|
title: '入库单号', |
|
|
field: 'inStorageCode', |
|
|
align: 'center', |
|
|
|
|
|
field: 'warehouseStorageCode', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '关联订单号', |
|
|
title: '关联订单号', |
|
|
|
|
|
align: 'center', |
|
|
field: 'relatedOrderCode', |
|
|
field: 'relatedOrderCode', |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
title: '订单类型', |
|
|
title: '订单类型', |
|
|
field: 'qualityOrderType', |
|
|
align: 'center', |
|
|
|
|
|
field: 'warehouseOrderType', |
|
|
formatter: function(value, row, index) { |
|
|
formatter: function(value, row, index) { |
|
|
return $.table.selectDictLabel(qualityOrderTypeDatas, value); |
|
|
return $.table.selectDictLabel(warehouseOrderTypeDatas, value); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '入库类型', |
|
|
title: '入库类型', |
|
|
field: 'qualityStorageStatus', |
|
|
align: 'center', |
|
|
|
|
|
field: 'warehouseStorageType', |
|
|
formatter: function(value, row, index) { |
|
|
formatter: function(value, row, index) { |
|
|
return $.table.selectDictLabel(qualityStorageStatusDatas, value); |
|
|
return $.table.selectDictLabel(warehouseStorageTypeDatas, value); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// { |
|
|
|
|
|
// title: '委内加工费总价', |
|
|
|
|
|
// field: 'makeInTotalPrice', |
|
|
|
|
|
// visible: false, |
|
|
|
|
|
// footerFormatter: function (value) { |
|
|
|
|
|
// const total = value.reduce((accumulator, currentValue) => { |
|
|
|
|
|
// // 直接访问makeInTotalPrice,如果它是null或undefined,则使用0 |
|
|
|
|
|
// const makeInTotalPrice = currentValue.makeInTotalPrice || 0; |
|
|
|
|
|
// return accumulator + parseFloat(makeInTotalPrice); |
|
|
|
|
|
// }, 0); |
|
|
|
|
|
// return total; |
|
|
|
|
|
// } |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// { |
|
|
|
|
|
// field: 'entrysalary', |
|
|
|
|
|
// title: '入职薪资', |
|
|
|
|
|
// sortable: true, |
|
|
|
|
|
// footerFormatter: function (value) { |
|
|
|
|
|
// var count = 0; |
|
|
|
|
|
// console.log(value); |
|
|
|
|
|
// for (var i=0; i<value.length;i++) { |
|
|
|
|
|
// count += parseFloat(JSON.parse(JSON.stringify(value[i])).entrysalary); |
|
|
|
|
|
// } |
|
|
|
|
|
// return count; |
|
|
|
|
|
// } |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
title: '品质合格数', |
|
|
title: '品质合格数', |
|
|
|
|
|
align: 'center', |
|
|
field: 'qualityQualifiedNum', |
|
|
field: 'qualityQualifiedNum', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '品质不合格数', |
|
|
title: '品质不合格数', |
|
|
|
|
|
align: 'center', |
|
|
field: 'qualityUnqualifiedNum', |
|
|
field: 'qualityUnqualifiedNum', |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
title: '入库数', |
|
|
title: '入库数', |
|
|
|
|
|
align: 'center', |
|
|
field: 'storageNum', |
|
|
field: 'storageNum', |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// { |
|
|
|
|
|
// title: '交检时间', |
|
|
|
|
|
// field: 'deliveryInspectionTime', |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// title: '品质员', |
|
|
|
|
|
// field: 'qualityEmployee', |
|
|
|
|
|
// }, |
|
|
|
|
|
{ |
|
|
{ |
|
|
title: '录入人', |
|
|
title: '录入人', |
|
|
|
|
|
align: 'center', |
|
|
field: 'createBy', |
|
|
field: 'createBy', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '录入时间', |
|
|
title: '录入时间', |
|
|
|
|
|
align: 'center', |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '更新人', |
|
|
title: '更新人', |
|
|
|
|
|
align: 'center', |
|
|
field: 'updateBy', |
|
|
field: 'updateBy', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '上次更新时间', |
|
|
title: '上次更新时间', |
|
|
|
|
|
align: 'center', |
|
|
field: 'updateTime', |
|
|
field: 'updateTime', |
|
|
}, |
|
|
}, |
|
|
{title: '操作', align: 'center',formatter: function(value, row, index) { |
|
|
{ |
|
|
|
|
|
title: '操作', align: 'center',formatter: function(value, row, index) { |
|
|
var actions = []; |
|
|
var actions = []; |
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="inboundOrderDetail(\'' + row.qualityOrderId + '\')"><i class="fa fa-edit"></i>详情</a> '); |
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="storageMakeDetail(\'' + row.warehouseStorageId + '\')"><i class="fa fa-edit"></i>详情</a> '); |
|
|
return actions.join(''); |
|
|
return actions.join(''); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -205,11 +180,11 @@ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//详情 |
|
|
/*入库-生产订单(生产入库)详情*/ |
|
|
function inboundOrderDetail(qualityOrderId){ |
|
|
function storageMakeDetail(warehouseStorageId){ |
|
|
var url = prefix +'/inboundOrderDetail/' + qualityOrderId; |
|
|
var url = ctx + 'warehouse/storageOrder/storageMakeDetail/' + warehouseStorageId; |
|
|
$.modal.open("生产入库单详情",url) |
|
|
$.modal.open("详情",url); |
|
|
} |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |