|
|
@@ -11,37 +11,15 @@
|
|
|
<body class="easyui-layout">
|
|
|
|
|
|
<!--中部主体-->
|
|
|
- <div data-options="border:false,region:'center',title:'',iconCls:'icon-grid'">
|
|
|
+ <div data-options="border:false,region:'center',title:'',iconCls:'icon-grid'" style="display: flex; flex-direction: column;">
|
|
|
<!--工具条-->
|
|
|
- <div id="tb" class="i-toolbar">
|
|
|
+ <div >
|
|
|
<a href="javascript:void(0)" id="btnSearch" title="搜索" class="easyui-linkbutton" iconcls="icon-search" plain="true" toggle="true" onclick="tbSearch()">搜索</a>
|
|
|
<a href="javascript:void(0)" id="btnExport" title="导出" class="easyui-linkbutton" iconcls="icon-excel" plain="true" onclick="tbExport()">导出</a>
|
|
|
<a href="javascript:void(0)" id="btnReload" title="刷新" class="easyui-linkbutton" iconcls="icon-reload" plain="true" onclick="tbReload()">刷新</a>
|
|
|
<div id="tbSearchDiv" style="display:block;padding:10px;">
|
|
|
<form id="ffMaster">
|
|
|
- <div>
|
|
|
- 首检日期:
|
|
|
- <input class="easyui-datetimebox" id="firstdatebeginMaster" name="firstdatebeginMaster" data-options="required:false,prompt:'首检开始日期!',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
- -
|
|
|
- <input class="easyui-datetimebox" id="firstdateendMaster" name="firstdateendMaster" data-options="required:false,prompt:'首检截止日期',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
- 产品编码:
|
|
|
- <input class="easyui-combobox" id="GOODSCODE" name="GOODSCODE" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getGoods&select=1',method:'get',valueField:'GOODSCODE',textField:'GOODSCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
- 首检工号:
|
|
|
- <input class="easyui-combobox" id="pfirstusercode" name="pfirstusercode" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getUser&select=1',method:'get',valueField:'USERCODE',textField:'USERCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
- 复检工号:
|
|
|
- <input class="easyui-combobox" id="pdusercode" name="pdusercode" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getUser&select=1',method:'get',valueField:'USERCODE',textField:'USERCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
-
|
|
|
- </div>
|
|
|
<div style="padding-top:10px">
|
|
|
- 复检日期:
|
|
|
- <input class="easyui-datetimebox" id="twodatebeginMaster" name="twodatebeginMaster" data-options="required:true,prompt:'开始日期必须填写!',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
- -
|
|
|
- <input class="easyui-datetimebox" id="twodateendMaster" name="twodateendMaster" data-options="required:true,prompt:'截止日期必须填写',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
-
|
|
|
- 首检质量:
|
|
|
- <input class="easyui-combobox" id="pfirstgoodleve" name="pfirstgoodleve" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getgoodsleve&select=1',method:'get',valueField:'GOODSLEVELID',textField:'GOODSLEVELNAME',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
- 复检质量:
|
|
|
- <input class="easyui-combobox" id="pdgoodleve" name="pdgoodleve" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getgoodsleve&select=1',method:'get',valueField:'GOODSLEVELID',textField:'GOODSLEVELNAME',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
产品条码:
|
|
|
<input class="easyui-textbox" id="BARCODE" name="BARCODE" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getUser&select=1',method:'get',valueField:'USERCODE',textField:'USERCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
|
|
|
@@ -52,42 +30,65 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <table class="easyui-datagrid"
|
|
|
- id="DataGridMaster"
|
|
|
- data-options="toolbar: '#tb',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th data-options="field:'ROWNO',title:'序号',width:220,align:'center',checkbox:true,hidden:true">SID</th>
|
|
|
- <th data-options="field:'GOODSCODE',title:'产品编码',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'GOODSNAME',title:'产品名称',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'DICTIONARYVALUE',title:'釉料',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'LOGONAME',title:'商标',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PFIRSTCREATETIME',title:'首检日期',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PFIRSTUSERCODE',title:'首检工号',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PFIRSTUSERNAME',title:'首检姓名',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PFIRSTGOODSLEVE',title:'首检质量',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PDGOODSLEVE',title:'复检质量',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PDCREATETIME',title:'复检日期',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PDUSERCODE',title:'复检工号',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'PDUSERNAME',title:'复检姓名',width:220,align:'center',sortable:false"></th>
|
|
|
- <th data-options="field:'BARCODE',title:'产品条码',width:220,align:'center',sortable:false"></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- </table>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <div style="height: 100px;">
|
|
|
+ <table class="easyui-datagrid"
|
|
|
+ id="DataGridMaster"
|
|
|
+ data-options="toolbar: '#tb',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th data-options="field:'ROWNO',title:'序号',width:220,align:'center',checkbox:true,hidden:true">SID</th>
|
|
|
+ <th data-options="field:'BARCODE',title:'当前条码',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'LOGOCODENAME',title:'产品商标',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GOODSTYPENAME',title:'产品类别',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GOODSCODE',title:'产品编码',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GOODSNAME',title:'产品名称',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'MATERIALCODE',title:'物料编码',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'OUTLABELCODE',title:'包装条码',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GOODSSPECIFICATION',title:'产品规格',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'DICTIONARYALUE',title:'釉色类别',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GROUTINGLINECODE',title:'成型线编码',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GROUTINGMOULDCODE',title:'模具编号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GROUTINGNUM',title:'注浆次数',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GROUTINGUSERCODE',title:'成型工号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GROUTINGDATE',title:'注浆日期',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GROUTINGBATCHNO',title:'注浆批次',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'STATUSNAME',title:'产品状态',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'LEVELNAME',title:'产品等级',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'SPECIALREPAIRFLAG',title:'干补标识',width:220,align:'center',sortable:false,
|
|
|
+ formatter:function(value,row,index){ return value === 0 ? '否' : '是'; }"></th>
|
|
|
+ <th data-options="field:'SCRAPFLAG',title:'损坯标识',width:220,align:'center',sortable:false,
|
|
|
+ formatter:function(value,row,index){ return value === 0 ? '否' : '是'; }"></th>
|
|
|
+ <th data-options="field:'ISPUBLICBODY',title:'公坯标识',width:220,align:'center',sortable:false,
|
|
|
+ formatter:function(value,row,index){ return value === 0 ? '否' : '是'; }"></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top:20px; height:600px">
|
|
|
+ <table class="easyui-datagrid"
|
|
|
+ id="DBS"
|
|
|
+ data-options="toolbar: '#tb',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th data-options="field:'ROWNO',title:'序号',width:220,align:'center',checkbox:true,hidden:true">SID</th>
|
|
|
+ <th data-options="field:'PRODUCTIONLINENAME',title:'生产线',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PROCEDURENAME',title:'工序名称',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'USERCODE',title:'生产工号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'ACCOUNTDATE',title:'账务日期',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'CREATETIME',title:'操作时间',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'CREATEUSERCODE',title:'操作工号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'CREATEUSERNAME',title:'操作工号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GOODSLEVELNAME',title:'操作者',width:220,align:'center',sortable:false"></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
<script type="text/javascript">
|
|
|
- $(document).ready(function () {
|
|
|
- var ctime = new Date();
|
|
|
- var ctime = new Date();
|
|
|
- var beginDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 00:00:00";
|
|
|
- var endDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 23:59:59";
|
|
|
- //$("#firstdatebeginMaster").datetimebox("setValue", beginDate);
|
|
|
- // $("#firstdateendMaster").datetimebox("setValue", endDate);
|
|
|
- $("#twodatebeginMaster").datetimebox("setValue", beginDate);
|
|
|
- $("#twodateendMaster").datetimebox("setValue", endDate);
|
|
|
- });
|
|
|
-
|
|
|
+
|
|
|
//搜索提交
|
|
|
function tbSearchSubmit() {
|
|
|
if ($('#ffMaster').form("validate")) {
|
|
|
@@ -95,13 +96,18 @@
|
|
|
title: '',
|
|
|
idField: 'SID',
|
|
|
queryParams: $('#ffMaster').serializeJson(),
|
|
|
- url: 'rpt.ashx?m=master&id=' + request('id'),
|
|
|
- fixWidth: 140,
|
|
|
- mergeWidth: 80,
|
|
|
- //取消分页功能 2022-11-14 张庭莲
|
|
|
+ url: 'rpt.ashx?m=master&dt=0',
|
|
|
pagination: false,
|
|
|
splitChar: '_'
|
|
|
});
|
|
|
+ $('#DBS').datagridLoad({
|
|
|
+ title: '',
|
|
|
+ idField: 'SID',
|
|
|
+ queryParams: $('#ffMaster').serializeJson(),
|
|
|
+ url: 'rpt.ashx?m=master&dt=1',
|
|
|
+ pagination: false,
|
|
|
+ splitChar: '_'
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -114,9 +120,19 @@
|
|
|
}
|
|
|
$('#DataGridMaster').datagridExport({
|
|
|
headers: headers,
|
|
|
- fileName: '导出数据(改判清单).xls',
|
|
|
- workSheet: '导出数据(改判清单)'
|
|
|
+ fileName: '导出数据.xls',
|
|
|
+ workSheet: '导出数据'
|
|
|
});
|
|
|
+ var fields = $('#DBS').datagrid('getColumnFields');
|
|
|
+ var headers = [];
|
|
|
+ for (var i = 0; i < fields.length; i++) {
|
|
|
+ headers.push(fields[i]);
|
|
|
+ }
|
|
|
+ $('#DBS').datagridExport({
|
|
|
+ headers: headers,
|
|
|
+ fileName: '导出数据2.xls',
|
|
|
+ workSheet: '导出数据2'
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//搜索按钮
|