|
|
@@ -25,13 +25,13 @@
|
|
|
<input class="easyui-datebox" id="datebeginMasterS" name="datebeginMasterS" data-options="required:false,prompt:'',tipPosition:'top'" style="width:165px; height:32px;">
|
|
|
-
|
|
|
<input class="easyui-datebox" id="datebeginMasterD" name="datebeginMasterD" data-options="required:false,prompt:'',tipPosition:'top'" style="width:165px; height:32px;">
|
|
|
- <!--结束时间:
|
|
|
+ 结束时间:
|
|
|
<input class="easyui-datebox" id="dateendMasterS" name="dateendMasterS" data-options="required:false,prompt:'',tipPosition:'top'" style="width:165px; height:32px;">
|
|
|
-
|
|
|
- <input class="easyui-datebox" id="dateendMasterD" name="dateendMasterD" data-options="required:false,prompt:'',tipPosition:'top'" style="width:165px; height:32px;">-->
|
|
|
+ <input class="easyui-datebox" id="dateendMasterD" name="dateendMasterD" data-options="required:false,prompt:'',tipPosition:'top'" style="width:165px; height:32px;">
|
|
|
|
|
|
- <!--</div>
|
|
|
- <div style="padding-top:10px;">-->
|
|
|
+ </div>
|
|
|
+ <div style="padding-top:10px;">
|
|
|
车间:
|
|
|
<input class="easyui-combobox" id="workshopMaster" name="workshopMaster" data-options="required:false,valueField:'value',textField:'text',editable:true,multiple:true,
|
|
|
data:[{'text': '1车间', 'value': '1'},{'text': '2车间', 'value': '2'},{'text': '3车间', 'value': '3'}]"
|
|
|
@@ -113,7 +113,7 @@
|
|
|
<th data-options="field:'GROUTINGLINECODE',title:'成型线',align:'center',sortable:false"></th>
|
|
|
<th data-options="field:'RECKON_DATE',title:'预测日',align:'center',sortable:false"></th>
|
|
|
<th data-options="field:'SAP_SKU',title:'物料编码',align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'FROM_TYPE',title:'计划分类',align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'FROM_TYPE',title:'分类',align:'center',sortable:false"></th>
|
|
|
<th data-options="field:'RECKON_NUM',title:'计划产出',align:'center',sortable:false"></th>
|
|
|
<th data-options="field:'FROM_CODE',title:'分类单号',align:'center',sortable:false"></th>
|
|
|
<th data-options="field:'GROUTINGMOULDCODE',title:'模具编号',align:'center',sortable:false,hidden:true"></th>
|
|
|
@@ -175,9 +175,6 @@
|
|
|
if (field.search("C") != -1) {
|
|
|
t6 = 3;
|
|
|
}
|
|
|
- if (field.search("D") != -1) {
|
|
|
- t6 = 4;
|
|
|
- }
|
|
|
$('#DataGrid4').datagridLoad({
|
|
|
idField: 'SID',
|
|
|
//queryParams: param,
|
|
|
@@ -216,9 +213,6 @@
|
|
|
if (field.search("C") != -1) {
|
|
|
t7 = 3;
|
|
|
}
|
|
|
- if (field.search("D") != -1) {
|
|
|
- t7 = 4;
|
|
|
- }
|
|
|
$('#DataGrid4').datagridLoad({
|
|
|
idField: 'SID',
|
|
|
//queryParams: param,
|
|
|
@@ -256,9 +250,6 @@
|
|
|
if (field.search("C") != -1) {
|
|
|
t7 = 3;
|
|
|
}
|
|
|
- if (field.search("D") != -1) {
|
|
|
- t7 = 4;
|
|
|
- }
|
|
|
$('#DataGrid4').datagridLoad({
|
|
|
idField: 'SID',
|
|
|
//queryParams: param,
|
|
|
@@ -339,26 +330,20 @@
|
|
|
pgColumns[0].push(gs);
|
|
|
}
|
|
|
var s = {
|
|
|
- field: val, title: val, colspan: 4,
|
|
|
+ field: val, title: val, colspan: 3,
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
pgColumns[0].push(s);
|
|
|
var d1 = {
|
|
|
- field: 'A' + val, title: '模产',
|
|
|
- styler: function (value, row, index) {
|
|
|
- return 'color:#00BBFF;text-decoration:underline;';
|
|
|
- }, sortable: false, align: 'center'
|
|
|
- }
|
|
|
- var d4 = {
|
|
|
- field: 'D' + val, title: '停产',
|
|
|
+ field: 'A' + val, title: '模具',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
var d2 = {
|
|
|
- field: 'B' + val, title: '调产',
|
|
|
+ field: 'B' + val, title: '计划',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
@@ -370,7 +355,6 @@
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
spanColumns.push(d1);
|
|
|
- spanColumns.push(d4);
|
|
|
spanColumns.push(d2);
|
|
|
spanColumns.push(d3);
|
|
|
|
|
|
@@ -390,55 +374,47 @@
|
|
|
|
|
|
//加载子表2
|
|
|
var pgColumns1 = [[
|
|
|
- { field: 'RECKONID', title: 'RECKONID', sortable: false, rowspan: 2, hidden: true, align: 'center' },
|
|
|
+ { field: 'RECKONID', title: 'RECKONID', sortable: false, rowspan: 2, hidden: true, align: 'center' },
|
|
|
{ field: 'GROUTINGMOULDCODE', title: 'GROUTINGMOULDCODE', rowspan: 2, sortable: false, hidden: true, align: 'center' },
|
|
|
- { field: '车间', title: '车间', resizable: true, rowspan: 2, align: 'center' },
|
|
|
+ { field: '车间', title: '车间', resizable: true, rowspan: 2, align: 'center' },
|
|
|
{ field: '物料编码', title: '物料编码', rowspan: 2, resizable: true, align: 'center' },
|
|
|
{ field: '产品编码', title: '产品编码', rowspan: 2, resizable: true, align: 'center' },
|
|
|
- { field: '产品名称', title: '产品名称', rowspan: 2, resizable: true, align: 'center' },
|
|
|
- { field: '工艺类型', title: '工艺类型', rowspan: 2, resizable: true, align: 'center' },
|
|
|
+ { field: '产品名称', title: '产品名称', rowspan: 2,resizable: true, align: 'center' },
|
|
|
+ { field: '工艺类型', title: '工艺类型', rowspan: 2, resizable: true, align: 'center' },
|
|
|
]];
|
|
|
var spanColumns2 = [];
|
|
|
$.each(months, function (i, val) {
|
|
|
month = new Date(t1).getMonth() + 1;
|
|
|
month = new Date(t1).getFullYear() + "-" + month
|
|
|
if (val == month) {
|
|
|
- gs = { field: "G" + month, title: month + "(完成)", rowspan: 2, sortable: false, align: 'center' };
|
|
|
+ gs = { field: "G" + month, title: month + "(完成)", rowspan: 2, width: '150', sortable: false, align: 'center' };
|
|
|
pgColumns1[0].push(gs);
|
|
|
}
|
|
|
var s = {
|
|
|
- field: val, title: val, colspan: 4, styler: function (value, row, index) {
|
|
|
+ field: val, title: val, colspan: 3, styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
- }, sortable: false, align: 'center'
|
|
|
- }
|
|
|
+ },sortable: false, align: 'center' }
|
|
|
pgColumns1[0].push(s);
|
|
|
- // pgColumns[0].push(s);
|
|
|
+ // pgColumns[0].push(s);
|
|
|
var d1 = {
|
|
|
- field: 'A' + val, title: '模产',
|
|
|
- styler: function (value, row, index) {
|
|
|
- return 'color:#00BBFF;text-decoration:underline;';
|
|
|
- }, sortable: false, align: 'center'
|
|
|
- }
|
|
|
- var d4 = {
|
|
|
- field: 'D' + val, title: '停产',
|
|
|
+ field: 'A' + val, title: '模具', width: '150',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
var d2 = {
|
|
|
- field: 'B' + val, title: '调产',
|
|
|
+ field: 'B' + val, title: '计划', width: '150',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
var d3 = {
|
|
|
- field: 'C' + val, title: '合计',
|
|
|
+ field: 'C' +val, title: '合计', width: '150',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
spanColumns2.push(d1);
|
|
|
- spanColumns2.push(d4);
|
|
|
spanColumns2.push(d2);
|
|
|
spanColumns2.push(d3);
|
|
|
});
|
|
|
@@ -456,14 +432,14 @@
|
|
|
|
|
|
//加载子表3
|
|
|
var pgColumns2 = [[
|
|
|
- { field: 'RECKONID', title: 'RECKONID', rowspan: 2, sortable: false, hidden: true, align: 'center' },
|
|
|
- { field: 'GROUTINGMOULDCODE', title: 'GROUTINGMOULDCODE', rowspan: 2, sortable: false, hidden: true, align: 'center' },
|
|
|
+ { field: 'RECKONID', title: 'RECKONID', rowspan: 2,sortable: false, hidden: true, align: 'center' },
|
|
|
+ { field: 'GROUTINGMOULDCODE', title: 'GROUTINGMOULDCODE', rowspan: 2, sortable: false, hidden: true, align: 'center' },
|
|
|
{ field: '车间', title: '车间', rowspan: 2, resizable: true, align: 'center' },
|
|
|
- { field: '成型线', title: '成型线', rowspan: 2, resizable: true, align: 'center' },
|
|
|
+ { field: '成型线', title: '成型线', rowspan: 2, resizable: true, align: 'center' },
|
|
|
{ field: '物料编码', title: '物料编码', rowspan: 2, resizable: true, align: 'center' },
|
|
|
{ field: '产品编码', title: '产品编码', rowspan: 2, resizable: true, align: 'center' },
|
|
|
- { field: '产品名称', title: '产品名称', rowspan: 2, resizable: true, align: 'center' },
|
|
|
- { field: '工艺类型', title: '工艺类型', rowspan: 2, resizable: true, align: 'center' },
|
|
|
+ { field: '产品名称', title: '产品名称',rowspan: 2, resizable: true, align: 'center' },
|
|
|
+ { field: '工艺类型', title: '工艺类型', rowspan: 2, resizable: true, align: 'center' },
|
|
|
]];
|
|
|
var spanColumns3 = [];
|
|
|
$.each(months, function (i, val) {
|
|
|
@@ -474,38 +450,30 @@
|
|
|
pgColumns2[0].push(gs);
|
|
|
}
|
|
|
var s = {
|
|
|
- field: val, title: val, colspan: 4, styler: function (value, row, index) {
|
|
|
+ field: val, title: val, colspan: 3, styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
- }, sortable: false, align: 'center'
|
|
|
- }
|
|
|
+ },sortable: false, align: 'center' }
|
|
|
pgColumns2[0].push(s);
|
|
|
- // pgColumns[0].push(s);
|
|
|
+ // pgColumns[0].push(s);
|
|
|
var d1 = {
|
|
|
- field: 'A' + val, title: '模产',
|
|
|
- styler: function (value, row, index) {
|
|
|
- return 'color:#00BBFF;text-decoration:underline;';
|
|
|
- }, sortable: false, align: 'center'
|
|
|
- }
|
|
|
- var d4 = {
|
|
|
- field: 'D' + val, title: '停产',
|
|
|
+ field: 'A' + val, title:'模具',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
var d2 = {
|
|
|
- field: 'B' + val, title: '调产',
|
|
|
+ field: 'B' + val, title: '计划',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
var d3 = {
|
|
|
- field: 'C' + val, title: '合计',
|
|
|
+ field: 'C'+val, title: '合计',
|
|
|
styler: function (value, row, index) {
|
|
|
return 'color:#00BBFF;text-decoration:underline;';
|
|
|
}, sortable: false, align: 'center'
|
|
|
}
|
|
|
spanColumns3.push(d1);
|
|
|
- spanColumns3.push(d4);
|
|
|
spanColumns3.push(d2);
|
|
|
spanColumns3.push(d3);
|
|
|
});
|