Commit c989632e authored by 李苏's avatar 李苏 💬

dp

parent e9c1d92c
<div id="kmesGphy" class="gui-div"> <script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<table class="toolbar-table" data-options="id: 'kmesGphyTable',herf:'kzzx/gridset/query'"></table> <script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<!-- 表格工具栏开始 --> <style type="text/css">
<div id="kmesGphyTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'kmesGphyTable'}"> *{
<div class="navbar-toolbar"> margin: 0;
<a class="toolbar-print toolbar" href="javascript:void(0)"></a> padding: 0;
<a class="toolbar-export toolbar" href="javascript:void(0)"></a>
<a class="toolbar-add toolbar" href="javascript:void(0)"></a>
<a class="toolbar-cancelzp toolbar" href="javascript:void(0)"></a>
</div>
<div class="form-sub">
<form class="query-criteria">
<ul>
<li class="gui-form-row" >
<div class="gui-col-sm4">
<div class="gui-col-sm6">
<label class="gui-form-label">加工日期:</label>
<div class="gui-input-date-start">
<input type="text" name="start" style="width: 100%">
</div>
</div>
<div class="gui-col-sm6">
<div class="gui-input-date-end">
<input type="text" name="end" style="width: 100%">
</div>
</div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">生产工单:</label>
<div class="gui-input-block">
<input type="text" name="wodjid" style="width: 100%" >
</div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">产品条码:</label>
<div class="gui-input-block">
<input type="text" name="wosnid" style="width: 100%" ></div>
</div>
<input type="hidden" name="bxid"/>
<input type="hidden" name="fkrid"/>
<input type="hidden" name="gxid"/>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search1" style="color:white;" href="javascript:void(0)"></a></span>
</form>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$(function () {
/*js初始化*/
var $div=$('#kmesGphy');
var $datagrid=$div.find(".toolbar-table");
var $datStart=$div.find("input[name='start']");
var $datEnd=$div.find("input[name='end']");
var $cbxdyZt=$div.find('input[name="smzt"]');
var $txtScgd=$div.find('input[name="wodjid"]');
var $txtWosnid=$div.find('input[name="wosnid"]');
var jzcs=0;
var gxName='';var gzzxid="";
var gzzxname="";var fkrName="";
function paramsInit() {
} }
#kwrkb01{
function pageInit() { height: 100%;
$datStart.iDatebox(); width: 100%;
$datEnd.iDatebox(); display: flex;
$txtScgd.iTextbox(); flex-wrap: wrap;
$txtWosnid.iTextbox(); justify-content: space-between;
$cbxdyZt.iCombobox({valueField: 'value', textField: 'text'}); align-items:stretch
var options = { }
url: 'kmes/gphy', #kwrkb01 div {
noRequest: true, box-sizing:border-box;
columns: [[
{title: "条码", field: "wosnid", fieldType: "ftString",width:240},
{title: "生产工单", field: "woDjid", fieldType: "ftString",width:240},
{title: "工序编码", field: "bzgxCode", fieldType: "ftString",width:100},
{title: "标准工序", field: "bzgxName", fieldType: "ftString",width:100},
{title: "反馈工序", field: "fkgx", fieldType: "ftString",width:100,hidden:true},
{title: "物料编码", field: "wlxxCode", fieldType: "ftString",width:192},
{title: "物料名称", field: "wlxxName", fieldType: "ftString",width:240},
{title: "规格型号", field: "wlxxGg", fieldType: "ftString",width:200},
{title: "合格", field: "hgbz",align:"center", fieldType: "ftString",width:100,formatter:function(value,index,row){
var map={Y:"合格",N:"不合格"};
if(value=="Y"){
return "<span style='color: #216d4c'>"+map[value]+"</span>";
}else if(value=="N"){
return "<span style='color: indianred'>"+map[value]+"</span>";
}else{
return ''
} }
.toptitle{
height: 50px;
width: 100%;
background-color: #00aaff;
color: #FFFFFF;text-align: center;line-height: 50px;
}
.left{
height: calc(100% - 60px);
width: 40%;
}
.right{
height: calc(100% - 60px);
width: calc(60% - 10px);
border: #EEEEEE 1px solid;
}
.rightPdf{
height: 100%;
width: 100%;
}},
{title: "合格数量", field: "hgsl",fieldType: "int",width:100},
{title: "不合格数量", field: "bhgsl", fieldType: "int",width:100},
{title: "反馈数量", field: "fksl", fieldType: "int"},
{title: "反馈人", field: "fkr", fieldType: "ftString"},
{title: "反馈时间", field: "fksj", fieldType: "ftDateTime"}
]],
dialog: {
footerIn: true,
href: 'kmes/gphy/edit',
maximized:true,
width:1080,
height:640,
modal: true,
draggable:false,
onSaveCallback:function () {
},
onBeforeLoad:function () {
$(this).dialog("options").queryParams=$.extend({},DataBind.collectData($div),{
gxName:gxName,
gzzxid:gzzxid,
gzzxname:gzzxname,
fkrName:fkrName,
})
},
messager:function () {
var flag=true;
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序,无法进行反馈操作。是否重新选择工序?",function () {
run();
flag=false;
},function () {
flag=true
});
}else{
flag=false
} }
return flag .cbinfor{
}, width: 100%;
onDestroy:function () { height: 40%;
$datagrid.datagrid("load",DataBind.collectData($div));
} }
}, .tab{
onLoadSuccess:function () { width: 100%;
if(jzcs==0){ height: 60%;
$div.find(".toolbar-add").click() padding-top: 10px;
} }
jzcs++ .cpif{
}, width: 100%;
}; height: 50%;
$div.Holder(options); border: 1px solid #EEEEEE;
}
.cprz{
width: 100%;
height: 50%;
border: 1px solid #EEEEEE;
}
.cpiftop{
width: 100%;
height: 40px;
border-bottom: 1px solid #EEEEEE;
line-height: 40px;
display: flex;
justify-content: center;
}
.cpifbot{
height: calc(100% - 40px);
}
.ery{
width: 50%;
height: 50%;
display: flex;
align-items: center;
}
.ery span {
padding-left: 20px;
display: inline-block;
width: 70px;
}
.tipul>li{
width: 150px;
padding-left: 20px;
float: left;
line-height: 50px;
}
.tipuli2{
float: right!important;
}
.maintab{
height: 100%;
width: 100%;
overflow: auto;
border: 0.5px solid #EEEEEE;
}
.showtab{
height: 100%;
width: 100%;
}
</style>
<div id="kwrkb01">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
$("#kmesGphyTable-toolbar").find(".toolbar-cancelzp").iMenubutton({ </ul>
event:'doAjax', </div>
text:'取消装配', <!-- 左侧信息条 -->
onClick:function () { <div class="left">
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected'); <!-- 左上信息表 -->
if(selectedRow==null){ <div class="cbinfor">
$.messager.alert('提示','请选中一条数据进行操作'); <div class="cpif">
return false; <!-- top -->
} <div class="cpiftop" style="display: flex;align-items: center;">
gas.confirm("是否执行该操作",function () { <span>序列号</span><input name="xlh" />
var index=$div.find('.toolbar-table').datagrid("getRowIndex",selectedRow); </div>
HTTP.post('kmes/gphy/delGpzp',{gpfkid:selectedRow.id},function (result) { <!-- bot -->
if(result['success']){ <div class="cpifbot" style="display: flex;flex-wrap: wrap;">
$div.find('.toolbar-table').datagrid("deleteRow",index); <div class="ery">
$.messager.alert('提示','取消装配成功!'); <span>工序</span><input name="gx" />
</div>
<div class="ery">
<span>工单</span><input name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input name="ph" />
</div>
</div>
</div>
<!-- 日志 -->
<div class="cprz" >
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 80%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
<div style="width: 20%;height: 100%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b>ok</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab">
<table class="showtab">
}else{ </table>
$.messager.alert('提示',result['message']||'取消装配失败,请重新操作!'); </div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="gphy" class="rightPdf"></canvas>
</div>
</div>
<script type="text/javascript">
let Vkwrkb01= new Vue({
el:"#kwrkb01",
mounted() {
dbenlarge('kwrkb01')
pdfshow("pdf/dcAcess.pdf","gphy",5000).then(e=>{
this.sivpdf=e
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
systime:"",
tabdata:[
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
} }
},
methods:{
// 初始化页面
initpage(){
let $xlh=$("#kwrkb01").find('input[name="xlh"]')
let $gx=$("#kwrkb01").find('input[name="gx"]')
let $gd=$("#kwrkb01").find('input[name="gd"]')
let $cpsn=$("#kwrkb01").find('input[name="cpsn"]')
let $ph=$("#kwrkb01").find('input[name="ph"]')
let $tab=$("#kwrkb01").find('.showtab')
$xlh.textbox({
width:'84%'
}) })
$gx.textbox({
width:'200'
}) })
$gd.textbox({
} width:'200'
}); })
$("#kmesGphyTable-toolbar").find(".toolbar-search1").iMenubutton({ $cpsn.textbox({
text:'搜索', width:'200'
iconCls:"fa fa-search", })
btnCls:"", $ph.textbox({
onClick:function () { width:'200'
if($div.find("input[name='gxid']").val()==""){ })
gas.confirm("您尚未选择工序,是否重新选择工序?",function () { $tab.datagrid({
run(); height:'100%',
fitColumns:true,
columns:[[
{field:'ph',title:'品号',width:'21%',
styler: function(value,row,index){
if (index < 3){
return 'background-color:mediumturquoise;color:#fff;';
}},
},
{field:'pm',title:'品名',width:'21%',
styler: function(value,row,index){
if (index < 3){
return 'background-color:mediumturquoise;color:#fff;';
}},
},
{field:'ggxh',title:'规格型号',width:'21.5%',
styler: function(value,row,index){
if (index < 3){
return 'background-color:mediumturquoise;color:#fff;';
}},
},
{field:'sl',title:'数量',width:'20%',
styler: function(value,row,index){
if (index < 3){
return 'background-color:mediumturquoise;color:#fff;';
}},
},
{field:'zpsl',title:'装配数量',width:'20%',
styler: function(value,row,index){
if (index < 3){
return 'background-color:mediumturquoise;color:#fff;';
}},
},
]],
data:this.tabdata
}); });
}else{ },
$datagrid.datagrid("load",DataBind.collectData($div)); /* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb01").height()){
Vkwrkb01.$destroy()
} }
},3000)
} }
});
} }
/*数据初始化*/
function dataInit(obj){
$cbxdyZt.iCombobox("loadData",[{value: "Y", text: "已扫描"}, {value: "N", text: "未扫描"}]);
}
/*用户操作*/
function run(res){
gas.Dialog({
title:"选择工序",
width:480,
height:280,
minimizable:false,
maximizable:false,
href:"kmes/gphy/gx",
onInit:function (element) {
},
regResultHandler:function (element) {
if(!element.form("validate")){
return false
}
var data=DataBind.collectData(element);
$div.find("input[name='bxid']").val(data.bxid||"");
$div.find("input[name='gxid']").val(data.gxid||"");
$div.find("input[name='fkrid']").val(window.sessionStorage.getItem('userId'));
fkrName=window.sessionStorage.getItem('userName');
gxName=data.gxName||"";
gzzxid=data.gzzxid||'';
gzzxname=data.gzzxname||"";
$datagrid.datagrid("options").url="kmes/gphy/query";
$datagrid.datagrid("load",DataBind.collectData($div))
},
}) })
}
gas.load(paramsInit,pageInit,dataInit,run); </script>
})
function showZp(id){
gas.Dialog({
title:"不合格详情",
width:640,
height:360,
href:"kmes/test4/bhgXq",
onInit:function (element) {
},
})
}
</script>
<div id="kmesJy" class="gui-div"> <script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<table class="toolbar-table" data-options="id: 'kmesJyTable',herf:'kzzx/gridset/query'"></table> <script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<!-- 表格工具栏开始 --> <style type="text/css">
<div id="kmesJyTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'kmesJyTable'}"> *{
<div class="navbar-toolbar"> margin: 0;
<a class="toolbar-print toolbar" href="javascript:void(0)"></a> padding: 0;
<a class="toolbar-export toolbar" href="javascript:void(0)"></a>
<a class="toolbar-add toolbar" href="javascript:void(0)"></a>
<a class="toolbar-canceljy toolbar" href="javascript:void(0)"></a>
</div>
<div class="form-sub">
<form class="query-criteria">
<ul>
<li class="gui-form-row" >
<div class="gui-col-sm4">
<div class="gui-col-sm6">
<label class="gui-form-label">加工日期:</label>
<div class="gui-input-date-start">
<input type="text" name="start" style="width: 100%">
</div>
</div>
<div class="gui-col-sm6">
<div class="gui-input-date-end">
<input type="text" name="end" style="width: 100%">
</div>
</div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">生产工单:</label>
<div class="gui-input-block">
<input type="text" name="wodjid" style="width: 100%" ></div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">产品条码:</label>
<div class="gui-input-block">
<input type="text" name="wosnid" style="width: 100%" ></div>
</div>
<input type="hidden" name="bxid"/>
<input type="hidden" name="fkrid"/>
<input type="hidden" name="gxid"/>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search1" style="color: white" href="javascript:void(0)"></a></span>
</form>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
/*js初始化*/
$(function () {
var $div=$('#kmesJy');
var $datagrid=$div.find(".toolbar-table");
var $datStart=$div.find("input[name='start']");
var $datEnd=$div.find("input[name='end']");
var $txtScgd=$div.find('input[name="wodjid"]');
var $txtWosnid=$div.find('input[name="wosnid"]');
var jzcs=0;
var gxName='';var gzzxid="";
var gzzxname="";var fkrName="";
function paramsInit() {
gpjy_hgsl=0;
gpjy_jysl=0;
} }
#kwrkb04{
function pageInit() { height: 100%;
$datStart.iDatebox(); width: 100%;
$datEnd.iDatebox(); display: flex;
$txtScgd.iTextbox(); flex-wrap: wrap;
$txtWosnid.iTextbox(); justify-content: space-between;
var options = { align-items:stretch
url: 'kmes/gpjy',
noRequest: true,
columns: [[
{title: "条码", field: "wosnid", fieldType: "ftString",width:240},
{title: "生产工单", field: "woDjid", fieldType: "ftString",width:240},
{title: "工序编码", field: "bzgxCode", fieldType: "ftString",width:100},
{title: "标准工序", field: "bzgxName", fieldType: "ftString",width:100},
{title: "反馈工序", field: "fkgx", fieldType: "ftString",width:100,hidden:true},
{title: "物料编码", field: "wlxxCode", fieldType: "ftString",width:192},
{title: "物料名称", field: "wlxxName", fieldType: "ftString",width:240},
{title: "规格型号", field: "wlxxGg", fieldType: "ftString",width:200},
{title: "合格", field: "hgbz",align:"center", fieldType: "ftString",width:100,formatter:function(value,index,row){
var map={Y:"合格",N:"不合格"};
if(value=="Y"){
return "<span style='color: #216d4c'>"+map[value]+"</span>";
}else if(value=="N"){
return "<span style='color: indianred'>"+map[value]+"</span>";
}else{
return ''
} }
#kwrkb04 div {
}}, box-sizing:border-box;
{title: "合格数量", field: "hgsl",fieldType: "int",width:100},
{title: "不合格数量", field: "bhgsl", fieldType: "int",width:100},
{title: "反馈数量", field: "fksl", fieldType: "int"},
{title: "反馈人", field: "fkr", fieldType: "ftString"},
{title: "反馈时间", field: "fksj", fieldType: "ftDateTime"}
]],
dialog: {
footerIn: true,
maximized:true,
width:960,height:640,
modal: true,
href: 'kmes/gpjy/edit',
draggable:false,
onSaveCallback: function (opt, data) {
},
onBeforeLoad:function () {
$(this).dialog("options").queryParams=$.extend({},DataBind.collectData($div),{
gxName:gxName,
gzzxid:gzzxid,
gzzxname:gzzxname,
fkrName:fkrName,
})
},
messager:function () {
var flag=true;
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序,无法进行反馈操作。是否重新选择工序?",function () {
run();
flag=false;
},function () {
flag=true
});
}else{
flag=false
}
return flag
},
onDestroy:function () {
$datagrid.datagrid("load",DataBind.collectData($div));
} }
}, .toptitle{
onLoadSuccess:function () { height: 50px;
if(jzcs==0){ width: 100%;
$div.find(".toolbar-add").click() background-color: #00aaff;
color: #FFFFFF;text-align: center;line-height: 50px;
} }
jzcs++ .left{
}, height: calc(100% - 60px);
width: 40%;
}; }
$div.Holder(options); .right{
height: calc(100% - 60px);
/*取消检验*/ width: calc(60% - 10px);
$("#kmesJyTable-toolbar").find(".toolbar-canceljy").iMenubutton({ border: #EEEEEE 1px solid;
event:'doAjax', }
text:'取消检验', .rightPdf{
onClick:function () { height: 100%;
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected'); width: 100%;
if(selectedRow==null){
$.messager.alert('提示','请选中一条数据进行操作');
return false;
}
gas.confirm("是否执行该操作",function () {
HTTP.post('kmes/gpjy/delGpjy', {gpfkid: selectedRow.id}, function (result) {
if (result['success']) {
var index = $div.find('.toolbar-table').datagrid("getRowIndex", selectedRow);
$div.find('.toolbar-table').datagrid("deleteRow", index);
$.messager.alert('提示', '取消检验成功!');
} else {
$.messager.alert('提示', result['message'] || '取消检验失败,请重新操作!');
} }
}) .cbinfor{
}) width: 100%;
height: 60%;
} }
}); .tab{
$("#kmesJyTable-toolbar").find(".toolbar-search1").iMenubutton({ width: 100%;
text:'搜索', height: 40%;
iconCls:"fa fa-search", padding-top: 10px;
btnCls:"",
onClick:function () {
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序。是否重新选择工序?",function () {
run();
});
}else{
$datagrid.datagrid("load",DataBind.collectData($div));
} }
.cpif{
width: 100%;
height: 40%;
border: 1px solid #EEEEEE;
} }
}); .cprz{
width: 100%;
height: 60%;
border: 1px solid #EEEEEE;
} }
/*数据初始化*/ .cpiftop{
function dataInit(obj){ width: 100%;
height: 40px;
border-bottom: 1px solid #EEEEEE;
line-height: 40px;
display: flex;
justify-content: center;
} }
/*用户操作*/ .cpifbot{
function run(res){ height: calc(100% - 40px);
gas.Dialog({ }
title:"选择工序", .ery{
width:480, width: 50%;
height:280, height: 50%;
minimizable:false, display: flex;
maximizable:false, align-items: center;
href:"kmes/gpjy/gx", }
onInit:function (element) { .ery span {
}, padding-left: 20px;
regResultHandler:function (element) { display: inline-block;
if(!element.form("validate")){ width: 70px;
return false }
} .tipul>li{
var data=DataBind.collectData(element); width: 150px;
$div.find("input[name='bxid']").val(data.bxid||""); padding-left: 20px;
$div.find("input[name='gxid']").val(data.gxid||""); float: left;
$div.find("input[name='fkrid']").val(window.sessionStorage.getItem('userId')); line-height: 50px;
fkrName=window.sessionStorage.getItem('userName'); }
gxName=data.gxName||""; .tipuli2{
gzzxid=data.gzzxid||''; float: right!important;
gzzxname=data.gzzxname||"";
$datagrid.datagrid("options").url="kmes/gpjy/query";
$datagrid.datagrid("load",DataBind.collectData($div));
},
})
} }
gas.load(paramsInit,pageInit,dataInit,run); .maintab{
height: 100%;
width: 100%;
overflow: auto;
border: 0.5px solid #EEEEEE;
}
.showtab{
height: 100%;
width: 100%;
}
</style>
<div id="kwrkb04">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input name="xlh" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input name="gx" />
</div>
<div class="ery">
<span>工单</span><input name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input name="ph" />
</div>
</div>
</div>
<!-- 日志 -->
<div class="cprz" >
<div style="height: 100%;display: flex;align-items: center;">
<div style="width: 60%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;">
<div style="height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
<div style="width: 40%;height: 95%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b style="font-size: 60px;">ok</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab">
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="gpjypdf" class="rightPdf"></canvas>
</div>
</div>
<script type="text/javascript">
let Vkwrkb04= new Vue({
el:"#kwrkb04",
mounted() {
dbenlarge('kwrkb04')
pdfshow("pdf/dcAcess.pdf","gpjypdf",5000).then(e=>{
this.sivpdf=e
}) })
function showBhgXq(id){ // this.sivpdf=
gas.Dialog({ this.initpage()
title:"不合格详情", this.gettime()
width:640, this.appdestory()
height:360, },
href:"kmes/gpjy/bhgXq", destroyed() {
onInit:function (element) { clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
systime:"",
tabdata:[
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
}, },
methods:{
// 初始化页面
initpage(){
let $xlh=$("#kwrkb04").find('input[name="xlh"]')
let $gx=$("#kwrkb04").find('input[name="gx"]')
let $gd=$("#kwrkb04").find('input[name="gd"]')
let $cpsn=$("#kwrkb04").find('input[name="cpsn"]')
let $ph=$("#kwrkb04").find('input[name="ph"]')
$xlh.textbox({
width:'84%'
})
$gx.textbox({
width:'200'
})
$gd.textbox({
width:'200'
})
$cpsn.textbox({
width:'200'
}) })
$ph.textbox({
width:'200'
})
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb04").height()){
Vkwrkb04.$destroy()
}
},3000)
} }
</script> }
})
</script>
<div id="kmesGpwx" class="gui-div"> <style type="text/css">
<table class="toolbar-table" data-options="id: 'kmesGpwxTable',herf:'kzzx/gridset/query'"></table> *{
<!-- 表格工具栏开始 --> margin: 0;
<div id="kmesGpwxTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'kmesGpwxTable'}"> padding: 0;
<div class="navbar-toolbar">
<a class="toolbar-print toolbar" href="javascript:void(0)"></a>
<a class="toolbar-export toolbar" href="javascript:void(0)"></a>
<a class="toolbar-add toolbar" href="javascript:void(0)"></a>
<a class="toolbar-cancelwx toolbar" href="javascript:void(0)"></a>
<!-- <a class="toolbar-reviewBhg toolbar" href="javascript:void(0)"></a>-->
</div>
<div class="form-sub">
<form class="query-criteria">
<ul>
<li class="gui-form-row" >
<div class="gui-col-sm4">
<div class="gui-col-sm6">
<label class="gui-form-label">加工日期:</label>
<div class="gui-input-date-start">
<input type="text" name="start" style="width: 100%">
</div>
</div>
<div class="gui-col-sm6">
<div class="gui-input-date-end">
<input type="text" name="end" style="width: 100%">
</div>
</div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">生产工单:</label>
<div class="gui-input-block">
<input type="text" name="wodjid" style="width: 100%" ></div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">产品条码:</label>
<div class="gui-input-block">
<input type="text" name="wosnid" style="width: 100%" ></div>
</div>
<input type="hidden" name="bxid"/>
<input type="hidden" name="fkrid"/>
<input type="hidden" name="gxid"/>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search1" style="color: white" href="javascript:void(0)"></a></span>
</form>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
/*js初始化*/
$(function () {
var $div=$('#kmesGpwx');
var $datagrid=$div.find(".toolbar-table");
var $datStart=$div.find("input[name='start']");
var $datEnd=$div.find("input[name='end']");
var $txtScgd=$div.find('input[name="wodjid"]');
var $txtWosnid=$div.find('input[name="wosnid"]');
var jzcs=0;
var gxName='';var gzzxid="";
var gzzxname="";var fkrName="";
function paramsInit() {
gpwx_wgsl=0;
gpwx_hgsl=0;
gpwx_bfsl=0;
} }
#kwrkb04{
function pageInit() { height: 100%;
$datStart.iDatetimebox(); width: 100%;
$datEnd.iDatetimebox(); display: flex;
$txtScgd.iTextbox(); flex-wrap: wrap;
$txtWosnid.iTextbox(); justify-content: space-between;
var options = { align-items:stretch
url: 'kmes/gpwx',
noRequest: true,
columns: [[
{title: "条码", field: "wosnid", fieldType: "ftString",width:240},
{title: "生产工单", field: "woDjid", fieldType: "ftString",width:240},
{title: "工序编码", field: "bzgxCode", fieldType: "ftString",width:100},
{title: "标准工序", field: "bzgxName", fieldType: "ftString",width:100},
{title: "反馈工序", field: "fkgx", fieldType: "ftString",width:100,hidden:true},
{title: "物料编码", field: "wlxxCode", fieldType: "ftString",width:192},
{title: "物料名称", field: "wlxxName", fieldType: "ftString",width:240},
{title: "规格型号", field: "wlxxGg", fieldType: "ftString",width:200},
{title: "合格", field: "hgbz",align:"center", fieldType: "ftString",width:100,formatter:function(value,index,row){
var map={Y:"合格",N:"不合格"};
if(value=="Y"){
return "<span style='color: #216d4c'>"+map[value]+"</span>";
}else if(value=="N"){
return "<span style='color: indianred'>"+map[value]+"</span>";
}else{
return ''
} }
#kwrkb04 div {
}}, box-sizing:border-box;
{title: "合格数量", field: "hgsl",fieldType: "int",width:100},
{title: "不合格数量", field: "bhgsl", fieldType: "int",width:100},
{title: "反馈数量", field: "fksl", fieldType: "int"},
{title: "反馈人", field: "fkr", fieldType: "ftString"},
{title: "反馈时间", field: "fksj", fieldType: "ftDateTime"}
]],
dialog: {
footerIn: true,
maximized:true,
modal: true,
width:960,height:640,
href: 'kmes/gpwx/edit',
draggable:false,
onSaveCallback: function (opt, data) {
},
onBeforeLoad:function () {
$(this).dialog("options").queryParams=$.extend({},DataBind.collectData($div),{
gxName:gxName,
gzzxid:gzzxid,
gzzxname:gzzxname,
fkrName:fkrName,
})
},
messager:function () {
var flag=true;
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序,无法进行反馈操作。是否重新选择工序?",function () {
run();
flag=false;
},function () {
flag=true
});
}else{
flag=false
}
return flag
},
onDestroy:function () {
$datagrid.datagrid("load",DataBind.collectData($div));
} }
}, .toptitle{
onLoadSuccess:function () { height: 50px;
if(jzcs==0){ width: 100%;
$div.find(".toolbar-add").click() background-color: #00aaff;
color: #FFFFFF;text-align: center;line-height: 50px;
} }
jzcs++ .left{
}, height: calc(100% - 60px);
width: 40%;
}; }
$div.Holder(options); .right{
height: calc(100% - 60px);
/*取消维修*/ width: calc(60% - 10px);
$("#kmesGpwxTable-toolbar").find(".toolbar-cancelwx").iMenubutton({ border: #EEEEEE 1px solid;
event:'doAjax', }
text:'取消维修', .rightPdf{
onClick:function () { height: 100%;
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected'); width: 100%;
if(selectedRow==null){
$.messager.alert('提示','请选中一条数据进行操作');
return false;
}
gas.confirm("是否执行该操作",function () {
HTTP.post('kmes/gpwx/delGpwx',{gpfkid:selectedRow.id},function (result) {
if(result['success']){
var index=$div.find('.toolbar-table').datagrid("getRowIndex",selectedRow);
$div.find('.toolbar-table').datagrid("deleteRow",index);
$.messager.alert('提示','取消维修成功!');
}else{
$.messager.alert('提示',result['message']||'取消维修失败,请重新操作!');
} }
})}) .cbinfor{
width: 100%;
height: 60%;
} }
}); .tab{
$("#kmesGpwxTable-toolbar").find(".toolbar-search1").iMenubutton({ width: 100%;
text:'搜索', height: 40%;
iconCls:"fa fa-search", padding-top: 10px;
btnCls:"",
onClick:function () {
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序,是否重新选择工序?",function () {
run();
});
}else{
$datagrid.datagrid("load",DataBind.collectData($div));
} }
.cpif{
width: 100%;
height: 40%;
border: 1px solid #EEEEEE;
} }
}); .cprz{
width: 100%;
height: 60%;
border: 1px solid #EEEEEE;
} }
/*数据初始化*/ .cpiftop{
function dataInit(obj){ width: 100%;
height: 40px;
border-bottom: 1px solid #EEEEEE;
line-height: 40px;
display: flex;
justify-content: center;
} }
/*数据初始化*/ .cpifbot{
function dataInit(obj){ height: calc(100% - 40px);
} }
/*用户操作*/ .ery{
function run(res){ width: 50%;
gas.Dialog({ height: 50%;
title:"选择工序", display: flex;
width:480, align-items: center;
height:280, }
minimizable:false, .ery span {
maximizable:false, padding-left: 20px;
href:"kmes/gpwx/gx", display: inline-block;
onInit:function (element) { width: 70px;
}
.tipul>li{
width: 150px;
padding-left: 20px;
float: left;
line-height: 50px;
}
.tipuli2{
float: right!important;
}
.maintab{
height: 100%;
width: 100%;
overflow: auto;
border: 0.5px solid #EEEEEE;
}
.showtab{
height: 100%;
width: 100%;
}
</style>
<div id="kwrkb04">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input name="xlh" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input name="gx" />
</div>
<div class="ery">
<span>工单</span><input name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input name="ph" />
</div>
</div>
</div>
<!-- 日志 -->
<div class="cprz" >
<div style="height: 100%;display: flex;align-items: center;">
<div style="width: 60%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;">
<div style="height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
<div style="width: 40%;height: 95%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b style="font-size: 60px;">ok</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab">
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="pdf" class="rightPdf"></canvas>
</div>
</div>
<script type="text/javascript">
let Vkwrkb04= new Vue({
el:"#kwrkb04",
mounted() {
dbenlarge('kwrkb04')
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
}, },
regResultHandler:function (element) { destroyed() {
if(!element.form("validate")){ clearInterval(this.sivdestory)
return false clearInterval(this.sivpdf)
} clearInterval(this.sivtimer)
var data=DataBind.collectData(element); },
$div.find("input[name='bxid']").val(data.bxid||""); data:function(){
$div.find("input[name='gxid']").val(data.gxid||""); return{
$div.find("input[name='fkrid']").val(window.sessionStorage.getItem('userId')); systime:"",
fkrName=window.sessionStorage.getItem('userName'); tabdata:[
gxName=data.gxName||""; {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
gzzxid=data.gzzxid||''; {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
gzzxname=data.gzzxname||""; {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$datagrid.datagrid("options").url="kmes/gpfk/query"; {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$datagrid.datagrid("load",DataBind.collectData($div)); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
}, },
methods:{
// 初始化页面
initpage(){
let $xlh=$("#kwrkb04").find('input[name="xlh"]')
let $gx=$("#kwrkb04").find('input[name="gx"]')
let $gd=$("#kwrkb04").find('input[name="gd"]')
let $cpsn=$("#kwrkb04").find('input[name="cpsn"]')
let $ph=$("#kwrkb04").find('input[name="ph"]')
$xlh.textbox({
width:'84%'
})
$gx.textbox({
width:'200'
})
$gd.textbox({
width:'200'
})
$cpsn.textbox({
width:'200'
}) })
$ph.textbox({
width:'200'
})
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb04").height()){
Vkwrkb04.$destroy()
}
},3000)
} }
gas.load(paramsInit,pageInit,dataInit,run); }
})
}); </script>
function showBhgXq(id){
}
</script>
<style>
#kmesZpfkList .product-nav-list{
top:0
}
</style>
<div id="kmesWOZpfk" class="gui-layout gui-div" style="height: 100%;width:100%;position: relative;overflow: hidden" >
<div data-options="region:'north'" style="height:80px;width:100%;">
<div class="gui-toolbar" style="display: block" data-options="grid:{type:'datagrid',id:'kmesWOZpfkTable'}">
<div class="navbar-toolbar">
<a class="toolbar-print toolbar" href="javascript:void(0)"></a>
</div>
<div class="form-sub">
<form class="query-criteria">
<ul>
<li class="gui-form-row" >
<div class="gui-col-sm3">
<label class="gui-form-label">项目:</label>
<div class="gui-input-block">
<input type="text" name="xminfo" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">生产单号:</label>
<div class="gui-input-block">
<input type="text" name="wodjid" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm3">
<label class="gui-form-label">客户:</label>
<div class="gui-input-block">
<input type="text" name="khinfo" class="gui-textbox" style="width: 100%">
</div>
</div>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search1" href="javascript:void(0)" style="color: white"></a></span>
</form>
</div>
</div>
</div>
<div data-options="region:'west',split:true" style="width:54%;height:100%;position: relative">
<div class="gui-div">
<table class="toolbar-table" data-options="id: 'kmesWOZpfkTable',herf:'kzzx/gridset/query',type:'datagrid'"></table>
</div>
</div>
<div data-options="region:'center'" >
<div class="gui-div" id="kmesZpfkList">
<table class="toolbar-table" data-options="id: 'kmesZpfkListTable',herf:'kzzx/gridset/query'"></table>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$(function () {
/*js初始化*/
var $div=$('#kmesWOZpfk');
var $jdfkDtlList=$("#kmesZpfkList");
var $datagrid=$div.find('.toolbar-table:first');
var $datagridWOJdfk=$jdfkDtlList.find('.toolbar-table:first');
var $searchBtn=$div.find(".toolbar-search1");
var $xswwcCheckbox=$("#xswwcChk");
function paramInit(ops){
}
function pageInit(ops) {
$xswwcCheckbox.iCheckbox({
label:"仅显示未完成",
});
var options = {
url:"kmes/zpfk",
noRequest:true,
columns: [[
{title: "snid", field: "id", width: 120, hidden:true},
{title: "条码", field: "code", width: 220},
{title: "生产订单号", field: "djid", width: 120},
{title: "项目编码", field: "xmCode", fieldType: "ftString",width:192},
{title: "项目名称", field: "xmName", fieldType: "ftString",width:192},
{title: "客户编码", field: "khxxCode", fieldType: "ftString",width:192},
{title: "客户名称", field: "khxxName", fieldType: "ftString",width:192}
]],
onLoadSuccess:function () {
},
datagrid:{
onSelect:function (rowIndex,rowData) {
if(rowData){
loadList(rowData.code)
}
}
},
dialog:{
href:"kmes/zpfk/edit",
footerIn:true,
}
};
$div.Holder(options);
$jdfkDtlList.Container({
columns:[[
{title: "装配计划编码", field: "zpjhid", width: 180,hidden:true},
{title: "主机sn", field: "wosnCode", width: 180,hidden:true},
{title: "物料ID", field: "wlid", width: 180,hidden:true},
{title: "组件编码", field: "zjCode", width: 180},
{title: "组件名称", field: "zpjhName", fieldType: "ftString"},
{title: "关键件条码", field: "cz", fieldType: "ftString",width:140,align:"center",formatter: function (value, row,index) {
return '<a style="margin-right: 10px;color: dodgerblue" onclick="onReivewGjj(\''+row.wlid+'\',\''+row.zpjhid+'\' )">详情</a>';
}
},
{title: "物料编码", field: "wlxxCode", fieldType: "ftString"},
{title: "物料名称", field: "wlxxName", fieldType: "ftString"},
{title: "需求数量", field: "xqsl", fieldType: "int"},
{title: "已装配数量", field: "yzpsl", fieldType: "int"}
]]
});
$searchBtn.iMenubutton({
iconCls:'fa fa-search',
text:'搜索',
onClick: function () {
run();
loadList('1')
}
});
}
/*数据初始化*/
function dataInit(ops){
}
/*用户操作*/
function run(ops){
$datagrid.datagrid("options").url="kmes/zpfk/query";
$datagrid.datagrid("load",DataBind.collectData($div));
}
function loadList(snid) {
$datagridWOJdfk.datagrid("loading");
HTTP.post("kmes/zpfk/query/detail",{snid:snid},function (res) {
if(res.success){
$datagridWOJdfk.datagrid("loaded");
$datagridWOJdfk.datagrid('clientPaging', {data: res.data.records||[]});
}
})
}
gas.load(paramInit, pageInit, dataInit, run);
})
function onReivewGjj(wlid,jhid) {
gas.Dialog({
title:"详情",
width:960,
height:480,
href:"kmes/zpfk/hyinfo/index",
footerIn: true,
onBeforeLoad:function () {
$(this).dialog("options").queryParams={wlid:wlid,jhid:jhid}
},
})
}
</script>
<div id="zpfkdetails" class="e-dialog-container" data-options="width: 1020,height: 600">
<div class="e-dialog-body" style="" >
<div style="width: 100%;height: 100%" class="bznrList" id = "bznrList"></div>
</div>
<div class="e-dialog-footer">
<a href="javascript:void(0);" class="e-dialog-cancel"></a>
</div>
</div>
<script>
$(function () {
var $Container=$("#zpfkdetails");
var params=$Container.parent().dialog("options").queryParams;
var wlid="";
var zpjhid="";
function paramInit(ops){
wlid=params.wlid;
zpjhid=params.jhid;
}
function pageInit(){
jglk()
}
function dataInit(){
}
function run(){
}
function jglk() {
var $right=$Container.find(".bznrList");
var $righColumns = [
{title: "条码", field: "wlsnid",width:100},
{title: "装配人", field: "cjr", fieldType: "ftString",width:140},
{title: "装配时间", field: "cjsj", fieldType: "ftDateTime"},
];
$right.datagrid({
title:"条码信息",
columns:[new $.common.formatterCol($righColumns)],
pagination:false
});
HTTP.post("kmes/zpfk/queryZpfkDetails",{wlid:wlid,zpjhid:zpjhid},function (res) {
if(res.success){
$right.datagrid("loadData",res.data.records||[])
}
})
}
gas.load(paramInit,pageInit,dataInit,run);
})
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment