Commit 025f7573 authored by zhoumaotao's avatar zhoumaotao

移除无用代码

parent b03ebdc3
......@@ -21,7 +21,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Controller
@RequestMapping("hzmes/bx")
@RequestMapping("kmes/bx")
public class BxController extends BaseController {
@Autowired
......@@ -29,17 +29,17 @@ public class BxController extends BaseController {
@RequestMapping("/index")
public String index() {
return "hzmes/bx/index";
return "kmes/bx/index";
}
@RequestMapping("/add")
public String add() {
return "hzmes/bx/edit";
return "kmes/bx/edit";
}
@RequestMapping("/edit")
public String edit() {
return "hzmes/bx/edit";
return "kmes/bx/edit";
}
@RequestMapping(value = BaseURL.GET, method = RequestMethod.POST)
......
......@@ -28,7 +28,7 @@ import java.util.Date;
import java.util.List;
@Controller
@RequestMapping("hzmes/gpfk")
@RequestMapping("kmes/gpfk")
public class GpfkController extends BaseController {
@Autowired
......@@ -37,34 +37,34 @@ public class GpfkController extends BaseController {
@ResourcePermissions()
@RequestMapping("/index")
public String index() {
return "hzmes/gpfk/index";
return "kmes/gpfk/index";
}
@ResourcePermissions({SystemOperation.BottonResource.ADD})
@RequestMapping("/add")
public String add() {
return "hzmes/gpfk/edit";
return "kmes/gpfk/edit";
}
@ResourcePermissions({SystemOperation.BottonResource.EDIT})
@RequestMapping("/edit")
public String edit() {
return "hzmes/gpfk/edit";
return "kmes/gpfk/edit";
}
@RequestMapping("/gx")
public String gx() {
return "hzmes/gpfk/gx";
return "kmes/gpfk/gx";
}
@RequestMapping("/bhgXq")
public String bhgXq() {
return "hzmes/gpfk/bhgXq";
return "kmes/gpfk/bhgXq";
}
@RequestMapping("/sample")
public String test() {
return "hzmes/gpfk/smaple";
return "kmes/gpfk/smaple";
}
@RequestMapping(value = BaseURL.GET, method = RequestMethod.POST)
......
......@@ -24,7 +24,7 @@ import javax.servlet.http.HttpServletResponse;
import java.util.List;
@Controller
@RequestMapping("hzmes/gpfkhz")
@RequestMapping("kmes/gpfkhz")
public class GpfkhzController extends BaseController {
@Autowired
......@@ -32,7 +32,7 @@ public class GpfkhzController extends BaseController {
@RequestMapping("/index")
public String index() {
return "hzmes/gpfkhz/index";
return "kmes/gpfkhz/index";
}
......
......@@ -29,7 +29,7 @@ import com.gavel.zlgl.vo.JydmxVO;
import io.swagger.annotations.ApiOperation;
@Controller
@RequestMapping("hzmes/gpwx")
@RequestMapping("kmes/gpwx")
public class GpwxController extends BaseController {
@Autowired
......@@ -38,29 +38,29 @@ public class GpwxController extends BaseController {
@ResourcePermissions()
@RequestMapping("/index")
public String index() {
return "hzmes/gpwx/index";
return "kmes/gpwx/index";
}
@ResourcePermissions({SystemOperation.BottonResource.ADD})
@RequestMapping("/add")
public String add() {
return "hzmes/gpwx/edit";
return "kmes/gpwx/edit";
}
@ResourcePermissions({SystemOperation.BottonResource.EDIT})
@RequestMapping("/edit")
public String edit() {
return "hzmes/gpwx/edit";
return "kmes/gpwx/edit";
}
@RequestMapping("/gx")
public String gx() {
return "hzmes/gpwx/gx";
return "kmes/gpwx/gx";
}
@RequestMapping("/split")
public String split() {
return "hzmes/gpwx/split";
return "kmes/gpwx/split";
}
......
......@@ -20,7 +20,7 @@ import com.gavel.persistence.sql.RecordSet;
@Controller
@RequestMapping("hzmes/gyssnsz")
@RequestMapping("kmes/gyssnsz")
public class GyssnszController extends BaseController {
@Autowired
......@@ -29,12 +29,12 @@ public class GyssnszController extends BaseController {
@ResourcePermissions()
@RequestMapping("/index")
public String index() {
return "hzmes/gyssnsz/index";
return "kmes/gyssnsz/index";
}
@RequestMapping("/snsz")
public String edit() {
return "hzmes/gyssnsz/snsz";
return "kmes/gyssnsz/snsz";
}
@RequestMapping(value = BaseURL.GET, method = RequestMethod.POST)
......
......@@ -28,7 +28,7 @@ import javax.servlet.http.HttpServletResponse;
import java.util.List;
@Controller
@RequestMapping("hzmes/coderule")
@RequestMapping("kmes/coderule")
public class U_coderuleController extends BaseController {
@Autowired
......@@ -37,19 +37,19 @@ public class U_coderuleController extends BaseController {
@ResourcePermissions()
@RequestMapping("/index")
public String index() {
return "hzmes/coderule/index";
return "kmes/coderule/index";
}
@ResourcePermissions({SystemOperation.BottonResource.ADD})
@RequestMapping("/add")
public String add() {
return "hzmes/coderule/edit";
return "kmes/coderule/edit";
}
@ResourcePermissions({SystemOperation.BottonResource.EDIT})
@RequestMapping("/edit")
public String edit() {
return "hzmes/coderule/edit";
return "kmes/coderule/edit";
}
@RequestMapping(value = BaseURL.GET, method = RequestMethod.POST)
......
......@@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Controller
@RequestMapping("hzmes/wlsn")
@RequestMapping("kmes/wlsn")
public class WlsnController extends BaseController {
@Autowired
......@@ -32,19 +32,19 @@ public class WlsnController extends BaseController {
@ResourcePermissions()
@RequestMapping("/index")
public String index() {
return "hzmes/gjwlsn/index";
return "kmes/gjwlsn/index";
}
@ResourcePermissions({SystemOperation.BottonResource.EDIT})
@RequestMapping("/edit")
public String edit() {
return "hzmes/wlsn/edit";
return "kmes/wlsn/edit";
}
@ResourcePermissions({SystemOperation.BottonResource.ADD})
@RequestMapping("/add")
public String add() {
return "hzmes/wlsn/edit";
return "kmes/wlsn/edit";
}
@RequestMapping(value = BaseURL.GET, method = RequestMethod.POST)
......
......@@ -28,7 +28,7 @@ import com.gavel.persistence.sql.RecordSet;
import io.swagger.annotations.ApiOperation;
@Controller
@RequestMapping("hzmes/wosngz")
@RequestMapping("kmes/wosngz")
public class WosngzController extends BaseController {
@Autowired
......@@ -37,25 +37,25 @@ public class WosngzController extends BaseController {
@ResourcePermissions()
@RequestMapping("/index")
public String index() {
return "hzmes/wosngz/index";
return "kmes/wosngz/index";
}
@ResourcePermissions({SystemOperation.BottonResource.ADD})
@RequestMapping("/add")
public String add() {
return "hzmes/wosngz/edit";
return "kmes/wosngz/edit";
}
@ResourcePermissions({SystemOperation.BottonResource.EDIT})
@RequestMapping("/edit")
public String edit() {
return "hzmes/gpjy/edit";
return "kmes/gpjy/edit";
}
@ResourcePermissions()
@RequestMapping("/gpxxinfo")
public String gpxxinfo() {
return "hzmes/wosngz/wosngzinfo";
return "kmes/wosngz/wosngzinfo";
}
......
This diff is collapsed.
<div id="hzmesGylx" class="gui-div">
<table class="toolbar-table" data-options="id: 'hzmesGylxTable',herf:'kzzx/gridset/query'"></table>
<!-- 表格工具栏开始 -->
<div id="hzmesGylxTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'hzmesGylxTable'}">
<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-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>
</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="gcid" class="gui-textbox">
</div>
</div>
<div class="gui-col-sm4">
<label class="gui-form-label">工作中心:</label>
<div class="gui-input-block">
<input type="text" name="gzzxid" class="gui-textbox">
</div>
</div>
<div class="gui-col-sm4">
<label class="gui-form-label">工艺号:</label>
<div class="gui-input-block">
<input type="text" name="code" class="gui-textbox">
</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=$('#hzmesGylx');
var $datagrid=$div.find(".toolbar-table");
var $cbxGcid = $div.find('input[name="gcid"]');
var $cbxGzzxid = $div.find('input[name="gzzxid"]');
var $gxlxArray = [];
var $gxbzArray = [];
function paramInit(ops){
gas.post('gygl/gylx/init/gxlx', {}, function(res){
$gxlxArray = res.data.records;
}, ops);
gas.post('gygl/gylx/init/gxbz', {}, function(res){
$gxbzArray = res.data.records;
}, ops);
}
function pageInit() {
var options = {
url: 'hzmes/gylx',
noRequest: true,
columns: [[
{title: "序号", field: "xh", fieldType: "int",align:"center",width: 60},
{title: "工艺路线号", field: "gylxcode", fieldType: "ftString",width:140},
{title: "工艺路线名称", field: "name", fieldType: "ftString",width:140},
{title: "工作中心", field: "gzzxName", fieldType: "ftString",width:140},
{title: "标准工序", field: "bzgxName", fieldType: "ftString",width:140},
{title: "物料名称", field: "wlxxName", fieldType: "ftString",width:140},
{title: "规格", field: "wlxxGg", fieldType: "ftString",width:140},
{title: "工序类型", field: "gxlx", fieldType: "combobox",width:80, props: {data: $gxlxArray}},
{title: "工序标志", field: "gxbz", fieldType: "combobox",width:80, props: {data: $gxbzArray}},
{title: "设备数量", field: "sbsl", fieldType: "float"},
{title: "作业人数", field: "zyrsl", fieldType: "float"},
{title: "排队耗时", field: "pdhs", fieldType: "float"},
{title: "准备耗时", field: "zbhs", fieldType: "float"},
{title: "加工耗时", field: "jghs", fieldType: "float"},
{title: "转移耗时", field: "zyhs", fieldType: "float"},
{title: "关键工序", field: "gjgx", fieldType: "checkbox",width:80},
{title: "单位时间产量", field: "dwsjcl", fieldType: "float"},
{title: "排产倍数", field: "pcbs", fieldType: "float"},
{title: "状态", field: "tybz", fieldType: "tybz", width:80},
{title: "停用日期", field: "tyrq", fieldType: "ftDateTime"},
{title: "备注", field: "bz", fieldType: "ftString",width:200},
{title: "维护人", field: "whr", fieldType: "ftString"},
{title: "维护时间", field: "whsj", fieldType: "ftDateTime"}
]],
dialog: {
footerIn: true,
href: 'gygl/gylx/edit'
}
};
$div.Holder(options);
$cbxGcid.iCombobox({valueField:'id', textField:'name', onSelect: doSelectGcid});
$cbxGzzxid.iCombobox({valueField:'id', textField:'name', allowNull:true});
}
/*数据初始化*/
function dataInit(ops){
gas.post('jcsj/common/gc/query', {}, function(res){
if (res.success && res.data.records){
$cbxGcid.iCombobox('loadData', res.data.records);
}
}, ops);
gas.post('gygl/gzzx/query', {}, function(res){
if (res.success && res.data.records){
$cbxGzzxid.iCombobox('loadData', res.data.records);
}
}, ops);
}
/*用户操作*/
function run(ops){
$datagrid.datagrid("options").url="hzmes/gylx/query";
$datagrid.datagrid("load",DataBind.collectData($div))
}
gas.load(paramInit,pageInit,dataInit,run);
function doSelectGcid(res){
gas.post('gygl/gzzx/query', {gcid: res.id}, function(res){
if (res.success && res.data.records){
$cbxGzzxid.iCombobox('setValue', '');
$cbxGzzxid.iCombobox('loadData', res.data.records);
}
});
}
})
</script>
<div id="ckglHzbfck" class="gui-div">
<table class="toolbar-table" data-options="id: 'ckglHzbfckTable',herf:'kzzx/gridset/query'">
</table>
<div id="ckglHzbfckTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'ckglHzbfckTable'}">
<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=$('#ckglHzbfck');
var $datStart=$div.find('input[name="ywrqb"]');
var $datEnd=$div.find('input[name="ywrqe"]');
var $cbxCkid=$div.find('input[name="ckid"]');
var $datagrid=$div.find(".toolbar-table");
function pageInit(){
var options = {
url: 'hzmes/bfck',
noRequest: true,
columns: [[
{"title": "出库单号", "field": "djid", "width": 140},
{"title": "出库日期", "field": "ywrq", fieldType: 'ftDate'},
{"title": "仓库", "field": "ckmc", "width": 140},
{"title": "事务类型", "field": "swlxmc", "width": 120,align:"center"},
{"title": "部门", "field": "bmmc", "width": 140},
{"title": "经手人", "field": "jsr", "width": 140},
{"title": "备注", "field": "bz", "width": 240},
{"title": "维护人", "field": "whr"},
{"title": "维护时间", "field": "whsj", fieldType: 'ftDateTime'}
]],
dialog: {
href: 'hzmes/bfck/edit',
footerIn:true
}
};
$div.Holder(options);
$cbxCkid.iCombobox({valueField: 'id', textField: 'name', allowNull: true});
//日期框初始化
$datStart.iDatebox();
$datEnd.iDatebox();
}
/*数据初始化*/
function dataInit(ops){
gas.postHTTP('jcsj/common/ck/queryCkid',{},function (res) {
$cbxCkid.iCombobox("loadData",res.data.records)
}, ops);
gas.postHTTP("common/datetime",{},function (response1) {
var date = DateUtils.getDate(response1.data.data);
$datStart.iDatebox({value:DateUtils.beginOfMonth(date).Format("yyyy-MM-dd")});
$datEnd.iDatebox({value:DateUtils.endOfMonth(date).Format("yyyy-MM-dd")});
}, ops);
}
/*用户操作*/
function run(res){
$datagrid.datagrid("options").url="hzmes/bfck/query";
$datagrid.datagrid("load",DataBind.collectData($div));
}
gas.load(pageInit,dataInit,run);
});
</script>
<div id="hzgdBm7dataEdit" class="e-dialog-container" data-options="width:700,height:310">
<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="time" data-toggle="gui-datetimebox" data-options="" >
</div>
</div>
<div class="gui-col-sm6">
<label class="gui-form-label">机种名称:</label>
<div class="gui-input-block">
<input type="text" name="jzname" data-toggle="gui-textbox" data-options="" >
</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="line" 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="barcode" data-toggle="gui-textbox" data-options="" >
</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="gxpd" 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="gxz" data-toggle="gui-textbox" data-options="" >
</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="sysversion" 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=$('#hzgdBm7dataEdit');
})
</script>
\ No newline at end of file
<div id="hzgdBm7data" class="gui-div">
<table class="toolbar-table" data-options="id: 'hzgdBm7dataTable',herf:'kzzx/gridset/query'"></table>
<!-- 表格工具栏开始 -->
<div id="hzgdBm7dataTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'hzgdBm7dataTable'}">
<div class="navbar-toolbar">
<a class="toolbar-reload toolbar" href="javascript:void(0)"></a>
<a class="toolbar-export toolbar" href="javascript:void(0)"></a>
<a class="toolbar-bm7dataSync 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="barcode" 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="model" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm2">
<label class="gui-form-label">光学判定:</label>
<div class="gui-input-block">
<input type="text" name="judge" class="gui-textbox" style="width: 100%">
</div>
</div>
<div class="gui-col-sm2">
<label class="gui-form-label">发光面判定:</label>
<div class="gui-input-block">
<input type="text" name="defectjudg" class="gui-textbox" style="width: 100%">
</div>
</div>
</li>
<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="begin" 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=$('#hzgdBm7data');
var $datBegin=$div.find('input[name="begin"]');
var $datEnd=$div.find('input[name="end"]');
var $datJudge=$div.find('input[name="judge"]');
var $datDjudge=$div.find('input[name="defectjudg"]');
var $datagrid=$div.find(".toolbar-table");
function paramInit(ops){
}
function pageInit() {
var options = {
url: 'hzmes/bm7data',
noRequest: true,
columns: [[
{title: "时间", field: "time", fieldType: "ftDateTime"},
{title: "机种名称", field: "model", fieldType: "ftString",width:160},
{title: "线别", field: "line", fieldType: "ftString",width:160},
{title: "条码", field: "barcode", fieldType: "ftString",width:220},
{title: "光学判定", field: "judge", fieldType: "ftString",align:"center",width:100,formatter: function (value, index, row) {
var map = {"True": "<span style='color: red'>NG</span>", "False": "<span style='color: green'>OK</span>"};
var text = map[value];
return text || "";
}},
{title: "发光面判定", field: "defectjudg", fieldType: "ftString",width:120,
formatter: function (value, index, row) {
var map = {"-1": "<span style='color: red'>NG</span>"};
var text = map[value];
return text ||"<span style='color: green'>OK</span>" ;
}
},
{title: "创建人", field: "cjr", fieldType: "ftString"},
{title: "创建时间", field: "cjsj", fieldType: "ftDateTime"}
]],
dialog: {
footerIn: true,
href: 'hzmes/bm7data/edit'
}
};
$div.Holder(options);
$datBegin.iDatebox();
$datEnd.iDatebox();
$datJudge.iCombobox({valueField: 'id', textField: 'name', allowNull: true, allowEdit: false});
$datDjudge.iCombobox({valueField: 'id', textField: 'name', allowNull: true, allowEdit: false,data:[{"id":"-1",name:"NG"}]});
}
/*数据初始化*/
function dataInit(ops){
gas.postHTTP("common/datetime",{},function (response1) {
var date=new Date(response1.data.data);
$datBegin.iDatebox("setValue",new Date(date).Format("yyyy-MM-dd"));
$datEnd.iDatebox("setValue",DateUtils.endOfDay(date).Format("yyyy-MM-dd"));
},ops);
gas.postHTTP("hzmes/bm7data/init/judge",{},function (res) {
$datJudge.iCombobox("loadData",res.data.records)
},ops);
gas.postHTTP("hzmes/bm7data/init/defectjudg",{},function (res) {
$datDjudge.iCombobox("loadData",res.data.records)
},ops);
}
/*用户操作*/
function run(ops){
$datagrid.datagrid("options").url="hzmes/bm7data/query";
$datagrid.datagrid("load",DataBind.collectData($div))
}
/**
* 订单同步
*/
function bm7dataSync(){
var bm7DataSync_exec = function() {
$datagrid.datagrid("loading");
gas.post("hzmes/bm7data/syncdata", {}, function (result) {
$datagrid.datagrid("loaded");
if (result["success"]) {
gas.showTips(result['message'] || '数据同步成功!');
} else {
$.messager.alert('提示', result['message'] || '数据同步失败!');
}
run();
});
};
$.messager.confirm("提示","确认进行数据同步?",function (r) {
if(r){
bm7DataSync_exec();
}
})
}
$div.find(".toolbar-bm7dataSync").iMenubutton({
iconCls: 'fa fa-check-square-o',
btnCls:'gui-btn-warm',
onClick: bm7dataSync
});
gas.load(paramInit,pageInit,dataInit,run);
})
</script>
<div id="hzmesBzsnAutoadd" class="e-dialog-container" data-options="width:700,height:480">
<div class="editTable">
<input type="hidden" name="flag">
<input type="hidden" name="id" >
<input type="hidden" name = "jhid">
<div class="gui-row" >
<div class="gui-col-sm12">
<label class="gui-form-label">数量:</label>
<div class="gui-input-block">
<input type="text" name="count" data-toggle="gui-numberbox" data-options="required:true" readonly>
</div>
</div>
</div>
<div class="gui-row">
<div id="autoAdd" class="gui-col-sm12"></div>
</div>
<div class="gui-row" style="overflow-y: auto;height: 280px">
<div id="autoAddsp" class="gui-col-sm12"></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=$('#hzmesBzsnAutoadd');
var $span=$("#autoAddsp");
var $pan=$("#autoAdd")
var $autoP=$("#auto-p");
var sefw=[];
function paramsInit(ops){
$dialog.find('input[name="jhid"]').val($dialog.parent().dialog("options").jhid);
// gas.post("wo/wosn/init/count",{jhid:$dialog.find('input[name="jhid"]').val()},function (result) {
// if(result['success']&&result['data']['records']){
// var count = result['data']['records'];
// $dialog.find('input[textboxname="count"]').numberbox("setValue",count);
// }
// },ops);
gas.post("hzmes/bzjh/getBzsnCR",{jhid:$dialog.find('input[name="jhid"]').val()},function (result) {
if(result['success']&&result['data']['records']){
sefw = result['data']['records']["bzsnCRList"];
var count = result['data']['records']["bzNum"];
$dialog.find('input[textboxname="count"]').numberbox("setValue",count);
}
},ops);
}
function dataInit(ops){
//获取本次打印数量
}
function pageInit(ops){
var $s=$("<label class=\"gui-form-label\">序列号:</label>" +
"<div class=\"gui-input-block\">" +
"<input type=\"text\" name=\"xhe\" id=\"ss\" data-toggle=\"gui-textbox\" readonly style='width: 100%'>" +
"</div>");
$pan.append($s);
sefw=sefw.sort(sortByArr(['xh'],true));
$.each(sefw,function (i,item) {
var value=item.value||'';
var label="";
if(item.bz){
label=item.bz+":"
}
var read=false;
if(item.canedit=='N'){
read="true"
}
var p=$('<label class="gui-form-label">'+label+'</label><div class="gui-input-block" style="margin-bottom: 10px">' +
'<input type="text" data-toggle="gui-textbox" value="'+value+'" name="'+item.xh+'" data-options="disabled:'+read+'" style="width: 100%">' +
'</div>');
$span.append(p);
});
var ss=$pan.find("#ss");
$span.find('[data-toggle="gui-textbox"]').each(function (b) {
var c = $(this),
d = getOptionsJson(c);
c.iTextbox($.extend({},d,{
inputEvents: $.extend({},$.fn.textbox.defaults.inputEvents,{
keyup:function(event){
var value=$(this).val();
var name=$(this).next().attr("name");
var values='';
$span.find('[data-toggle="gui-textbox"]').each(function (a,b) {
var r=$(b).textbox("getValue");
if($(b).attr("textboxname")==name){
r=value
}
values+=r
})
ss.textbox("setValue",values);
},
})
}))
})
var valuess="";
$span.find('[data-toggle="gui-textbox"]').each(function (a,b) {
var r=$(b).textbox("getValue");
valuess+=r
});
ss.iTextbox({value:valuess})
}
function run(){
}
$dialog.find(".e-dialog-ok").iMenubutton({
text:"确定",
iconCls:"fa fa-save",
btnCls:"gui-btn-save",
onClick:function (){
var data=DataBind.collectData($dialog);
var codeValueList=sefw;
$.each(codeValueList,function (i,item) {
if(item["xh"]&&data[item["xh"]]){
item["value"]=data[item["xh"]]
}
})
var parms=
{
"jhid": data.jhid,
"count":data.count,
"codeValueList":codeValueList,
};
HTTP.post("hzmes/bzjh/createBzsn",parms,function (res) {
if(res.success){
gas.showTips("操作成功")
$dialog.closest("form").iDialog("setStatus",{"state":"ok",data:[]});
}else{
gas.showTipsError(res.message||"操作失败");
}
})
}
});
gas.load(paramsInit,pageInit, dataInit,run);
})
</script>
<div id="bznrdetiails" 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=$("#bznrdetiails");
var params=$Container.parent().dialog("options").queryParams;
var id="";
function paramInit(ops){
id=params.id
}
function pageInit(){
jglk(id)
}
function dataInit(){
}
function run(){
}
function jglk(rowData) {
var $right=$Container.find(".bznrList");
var $righColumns = [
{title: "物料编码", field: "wlxxCode",width:100},
{title: "物料名称", field: "wlxxName",width:200},
{title: "机种", field: "jzname",width:200},
{title: "LOT", field: "lot",width:200},
{title: "数量", field: "sl",width:100},
{title: "操作", field: "cz", fieldType: "ftString",width:140,align:"center",formatter: function (value, row,index) {
return '<a style="color: indianred" onclick="onDelLot(\''+row.id+'\',\''+index+'\')">删除</a>';
}
},
];
$right.datagrid({
title:"装包信息",
columns:[new $.common.formatterCol($righColumns)],
pagination:false
});
HTTP.post("hzmes/bzjh/queryBznr",{id:id},function (res) {
if(res.success){
$right.datagrid("loadData",res.data.records||[])
}
})
}
gas.load(paramInit,pageInit,dataInit,run);
})
function onDelLot(rowid,rowindex) {
var $list=$("#bznrList");
$list.datagrid("selectRow",rowindex);
var row=$list.datagrid("getSelected");
var index=$list.datagrid("getRowIndex",row);
gas.post("hzmes/bzjh/delLot",{id:rowid},function (res) {
if(res.success){
$list.datagrid("deleteRow",index);
var $snList=$("#hzBzsnBzjhList").find('.toolbar-table:first');
var snrow=$snList.datagrid("getSelected");
var snindex=$snList.datagrid("getRowIndex",snrow);
var lotRows=$list.datagrid("getRows");
var sl= 0;
var lot= "";
$.each(lotRows,function (i,row) {
lot = lot?lot+ "," + row.lot:row.lot,
sl += row.sl
});
$snList.datagrid("updateRow",{
index:snindex,
row:{
yzsl:parseFloat(sl),
lotInfo:lot
}
});
gas.showTipsSuccess("操作成功")
}else{
gas.showTipsError(res.message||"删除失败")
}
})
}
</script>
<div id="hzmesBzjhEdit" 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-toggle="gui-textbox" data-title="wlxxCode" style="width: 100%">
<input type="hidden" name="wlxxCode">
</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=$('#hzmesBzjhEdit');
$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: 'hzmes/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>
<div id="hzgdqtck" class="gui-div">
<table class="toolbar-table" data-options="id: 'hzgdqtckTable',herf:'kzzx/gridset/query'">
</table>
<div id="hzgdqtckTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'hzgdqtckTable'}">
<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="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>
<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>
</li>
<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="boxid" 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 () {
var $div=$('#hzgdqtck');
$div.find('input[name="ckid"]').iCombobox(
{url: 'jcsj/common/ck/queryCkid',valueField: 'id', textField: 'name',allowNull:true,
loadFilter: function (a) {return a["data"]["records"]}}
);
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: 'hzmes/ckdj',
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": 120},
{"title": "部门", "field": "bmmc", "width": 140},
{"title": "经手人", "field": "jsr", "width": 140},
{"title": "保管员", "field": "bgy", "width": 160},
{"title": "备注", "field": "bz", "width": 240},
{"title": "维护人", "field": "whr"},
{"title": "维护时间", "field": "whsj", fieldType: 'ftDateTime'}
]],
dialog:{
width: 1120,
height: 630,
href:'hzmes/ckdj/edit',
footerIn:true
}
};
$div.Holder(options);
}
});
});
</script>
<div class="e-dialog-container" style="height: 100%;width:100%;position: relative;overflow: hidden" id="cskc-auto-add">
<div class="">
<div class="search-box-main-w">
<div class="left">物料信息:</div>
<div class="right">
<a style="height: 32px;background-color: #3c8dbc;padding: 0 2px;color: white;display: inline-block" class="auxiliary-icon">
<span class="l-btn-left l-btn-icon-left" style="margin-top: 2px;"><span class="l-btn-text">搜索</span>
<span class="l-btn-icon fa fa-search">&nbsp;</span></span>
</a>
</div>
<div class="center" style="position: relative"><input id="cskc-auto-input" class="keyword" name="wlid" style="width: 80px"/></div>
</div>
<div class="mx-dataTable" style="margin-top: 60px">
<table class="dat_table" style="width: 100%;height: 100%"></table>
</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 layero=$("#cskc-auto-add"), $input=layero.find("#cskc-auto-input");
var dataUrl="hzmes/cskc/getWlsnForImp";
function parmasInit(){
}
function pageInit(){
Auxiliary.box($input,"GJWLID");
var columns=[
{title: "ck", field: "ck", checkbox:true},
{title: "条码", field: "code", width: 120},
{title: "物料编码", field: "wlcode", width: 120},
{title: "物料名称", field: "wlname", width: 140},
{title: "物料ID", field: "wlid", width: 140},
{title: "维护人", field: "whr"},
{title: "维护时间", field: "whsj", fieldType:"ftDateTime"}
];
layero.find(".dat_table").datagrid({
// singleSelect:false,
checkOnSelect:false,
selectOnCheck:false,
columns: [new $.common.formatterCol(columns)],
rownumbers:true,
onDblClickRow:function () {
var selectedRow = layero.find(".dat_table").datagrid("getSelected");
}
});
layero.find('.auxiliary-icon').unbind().bind('click',function() {
gas.post(dataUrl,{wlid:$input.textbox("getValue")},function (result) {
if(result['success']){
layero.find(".dat_table").datagrid('loadData',result['data']['records']||[])
}
});
});
layero.find(".e-dialog-ok").iMenubutton({
text:"保存",
iconCls:"fa fa-save",
btnCls:"gui-btn-save",
onClick:function (){
layero.parent("").iDialog("setStatus",{"state":"ok",data:layero.find(".dat_table").datagrid("getChecked")});
}
});
layero.find(".e-dialog-cancel").iMenubutton({
text:"取消",
iconCls:"fa fa-close",
btnCls:"gui-btn-danger",
onClick:function () {
layero.parent().dialog("destroy");
}
});
}
function dataInit(){
}
function run(){
gas.post(dataUrl,{wlid:$input.textbox("getValue")},function (result) {
if(result['success']){
layero.find(".dat_table").datagrid('loadData',result['data']['records']||[])
}
});
}
gas.load(parmasInit,pageInit,dataInit,run);
})
</script>
<div id="qcsjHzcskc" class="gui-div">
<table class="toolbar-table" data-options="id: 'qcsjHzcskcTable',herf:'kzzx/gridset/query'">
</table>
<div id="qcsjHzcskcTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'qcsjHzcskcTable'}">
<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=$('#qcsjHzcskc');
var $datStart=$div.find('input[name="ywrqb"]');
var $datEnd=$div.find('input[name="ywrqe"]');
var $cbxCkid=$div.find('input[name="ckid"]');
var $datagrid=$div.find(".toolbar-table");
function pageInit(){
var options={
url:'hzmes/cskc',
noRequest: true,
columns:[[
{"title":"单据编号","field":"djid","width":140},
{"title":"业务日期","field":"ywrq",fieldType:'ftDate'},
{"title":"仓库","field":"ckmc","width":140},
{"title":"事务类型","field":"swlxmc","width":140,align:"center"},
{"title":"部门","field":"bmmc","width":140},
{"title":"保管员","field":"bgy","width":140},
{"title":"备注","field":"bz","width":240},
{"title":"维护人","field":"whr"},
{"title":"维护时间","field":"whsj",fieldType:'ftDateTime'}
]],
dialog:{
href:'hzmes/cskc/edit',
footerIn:true
}
};
$div.Holder(options);
$cbxCkid.iCombobox({valueField: 'id', textField: 'name', allowNull: true});
//日期框初始化
$datStart.iDatebox();
$datEnd.iDatebox();
}
/*数据初始化*/
function dataInit(ops){
gas.postHTTP('jcsj/common/ck/queryCkid',{},function (res) {
$cbxCkid.iCombobox("loadData",res.data.records)
}, ops);
gas.postHTTP("common/datetime",{},function (response1) {
var date = DateUtils.getDate(response1.data.data);
$datStart.iDatebox({value:DateUtils.beginOfMonth(date).Format("yyyy-MM-dd")});
$datEnd.iDatebox({value:DateUtils.endOfMonth(date).Format("yyyy-MM-dd")});
}, ops);
}
/*用户操作*/
function run(res){
$datagrid.datagrid("options").url="hzmes/cskc/query";
$datagrid.datagrid("load",DataBind.collectData($div));
}
gas.load(pageInit,dataInit,run);
});
</script>
<div id="dpbhgXqEdit" class="e-dialog-container" data-options="width:700,height:270">
<div class="e-dialog-body">
<div class="list" style="height: 100%"></div>
</div>
</div>
<div class="e-dialog-footer">
<a href="javascript:void(0);" class="e-dialog-cancel"></a>
</div>
</div>
<script>
$(function () {
var $dialog=$('#dpbhgXqEdit');
var res=[
{value:"1",text:"异物"},
{value:"2",text:"毛屑"},
{value:"3",text:"赃污"},
{value:"4",text:"划伤"},
{value:"5",text:"黑白影"},
{value:"6",text:"亮点"},
{value:"7",text:"漏光"},
{value:"8",text:"白点"},
{value:"9",text:"画面发暗"},
{value:"10",text:"压伤"},
{value:"11",text:"顶白"},
{value:"12",text:"嵌合不良"},
{value:"13",text:"标签外观不良"},
{value:"14",text:"FLIM组装不良"},
{value:"15",text:"FLIM多少组"},
{value:"16",text:"S/T不良"},
{value:"17",text:"L/B外观不良"},
{value:"18",text:"胶框外观不良"},
{value:"19",text:"扣点外观不良"},
{value:"20",text:"框线"},
{value:"21",text:"厚度NG"},
{value:"22",text:"其他"}
];
var parmas=$dialog.parent("").dialog("options").queryParams.id;
HTTP.post("hzmes/dpgpfk/getGpfkbhg",{gpfkid:parmas},function (res) {
if(res.success){
$dialog.find(".list").datalist({
valueField:"bhgxxCode",
textField:"bhgxxName",
data:res.data.records||[]
})
}
})
})
</script>
\ No newline at end of file
<div class="e-dialog-container" data-options="width:480,height:280" id="dpgpfkGx">
<div class="gui-fluid editTable">
<input type="hidden" name="gxName">
<input type="hidden" name="gzzxid">
<input type="hidden" name="gzzxname">
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label">工序:</label>
<div class="gui-input-block">
<input type="text" name="gxid" data-toggle="gui-combobox">
</div>
</div>
</div>
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label">班型:</label>
<div class="gui-input-block">
<input type="text" name="bxid" style="width: 100%;" data-options="required:true">
</div>
</div>
</div>
</div>
</div>
<script>
$(function () {
var $dialog=$("#dpgpfkGx");
var $inputGxid=$dialog.find("input[name='gxid']");
var $inputBx=$dialog.find("input[name='bxid']");
function paramInit(ops){
}
function pageInit() {
$inputGxid.iCombobox({valueField: "id", textField: "name", allowNull:false,required:true, allowEdit:false, url: 'gygl/bzgx/queryJgBzgx',onSelect:function (a) {
$dialog.find("input[name='gxName']").val(a.name);
$dialog.find("input[name='gzzxid']").val(a.gzzxid||'');
$dialog.find("input[name='gzzxname']").val(a.gzzxname||'')
},
loadFilter: function (a) {
var datas=a["data"]["records"];
$.each(datas,function (i,item) {
item["name"]=item["gzzxname"]+"-"+item["name"]
});
return datas
}}
);
$inputBx.iCombobox({valueField: "id", textField:"name", allowNull:false, allowEdit:false, url: 'hzmes/bx/query'});
}
/*数据初始化*/
function dataInit(obj){
}
function run(res){
}
gas.load(paramInit,pageInit,dataInit,run);
})
</script>
\ No newline at end of file
<div class="e-dialog-container" data-options="width:720,height: 640" id="hgdjContaienr">
<div>
<div class="gui-row" style="margin-top: 30px">
<div class="gui-col-sm12">
<label class="gui-form-label">合格等级:</label>
<div class="gui-input-block">
<input type="text" name="hgdj" data-toggle="gui-textbox" >
</div>
</div>
</div>
<div class="mx-dataTable" style="margin-top: 80px">
<table id="hgdj_table" style="width: 100%;height: 100%"></table>
</div>
</div>
</div>
<script>
$(function () {
var $div=$("#hgdjContaienr");
var $table=$("#hgdj_table");
var $hgdjCox=$div.find("input[name='hgdj']");
var wosnid=$div.parent().dialog("options").queryParams.wosnid||"";
$hgdjCox.iCombobox({
url:"hzmes/dpgpfk/init/grade",
valueField:"id",
textField:"name",
loadFilter: function (a) {
return a["data"]["records"]
},
onLoadSuccess:function () {
$hgdjCox.combobox("select","A0")
}
});
var columns = [
// {title: "拆卸数量", field: "cxsl", width: 160},
{title: "物料名称", field: "wlxxName", width: 140},
{title: "合格等级", field: "hgdj", width: 140},
{title: "物料编码", field: "wlxxCode", width: 140},
{title: "条码", field: "wlsnid", width: 140},
{title: "操作", field: "optname", width: 224,},
];
$table.datagrid({
rownumbers:true,
title:"关键物料等级",
columns: [new $.common.formatterCol(columns)],
rowStyler: function(index,row){
if (row.optname=="装配"){
return 'background-color:#6293BB;';
}else if(row.optname=="拆卸"){
return 'background-color:red;';
}
}
})
HTTP.post("hzmes/dpgpfk/queryOCGrade",{wosnid:wosnid},function (res) {
if(res.success){
$table.datagrid("loadData",res.data["records"]||[])
}else{
$.messager.alert("温馨提示",res.message||"查询为空")
}
})
// $hgdjCox.iCombobox({
// data:[
// {id:"AN",name:"AN",selected: !0},
// {id:"A0升AN",name:"A0升AN"},
// {id:"AN降A0",name:"AN降A0"},
// {id:"A0",name:"A0"},
// {id:"AS",name:"AS"},
// {id:"AL",name:"AL"},
// {id:"B0",name:"B0"},
// {id:"C0",name:"C0"}
//
// ],
// valueField:"id",
// textField:"name",
// });
})
</script>
<div class="layui-row">
<div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
<div class="grid-demo grid-demo-bg1">&nbsp;</div>
</div>
<div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
<div class="grid-demo grid-demo-bg1">
<div class="layui-upload-drag" id="test101" style="margin: 20px 10px">
<i class="layui-icon"></i>
<p id="upload-text-1">点击上传,或将文件拖拽到此处</p>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<a class="layui-btn" id="test19">开始上传</a>
</div>
</div>
</div>
</div>
<div class="layui-col-xs4 layui-col-sm12 layui-col-md4">
<div class="grid-demo layui-bg-blue"></div>
</div>
</div>
<script>
var $dialog=$('#patentbjdAdd');
layui.use('upload', function(){
var upload = layui.upload;
$("#test19").click(function (e) {
uploadInst.upload();
e.stopPropagation();
});
//拖拽上传
var uploadInst = upload.render({
elem: '#test101'
,url: 'hzmes/snmulti/excel/import' //上传接口
,accept: 'file'
,auto: false
,data: {
}
,choose: function(obj){
var files = obj.pushFile();
var lastId=null;
$.each(files,function (i,file) {
lastId=i;
});
$.each(files,function (i,file) {
if(lastId&&i!=lastId){
delete files[i];
}
});
obj.preview(function(index, file, result){
console.log(index); //得到文件索引
console.log(file); //得到文件对象
$("#upload-text-1").html(file.name);
});
}
,before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
load();
}
,done: function(res, index, upload){
disLoad();
if(res["success"]){
/* $.messager.show({
title:"提示",
msg:res.message||"数据导入成功"
});*/
$('#patentbjdAdd').iDialog("setStatus",{"state":"ok",data:res.data});
$('#patentbjdAdd').iDialog("destroy");
}else{
$.messager.alert("提示",res.message||"数据导入失败");
}
}
,error: function(index, upload){
disLoad()
}
});
});
/* layui.use('laydate', function(){
var laydate = layui.laydate;
//执行一个laydate实例
laydate.render({
elem: '#test15' //指定元素
,type: 'date'
});
});*/
function load() {
$("<div class=\"datagrid-mask\"></div>").css({ display: "block", width: "100%", height: $('#patentbjdAddImport').height()+40}).appendTo("#patentbjdAddImport");
$("<div class=\"datagrid-mask-msg\" style='color:black'></div>").html("数据导入中,请稍候...").appendTo("#patentbjdAddImport").css({ display: "block", left: ($("#patentbjdAddImport").outerWidth(true)-100) / 2,
top: ($("#patentbjdAddImport").height()) / 2,
height: 40,width: 200});
}
//取消加载层  
function disLoad() {
$(".datagrid-mask").remove();
$(".datagrid-mask-msg").remove();
}
</script>
<div id="snmultiIndex" class="gui-div">
<table class="toolbar-table" data-options="id: 'snmultiIndexTable',herf:'kzzx/gridset/query'"></table>
<!-- 表格工具栏开始 -->
<div id="snmultiIndexTable-toolbar" class="gui-toolbar" data-options="grid:{type:'datagrid',id:'snmultiIndexTable'}">
<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-import toolbar" href="javascript:void(0)"></a>
<a class="toolbar-exportTag 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-sm12">
<label class="gui-form-label">序列号:</label>
<div class="gui-input-block">
<input type="text" name="wosnids" data-options="required:true,woprompt:'形式:序列号,序列号,序列号'" 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=$('#snmultiIndex');
var $datagrid=$div.find(".toolbar-table");
var $textwosnids=$div.find("input[name='wosnids']");
function paramInit(ops){
}
function pageInit() {
var options = {
url: 'hzmes/snmulti',
noRequest: true,
columns: [[
{title: "序列号", field: "code", fieldType: "ftString",width:180},
{title: "订单号", field: "djid", fieldType: "ftString",width:140},
{title: "物料编码", field: "wlxxCode", width: 120},
{title: "物料名称", field: "wlxxName", width: 140},
{title: "规格", field: "wlxxGg", width: 140},
{title: "机种", field: "jzname", width: 140},
{title: "合格等级", field: "wosnhgdj", width: 140},
{title: "箱码", field: "zxsncode", width: 140},
{title: "托码", field: "ztsncode", width: 140},
{title: "OC码", field: "wlsnid", width: 140},
{title: "OC等级", field: "ljhgdj", width: 140},
{title: "客户序列号", field: "khcode", width: 140},
{title: "客户序列号2", field: "khcodeby1", width: 140}
]],
delimitingRun:run,
dialog: {
footerIn: true
}
};
$div.Holder(options);
$div.find(".toolbar-import").iMenubutton({
event:'openDialog',
iconCls: 'fa fa-upload',
text:'导入条码',
dialog:{
title:'导入条码',
id:'patentbjdAdd',
width:720,
height: 360,
href:'hzmes/snmulti/importpage',
tag:'add',
onSaveCallback:function (ele,data) {
$textwosnids.textbox("setValue",data.wosnids);
run()
}
}
});
$div.find(".toolbar-exportTag").iMenubutton({
iconCls: 'fa fa-upload',
text:'导出条码模板',
onClick:function () {
HTTP.download("hzmes/snmulti/excel/model/export",{})
}
});
}
/*数据初始化*/
function dataInit(ops){
}
/*用户操作*/
function run(ops){
$datagrid.datagrid("options").url="hzmes/snmulti/query";
$datagrid.datagrid("load",DataBind.collectData($div));
}
gas.load(paramInit,pageInit,dataInit);
})
</script>
<div class="e-dialog-container" id="ckglHzghrkEdit" data-options="width:1120,height: 630">
<div class="e-dialog-body">
<div class="e-dialog-box">
<h4>归还入库登记</h4>
<div class="gui-fluid editTable ">
<input type="hidden" name="id">
<input type="hidden" name="lydjid">
<input type="hidden" name="flag">
<div class="gui-row">
<div class="gui-col-sm4">
<label class="gui-form-label" >入库单号:</label>
<div class="gui-input-block">
<input type="text" name="djid" data-options="required:false" data-toggle="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="ywrq" data-options="required:true" data-toggle="gui-datebox" 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="ckid" data-options="required:true" data-toggle="gui-combobox" style="width: 100%"/>
</div>
</div>
</div>
<div class="gui-row">
<div class="gui-col-sm4">
<label class="gui-form-label" >事务类型:</label>
<div class="gui-input-block">
<input type="text" name="swlxid" data-options="required:true" data-toggle="gui-combobox" 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" data-options="required:true" data-toggle="gui-combobox" 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="jsr" data-options="required:false" data-toggle="gui-textbox" style="width: 100%">
</div>
</div>
</div>
<div class="gui-row">
<div class="gui-col-sm4">
<label class="gui-form-label" >保管员:</label>
<div class="gui-input-block">
<input type="text" name="bgy" data-options="required:true" data-toggle="gui-textbox" style="width: 100%"/>
</div>
</div>
<div class="gui-col-sm8">
<label class="gui-form-label" >备注:</label>
<div class="gui-input-block">
<input type="text" name="bz" data-options="multiline:true" data-toggle="gui-textarea" style="width: 100%;height:32px"/>
</div>
</div>
</div>
</div>
<div class="mx-dataTable" style="margin-top: 190px;bottom: 40px">
<div id="bzEditHzghrk-toolbar" class="gui-toolbar" data-options="grid:{type:'edatagrid',id:'bzEditHzghrk'}">
<a class="toolbar choosewl" href="javascript:void(0)"></a>
<a class="toolbar" data-event="delete" href="javascript:void(0)"></a>
</div>
<table id="bzEditHzghrk" data-options="dgid:'KCSW'" style="height: 100%;width: 100%"></table>
</div>
<div class="gui-row e-dialog-box-footer">
<div class="gui-col-sm6">
<div class="gui-col-sm8" style="float: right">
<label class="gui-form-label" >维护人:</label>
<div class="gui-input-block">
<input type="text" name="whr" data-toggle="gui-textbox" readonly style="width: 100%">
</div>
</div>
</div>
<div class="gui-col-sm6">
<div class="gui-col-sm8">
<label class="gui-form-label" >维护时间:</label>
<div class="gui-input-block">
<input type="text" name="whsj" data-toggle="gui-datetimebox" readonly style="width: 100%">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="e-dialog-footer">
<a href="javascript:void(0);" class="e-dialog-continue"></a>
<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 $div = $('#ckglHzghrkEdit');
var $fieldView = $('#bzEditHzghrk');
$div.find('input[name="ckid"]').iCombobox({
url: 'jcsj/common/ck/queryCkid', valueField: 'id', textField: 'name', loadFilter: function (a) {
return a["data"]["records"]
},onSelect:function (res) {
if(res&&res["bgy"]){
$div.find('input[textboxname="bgy"]').textbox("setValue",res["bgy"]);
}
}
});
$div.find('input[name="bmid"]').iCombobox({
url: 'jcsj/common/bm/queryZzbm', valueField: 'id', textField: 'bmmc',allowNull:false, loadFilter: function (a) {
return a["data"]["records"]
}
});
$div.find('input[name="swlxid"]').iCombobox({
url: 'kc/ghrk/init/swlx', valueField: 'id', textField: 'name', loadFilter: function (a) {
return a["data"]["records"]
}
});
if($div.closest("form").attr("tag")=="add"){
HTTP.post("common/datetime",{},function (result) {
if(result['success']&&result['data']['data']){
var date = new Date(result['data']['data']);
$div.find('input[name="ywrq"]').iDatebox({value: DateUtils.format(date)});
$div.find('input[name="whsj"]').iDatetimebox({value: DateUtils.formatTime(date)});
}
},null,false);
$div.find("input[name='whr']").textbox({value:window.sessionStorage.getItem('userName')});
}
var columns = [
{title: "序号", field: "xh", width: 60,align:"center"},
{title: "物料ID", field: "wlid",hidden:true},
{title: "物料编码", field: "wlcode", width: 140},
{title: "物料名称", field: "wlmc", width: 160},
/*{title: "规格", field: "gg", width: 140},*/
{title: "机种", field: "jzname", width: 140},
{title: "条码", field: "snid", width: 140},
{title: "入库数量", field: "rksl",editor:{type:'numberbox'},fieldType:'int'},
{title: "计量单位ID",field: "jldw", hidden:true},
{title: "计量单位",field: "jldwname", width: 100,align:"center"},
{title: "备注", field: "bz", width: 224,"align":'center', editor: {type: 'textbox'}}
];
$fieldView.DataTableEditing({
columns:[new $.common.formatterCol(columns)],
pagination:false,
allowAdd:false
});
var parameter = $('#rkglHzGhrkTable').datagrid('getSelected');
if(parameter){
loadListDatagrid($fieldView,{url:"hzmes/ghrk/query/detail",params:{mid:parameter["id"]}},$div);
}
$("#bzEditHzghrk-toolbar").find(".choosewl").iMenubutton({
text:"选择物料",
iconCls:"fa fa-plus",
onClick:function () {
Mvcbox.dialog({
url: 'jcsj/wlfl/queryroot',
title: "选择物料",
width: 1020,
height: 600,
buttons: {
ok: {
label: "保存",
callback: function (data) {
var xh=$fieldView.datagrid("getRows").length;
$.each(data, function (i, item) {
item['wlid']=item['id'];
item['wlcode']=item['code'];
item['wlmc']=item['name'];
item['flag'] = 'I';
item['xh']=xh+1;
delete item["id"];
$fieldView.datagrid('appendRow', item);
xh = xh + 1;
});
}
},
cancel: {
label: "关闭"
}
}
})
}
});
});
</script>
<div id="bhgXqEdit" class="e-dialog-container" data-options="width:700,height:270">
<div class="e-dialog-body">
<div class="list" style="height: 100%"></div>
</div>
</div>
<div class="e-dialog-footer">
<a href="javascript:void(0);" class="e-dialog-cancel"></a>
</div>
</div>
<script>
$(function () {
var $dialog=$('#bhgXqEdit');
var res=[
{value:"1",text:"异物"},
{value:"2",text:"毛屑"},
{value:"3",text:"赃污"},
{value:"4",text:"划伤"},
{value:"5",text:"黑白影"},
{value:"6",text:"亮点"},
{value:"7",text:"漏光"},
{value:"8",text:"白点"},
{value:"9",text:"画面发暗"},
{value:"10",text:"压伤"},
{value:"11",text:"顶白"},
{value:"12",text:"嵌合不良"},
{value:"13",text:"标签外观不良"},
{value:"14",text:"FLIM组装不良"},
{value:"15",text:"FLIM多少组"},
{value:"16",text:"S/T不良"},
{value:"17",text:"L/B外观不良"},
{value:"18",text:"胶框外观不良"},
{value:"19",text:"扣点外观不良"},
{value:"20",text:"框线"},
{value:"21",text:"厚度NG"},
{value:"22",text:"其他"},
];
var parmas=$dialog.parent("").dialog("options").queryParams.id;
HTTP.post("hzmes/gpfk/getGpfkbhg",{gpfkid:parmas},function (res) {
if(res.success){
$dialog.find(".list").datalist({
valueField:"bhgxxCode",
textField:"bhgxxName",
data:res.data.records||[]
})
}
})
})
</script>
\ No newline at end of file
<div class="e-dialog-container" data-options="width:480,height:280" id="gpfkGxaoi">
<div class="gui-fluid editTable">
<input type="hidden" name="gxName">
<input type="hidden" name="gzzxid">
<input type="hidden" name="gzzxname">
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label">工序:</label>
<div class="gui-input-block">
<input type="text" name="gxid" data-toggle="gui-combobox">
</div>
</div>
</div>
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label">班型:</label>
<div class="gui-input-block">
<input type="text" name="bxid" style="width: 100%;" data-options="required:true">
</div>
</div>
</div>
</div>
</div>
<script>
$(function () {
var $dialog=$("#gpfkGxaoi");
var $inputGxid=$dialog.find("input[name='gxid']");
var $inputBx=$dialog.find("input[name='bxid']");
function paramInit(ops){
}
function pageInit() {
$inputGxid.iCombobox({valueField: "id", textField: "name", allowNull:false,required:true, allowEdit:false, url: 'gygl/bzgx/queryJgBzgx',onSelect:function (a) {
$dialog.find("input[name='gxName']").val(a.name);
$dialog.find("input[name='gzzxid']").val(a.gzzxid||'');
$dialog.find("input[name='gzzxname']").val(a.gzzxname||'')
},
loadFilter: function (a) {
var datas=a["data"]["records"];
$.each(datas,function (i,item) {
item["name"]=item["gzzxname"]+"-"+item["name"]
});
return datas
}}
);
$inputBx.iCombobox({valueField: "id", textField:"name", allowNull:false, allowEdit:false, url: 'hzmes/bx/query'});
}
/*数据初始化*/
function dataInit(obj){
}
function run(res){
}
gas.load(paramInit,pageInit,dataInit,run);
})
</script>
\ No newline at end of file
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