jsk
This commit is contained in:
parent
9a536a4ddb
commit
bbc5634ed9
|
|
@ -63,12 +63,12 @@
|
||||||
<%-- </div>--%>
|
<%-- </div>--%>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="maName" class="layui-input" placeholder="请输入机具名称">
|
<input type="text" name="maName" class="layui-input" placeholder="请输入规格型号">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="maType" class="layui-input" placeholder="请输入规格型号">
|
<input type="text" name="maType" class="layui-input" placeholder="请输入机具名称">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
|
|
@ -91,11 +91,11 @@
|
||||||
<a class="layui-btn layui-btn-xs" lay-event="detail">明细</a>
|
<a class="layui-btn layui-btn-xs" lay-event="detail">明细</a>
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
var typed=5;
|
||||||
layui.use(['table', 'form'], function(){
|
layui.use(['table', 'form'], function(){
|
||||||
var table = layui.table;
|
var table = layui.table;
|
||||||
var form = layui.form;
|
var form = layui.form;
|
||||||
var type=1;
|
var type=1;
|
||||||
var typed=5;
|
|
||||||
var urld='${bonuspath}/backstage/indexHomeDetails/getNewlyStored';
|
var urld='${bonuspath}/backstage/indexHomeDetails/getNewlyStored';
|
||||||
var colsd=[[
|
var colsd=[[
|
||||||
{type: 'numbers', title: '序号', width: 100},
|
{type: 'numbers', title: '序号', width: 100},
|
||||||
|
|
@ -268,6 +268,7 @@
|
||||||
// 监听搜索表单提交
|
// 监听搜索表单提交
|
||||||
form.on('submit(equipmentTypesSearch)', function(data){
|
form.on('submit(equipmentTypesSearch)', function(data){
|
||||||
console.log(data.field);
|
console.log(data.field);
|
||||||
|
data.field.type=typed;
|
||||||
table.reload('equipmentTypesTable', {
|
table.reload('equipmentTypesTable', {
|
||||||
where: data.field
|
where: data.field
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -63,12 +63,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="maName" class="layui-input" placeholder="请输入机具名称">
|
<input type="text" name="maName" class="layui-input" placeholder="请输入规格型号">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="maType" class="layui-input" placeholder="请输入规格型号">
|
<input type="text" name="maType" class="layui-input" placeholder="请输入机具名称">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
|
|
@ -91,11 +91,11 @@
|
||||||
<a class="layui-btn layui-btn-xs" lay-event="detail">明细</a>
|
<a class="layui-btn layui-btn-xs" lay-event="detail">明细</a>
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
var isCount=1;
|
||||||
layui.use(['table', 'form'], function(){
|
layui.use(['table', 'form'], function(){
|
||||||
var table = layui.table;
|
var table = layui.table;
|
||||||
var form = layui.form;
|
var form = layui.form;
|
||||||
var type=1;
|
var type=1;
|
||||||
var isCount=1;
|
|
||||||
// 渲染表单
|
// 渲染表单
|
||||||
form.render('select');
|
form.render('select');
|
||||||
type=$("#type").html();
|
type=$("#type").html();
|
||||||
|
|
@ -232,6 +232,7 @@
|
||||||
// 监听搜索表单提交
|
// 监听搜索表单提交
|
||||||
form.on('submit(equipmentTypesSearch)', function(data){
|
form.on('submit(equipmentTypesSearch)', function(data){
|
||||||
console.log(data.field);
|
console.log(data.field);
|
||||||
|
data.field.isCount=isCount;
|
||||||
table.reload('equipmentTypesTable', {
|
table.reload('equipmentTypesTable', {
|
||||||
where: data.field
|
where: data.field
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -870,19 +870,19 @@ $(function() {
|
||||||
localStorage.setItem('calendarDate', selectedDate);
|
localStorage.setItem('calendarDate', selectedDate);
|
||||||
localStorage.setItem('calendarDayData', JSON.stringify(dayData));
|
localStorage.setItem('calendarDayData', JSON.stringify(dayData));
|
||||||
let layerIndex = layer.open({
|
let layerIndex = layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: "机具日历详情",
|
title: "机具日历详情",
|
||||||
// btn:['保存','取消'],
|
// btn:['保存','取消'],
|
||||||
shade: [0],
|
shade: [0],
|
||||||
area: ['80%', '80%'],
|
area: ['80%', '80%'],
|
||||||
scrollbar: true,
|
scrollbar: true,
|
||||||
move:false,
|
move:false,
|
||||||
anim: 2,
|
anim: 2,
|
||||||
yes:function(index,layero){
|
yes:function(index,layero){
|
||||||
},
|
},
|
||||||
content: [bonuspath +'/backstage/indexHome/calendarDetail'],
|
content: [bonuspath +'/backstage/indexHome/calendarDetail'],
|
||||||
success: function (layero, index) {
|
success: function (layero, index) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// 当用户点击日期时触发
|
// 当用户点击日期时触发
|
||||||
/*layer.open({
|
/*layer.open({
|
||||||
|
|
@ -1300,7 +1300,7 @@ $(function() {
|
||||||
// 修改 innerHTML 为字符串拼接
|
// 修改 innerHTML 为字符串拼接
|
||||||
const iconClass = func.rsIcon || 'layui-icon-app';
|
const iconClass = func.rsIcon || 'layui-icon-app';
|
||||||
functionItem.innerHTML = '<i class="' + iconClass + '"></i>' +
|
functionItem.innerHTML = '<i class="' + iconClass + '"></i>' +
|
||||||
'<span>' + func.rsName + '</span>';
|
'<span>' + func.rsName + '</span>';
|
||||||
|
|
||||||
functionList.appendChild(functionItem);
|
functionList.appendChild(functionItem);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1604,6 +1604,12 @@
|
||||||
left join mm_type mt on wir.MODEL_ID = mt.ID
|
left join mm_type mt on wir.MODEL_ID = mt.ID
|
||||||
left join mm_type mt2 on mt.PARENT_ID = mt2.ID
|
left join mm_type mt2 on mt.PARENT_ID = mt2.ID
|
||||||
where wir.TYPE = #{type}
|
where wir.TYPE = #{type}
|
||||||
|
<if test="maType != null and maType != ''">
|
||||||
|
and mt2.NAME like concat('%', #{maType}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="maName != null and maName != ''">
|
||||||
|
and mt.NAME like concat('%', #{maName}, '%')
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getInventoryStored" resultType="com.bonus.index.beans.IndexStorageWarnBean">
|
<select id="getInventoryStored" resultType="com.bonus.index.beans.IndexStorageWarnBean">
|
||||||
select mt2.NAME as maType,
|
select mt2.NAME as maType,
|
||||||
|
|
@ -1614,5 +1620,11 @@
|
||||||
left join mm_type mt on wir.MODEL_ID = mt.ID
|
left join mm_type mt on wir.MODEL_ID = mt.ID
|
||||||
left join mm_type mt2 on mt.PARENT_ID = mt2.ID
|
left join mm_type mt2 on mt.PARENT_ID = mt2.ID
|
||||||
where wir.INVENTORY_TYPE = "盘盈"
|
where wir.INVENTORY_TYPE = "盘盈"
|
||||||
|
<if test="maType != null and maType != ''">
|
||||||
|
and mt2.NAME like concat('%', #{maType}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="maName != null and maName != ''">
|
||||||
|
and mt.NAME like concat('%', #{maName}, '%')
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue