|
|
|
|
@ -355,7 +355,7 @@
|
|
|
|
|
const planWorkOrderColumns = [
|
|
|
|
|
"序号", "型号","计划数量", "完成数量", "完成率", "时间",
|
|
|
|
|
]
|
|
|
|
|
const planWorkOrderTable = new AutoScrollTable(document.getElementById("plan-work-order"), planWorkOrderColumns, {width: ['10%','30%', null, null, null, '17%']})
|
|
|
|
|
const planWorkOrderTable = new AutoScrollTable(document.getElementById("plan-work-order"), planWorkOrderColumns, {width: ['10%','30%', '13%', '13%', '13%', '20%']})
|
|
|
|
|
// const planTable = new AutoScrollTable(document.getElementById("plan-table"), [], {
|
|
|
|
|
// width: ['15%', '5%', null, null, null, null, null, null, null, null, null, null, null, null, null, null, "5%", "5%", "5%"],
|
|
|
|
|
// caption: "生产计划统计",
|
|
|
|
|
@ -390,7 +390,7 @@
|
|
|
|
|
let url = '/broad/box'
|
|
|
|
|
//生产计划工单
|
|
|
|
|
autoUpdate(url+"/getProductPlanInfo ", INTERVAL, data => {
|
|
|
|
|
planWorkOrderTable.loadData(data.map((value,index) => [index,value.plan_code, value.plan_number, value.actual_number, value.rate, value.day]), Object.keys(planWorkOrderColumns))
|
|
|
|
|
planWorkOrderTable.loadData(data.map((value,index) => [index+1,value.plan_name, value.plan_number, value.actual_number, value.rate, value.day]), Object.keys(planWorkOrderColumns))
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
autoUpdate(url + '/selectStock/S001', INTERVAL, data => {
|
|
|
|
|
@ -474,7 +474,7 @@
|
|
|
|
|
|
|
|
|
|
/*班组统计*/
|
|
|
|
|
autoUpdate('/broad/box/planCompletion', INTERVAL, data => {
|
|
|
|
|
updateSplitBlocks(data.plan_shift, shiftBlocks)
|
|
|
|
|
// updateSplitBlocks(data.plan_shift, shiftBlocks)
|
|
|
|
|
updateSplitBlocks(data.planned_number, planBlocks)
|
|
|
|
|
updateSplitBlocks(data.quantity_number, actualBlocks)
|
|
|
|
|
updateSplitBlocks(data.planned_number - data.quantity_number, deltaBlocks)
|
|
|
|
|
@ -870,7 +870,7 @@
|
|
|
|
|
function resize() {
|
|
|
|
|
planWorkOrderTable.resize()
|
|
|
|
|
inventoryStocking.resize()
|
|
|
|
|
planTable.resize()
|
|
|
|
|
// planTable.resize()
|
|
|
|
|
statByType.resize()
|
|
|
|
|
statByHour.resize()
|
|
|
|
|
}
|
|
|
|
|
|