修改了发货记录中选择关联合同
parent
339d5b32ef
commit
dc08bf9c7f
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<title>若依系统首页</title>
|
<title>应用管理系统首页</title>
|
||||||
<!-- 避免IE使用兼容模式 -->
|
<!-- 避免IE使用兼容模式 -->
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<link th:href="@{favicon.ico}" rel="shortcut icon"/>
|
<link th:href="@{favicon.ico}" rel="shortcut icon"/>
|
||||||
|
|
|
@ -160,21 +160,28 @@
|
||||||
minView: "month",
|
minView: "month",
|
||||||
autoclose: true
|
autoclose: true
|
||||||
});
|
});
|
||||||
function openList(id){
|
function openList(){
|
||||||
var options = {
|
var options = {
|
||||||
title: "关联合同",
|
title: "选择合同",
|
||||||
url: prefix + '/selectOrder',
|
url: prefix + '/selectOrder',
|
||||||
skin: 'layui-layer-gray',
|
skin: 'layui-layer-gray',
|
||||||
btn: ['关闭'],
|
|
||||||
yes:function(index){
|
|
||||||
$.modal.close(index)
|
|
||||||
},
|
|
||||||
maxmin: false,
|
maxmin: false,
|
||||||
full: false,
|
full: false,
|
||||||
index:1000
|
index:1000,
|
||||||
|
callBack: doSubmit
|
||||||
};
|
};
|
||||||
$.modal.openOptions(options)
|
$.modal.openOptions(options)
|
||||||
}
|
}
|
||||||
|
function doSubmit(index, layero){
|
||||||
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
|
if (rows.length == 0) {
|
||||||
|
$.modal.alertWarning("请至少选择一条记录");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$('[name="orderId"]').val(rows[0].id);
|
||||||
|
$(' [name="orderName"]').val(rows[0].orderName);
|
||||||
|
$.modal.close(index);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -168,16 +168,23 @@
|
||||||
title: "关联合同",
|
title: "关联合同",
|
||||||
url: prefix + '/selectOrder',
|
url: prefix + '/selectOrder',
|
||||||
skin: 'layui-layer-gray',
|
skin: 'layui-layer-gray',
|
||||||
btn: ['关闭'],
|
|
||||||
yes:function(index){
|
|
||||||
$.modal.close(index)
|
|
||||||
},
|
|
||||||
maxmin: false,
|
maxmin: false,
|
||||||
full: false,
|
full: false,
|
||||||
index:1000
|
index:1000,
|
||||||
|
callBack: doSubmit
|
||||||
};
|
};
|
||||||
$.modal.openOptions(options)
|
$.modal.openOptions(options)
|
||||||
}
|
}
|
||||||
|
function doSubmit(index, layero){
|
||||||
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
|
if (rows.length == 0) {
|
||||||
|
$.modal.alertWarning("请至少选择一条记录");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$('[name="orderId"]').val(rows[0].id);
|
||||||
|
$(' [name="orderName"]').val(rows[0].orderName);
|
||||||
|
$.modal.close(index);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -4,34 +4,31 @@
|
||||||
<th:block th:include="include :: header('关联合同')" />
|
<th:block th:include="include :: header('关联合同')" />
|
||||||
</head>
|
</head>
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
<div class="col-sm-12 select-table table-striped" >
|
<div class="container-div">
|
||||||
<div>
|
<div class="col-sm-12 select-table table-striped">
|
||||||
<form id="formId">
|
<form id="formId">
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label>合同编号:</label>
|
<label>合同编号:</label>
|
||||||
<input type="text" name="orderCode"/>
|
<input type="text" name="orderCode"/>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>合同名称:</label>
|
<label>合同名称:</label>
|
||||||
<input type="text" name="orderName"/>
|
<input type="text" name="orderName"/>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<table id="bootstrap-table"></table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<th:block th:include="include :: footer" />
|
<th:block th:include="include :: footer" />
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var prefixOrder = ctx + "manage/order";
|
var prefixOrder = ctx + "manage/order";
|
||||||
$(function() {
|
$(function() {
|
||||||
|
@ -41,20 +38,14 @@
|
||||||
showColumns:false,
|
showColumns:false,
|
||||||
showToggle:false,
|
showToggle:false,
|
||||||
showRefresh:false,
|
showRefresh:false,
|
||||||
|
pageSize:8,
|
||||||
showPageGo:true,
|
showPageGo:true,
|
||||||
params:{
|
params:{
|
||||||
|
|
||||||
},
|
},
|
||||||
onClickRow:function (row,event) {
|
columns: [{
|
||||||
$(parent[parent.length-2].document).find("input[name='orderId']").val(row.id)
|
radio: true
|
||||||
$(parent[parent.length-2].document).find("input[name='orderName']").val(row.orderName)
|
},
|
||||||
$.modal.close();
|
|
||||||
|
|
||||||
},
|
|
||||||
columns: [{
|
|
||||||
checkbox: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'id',
|
field: 'id',
|
||||||
title: '主键',
|
title: '主键',
|
||||||
|
@ -72,6 +63,10 @@
|
||||||
$.table.init(options);
|
$.table.init(options);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function getSelections() {
|
||||||
|
var rows = $('#bootstrap-table').bootstrapTable('getSelections');
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue