<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; 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, maximum-scale=1">
|
<link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
|
</head>
|
<body>
|
<div class="layui-fluid">
|
<div class="layui-card" style="padding: 1px">
|
<div class="layui-card-body" style="padding: 1px;">
|
<form class="layui-form" action="" lay-filter="component-form-group">
|
<div class="layui-tab" lay-filter="tab-POStockInBillList">
|
<ul class="layui-tab-title" lay-filter="tab-all">
|
<li lay-id="1">单据列表</li>
|
</ul>
|
<div class="layui-tab-content">
|
<div class="layui-tab-item layui-show">
|
<div class="layui-row">
|
<div class="layui-col-xs12">
|
<table class="layui-hide" id="dj-table" lay-filter="dj-table"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="layui-form-item" style="margin-bottom: 20px;">
|
<div class="layui-row">
|
<div class="layui-col-xs2">
|
<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
|
</div>
|
<div class="layui-col-xs2">
|
<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
|
</div>
|
<div class="layui-col-xs2">
|
<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">刷新</button>
|
</div>
|
<div class="layui-col-xs2">
|
<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
</form>
|
</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>
|
layui.config({
|
base: '../../../layuiadmin/' //静态资源所在路径
|
}).extend({
|
index: 'lib/index' //主入口模块
|
}).use(['index', 'form', 'laydate', 'table', 'element'], function () {
|
var $ = layui.$
|
, admin = layui.admin
|
, layer = layui.layer
|
, table = layui.table
|
, form = layui.form
|
, element = layui.element;
|
//清空界面 new
|
|
//动态加载源单类型列表 new
|
|
//加载源单类型
|
|
//读取单据列表
|
//
|
|
form.on('submit(cmdCancel)', function () {
|
layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
|
parent.location.href = "../../../views/index_Mobile.html"
|
});
|
//window.close();//关闭当前页
|
})
|
|
|
|
|
form.on('submit(cmdModify)', function () {
|
var checkStatus = table.checkStatus('dj-table')
|
, data = checkStatus.data;
|
layer.open({
|
type: 2
|
, area: ['100%', '100%']
|
, title: '领料出库校验'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: false //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../领料发货/领料出库/Kf_MateOutBill_Check_New.html?linterid=' + data[0].HInterID + '&lBillNo=' + data[0].HBillNo, 'yes']
|
, resize: false
|
, cancel: function () {
|
$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
var option = {
|
elem: '#dj-table'
|
, toolbar: '#toolbarDemo'
|
, where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
|
, cols: [[
|
{ type: 'radio' }
|
, { field: 'HInterID', title: '单据内码', width: 80 }
|
, { field: 'HBillNo', title: '单据号', width: 80 }
|
, { field: 'HMaker', title: '制单人', width: 100 }
|
, { field: 'HMakeDate', title: '制单日期', width: 100 }
|
, { field: 'HQty', title: '数量', width: 100 }
|
, { field: 'HSourceBillNo', title: '源单单号', width: 100 }
|
, { field: 'HRedBlueFlag', title: '红蓝字', width: 100 }
|
, { field: 'HSourceBillType', title: '源单类型', width: 100 }
|
]]
|
, height: 500
|
, done: function () {
|
layer.closeAll("loading");
|
}
|
}
|
// url: GetWEBURL() + '/Web/chanpinruk',
|
form.on('submit(cmdRefresh)', function () {//刷新
|
table.render({
|
elem: '#dj-table'
|
,url: GetWEBURL() + '/Web/chanpinruk'
|
, toolbar: '#toolbarDemo'
|
, defaultToolbar: []
|
, where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
|
, cols: [[
|
{ type: 'radio' }
|
, { field: 'HInterID', title: '单据内码', width: 80 }
|
, { field: 'HBillNo', title: '单据号', width: 80 }
|
, { field: 'HMaker', title: '制单人', width: 100 }
|
, { field: 'HMakeDate', title: '制单日期', width: 100 }
|
, { field: 'HQty', title: '数量', width: 100 }
|
, { field: 'HSourceBillNo', title: '源单单号', width: 100 }
|
, { field: 'HRedBlueFlag', title: '红蓝字', width: 100 }
|
, { field: 'HSourceBillType', title: '源单类型', width: 100 }
|
]]
|
, height: 500
|
, done: function () {
|
layer.closeAll("loading");
|
}
|
})
|
});
|
|
|
|
form.on('submit(cmdDelete)', function () {//删除
|
var checkStatus = table.checkStatus('dj-table')
|
, data = checkStatus.data;
|
var sInterID = data[0].HInterID
|
$.ajax(
|
{
|
type: "Get",
|
url: GetWEBURL() + "/ProductInBillList/Delete_Json",
|
async: true,
|
data: { "sHInterID": sInterID },
|
dataType: "json",
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
|
// 得到frame索引
|
var index = layer.getFrameIndex(window.name);
|
//关闭当前frame
|
layer.close(index);
|
//修改为功后刷新界面
|
window.location.reload();
|
});
|
}
|
else {
|
layer.msg(data.Message, { icon: 2 });
|
}
|
},
|
error: function (err) {
|
layer.msg('错误' + err, {
|
icon: 5,
|
time: 20000
|
}, function () {
|
//do something
|
});
|
}
|
});
|
});
|
|
|
|
var sBillType = '1204'
|
table.render({
|
elem: '#dj-table'
|
, url: GetWEBURL() + '/OtherOutBill_Check_New/DisPonderationBillMain_TempList_BillCheck'
|
, toolbar: '#toolbarDemo'
|
, defaultToolbar: []
|
, where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"]}
|
, cols: [[
|
{ type: 'radio' }
|
, { field: 'HInterID', title: '单据内码', width: 80 }
|
, { field: 'HBillNo', title: '单据号', width: 80 }
|
, { field: 'HMaker', title: '制单人', width: 100 }
|
, { field: 'HMakeDate', title: '制单日期', width: 100 }
|
, { field: 'HOWNERName', title: '组织', width: 100 }
|
]]
|
, height: 500
|
, done: function () {
|
layer.closeAll("loading");
|
}
|
})
|
|
//刷新明细页签
|
table.render({
|
elem: '#mx-table'
|
// , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
|
//, toolbar: '#toolbarDemo'
|
// , where: { sMsg: linterid, sMsg2: lentryid }
|
, cols: [[
|
, { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
|
]]
|
, page: true
|
, height: 500
|
, done: function () {
|
}
|
});
|
});
|
//清空表头
|
</script>
|
|
</body>
|
</html>
|