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> #kwrkb01{
<a class="toolbar-cancelzp toolbar" href="javascript:void(0)"></a> height: 100%;
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items:stretch
}
#kwrkb01 div {
box-sizing:border-box;
}
.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%;
}
.cbinfor{
width: 100%;
height: 40%;
}
.tab{
width: 100%;
height: 60%;
padding-top: 10px;
}
.cpif{
width: 100%;
height: 50%;
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>
</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: 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>
<div class="form-sub"> <!-- 左下表格 -->
<form class="query-criteria"> <div class="tab">
<ul> <div class="maintab">
<li class="gui-form-row" > <table class="showtab">
<div class="gui-col-sm4">
<div class="gui-col-sm6"> </table>
<label class="gui-form-label">加工日期:</label> </div>
<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> </div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="gphy" class="rightPdf"></canvas>
</div>
</div> </div>
<!-- 表格工具栏结束 --> <script type="text/javascript">
<script> let Vkwrkb01= new Vue({
$(function () { el:"#kwrkb01",
/*js初始化*/ mounted() {
var $div=$('#kmesGphy'); dbenlarge('kwrkb01')
var $datagrid=$div.find(".toolbar-table"); pdfshow("pdf/dcAcess.pdf","gphy",5000).then(e=>{
var $datStart=$div.find("input[name='start']"); this.sivpdf=e
var $datEnd=$div.find("input[name='end']"); })
var $cbxdyZt=$div.find('input[name="smzt"]'); // this.sivpdf=
var $txtScgd=$div.find('input[name="wodjid"]'); this.initpage()
var $txtWosnid=$div.find('input[name="wosnid"]'); this.gettime()
var jzcs=0; this.appdestory()
var gxName='';var gzzxid=""; },
var gzzxname="";var fkrName=""; destroyed() {
clearInterval(this.sivdestory)
function paramsInit() { clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
} },
data:function(){
function pageInit() { return{
$datStart.iDatebox(); systime:"",
$datEnd.iDatebox(); tabdata:[
$txtScgd.iTextbox(); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$txtWosnid.iTextbox(); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$cbxdyZt.iCombobox({valueField: 'value', textField: 'text'}); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
var options = { {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
url: 'kmes/gphy', {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
noRequest: true, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
columns: [[ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "条码", field: "wosnid", fieldType: "ftString",width:240}, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "生产工单", field: "woDjid", fieldType: "ftString",width:240}, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "工序编码", field: "bzgxCode", fieldType: "ftString",width:100}, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "标准工序", field: "bzgxName", fieldType: "ftString",width:100}, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "反馈工序", field: "fkgx", fieldType: "ftString",width:100,hidden:true}, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "物料编码", field: "wlxxCode", fieldType: "ftString",width:192}, {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{title: "物料名称", field: "wlxxName", fieldType: "ftString",width:240}, ],
{title: "规格型号", field: "wlxxGg", fieldType: "ftString",width:200}, sivtimer:null,//时间计数器
{title: "合格", field: "hgbz",align:"center", fieldType: "ftString",width:100,formatter:function(value,index,row){ sivpdf:null,
var map={Y:"合格",N:"不合格"}; sivdestory:null
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 ''
}
}},
{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
},
onDestroy:function () {
$datagrid.datagrid("load",DataBind.collectData($div));
}
},
onLoadSuccess:function () {
if(jzcs==0){
$div.find(".toolbar-add").click()
}
jzcs++
},
};
$div.Holder(options);
$("#kmesGphyTable-toolbar").find(".toolbar-cancelzp").iMenubutton({
event:'doAjax',
text:'取消装配',
onClick:function () {
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected');
if(selectedRow==null){
$.messager.alert('提示','请选中一条数据进行操作');
return false;
}
gas.confirm("是否执行该操作",function () {
var index=$div.find('.toolbar-table').datagrid("getRowIndex",selectedRow);
HTTP.post('kmes/gphy/delGpzp',{gpfkid:selectedRow.id},function (result) {
if(result['success']){
$div.find('.toolbar-table').datagrid("deleteRow",index);
$.messager.alert('提示','取消装配成功!');
}else{
$.messager.alert('提示',result['message']||'取消装配失败,请重新操作!');
}
})
})
}
});
$("#kmesGphyTable-toolbar").find(".toolbar-search1").iMenubutton({
text:'搜索',
iconCls:"fa fa-search",
btnCls:"",
onClick:function () {
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序,是否重新选择工序?",function () {
run();
});
}else{
$datagrid.datagrid("load",DataBind.collectData($div));
}
} }
}); },
methods:{
} // 初始化页面
/*数据初始化*/ initpage(){
function dataInit(obj){ let $xlh=$("#kwrkb01").find('input[name="xlh"]')
$cbxdyZt.iCombobox("loadData",[{value: "Y", text: "已扫描"}, {value: "N", text: "未扫描"}]); let $gx=$("#kwrkb01").find('input[name="gx"]')
} let $gd=$("#kwrkb01").find('input[name="gd"]')
/*用户操作*/ let $cpsn=$("#kwrkb01").find('input[name="cpsn"]')
function run(res){ let $ph=$("#kwrkb01").find('input[name="ph"]')
gas.Dialog({ let $tab=$("#kwrkb01").find('.showtab')
title:"选择工序", $xlh.textbox({
width:480, width:'84%'
height:280, })
minimizable:false, $gx.textbox({
maximizable:false, width:'200'
href:"kmes/gphy/gx", })
onInit:function (element) { $gd.textbox({
width:'200'
})
$cpsn.textbox({
width:'200'
})
$ph.textbox({
width:'200'
})
$tab.datagrid({
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
});
}, },
regResultHandler:function (element) { /* 展示时间 */
if(!element.form("validate")){ gettime(){
return false let that=this
} let nowtime
var data=DataBind.collectData(element); nowtime=new Date().getTime()
$div.find("input[name='bxid']").val(data.bxid||""); that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
$div.find("input[name='gxid']").val(data.gxid||""); this.sivtimer=setInterval(function(){
$div.find("input[name='fkrid']").val(window.sessionStorage.getItem('userId')); nowtime=new Date().getTime()
fkrName=window.sessionStorage.getItem('userName'); that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
gxName=data.gxName||""; },20000)
gzzxid=data.gzzxid||'';
gzzxname=data.gzzxname||"";
$datagrid.datagrid("options").url="kmes/gphy/query";
$datagrid.datagrid("load",DataBind.collectData($div))
}, },
}) appdestory(){
} let that=this
this.sivdestory=setInterval(function(){
gas.load(paramsInit,pageInit,dataInit,run); if(!$("#kwrkb01").height()){
}) Vkwrkb01.$destroy()
function showZp(id){ }
gas.Dialog({ },3000)
title:"不合格详情", }
width:640, }
height:360,
href:"kmes/test4/bhgXq",
onInit:function (element) {
},
}) })
}
</script> </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> #kwrkb04{
<a class="toolbar-canceljy toolbar" href="javascript:void(0)"></a> height: 100%;
</div> width: 100%;
<div class="form-sub"> display: flex;
<form class="query-criteria"> flex-wrap: wrap;
<ul> justify-content: space-between;
<li class="gui-form-row" > align-items:stretch
<div class="gui-col-sm4"> }
<div class="gui-col-sm6"> #kwrkb04 div {
<label class="gui-form-label">加工日期:</label> box-sizing:border-box;
<div class="gui-input-date-start"> }
<input type="text" name="start" style="width: 100%"> .toptitle{
</div> height: 50px;
</div> width: 100%;
<div class="gui-col-sm6"> background-color: #00aaff;
<div class="gui-input-date-end"> color: #FFFFFF;text-align: center;line-height: 50px;
<input type="text" name="end" style="width: 100%"> }
</div> .left{
</div> height: calc(100% - 60px);
</div> width: 40%;
<div class="gui-col-sm3"> }
<label class="gui-form-label">生产工单:</label> .right{
<div class="gui-input-block"> height: calc(100% - 60px);
<input type="text" name="wodjid" style="width: 100%" ></div> width: calc(60% - 10px);
border: #EEEEEE 1px solid;
}
.rightPdf{
height: 100%;
width: 100%;
}
.cbinfor{
width: 100%;
height: 60%;
}
.tab{
width: 100%;
height: 40%;
padding-top: 10px;
}
.cpif{
width: 100%;
height: 40%;
border: 1px solid #EEEEEE;
}
.cprz{
width: 100%;
height: 60%;
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="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>
<div class="gui-col-sm3"> <div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<label class="gui-form-label">产品条码:</label> <span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
<div class="gui-input-block">
<input type="text" name="wosnid" style="width: 100%" ></div>
</div> </div>
<input type="hidden" name="bxid"/> </div>
<input type="hidden" name="fkrid"/> <div style="width: 40%;height: 95%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<input type="hidden" name="gxid"/> <b style="font-size: 60px;">ok</b>
</li> </div>
</ul> </div>
<span class="toolbar-search-span"><a class="toolbar-search1" style="color: white" href="javascript:void(0)"></a></span> </div>
</form>
</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>
</div> </div>
<!-- 表格工具栏结束 --> <script type="text/javascript">
<script> let Vkwrkb04= new Vue({
/*js初始化*/ el:"#kwrkb04",
$(function () { mounted() {
var $div=$('#kmesJy'); dbenlarge('kwrkb04')
var $datagrid=$div.find(".toolbar-table"); pdfshow("pdf/dcAcess.pdf","gpjypdf",5000).then(e=>{
var $datStart=$div.find("input[name='start']"); this.sivpdf=e
var $datEnd=$div.find("input[name='end']"); })
var $txtScgd=$div.find('input[name="wodjid"]'); // this.sivpdf=
var $txtWosnid=$div.find('input[name="wosnid"]'); this.initpage()
var jzcs=0; this.gettime()
var gxName='';var gzzxid=""; this.appdestory()
var gzzxname="";var fkrName="";
function paramsInit() {
gpjy_hgsl=0;
gpjy_jysl=0;
}
function pageInit() {
$datStart.iDatebox();
$datEnd.iDatebox();
$txtScgd.iTextbox();
$txtWosnid.iTextbox();
var options = {
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 ''
}
}},
{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));
}
}, },
onLoadSuccess:function () { destroyed() {
if(jzcs==0){ clearInterval(this.sivdestory)
$div.find(".toolbar-add").click() clearInterval(this.sivpdf)
} clearInterval(this.sivtimer)
jzcs++
}, },
data:function(){
}; return{
$div.Holder(options); systime:"",
tabdata:[
/*取消检验*/ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$("#kmesJyTable-toolbar").find(".toolbar-canceljy").iMenubutton({ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
event:'doAjax', {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
text:'取消检验', {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
onClick:function () { {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected'); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
if(selectedRow==null){ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$.messager.alert('提示','请选中一条数据进行操作'); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
return false; {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
} }
gas.confirm("是否执行该操作",function () { },
HTTP.post('kmes/gpjy/delGpjy', {gpfkid: selectedRow.id}, function (result) { methods:{
if (result['success']) { // 初始化页面
var index = $div.find('.toolbar-table').datagrid("getRowIndex", selectedRow); initpage(){
$div.find('.toolbar-table').datagrid("deleteRow", index); let $xlh=$("#kwrkb04").find('input[name="xlh"]')
$.messager.alert('提示', '取消检验成功!'); let $gx=$("#kwrkb04").find('input[name="gx"]')
let $gd=$("#kwrkb04").find('input[name="gd"]')
} else { let $cpsn=$("#kwrkb04").find('input[name="cpsn"]')
$.messager.alert('提示', result['message'] || '取消检验失败,请重新操作!'); let $ph=$("#kwrkb04").find('input[name="ph"]')
} $xlh.textbox({
width:'84%'
}) })
}) $gx.textbox({
} width:'200'
}); })
$("#kmesJyTable-toolbar").find(".toolbar-search1").iMenubutton({ $gd.textbox({
text:'搜索', width:'200'
iconCls:"fa fa-search", })
btnCls:"", $cpsn.textbox({
onClick:function () { width:'200'
if($div.find("input[name='gxid']").val()==""){ })
gas.confirm("您尚未选择工序。是否重新选择工序?",function () { $ph.textbox({
run(); width:'200'
}); })
}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(!$("#kwrkb04").height()){
Vkwrkb04.$destroy()
}
},3000)
} }
} }
});
}
/*数据初始化*/
function dataInit(obj){
}
/*用户操作*/
function run(res){
gas.Dialog({
title:"选择工序",
width:480,
height:280,
minimizable:false,
maximizable:false,
href:"kmes/gpjy/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/gpjy/query";
$datagrid.datagrid("load",DataBind.collectData($div));
},
}) })
}
gas.load(paramsInit,pageInit,dataInit,run); </script>
})
function showBhgXq(id){
gas.Dialog({
title:"不合格详情",
width:640,
height:360,
href:"kmes/gpjy/bhgXq",
onInit:function (element) {
},
})
}
</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> #kwrkb04{
<a class="toolbar-export toolbar" href="javascript:void(0)"></a> height: 100%;
<a class="toolbar-add toolbar" href="javascript:void(0)"></a> width: 100%;
<a class="toolbar-cancelwx toolbar" href="javascript:void(0)"></a> display: flex;
<!-- <a class="toolbar-reviewBhg toolbar" href="javascript:void(0)"></a>--> flex-wrap: wrap;
</div> justify-content: space-between;
<div class="form-sub"> align-items:stretch
<form class="query-criteria"> }
<ul> #kwrkb04 div {
<li class="gui-form-row" > box-sizing:border-box;
<div class="gui-col-sm4"> }
<div class="gui-col-sm6"> .toptitle{
<label class="gui-form-label">加工日期:</label> height: 50px;
<div class="gui-input-date-start"> width: 100%;
<input type="text" name="start" style="width: 100%"> background-color: #00aaff;
</div> color: #FFFFFF;text-align: center;line-height: 50px;
</div> }
<div class="gui-col-sm6"> .left{
<div class="gui-input-date-end"> height: calc(100% - 60px);
<input type="text" name="end" style="width: 100%"> width: 40%;
</div> }
</div> .right{
</div> height: calc(100% - 60px);
<div class="gui-col-sm3"> width: calc(60% - 10px);
<label class="gui-form-label">生产工单:</label> border: #EEEEEE 1px solid;
<div class="gui-input-block"> }
<input type="text" name="wodjid" style="width: 100%" ></div> .rightPdf{
height: 100%;
width: 100%;
}
.cbinfor{
width: 100%;
height: 60%;
}
.tab{
width: 100%;
height: 40%;
padding-top: 10px;
}
.cpif{
width: 100%;
height: 40%;
border: 1px solid #EEEEEE;
}
.cprz{
width: 100%;
height: 60%;
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="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>
<div class="gui-col-sm3"> <div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<label class="gui-form-label">产品条码:</label> <span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
<div class="gui-input-block">
<input type="text" name="wosnid" style="width: 100%" ></div>
</div> </div>
<input type="hidden" name="bxid"/> </div>
<input type="hidden" name="fkrid"/> <div style="width: 40%;height: 95%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<input type="hidden" name="gxid"/> <b style="font-size: 60px;">ok</b>
</li> </div>
</ul> </div>
<span class="toolbar-search-span"><a class="toolbar-search1" style="color: white" href="javascript:void(0)"></a></span> </div>
</form>
</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>
</div> </div>
<!-- 表格工具栏结束 --> <script type="text/javascript">
<script> let Vkwrkb04= new Vue({
/*js初始化*/ el:"#kwrkb04",
$(function () { mounted() {
var $div=$('#kmesGpwx'); dbenlarge('kwrkb04')
var $datagrid=$div.find(".toolbar-table"); pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
var $datStart=$div.find("input[name='start']"); this.sivpdf=e
var $datEnd=$div.find("input[name='end']"); })
var $txtScgd=$div.find('input[name="wodjid"]'); // this.sivpdf=
var $txtWosnid=$div.find('input[name="wosnid"]'); this.initpage()
var jzcs=0; this.gettime()
var gxName='';var gzzxid=""; this.appdestory()
var gzzxname="";var fkrName="";
function paramsInit() {
gpwx_wgsl=0;
gpwx_hgsl=0;
gpwx_bfsl=0;
}
function pageInit() {
$datStart.iDatetimebox();
$datEnd.iDatetimebox();
$txtScgd.iTextbox();
$txtWosnid.iTextbox();
var options = {
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 ''
}
}},
{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));
}
}, },
onLoadSuccess:function () { destroyed() {
if(jzcs==0){ clearInterval(this.sivdestory)
$div.find(".toolbar-add").click() clearInterval(this.sivpdf)
} clearInterval(this.sivtimer)
jzcs++
}, },
data:function(){
}; return{
$div.Holder(options); systime:"",
tabdata:[
/*取消维修*/ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$("#kmesGpwxTable-toolbar").find(".toolbar-cancelwx").iMenubutton({ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
event:'doAjax', {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
text:'取消维修', {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
onClick:function () { {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected'); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
if(selectedRow==null){ {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
$.messager.alert('提示','请选中一条数据进行操作'); {ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
return false; {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
} }
gas.confirm("是否执行该操作",function () { },
HTTP.post('kmes/gpwx/delGpwx',{gpfkid:selectedRow.id},function (result) { methods:{
if(result['success']){ // 初始化页面
var index=$div.find('.toolbar-table').datagrid("getRowIndex",selectedRow); initpage(){
$div.find('.toolbar-table').datagrid("deleteRow",index); let $xlh=$("#kwrkb04").find('input[name="xlh"]')
$.messager.alert('提示','取消维修成功!'); let $gx=$("#kwrkb04").find('input[name="gx"]')
let $gd=$("#kwrkb04").find('input[name="gd"]')
}else{ let $cpsn=$("#kwrkb04").find('input[name="cpsn"]')
$.messager.alert('提示',result['message']||'取消维修失败,请重新操作!'); 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)
}
});
$("#kmesGpwxTable-toolbar").find(".toolbar-search1").iMenubutton({
text:'搜索',
iconCls:"fa fa-search",
btnCls:"",
onClick:function () {
if($div.find("input[name='gxid']").val()==""){
gas.confirm("您尚未选择工序,是否重新选择工序?",function () {
run();
});
}else{
$datagrid.datagrid("load",DataBind.collectData($div));
} }
} }
}); })
}
/*数据初始化*/ </script>
function dataInit(obj){
}
/*数据初始化*/
function dataInit(obj){
}
/*用户操作*/
function run(res){
gas.Dialog({
title:"选择工序",
width:480,
height:280,
minimizable:false,
maximizable:false,
href:"kmes/gpwx/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/gpfk/query";
$datagrid.datagrid("load",DataBind.collectData($div));
},
})
}
gas.load(paramsInit,pageInit,dataInit,run);
});
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