Commit 1f2f6904 authored by zhoumaotao's avatar zhoumaotao

移除无用代码

parent 025f7573
<div id="hzgdU_pcjhEdit" class="e-dialog-container" data-options="width:680,height:320">
<div class="e-dialog-body">
<input type="hidden" name="flag">
<input type="hidden" name="id" >
<div class="gui-row" >
<div class="gui-col-sm6">
<label class="gui-form-label">计划单号:</label>
<div class="gui-input-block">
<input type="text" name="djid" data-toggle="gui-textbox" data-options="" >
</div>
</div>
<div class="gui-col-sm6">
<label class="gui-form-label">部门:</label>
<div class="gui-input-block">
<input type="text" name="bmid" data-toggle="gui-textbox" data-options="required:true" >
</div>
</div>
</div>
<div class="gui-row" >
<div class="gui-col-sm6">
<label class="gui-form-label">班型:</label>
<div class="gui-input-block">
<input type="text" name="bxid" data-toggle="gui-textbox" data-options="required:true" >
</div>
</div>
<div class="gui-col-sm6">
<label class="gui-form-label">计划日期:</label>
<div class="gui-input-block">
<input type="text" name="jhrq" data-toggle="gui-datebox" data-options="required:true" >
</div>
</div>
</div>
<div class="gui-row" >
<div class="gui-col-sm6">
<label class="gui-form-label">工作中心:</label>
<div class="gui-input-block">
<input type="text" name="gzzxid" data-toggle="gui-textbox" data-options="required:true" >
</div>
</div>
<div class="gui-col-sm6">
<label class="gui-form-label" >物料编码:</label>
<div class="gui-input-block">
<input type="text" name="wlid" data-options="required:true" data-title="wlxxcode" data-toggle="gui-textbox" style="width: 100%">
</div>
</div>
</div>
<div class="gui-row" >
<div class="gui-col-sm6">
<label class="gui-form-label" >物料名称:</label>
<div class="gui-input-block">
<input type="text" name="wlxxname" data-options="required:false" data-toggle="gui-textbox" style="width: 100%" readonly>
</div>
</div>
<div class="gui-col-sm6">
<label class="gui-form-label" >机种:</label>
<div class="gui-input-block">
<input type="text" name="jzname" data-options="required:false" data-toggle="gui-textbox" style="width: 100%" readonly>
</div>
</div>
</div>
<div class="gui-row" >
<div class="gui-col-sm6">
<label class="gui-form-label">计划数量:</label>
<div class="gui-input-block">
<input type="text" name="jhsl" data-toggle="gui-numberbox" data-options="" >
</div>
</div>
<div class="gui-col-sm6">
<label class="gui-form-label">备注:</label>
<div class="gui-input-block">
<input type="text" name="bz" data-toggle="gui-textbox" data-options="" >
</div>
</div>
</div>
</div>
<div class="e-dialog-footer">
<a href="javascript:void(0);" class="e-dialog-ok"></a>
<a href="javascript:void(0);" class="e-dialog-cancel"></a>
</div>
</div>
<script>
$(function () {
var $dialog=$('#hzgdU_pcjhEdit');
$dialog.find('input[name="bmid"]').iCombobox(
{url: 'jcsj/common/bm/queryZzbm', valueField: 'id', textField: 'bmmc',allowNull:false,
editable:false,
loadFilter: function (a) {return a["data"]["records"]}
}
);
$dialog.find('input[name="gzzxid"]').iCombobox(
{url: 'gygl/gzzx/query', valueField: 'id', textField: 'name',allowNull:false,
editable:false,
loadFilter: function (a) {return a["data"]["records"]}
}
);
$dialog.find('input[name="bxid"]').iCombobox({valueField: "id", textField:"name", allowNull:true, allowEdit:false, url: 'kmes/bx/query'});
//新增初始化
if( $dialog.closest("form").attr("tag")=="add"){
$dialog.find("input[name='jhsl']").val(5000);
}
if( $dialog.closest("form").attr("tag")=="add") {
HTTP.post("common/datetime", {}, function (result) {
if (result['success'] && result['data']['data']) {
var date = new Date(result['data']['data']);
$dialog.find('input[name="jhrq"]').iDatebox({value: date.Format("yyyy-MM-dd")});
}
}, null, false);
}
Auxiliary.box($dialog.find('input[name="wlid"]'),{code:'WLID'},function (res) {
$dialog.find('input[textboxname="wlid"]').textbox("setValue",res["id"]);
$dialog.find('input[textboxname="wlid"]').textbox("setText",res["code"]);
$dialog.find('input[textboxname="wlxxname"]').textbox("setValue",res["name"]);
$dialog.find('input[textboxname="jzname"]').textbox("setValue",res["jzname"]);
})
})
</script>
\ No newline at end of file
<div id="hzgdU_pcjh" class="gui-div">
<table class="toolbar-table" data-options="id: 'hzgdU_pcjhTable',herf:'kzzx/gridset/query'"></table>
<!-- 表格工具栏开始 -->
<div id="hzgdU_pcjhTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'hzgdU_pcjhTable'}">
<div class="navbar-toolbar">
<a class="toolbar-reload toolbar" href="javascript:void(0)" style="display: none"></a>
<a class="toolbar-print toolbar" href="javascript:void(0)"></a>
<a class="toolbar-export toolbar" href="javascript:void(0)"></a>
<a class="toolbar-review toolbar" href="javascript:void(0)"></a>
<a class="toolbar-add toolbar" href="javascript:void(0)"></a>
<a class="toolbar-copy toolbar" href="javascript:void(0)"></a>
<a class="toolbar-edit toolbar" href="javascript:void(0)"></a>
<a class="toolbar-delete toolbar" href="javascript:void(0)"></a>
<a class="toolbar-confirm toolbar" href="javascript:void(0)"></a>
<a class="toolbar-unconfirm 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="ksrq" style="width: 100%">
</div>
</div>
<div class="gui-col-sm6">
<div class="gui-input-date-end">
<input type="text" name="jsrq" style="width: 100%">
</div>
</div>
</div>
<div class="gui-col-sm4">
<label class="gui-form-label">计划单号:</label>
<div class="gui-input-block">
<input type="text" name="djid" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm4">
<label class="gui-form-label">部门:</label>
<div class="gui-input-block" >
<input type="text" name="bmid" class="gui-textbox" data-options="" style="width: 100%">
</div>
</div>
</li>
<li class="gui-form-row" >
<div class="gui-col-sm4">
<label class="gui-form-label">工作中心:</label>
<div class="gui-input-block">
<input type="text" name="gzzxid" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm4">
<label class="gui-form-label">物料信息:</label>
<div class="gui-input-block">
<input type="text" name="wlid" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm4">
<label class="gui-form-label">状态:</label>
<div class="gui-input-block">
<input type="text" name="zt" class="gui-textbox" style="width: 100%">
</div>
</div>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search" href="javascript:void(0)"></a></span>
</form>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$(function () {
/*js初始化*/
var $div=$('#hzgdU_pcjh');
var $datKsrq=$div.find('input[name="ksrq"]');
var $datJsrq=$div.find('input[name="jsrq"]');
var $cbxBmid = $div.find('input[name="bmid"]');
var $cbxGzzx = $div.find('input[name="gzzxid"]');
var $cbxZt = $div.find('input[name="zt"]');
var $datagrid=$div.find(".toolbar-table");
var $pcztMap={};
function paramInit(ops){
//初始化状态
gas.post("kmes/pcjh/init/pczt",{},function (result){
if(result['success']&&result['data']['records']){
var data=result['data']['records'];
for(var i in data){
$pcztMap[data[i].id]=data[i].name
}
}
}, ops);
}
function pageInit() {
var options = {
url: 'kmes/pcjh',
noRequest: true,
columns: [[
{title: "计划单号", field: "djid", fieldType: "ftString",width:120},
{title: "部门", field: "bmName", fieldType: "ftString",width:140},
{title: "班型", field: "bxName", fieldType: "ftString",width:100},
{title: "计划日期", field: "jhrq", fieldType: "ftDate"},
{title: "计划数量", field: "jhsl", fieldType: "int"},
{title: "工作中心", field: "gzzxName", fieldType: "ftString",width:140},
{title: "物料编码", field: "wlxxcode", fieldType: "ftString",width:140},
{title: "物料名称", field: "wlxxname", fieldType: "ftString",width:140},
{title: "机种", field: "jzname", fieldType: "ftString",width:140},
{title: "状态", field: "zt", fieldType: "ftString",width:80,formatter: function (value, index, row) {
var text = $pcztMap[value];
return text || "";
}
},
{title: "备注", field: "bz", fieldType: "ftString",width:140},
{title: "维护人", field: "whr", fieldType: "ftString"},
{title: "维护时间", field: "whsj", fieldType: "ftDateTime"}
]],
dialog: {
footerIn: true,
href: 'kmes/pcjh/edit'
},
delimitingRun:run
};
$div.Holder(options);
$cbxZt.iCombobox({valueField: "id", textField: "name", allowNull:true, allowEdit:false});
$cbxBmid.iCombobox({valueField: "id", textField: "bmmc", allowNull:true, allowEdit:false});
$cbxGzzx.iCombobox({valueField: "id", textField: "name", allowNull:true, allowEdit:false});
$datKsrq.iDatebox();
$datJsrq.iDatebox();
}
/*数据初始化*/
function dataInit(ops){
gas.postHTTP("common/datetime",{},function (response1) {
var date=new Date(response1.data.data);
$datKsrq.iDatebox("setValue",DateUtils.beginOfMonth(date).Format("yyyy-MM-dd"));
$datJsrq.iDatebox("setValue",DateUtils.endOfMonth(date).Format("yyyy-MM-dd"));
},ops);
gas.postHTTP("kmes/pcjh/init/pczt",{},function (result){
if(result['success']&&result['data']['records']){
$cbxZt.iCombobox("loadData",result.data.records)
}
},
ops);
gas.postHTTP("jcsj/common/bm/queryZzbm",{},function (result){
if(result['success']&&result['data']['records']){
$cbxBmid.iCombobox("loadData",result.data.records)
}
},
ops);
gas.postHTTP("gygl/gzzx/query",{},function (result){
if(result['success']&&result['data']['records']){
$cbxGzzx.iCombobox("loadData",result.data.records)
}
},
ops);
}
/*用户操作*/
function run(ops){
$datagrid.datagrid("options").url="kmes/pcjh/query";
$datagrid.datagrid("reload",DataBind.collectData($div))
}
$div.find(".toolbar-confirm").iMenubutton({
iconCls: 'fa fa-check-square-o',
btnCls:'gui-btn-warm',
text:'确认',
onClick:confirm
});
$div.find(".toolbar-unconfirm").iMenubutton({
iconCls: 'fa fa-reply',
btnCls:'gui-btn-warm',
text:'取消确认',
onClick:unconfirm
});
function confirm(){
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected');
HTTP.post('kmes/pcjh/planconfirm',selectedRow||{},function (result) {
if(result['success']){
$div.find(".toolbar-search").click()
$.messager.alert('提示','确认计划单成功!');
}else{
$.messager.alert('提示',result['message']||'确认计划单失败,请重新操作!');
}
})
}
function unconfirm(){
var selectedRow=$div.find('.toolbar-table').datagrid('getSelected');
if(selectedRow==null){
$.messager.alert('提示','请选中一条数据进行操作');
return false;
}
$.messager.confirm("提示","是否取消确认?",function (r) {
if(r){
HTTP.post('kmes/pcjh/plancancel',selectedRow,function (result) {
if(result['success']){
$div.find(".toolbar-search").click()
$.messager.alert('提示','取消计划单成功!');
}else{
$.messager.alert('提示',result['message']||'取消计划单失败,请重新操作!');
}
})
}
})
}
gas.load(paramInit,pageInit,dataInit,run);
})
</script>
<div id="hzgdycfk" class="gui-div">
<table class="toolbar-table" data-options="id: 'hzgdycfkTable',herf:'kzzx/gridset/query'"></table>
<!-- 表格工具栏开始 -->
<div id="hzgdycfkTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'hzgdycfkTable'}">
<div class="navbar-toolbar">
<a class="toolbar-attachment 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">
<label class="gui-form-label">序列号:</label>
<div class="gui-input-block">
<input type="text" name="wosnid" id="wosngn_wosonid" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm4">
<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-sm4">
<label class="gui-form-label">物料:</label>
<div class="gui-input-block">
<input type="text" name="wlinfo" class="gui-textbox" style="width: 100%">
</div>
</div>
</li>
<li class="gui-form-row" >
<div class="gui-col-sm4">
<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-sm4">
<label class="gui-form-label">客户:</label>
<div class="gui-input-block">
<input type="text" name="khinfo" class="gui-textbox" style="width: 100%">
</div>
</div>
<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>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search" href="javascript:void(0)"></a></span>
</form>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$(function () {
/*js初始化*/
var $div=$('#hzgdycfk');
var $datagrid=$div.find(".toolbar-table");
var $datStart=$div.find("input[name='start']");
var $datEnd=$div.find("input[name='end']");
var ztData={};
function paramInit(ops){
HTTP.post('kmes/ycfk/init/zt',{},function (result) {
if(result["success"]){
var data=result["data"]["records"]||[];
for(var i in data) {
ztData[data[i].id] = data[i].name
}
}
},ops);
}
function pageInit() {
$datStart.iDatetimespinner();
$datEnd.iDatetimespinner();
var options = {
url: 'kmes/ycfk',
noRequest: true,
columns: [[
{title: "异常单号", field: "djid", fieldType: "ftString",width:240},
{title: "产品条码", field: "wosnid", fieldType: "ftString",width:240},
{title: "生产订单", field: "woDjid", fieldType: "ftString",width:240},
{title: "物料编码", field: "wlxxCode", fieldType: "ftString",width:240},
{title: "物料名称", field: "wlxxName", fieldType: "ftString",width:240},
{title: "项目编码", field: "xmCode", fieldType: "ftString",width:192},
{title: "项目名称", field: "xmName", fieldType: "ftString",width:192},
{title: "客户编码", field: "khCode", fieldType: "ftString",width:192},
{title: "客户名称", field: "khName", fieldType: "ftString",width:192},
{title: "异常现象", field: "ycxx", fieldType: "ftString",width:192},
{title: "责任人", field: "zrr", fieldType: "ftString",width:192},
{title: "状态", field: "zt", fieldType: "ftString",width:80,formatter: function (value, index, row) {
var text = ztData[value];
return text || "";
}
},
{title: "处理说明", field: "clsm", fieldType: "ftString",width:192},
{title: "处理人", field: "clr", fieldType: "ftString",width:192},
{title: "处理时间", field: "clsj", fieldType: "ftDateTime",width:192},
{title: "反馈人", field: "fkr", fieldType: "ftString",width:180},
{title: "备注", field: "bz", fieldType: "ftString",width:300}
]],
dialog: {
footerIn: true,
href: 'hzgd/ycfk/edit'
}
};
$div.Holder(options);
}
/*数据初始化*/
function dataInit(ops){
gas.postHTTP("common/datetime",{},function (response1) {
var date=response1.data.data;
$datStart.iDatetimespinner("setValue",new Date(date).Format("yyyy-MM-dd")+' 00:00');
$datEnd.iDatetimespinner("setValue",new Date(date).Format("yyyy-MM-dd")+' 23:59');
},ops);
}
/*用户操作*/
function run(ops){
$datagrid.datagrid("options").url="kmes/ycfk/query";
$datagrid.datagrid("load",DataBind.collectData($div))
}
gas.load(paramInit,pageInit,dataInit,run);
})
</script>
<div id="hzgdylrk" class="gui-div">
<table class="toolbar-table" data-options="id: 'hzgdylrkTable',herf:'kzzx/gridset/query'">
</table>
<div id="hzgdylrkTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'hzgdylrkTable'}">
<div class="navbar-toolbar">
<a class="toolbar-reload toolbar" href="javascript:void(0)" style="display: none"></a>
<a class="toolbar-print toolbar" href="javascript:void(0)"></a>
<a class="toolbar-export toolbar" href="javascript:void(0)"></a>
<a class="toolbar-review toolbar" href="javascript:void(0)"></a>
<a class="toolbar-add toolbar" href="javascript:void(0)"></a>
<!-- <a class="toolbar-edit toolbar" href="javascript:void(0)"></a>-->
<a class="toolbar-delete 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="djid" 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="ckid" 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="ywrqb" 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="ywrqe" style="width: 100%">
</div>
</div>
</li>
</ul>
<span class="toolbar-search-span"><a class="toolbar-search" href="javascript:void(0)"></a></span>
</form>
</div>
</div>
</div>
<script>
$(function () {
var $div=$('#hzgdylrk');
ComboboBox.init( $div.find('input[name="ckid"]'), {url: 'jcsj/common/ck/queryCkid',valueField: 'id', textField: 'name',allowNull:true});
HTTP.post("common/datetime",{},function (result) {
if(result['success']&&result['data']['data']){
var date = new Date(result['data']['data']);
$div.find('input[name="ywrqb"]').iDatebox({value:DateUtils.beginOfMonth(date).Format("yyyy-MM-dd")});
$div.find('input[name="ywrqe"]').iDatebox({value:DateUtils.endOfMonth(date).Format("yyyy-MM-dd")});
var options={
url:'kmes/hzylrkdj',
queryParams:{
djid: $div.find('form input[name="djid"]').val(),
ckid: $div.find('form input[name="ckid"]').val(),
ywrqb: $div.find('form input[name="ywrqb"]').val(),
ywrqe: $div.find('form input[name="ywrqe"]').val()
},
columns:[[
{"title":"入库单号","field":"djid","width":140},
{"title":"入库日期","field":"ywrq",fieldType:'ftDate'},
{"title":"仓库","field":"ckmc","width":140},
{"title":"事务类型","field":"swlxmc","width":160},
{"title":"部门","field":"bmmc","width":160},
{"title":"经手人","field":"jsr","width":140},
{"title":"保管员","field":"bgy","width":140},
{"title":"备注","field":"bz","width":240},
{"title":"维护人","field":"whr"},
{"title":"维护时间","field":"whsj",fieldType:'ftDateTime'}
]],
dialog:{
width: 960,
height: 630,
href:'kmes/hzylrkdj/edit',
footerIn:true,
onSaveCallback:function (opt,data) {
if(opt.tag=="copy"||opt.tag=="add"){
appendRowHolder($div.find(".toolbar-table"),{url:"kmes/hzylrkdj/query",data:data});
}else if(opt.tag=="edit"){
updateRowHolder($div.find(".toolbar-table"),{url:"kmes/hzylrkdj/query",data:data});
}
}
}
};
$div.Holder(options);
}
});
// $("#hzgdylrk .toolbar-import").iMenubutton({
// event:'openDialog',
// iconCls: 'fa fa-upload',
// text:'导入',
// dialog:{
// title:'导入',
// id:'patenthzgdylrkAdd',
// width: 1020,
// height: 580,
// href:'kmes/rkdj/importpage'
// }
// });
});
</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