<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8" />
|
<title>新增派工单</title>
|
<meta name="renderer" content="webkit">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
|
<style>
|
.layui-form-pane .layui-form-label {
|
border-style: none;
|
}
|
</style>
|
</head>
|
<body>
|
|
<div id="layout1" class="layui-fluid">
|
<div class="layui-row layui-col-space15">
|
<div class="layui-col-md12">
|
<div class="layui-card">
|
<form id="form0" class="layui-form layui-form-pane" action="">
|
<div class="layui-card-header">
|
<div class="layui-btn-group">
|
|
<button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">保存</button>
|
<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">退出</button>
|
<!--<button type="button" id="Closeing" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Closeing">关闭</button>
|
<button type="button" id="BackClose" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="BackClose">反关闭</button>
|
<button type="button" id="Auditing" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Auditing">审核</button>
|
<button type="button" id="BackAudit" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="BackAudit">反审核</button>
|
<button type="button" id="Printing" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Printing">打印</button>-->
|
|
</div>
|
|
</div>
|
<div class="layui-card-body">
|
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
<ul class="layui-tab-title">
|
<li class="layui-this">基本信息</li>
|
<li>其他信息</li>
|
</ul>
|
<div class="layui-tab-content">
|
<div class="layui-tab-item layui-show">
|
|
<div class="layui-form-item">
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label">单 据 号:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off">
|
<input type="hidden" name="HInterID" id="HInterID" autocomplete="off" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">单据日期:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HDate" id="HDate" readonly="readonly" autocomplete="off" disabled>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">供应商代码:</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HSupNumber" id="HSupNumber" lay-verify="HSupNumber" readonly="readonly" autocomplete="off" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" style="width: 110px;padding: 9px 18px;">供应商:</label>
|
<div class="layui-input-block" style="margin-left: 72px;">
|
<input type="text" class="layui-input" name="HSupName" id="HSupName" lay-verify="HSupName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
|
<input id="HSupID" name="HSupID" type="hidden" />
|
<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HSupID-BT" id="HSupID-BT" style="padding: 0 10px;float: right;margin-right: 3px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
|
</button>
|
</div>
|
</div>
|
</div>
|
<!--<button class="layui-btn" data-type="reload">选择</button>-->
|
</div>
|
|
|
<div class="layui-form-item">
|
<div class="layui-row">
|
|
<div class="layui-col-xs8">
|
<label class="layui-form-label"> 备 注:</label>
|
<div class="layui-input-block">
|
<input class="layui-input" name="HRemark" id="HRemark" autocomplete="off">
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="layui-tab-item">
|
<div class="layui-form-item">
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label">制 单 人:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HMaker" id="HMaker" readonly="readonly" autocomplete="off">
|
<input type="hidden" name="HEmpID" id="HEmpID" autocomplete="off" class="layui-input">
|
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">审 核 人:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HChecker" id="HChecker" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">修改人:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HUpDater" id="HUpDater" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">关闭人:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HCloseMan" id="HCloseMan" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="layui-form-item">
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label">制单日期:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HMakeDate" id="HMakeDate" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">审核日期:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HCheckDate" id="HCheckDate" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">修改日期:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HUpDateDate" id="HUpDateDate" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">关闭日期:</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HCloseDate" id="HCloseDate" readonly="readonly" autocomplete="off">
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
</div>
|
<blockquote class="layui-elem-quote">委外工序派工单</blockquote>
|
<table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
|
<script type="text/html" id="toolbarDemo">
|
<div class="layui-btn-container">
|
<!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-add"><i class="layui-icon layui-icon-addition"></i>拆分</button>
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-del"><i class="layui-icon layui-icon-subtraction"></i>删行</button>-->
|
</div>
|
</script>
|
|
|
</form>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script src="../../../layuiadmin/layui/layui.js"></script>
|
<script src="../../../layuiadmin/Scripts/json2.js"></script>
|
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
|
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
|
<script>
|
var sql = " and HBillType='3740' ";
|
function getUrlVars() {
|
var vars = [], hash;
|
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
for (var i = 0; i < hashes.length; i++) {
|
hash = hashes[i].split('=');
|
vars.push(hash[0]);
|
vars[hash[0]] = hash[1];
|
}
|
return vars;
|
}
|
var params = getUrlVars();
|
var HInterID = params[params[0]];
|
var lentryid = params[params[1]];
|
var PlanBeginDate = params[params[2]];
|
var PlanEndDate = params[params[3]];
|
alert("看看" + HInterID + "lentryid" + lentryid);
|
sql += " and hmainid in(" + lentryid + ")"
|
var date = new Date();
|
var day = date.getDate();
|
var month = date.getMonth() + 1;
|
var year = date.getFullYear();
|
var shijian = year + "-" + month + "-" + day;
|
var CurUserName;
|
if (typeof (lentryid) == "undefined") {
|
$('#HDeptID-BT').addClass("layui-btn-disabled").attr("disabled", true);
|
$('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
|
$('#HRemark').addClass("layui-btn-disabled").attr("disabled", true);
|
$.ajax({
|
url: GetWEBURL() + "/Sc_ProcessMangement/MES_DetailSc_ProcessReportList_Json",
|
type: "GET",
|
data: { "HInterID": parseInt(HInterID) },
|
success: function (data1) {
|
if (data1.count == 1) {
|
$("#HInterID").val(data1.data[0].HInterID);//
|
$("#HBillNo").val(data1.data[0].HBillNo);//
|
$("#HDate").val(data1.data[0].HDate);
|
$("#HDeptName").val(data1.data[0].HName);
|
$("#HDeptNumber").val(data1.data[0].HNumber);
|
$("#HICMOBillNo").val(data1.data[0].HICMOBillNo);
|
$("#HRemark").val(data1.data[0].HRemark);
|
$("#HPlanQty").val(data1.data[0].HPlanQty);
|
$("#HMaker").val(data1.data[0].HMaker);
|
$("#HMakeDate").val(data1.data[0].HMakeDate);
|
$("#HChecker").val(data1.data[0].HChecker);
|
$("#HCheckDate").val(data1.data[0].HCheckDate);
|
$("#HUpDater").val(data1.data[0].HUpDater);
|
$("#HUpDateDate").val(data1.data[0].HUpDateDate);
|
$("#HCloseMan").val(data1.data[0].HCloseMan);
|
$("#HCloseDate").val(data1.data[0].HCloseDate);
|
} else {
|
layer.msg(data1.Message);
|
}
|
|
}, error: function () {
|
layer.alert("获取数据失败!", { icon: 5 });
|
}
|
});
|
} else {
|
//获取单据号
|
$.ajax({
|
url: GetWEBURL() + "/Web/GetMAXNum",
|
type: "GET",
|
data: { "HBillType": '3741' },
|
success: function (d) {
|
//console.log(d.data);
|
$("#HBillNo").val(d.data[0].HBillNo);//
|
$("#HInterID").val(d.data[0].HInterID);
|
$("#HDate").val(shijian);
|
$('#HPlanBeginDate').val(shijian);
|
//HPlanEndDate
|
$('#HPlanEndDate').val(shijian);
|
}, error: function () {
|
layer.alert("获取单据号失败!", { icon: 5 });
|
}
|
});
|
}
|
|
|
layui.config({
|
base: '../../../layuiadmin/' //静态资源所在路径
|
}).extend({
|
index: 'lib/index', //主入口模块
|
}).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
|
var $ = layui.$
|
, admin = layui.admin
|
, layer = layui.layer
|
, table = layui.table
|
, form = layui.form
|
, element = layui.element
|
, laypage = layui.laypage
|
, laydate = layui.laydate
|
|
$("#HMaker").val(sessionStorage["HUserName"]);//制单人
|
$("#HEmpID").val(sessionStorage["HEmpID"]);
|
CurUserName = sessionStorage["HUserName"];
|
|
|
//执行一个laydate实例
|
laydate.render({
|
elem: '#HPlanBeginDate,#HPlanEndDate' //指定元素
|
});
|
|
|
//加载计划单下推的数据
|
if (typeof (lentryid) == "undefined") {
|
|
RoadHBillSub2();
|
} else {
|
|
RoadHBillSub(sql);
|
}
|
table.render({
|
elem: '#mainTable'
|
, toolbar: '#toolbarDemo'
|
, limit: 1000
|
, totalRow: true
|
, cols: [[
|
{ field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
|
, { field: '日期', title: '日期', sort: true, width: 120 }
|
, { field: '单据号', title: '单据号', sort: true, width: 170 }
|
, { field: '数量', title: '数量', edit: 'text', event: "inputHPlanQty" }
|
, { field: 'HDeptID ', title: 'HDeptID', width: 105 }
|
, { field: '部门代码', title: '部门代码' }
|
, { field: '部门', title: '部门' }
|
, { field: 'HMaterID', title: 'HMaterID' }
|
, { field: '物料代码', title: '物料代码' }
|
, { field: '物料名称', title: '物料名称', width: 115 }
|
, { field: '规格型号', title: '规格型号', width: 115 }
|
, { field: 'HUnitID', title: 'HUnitID' }
|
, { field: '计量单位代码', title: '计量单位代码', width: 160 }
|
, { field: '计量单位', title: '计量单位', width: 160 }
|
, { field: 'HSupID', title: 'HSupID', width: 160 }
|
, { field: '供应商代码', title: '供应商代码', width: 160 }
|
, { field: '供应商名称', title: '供应商名称', width: 160 }
|
, { field: 'HprocID ', title: 'HprocID', width: 215 }
|
, { field: '工序代码 ', title: '工序代码 ', width: 115 }
|
, { field: '工序', title: '工序' }
|
, { field: 'HGroupID ', title: 'HGroupID', width: 100 }
|
, { field: '班组代码', title: '班组代码' }
|
, { field: '班组名称', title: '班组名称' }
|
, { field: 'HSourceID', title: 'HSourceID' }
|
, { field: '资源代码', title: '资源代码' }
|
, { field: '生产资源', title: '生产资源' }
|
, { field: 'HWorkerID ', title: 'HWorkerID' }
|
, { field: '职员代码', title: '职员代码' }
|
, { field: '职员 ', title: '职员' }
|
, { field: 'hsubid', title: 'hsubid', hide: true }
|
, { field: '计划开工日期', title: '计划开工日期' }
|
, { field: '计划完工日期', title: '计划完工日期' }
|
, { field: '计划工时', title: '计划工时' }
|
, { field: '表体备注', title: '表体备注' }
|
, { field: 'HICMOInterID', title: 'HICMOInterID ' }
|
, { field: '生产任务单号', title: '生产任务单号' }
|
, { field: 'HSeOrderInterID', title: 'HSeOrderInterID' }
|
, { field: '销售订单号', title: '销售订单号' }
|
, { field: '表头备注', title: '表头备注' }
|
, { field: '制单人', title: '制单人' }
|
, { field: '制单日期', title: '制单日期' }
|
, { field: '审核人', title: '审核人' }
|
, { field: '审核日期', title: '审核日期' }
|
, { field: '修改人', title: '修改人 ' }
|
, { field: '修改日期', title: '修改日期' }
|
, { field: '关闭人', title: '关闭人' }
|
, { field: '关闭日期', title: '关闭日期' }
|
, { field: '作废人', title: '作废人' }
|
, { field: '作废日期', title: '作废日期' }
|
, { field: '源单主内码', title: '源单主内码' }
|
, { field: '源单子内码', title: '源单子内码' }
|
, { field: '源单单号', title: '源单单号' }
|
, { field: '源单类型', title: '源单类型' }
|
, { field: '行关闭人', title: '行关闭人' }
|
, { field: 'HBillType', title: 'HBillType' }
|
, { field: 'HQtyDecimal', title: 'HQtyDecimal' }
|
, { field: 'HPriceDecimal', title: 'HPriceDecimal' }
|
]]
|
, done: function () {
|
layer.closeAll("loading");
|
}
|
});
|
table.on('tool(mainTable)', function (obj) {
|
var data = obj.data;
|
if (obj.event === 'inputHPlanQty') {
|
$(obj.tr).find(".layui-table-edit").keyup(function () {
|
var $input = $(this), val = $input.val();
|
if (!val) val = "1";
|
$input.val(val.replace(/[^\d]/g, ''));
|
});
|
}
|
|
});
|
///加载显示数据
|
function RoadHBillSub(sqlWhere) {
|
$.ajax({
|
url: GetWEBURL() + '/Sc_ProcessMangement/MES_WW_EntrustProcSendWorkBill_Json',
|
type: "GET",
|
data: { "sqlWhere": sqlWhere },
|
success: function (result) {
|
console.log(result);
|
//$("#HBillNo").val(result.data[0].HInterID);
|
|
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
|
table.reload('mainTable', {
|
data: ajaxReturnData
|
, height: 'full-10'
|
, loading: false
|
, done: function (index, res) {
|
layer.closeAll("loading");
|
}
|
});
|
|
},
|
error: function (result) {
|
console.log(result);
|
}
|
});
|
};
|
//加载显示数据
|
function RoadHBillSub2() {
|
$.ajax({
|
url: GetWEBURL() + '/Sc_ProcessMangement/MES_h_v_Sc_ProcessSendWorkList_Json',
|
type: "GET",
|
data: {
|
"HInterID": parseInt(HInterID)
|
},
|
success: function (result) {
|
console.log(result);
|
//$("#HBillNo").val(result.data[0].HInterID);
|
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
|
table.reload('mainTable', {
|
data: ajaxReturnData
|
, loading: false
|
, done: function (index, res) {
|
layer.closeAll("loading");
|
}
|
});
|
|
},
|
error: function (result) {
|
console.log(result);
|
}
|
});
|
};
|
//保存
|
form.on('submit(Saver)', function (data) {//保存
|
|
var sMainStr = JSON.stringify(data.field);
|
var sSubStr = JSON.stringify(table.cache['mainTable']);
|
var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"];
|
$.ajax(
|
{
|
type: "POST",
|
url: GetWEBURL() + "SaveWW_EntrustProcessSendOutBill", //方法所在页面和方法名
|
async: true,
|
data: { "msg": sMainSub },
|
dataType: "json",
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { icon: 1 });
|
$('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
|
}
|
else {
|
|
f_alert(data.Message);
|
console.log("委外派工单下推保存" + sMainStr);
|
}
|
layer.closeAll("loading");
|
},
|
error: function (err) {
|
|
f_alert("错误:" + err);
|
console.log("委外派工单下推保存" + sMainStr);
|
}
|
});
|
});
|
|
|
form.on('submit(Exit)', function (data) {//退出
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
parent.layer.close(index); //再执行关闭
|
});
|
//关闭
|
form.on('submit(Closeing)', function (data) {//
|
//debugger;
|
$.ajax(
|
{
|
type: "GET",
|
url: GetWEBURL() + "CloseProcessReportList", //方法所在页面和方法名
|
data: {
|
"HInterID": parseInt(HInterID)
|
, "IsClose": 0
|
, "CurUserName": CurUserName
|
},
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { icon: 1 });
|
$('#').addClass("layui-btn-disabled").attr("disabled", true);
|
}
|
else {
|
|
f_alert(data.Message);
|
}
|
layer.closeAll("loading");
|
},
|
error: function (err) {
|
|
f_alert("错误:" + err);
|
}
|
});
|
});
|
//反关闭
|
form.on("submit(BackClose)", function (data) {
|
layer.alert("我是反关闭按钮!");
|
$.ajax(
|
{
|
type: "GET",
|
url: GetWEBURL() + "CloseProcessReportList", //方法所在页面和方法名
|
data: {
|
"HInterID": parseInt(HInterID)
|
, "IsClose": 1
|
, "CurUserName": CurUserName
|
},
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { icon: 1 });
|
$('#').addClass("layui-btn-disabled").attr("disabled", true);
|
}
|
else {
|
|
f_alert(data.Message);
|
}
|
layer.closeAll("loading");
|
},
|
error: function (err) {
|
|
f_alert("错误:" + err);
|
}
|
});
|
});
|
|
//审核Auditing
|
form.on("submit(Auditing)", function (data) {
|
layer.alert("我是审核按钮!");
|
|
$.ajax(
|
{
|
type: "GET",
|
url: GetWEBURL() + "AuditProcessReportList", //方法所在页面和方法名
|
data: {
|
"HInterID": parseInt(HInterID)
|
, "IsAudit": 0
|
, "CurUserName": CurUserName
|
},
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { icon: 1 });
|
$('#').addClass("layui-btn-disabled").attr("disabled", true);
|
}
|
else {
|
|
f_alert(data.Message);
|
}
|
layer.closeAll("loading");
|
},
|
error: function (err) {
|
|
f_alert("错误:" + err);
|
}
|
});
|
});
|
|
//反审核BackAudit
|
form.on("submit(BackAudit)", function (data) {
|
layer.alert("我是反审核按钮!");
|
$.ajax(
|
{
|
type: "GET",
|
url: GetWEBURL() + "AuditProcessReportList", //方法所在页面和方法名
|
data: {
|
"HInterID": parseInt(HInterID)
|
, "IsAudit": 1
|
, "CurUserName": CurUserName
|
},
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { icon: 1 });
|
$('#').addClass("layui-btn-disabled").attr("disabled", true);
|
}
|
else {
|
|
f_alert(data.Message);
|
}
|
layer.closeAll("loading");
|
},
|
error: function (err) {
|
|
f_alert("错误:" + err);
|
}
|
});
|
|
});
|
|
//打印Printing
|
form.on("submit(Printing)", function (data) {
|
layer.alert("我是打印按钮!单据主ID是:" + HInterID);
|
window.open("../工序汇报单/HBarPlanPrint.html?linterid=" + HInterID + "&Type=HProcessReport" + "&OpenTmp=a");
|
|
});
|
|
function f_alert(sMsg) {
|
layer.alert(sMsg, { icon: 5 });
|
|
}
|
//选择部门
|
form.on('submit(HDeptID-BT)', function () {//选择部门
|
layer.open({
|
type: 2
|
, area: ['666px', '666px']
|
, title: '部门列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
//选择供应商
|
form.on('submit(HSupID-BT)', function () {//选择供应商
|
layer.open({
|
type: 2
|
, area: ['666px', '666px']
|
, title: '供应商列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_SupplierList.html', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
//选择产品
|
form.on('submit(HMateriaID-BT)', function () {//选择产品
|
layer.open({
|
type: 2
|
, area: ['666px', '666px']
|
, title: '产品列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_MaterialList.html', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
//HUnitID-BT
|
//选择单位
|
form.on('submit(HUnitID-BT)', function () {//选择单位
|
layer.open({
|
type: 2
|
, area: ['666px', '666px']
|
, title: '单位列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_UnitList.html', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
|
});
|
function GetHDeptNameValue(obj) { //返回部门
|
$("#HDeptName").val(obj[0].HName);
|
$("#HDeptID").val(obj[0].HItemID);
|
$("#HDeptNumber").val(obj[0].HNumber);
|
|
}
|
|
function GetHMaterNameValue(obj) { //返回产品
|
$("#HMateriaName").val(obj[0].HName);
|
$("#HMateriaNumber").val(obj[0].HNumber);
|
|
}
|
|
function GetHUnitNameValue(obj) { //返回单位
|
$("#HDHName").val(obj[0].HName);
|
$("#HDHNumber").val(obj[0].HNumber);
|
|
}
|
|
function GetHSupValue(obj) { //返回供应商
|
$("#HSupName").val(obj[0].HName);
|
$("#HSupID").val(obj[0].HItemID);
|
$("#HSupNumber").val(obj[0].HNumber);
|
}
|
</script>
|
|
</body>
|
</html>
|